skysight-inc/HackerNews huggingface dataset:
Show HN: lambdaprompt – build, compose and call templated LLM prompts
For the past few months I've been building a lot of things with LLMs (GPT-3, Codex, etc.) as I've been trying to push them to their limits (especially towards applying them to the tabular data domain)

When working on this, I've found there are some common patterns for solving problems (templating, chaining, functional-programming style operations, etc.) As I've iterated, I've come to believe that a functional style interface is likely going to power a new wave of systems I'm calling "prompt-machines"(systems where the core new unit of work is a "named" LLM prompt, extending the "function" concept). Additionally, in order to make the code capable of meta-prompting (where the LLM can write its own templated prompts), I aimed to make the interface and library as simple and lightweight as possible. I think I've achieved my goal, so I'm releasing the library to share with others!

I mainly use lambdaprompt in two main ways:
(1) to quickly try out "map" applying a LLM prompt against multiple inputs, to see how it behaves on a fixed set of inputs
(2) to quickly iterate on a prompt-chain (taking the output of a prompt, and passing it to other prompts) to create complex behavior.

An example of (2) that worked quite well is a Text-2-SQL prototype: It generates multiple SQL options, then executes each against the database (if it errors, asks `Codex-EDIT` to fix the errors and retry), then takes the most "consistent" answer as the valid answer. Simply by adding this prompt-chain on top of codex, we saw an improvement from ~75% to ~85% on a spider Text-2-SQL benchmark (On just a small sample of N=200).

To increase usability it also ships (extras) with a fastapi app that registers any defined prompts as endpoints directly, and hosts the functions to be directly callable via HTTP-GET requests. This makes it easy to build client-applications off of these prompts, while allowing the prompt itself to be arbitrarily complex (composition of prompts)

I hope you enjoy using it!

Also, I'm super curious to hear if anyone else has been thinking about LLMs (composing them, building interfaces to them, etc.) in similar ways and what learnings have been (even if not though this library)
> Attempting to solve problems with micro-targeted taxes is a rather unfair strategy that is also unlikely to work. This article claims that a private jet is <2 orders of magnitude worse than more conventional transport. That means their contribution contributes approximately 0% to the total pollution problem.

> The UK has a much bigger threat from energy security than they do from climate change. I've been watching their energy numbers on trusty old Wikipedia. They are grim. The UK does not need a policy of trying to load their problems onto wealthy people. If they leave and the UK loses the ability to build up a financial edge and the country will have nothing left.

Wealthy people have been "threatening to leave" for as long as I can remember.

Has it ever actually happened anywhere?
maybe thats precisely because the frontend has turned into a monoculture. having multiple competing stacks with different pedigrees helps innovation. one example I can think of is the erlang/elixir/phoenix/liveview stack that revisits old patterns and gives them new life.

who knows, maybe wasm and projects like pyscript will stirr things up
The popup "Login or create a free account" took something like 2 minutes to appear when using Firefox. It showed up immediately in Chrome.

The link in the line "You will need an API key. RF100 can be accessed with any key from Roboflow, head over our doc to learn how to get one." is incorrectly quoted and does not work.

When downloading the data, a request to read the terms of service pops up. The terms of service explicitly disallow downloading https://roboflow.com/terms (section 3).

The download script at https://github.com/roboflow/roboflow-100-benchmark/blob/main... got stuck at "Generating version still in progress. Progress: 98.75%". When restarting the script, it got stuck at "Generating version still in progress. Progress: 148.15%".

The websites for the individual classes (e.g. https://universe.roboflow.com/roboflow-100/solar-panels-taxv... ) state that the data is licensed under "CC BY 4.0", but what are the exact attribution instructions? There is some BibTeX which should be cited if the data is used in a research paper, but what about other cases?
Yes, as an adult for yourself, I agree. It's habit now.
> yet it uses basic math from hundred or thousands of years back

as if that was an argument. We use the wheel for a gazillion o "important and f daily life" applications.
The younger generation was growing into worst economy that their parents generation did. Unemployment was higher. Their education is also massively more expensive. The Healthcare detto.

It is just not true that they would be better off.
You deserve an upvote just for your use of ‘scry’.
I was going to come here and link directly to this - the migration from previous versions is always covered in detail and seems to always work which is great. A lot of frameworks seem to struggle with this quality of documentation when upgrading versions.
If the historical drift right with age is true (I've never believed so, but it's a popular theory) they could return to influence. That's the main fear.
This particular design would actually be real pain to clean, being small and full of curved, occluded surfaces. Allegedly smooth surface notwithstanding - over time even steel gets brushed, bent and the joints damaged.
If you’re justifying text, there may be more constraints like not wanting a big change in interword spacing between lines or avoiding spaces lining up across lines. These constraints might apply to the current line or to following lines affected by your choice of where to break.

Though I think the main reason would be limited horizontal space, e.g. a table cell or narrow newspaper column.
Unfortunately, the customer paid a price that did not include the human fee, and likely also wouldn't have bought whatever they did if it was included.
It is neither predatory nor gouging, with TFA serving as perfect evidence. No one is compelled to agree to these terms.
It can't be all work; one also has to hack.

cf "what is the little man there for?" https://books.google.ch/books?id=V3ByEAAAQBAJ&pg=PA575&lpg=P...
Complete roading closing for just (re-)paving is not common nowadays in many countries.

I remembered having them a lot in my childhood, but not in recent 10 years. If a road is closed totally there usually something beyond paving going on.
One might look to the words of Morrissey for a similar approach:

https://www.azlyrics.com/lyrics/morrissey/jimjimfalls.html

" If you're gonna jump then jump
Don't think about it
If you're gonna run home and cry
Then don't waste my time
If you're gonna kill yourself
Then to save face
Just kill yourself"
Glass Onion is not as far-fetched as you think
It's likely that there just isn't any legal oversight. They made this loophole, but there are intentionally no provisions to ensure it isn't abused. This is something that would need to be legislated again, but if they screwed up this badly this time (on purpose), I doubt that'll ever happen.
Asian States, Russia and others seek independence from the dollar and the swift system
Yes, and a lot of those previous deaths was self medication due to mental health problems.

And the same goes for minor violent crimes committed by young people. And teenage pregnancies. Many of those were result of kids having issues and acting out. They are down now.

Also, my generation had it easier then current one. Economy was better, education cheaper, housing cheaper.
Presumably someone who flies on planes, because they don't want the plane they're on to crash.
Is the Golden Era of Humor in Advertising Over?
At that point, you pretty much have to write it in Java. :)
https://archive.vn/HLcZX
OCaml would have been awesome for scientific computing, had it got enough adoption.
I don't know if it works for every book or even for this one, but perhaps where applicable trying to split the book into 2 or more parts, each priced moderately below the $9.99 limit.

It would be interesting to find out if the lower price of part one increases sales enough to compensate for the lesser amount of sales of the latter parts, and if in the end the income is higher, lower, or about the same.
SO would disable a question of this type for being opinion-based.

I would assume the Python devs review the code for a package before including it in the standard lib, right? That seems like a pretty big deal, well beyond someone just telling you that they tried a package and it worked for them.
SD: My script directory
The Evolution of Board Games in North America
good for him. it never ceases to amaze me how much privacy and freedom people are willing to forgo for sake of convenience
> It is easier to start with the super-rich because average Joe has no problem with it.

Passing the legislation may be easier but enforcing it is more difficult because:

- super rich people can afford to employ people like tax lawyers to help them get around things like this and still save money

- they can rock up to any country in the world and be welcomed in, thus leaving anywhere that bothers them. Then the tax take is zero.

They have options that most people don’t. What fascinates me is how oblivious to these options the people proposing such policy changes are, it’s why so many “good intention” laws/policies get passed and yet no progress - or even a regression - is made.
I personally think that American students not being engaged or treated by violent fights in public transport says something good about USA. The Russians being engaged in them says something about Russian society breaking.

The "last month" thing is fairly standard through. They are looking for statistics of recent events, lifestyle "now". Not lifestyle 5 years ago.
These regulations are descriptive. They exist so that there is a law somewhere that describes what a cucumber is.

Sidenote, this whole exchange is .. urgh. People criticizing things they haven't spent a minute to try to understand :/

Imagine if I came up to your monitor and started looking at individual lines of your code, and then I see an "x = 0", and I start criticizing it in a vacuum, completely cluelessly, as someone who has never coded before?
That isnt how the cards work, nor could anyone with the most rudimentary understanding of the cards interpret such a thing from any set of cards. I don't know if "liar" is the word i'd use, but anyone making such concrete statements based on a reading is not doing any research whatsoever on card meanings. I am in the camp that the cards are an excellent tool at helping the user examine their situation/self/ethics in an abstract way that ultimately help us better understand our feelings and address issues that we may be ignoring. It does seem rather uncanny reflecting on previous readings and how they consistently seem to accurately reflect situations and courses of action, but surely this is what i projected onto the cards?
You're complaining about a library, not Python.
The questions that one asks themselves before writing a blog post such as whether it's valuable, exists, whether we have time is what leads to the downfall of 99% of blog posts.
Do you use FreeBSD regularly? Are these books useful reading for somebody who doesn't use FreeBSD?
If you're actually concerned about this (as far as I'm aware there's been no evidence that the voting you suggest is common when experiments have been done) you can normalize the individual ballots (e.g. softmax). But I truly believe that the added complexity to this would unnecessarily complicate an effect we do not observe. (Consider that we also have an edge case of A:10 B:10 C:10 as well. Though this ballot is easy to handle in other ways: toss it) Most voters will use a scaled sincerity voting strategy and thus you'd have A:6 B:8 C:10 and our bullet voter will no longer have an advantage. It pays to be sincere.

Continuing down this, you're essentially discussing bullet voting. I should EXPLICITLY state that this is a well known case and has been extensively studied[0][1]. I appreciate that you have concern with the system and I implore you to continue to search for flaws, but also to look for information discussing these ideas. The reason the bullet voting was likely so low in this study is that most voters are rational and understand that they are giving up significant leverage when bullet voting (note that the case is even worse in approval!). We often think our neighbors are far less rational than they actually are and we shouldn't make this mistake.

We should probably also discuss Monotonicity[2], but maybe in a follow-up conversation.

[0] https://www.rangevoting.org/BulletBugaboo

[1] https://www.rangevoting.org/RVstrat3.html (called Plurality here, strategy B)

[2] https://electionscience.org/library/monotonicity/
Easily explained, the assets became unavailable to whole chunk of population, and the relatively tiny increase of wages does barely dent the increased cost of living for them.

The remaining assets are purchased by the rich who can afford them.

Easiest way to present this problem would be to measure in PPP adjusted dollars the time it takes to save to purchase a basic asset (usually living space) subtracting living costs. Make sure to also consider the asset price long term trend while at it.

If you cannot save, the time is infinity, if you cannot buy it in a lifetime, better also count your (ever poorer) kids in.

This is only the most basic estimate, remember that over time any health issue or other catastrophe is likely to happen, and the response to these often depends the savings you have... (You can count a flat buffer or a percentage.)
it takes like 6 lines of code to have a working flask endpoint to deploy a quick and dirty API. About a billion files for phoenix. I hate that too.
Interesting, I went into this expecting a lot and it really missed the mark for me. Maybe I was too old?
The Quantum Prolog site [1] advertises ISO Prolog for planning, optimization, diagnostics, and complex configuration but also showcases Inductive Logic Programming as a variant of Machine Learning. Agree Prolog should be seen as special-purpose language, but rather for a much larger domain than parsers. Datalog, using a Prolog syntax subset, is a decidable logic fragment for use in theorem provers and is also used as a query language. MiniKanren may be useful as embedded logic solver (I don't know really) and MiniZinc might have its uses, too, but those really don't compare to the portability and size of the Prolog ecosystem IMO.

[1]: https://quantumprolog.sgml.io/
Non-native speaker being curious: do we need to use plural with fractions less than one?

Is it 1/2 foot or 1/2 feet?
"Pure Python" ultimately means that it all runs within the python interpreter, with no dependencies on code that runs outside of the interpreter (standard library notwithstanding).
This week in KDE: end-of-year goodies
A Twitter page that posts non-fiction book summaries written by ChatGPT daily
https://twitter.com/bookinathread?s=20&t=PjxuY0Yvip5jbkd2CKH...
Ask HN: How are you celebrating New Year’s Eve?
Please tell us all about local customs and your own family traditions
Where You Stand versus Sit
“The Beginning of Infinity” from David Deutsche.

Even if you are a die-hard pessimist it will open some cracks and plant seeds on your mind. Disguised as a physics book - not an easy read - this is a treaty on optimism.
Supporting Arabic is not that hard. It's not as complicated as these blog posts are presenting it to be.
Haha. 9 out of 10 climbers make the same mistakes by Dave Macleod. Definitely expanded my climbing.
Cul de sac rollerblade hockey is how I spent much of my youth. So many good memories.
There were always people unable to drive. The odd thing is that this guy either pretended to be able to drive or was pressured into driving despite lack of skills.

He absolutely should have say no to request to drive in that state. Inability to admit limitation is an issue when it comes to driving.
I think many people understand general purpose to mean it's a good language choice for many different and common uses. It has little to do with how Turing complete the language is. Just how well it suits a variety of problem domains.
I'm not sure I understand what the alternative is - should you pretend that corporations are not ruthless profit maximizers, and allow them to have undue sway over our legislative system all the same? It seems like the root of the problem is that we've let the institutions which are supposed to hold our politicians to account when they exhibit blatant corruption fall into disrepair.
CS50 is nice.
Canadians aren't Americans in a sense of "citizens of USA", but in geographical sense they are. The same applies here.
It's perfectly possible to allow equality in ranked choice voting systems, so A > B = C > D.

But what happens in your cardinal voting system, if D and C are the front runners in competition for a single seat? Imagine the final results were

A: 30 points, B: 20 points, C: 50 points, D: 51 points.

If only you had given the realistic challenger to D your full support (5) instead of being expressive in your preference and docked them 2 points. Now D will rule for another 4 years and the C supporters will call you a traitor for voting your honest preference, just like in the present system.

And this scenario is easy to imagine. You usually know who the front-runners are, and because not only you, but everyone else, wants to avoid that scenario, belief about who the front runners are has a self-reinforcing effect.

A scenario where you're glad you didn't award the full 5 points, though, is much harder to imagine. And a scenario where you are BOTH glad that you didn't award them 5, yet glad that you didn't award them 0, is as far as I can see never going to happen in a single candidate election.
Have you tried Haskell vor Scala?
I’ve been feeling the same. I wanted to watch about 5 or some movies this year that were a) not available on any streaming platform, b) only available on one specific streaming platform exclusively (which I didn’t have a sub to), c) You straight up could not purchase it on YouTube/Amazon/ITunes.

I’m not playing this game.
Sorry, Peter Dutton? This is like how the UK Tories always go on about the lack of PR preventing a UKIP entering power: newsflash my dudes, the UKIP is you.
I invite you to think about whether the GPL would be required for what it tries to achieve, in a system that doesn't have copyright at all.
Even with almost everyone vaccinated and/or repeatedly exposed to the virus to refresh their immunity, the virus killed over 70,000 in the US in that last 6 months and over 250,000 in the last year.

In the first months of the pandemic, healthcare workers spent 14-hour shifts surrounded by deathly ill patients and still only rarely caught it themselves thanks to their PPE, in particular the masks that were invented for this very purpose.

It's obvious what could actually eradicate this virus that has multiplied the flu (which was already an annual crisis) ten-fold. Maybe next time a rapidly developed and deployed vaccine will do it, but not this time.
Can't get a promo for stuff like that. A version of Goodhart's law.
I appreciate the existence of referendum.

California allows for initiated constitutional amendments to pass with only a simply majority, and those amendments can appear on the ballot after gathering a relatively small number of signatures. The signature requirement weeds out a majority of initiatives, whether amendment or statute, but the quality of the remainder makes me wish it were more stringent.

I dislike that California's process for citizen initiatives is quite so open as it is. For example, 2022's Prop 29 was a third run of a measure that also failed to pass on each of the preceding two ballots, with 59%+ of voters opposed each time. The topic is sufficiently narrow, and would benefit from expert input, that I don't feel it belongs on a ballot at all.

https://ballotpedia.org/California_Proposition_29,_Dialysis_...

I question, as well, the inability of the state legislature to amend or repeal anything initiated by citizens without sending it back out onto the ballot.
We need some 3-strike rules for companies. Three 3-strikes like wrong reasons used and you are permanently out. Your property is confiscated and sold, wages are paid out, any debtors are paid if there is any money and rest is forfeited as penalty to state.
Good timing: https://www.ft.com/content/c361e372-769e-45cd-a063-f5c0a7767...
I disagree, but perhaps there is a difference between technical and non-technical subjects. I'm aware of Masterclass and I don't know what the incentive for people to put their teachings behind a paywall is there, but if you are under the illusion that you can learn any technical subject by watching 1-3 hours (most of the courses are of that length) of videos, you are falling into instant gratification trap of modern society, just like reading popular news. These things are the pop science education equivalents of TikTok. They are interesting, but they are entertainment, not education.

The unfortunate truth is that if you want to become an expert in a technical topic, you need to put in hard work beyond 1-3 hours of watching a video, despite what all the YouTube influencers may want you to believe.
My team at work has completely rewritten from Redux with Redux Form to Tanstack query and React Hook Form over the past two years, and we don’t miss a single thing about Redux.

We make an app that contacts lots of microservices in sequence and combines the data in many ways. Having automatic refetching, caching and the like by default makes a world of difference.

This is not fashion. It’s quality.
> the issue is slow startup time due to module imports being dynamic and slow

yes that is still the case e.g with kivy based apps (and apk size too, as you need to ship the entire stack). but such issues could be helped if python was to be promoted to "first class citizen". apparently, at least on the android side, the possibility was considered and rejected early on

in any case, whether python or something else, what is missing is easy programmability on mobile. current devices feel more suffocating than Microsoft Windows desktops ever were. you can also see it in the open source app collections in f-droid which I would say is on the underwhelming side.
cf The Space Merchants (1952) for Golden Era humour about advertising.

(not only is it still amazingly relevant, but Today I Finally Cottoned Onto the gag in the title)

[Edit: "Ähm, what are you sinking about?" Is. The. Hammer.]
It is? Or did you leave out a "not"?
"Everyone wearing PPE all the time" is hardly an "obvious" solution...
Won’t matter much once WW3 starts ……
Software engineering is a branch of engineering in many countries. Engineering follows the engineering design process [1] and uses applied science. So, to me, people doing software engineering (regardless of laws / licenses) are following an approximation of the engineering design process. A software developer is anyone getting paid to write or produce software regardless of approach or knowledge of CS topics.

On a spectrum, there are software developers that follow the engineering design process and use all sorts of knowledge of applied science, but there are also those who make it all up as they go along and rediscover or rename concepts independently. Each approach comes with its own associated benefits and tradeoffs, and there are times and places where the latter end of the spectrum can be desirable.

At least that's my hot take.

[1] https://www.mcgill.ca/engineeringdesign/step-step-design-pro...
Do not allow corporations to lobby and influence the law. Do no allow politicians to profit from changes to the law (ie playing the stock markets)

Companies are not people and do not have rights.