skysight-inc/HackerNews huggingface dataset:
Why can't LLM's solve this coding problem?
GPT4, Claude 3 Opus, Gemini Advanced, and Meta AI all fail at this, which surprised me. Even after pointing out the flaws in their initial solutions, I can't get them to give me a correct one. They clearly understand the problem specification, and the correct solution is only 8 lines of code. Curious if anyone has a theory why they find this so hard.

Here is the prompt:

I need a function that takes two integer parameters named TOTAL and MAX. The function should return a list of integers, each between 1 and MAX inclusive, that sum to TOTAL. The list should contain as few elements as possible, but the numbers within it should also be as close to each other as possible, and be in descending order. Examples:

TOTAL = 7, MAX = 1, RESULT = [1, 1, 1, 1, 1, 1, 1]
TOTAL = 7, MAX = 2, RESULT = [2, 2, 2, 1]
TOTAL = 7, MAX = 3, RESULT = [3, 2, 2]
TOTAL = 7, MAX = 4, RESULT = [4, 3]
TOTAL = 7, MAX = 5, RESULT = [4, 3]
TOTAL = 7, MAX = 6, RESULT = [4, 3]
TOTAL = 7, MAX = 7, RESULT = [7]
TOTAL = 7, MAX = 8, RESULT = [7]

Please write the function in python.

They usually return an incorrect solution that adds MAX until the final element, resulting in e.g. [6, 1] for TOTAL=7,MAX=6 instead of the correct [4, 3]. The correct solution is:

def distribute(total, max):
count = total // max
remainder = total % max

if remainder == 0:
return [max] * count

base = total // (count + 1)
left_over = total % (count + 1)

return [(base + 1 if i <= left_over else base) for i in range(1, count + 2)]
Perhaps one commonality is that we all seem inclined to assume the other half makes political decisions out of spite.
Why is Golang questionable for web backends? I thought it was designed for that.
Casey Muratori and Will Byrd, though I'm not that big on tech youtubers. Strange Loop was also pretty great and I can't believe I have to say 'was' there, but so it goes.
Does the Tribler Client automatically turn my computer into an exit node?
Why do you blame "congress" instead of Republicans?
> Lots of people run exit nodes because they believe in privacy and freedom of information.

I used to do that. But I've ultimately decided that the prospect of fighting accusations of abuse or crimes committed through my network wasn't that enticing. Proponents will try to downplay the risks by using vague ideological nonsense like "don't worry, an IP doesn't legally represent a person ;)" which, even if true, won't prevent a rather unpleasant ordeal.

Running a relay is likely fairly low-risk and still a good thing for the network, though.
Due the concept of Turing completeness I’d argue it’s more of deciding which paint brand to use, or if you must, I suppose you could liken it to the distinction between choosing oils or acrylics.
if it was not more effective than existing options, both sides would not be scaling production and deployment at an unparalleled rate
Source available from the beginning is ethical. Open source that becomes something else is shady.

I am glad they tried. I know there's lots of cynical stuff on the internet, but realistically the open source progress on stuff like Terraform or similar wouldn't have happened if these companies didn't try an alternative.

I'm not sure what people want these companies to do. If there's no money, if the idea didn't work, they need to pivot to something that does work.
"I'll make products that cause civil unrest, poison the political systems of entire countries, and give young girls mental issues, but I'll be damned if I work for that nasty military-industrial complex; I'm too moral for that!"
Ask HN: Has anyone found a nice cross platform alternative to Authy?
With Authy's desktop app sunsetting, I'm on the hunt for a reliable cross-platform alternative that allows me to manage my 2FA codes on both my Android device and PC.

I know some of you security enthusiasts might suggest otherwise, but I still prefer having my 2FA software on my PC and willing to trade security for convenience
> What, then, is the impetus for restoring the net neutrality rules, given there is always some political cost to any action like this? Has the lack of net neutrality caused issues that I just have not heard about?

The rule was always going to get reversed eventually. Several major factions within the Democratic party are strong supporters of net neutrality and they've become increasingly more powerful over the last two decades, at the expense of its detractors like the media conglomerates and ISPs.

It only took this long because of the Administrative Procedure Act [1] which regulates how agencies make rules. They can't just flip flop the second a new political party gains power because of judicial review - they have to follow a process (though they probably also timed this for an election year).

[1] https://en.wikipedia.org/wiki/Administrative_Procedure_Act
Increase focus with Floww! Tiny light pulses gently guide you into a deep work state, boosting concentration and calming distractions. Easy to set up, works wonders.
I don't know if it's really still a fair trope at this point, but the argument made is that Go was specifically designed to be the best of Google's three main languages at the time— C++, Java, and Python. It was made to be quick to learn, hard to mess up, and easy to read/review. It specifically includes things like the build tool and formatter because those are long-running pain points in large scale development.

Rust, on the other hand, is a borderline research language that was built to support Servo, a web browser backend— literally among the hairiest of sofware engineering problems in existence. It gives you a lot of "safety" but at the cost of having to consider issues that most developers never think about.

This is not to say that Go is for dumb programmers and Rust is for smart ones or anything of that sort— just that despite years of evolution, both carry the DNA of their inception, and it shows.
Just another blow of air into the AI bubble. Can’t wait to see all these stupid companies and their VCs go bankrupt.
Yeah, the main issue with I2C for this sort of thing is device discovery. It doesn't have any mechanism for it so you would need to magically know your device's address.

I believe for things like controlling monitors they just hard-code the addresses. I think that's how it works anyway. Unfortunately the DDC/CI spec is really badly written, incomplete, and full of legacy stuff that nobody actually implements.
I feel like this is positive, but it doesn't really go far enough to have an impact on the internet as it exists today. The network itself being neutral doesn't make much difference at all to the average user when the majority of internet usage is through private platforms that are not bound by any such rules. We need to have some utility style regulation for the large web platforms too.
The Supreme Court is poised to decide a case this term, Loper Bright, which should help restore more finality to decisions like this.

Because agencies receive considerable deference to their interpretation of the law, even when that interpretation flip-flops every four years, we never get a definitive ruling on what the law says. The Court seems likely to greatly reduce this deference, leading to more consistency.
Remember when the Internet freaked out and "when dark" to protest how the lack of NN would ruin the internet?....and then nothing changed?

The boy who cried wolf...again.
The context was in R and D at a large organization. Are some projects better funded/further along/seemingly more important to spearhead? Sure. But that was not how this department handled the workload. Dozens of people are coming to them a day for work done on hundreds of separate projects potentially. They can’t afford to triage this workload nor even can you really. Like I said, no one complained because despite FIFO turnaround was still faster (that afternoon if you got your job in during the morning potentially) and cheaper than any third party vendor.
Here's why: https://www.youtube.com/watch?v=BzAdXyPYKQo

Thank me later.
> So dismissing something as "anti-democratic" is not applicable here.

[...]

> If you disagree, you may petition your state government for a constitutional amendment

I think you're misinterpreting what's being said here in order to over-react. I don't think anyone in this thread is saying that executive orders and delegating powers to appointed regulators should be expunged from our system of government. But they should be acknowledged as a necessary evil, and their use minimized when possible, and not allowed to completely replace the legislative process. Whereas you seem to be defending taking those practices to the extreme simply because of historical precedent.
Very cool. Is there a source for this?
Ask HN: What won't a brain interface streamline?
Do the other emulsifiers from the study in this article contain PUFAs? If not, then then there's probably some other cause. Maybe PUFAs from other sources + emulsifiers, maybe something else entirely. So to the delight of the researchers applying for grants, this needs more study!
Advertorial alert.
I suspect California's "California Internet Consumer Protection and Net Neutrality Act of 2018" had a positive (from users' perspective) "chilling effect" on ISPs, as well as the center-stage focus on the issue itself. No one wanted to be the first to step out in front of that speeding train and get run over in the court of public opinion.

Comcast or Verizon would 100% have started plowing the fertile earth of "fast-lane fees" by now if they could've started doing so quietly.
I want it to shut down because I believe it’s a bad influence on kids in general.
Maybe its because I don't know what "Bento" is outside of the lunchbox, but, what is this? It's a pretty website but I couldn't find any explanation of what it's meant to di and the "try it out" just seems to change the websites background colour and pattern?
ISPs should throttle for network health if necessary. This should occur in a fashion that is fair to users, some services might get hit disproportionately because they consume a lot of bandwidth, but no services should be given an exception just because they happen to be, say, provided by the ISP.
It's designed to be more CPU-efficient than NodeJS or Python, but if all your heavy lifting is really in Postgres and other services you're calling, it doesn't matter and it's a bit pedantic. I think Golang was designed for something in the middle, maybe building a DBMS or some deeper backend.
Having the like button do an animation when your video mentions that liking it would be helpful is the only good UX choice I have seen on YouTube since... playlists?
I look at it this way: Imagine a world where the concept of a telephone never existed. We all have these portable hand-held computers, but nobody's ever experienced a "phone" before. Now suddenly an app developer invents a way for "anyone in the world to anonymously contact your device, without your consent, have that device (by default) interrupt what it's doing, (by default) ring and/or buzz, (by default) pop up a full-screen modal over what you are doing, and if you press the button, that anonymous person is able to activate your device's speaker and microphone.

I don't think this intrusive app would pass either major store's guidelines. This kind of device takeover/intrusion would be totally unacceptable to many (most?) users.

But, since we already have a concept of what a "phone" is and have gotten used to it, culturally we let it slide.
>This is much more democratic than attempting to craft law by executive fiat

What exactly "more democratic" means is a bit unclear to me. Is an act of Congress more democratic than agency policy because more reps voted on it? Is it more democratic because the reps who voted on it were elected rather than appointed by people who were elected like over at those agencies? Or is a policy democratic based on its alignment with the will of the electorate regardless of provenance?
Lol, i hate the tons of crap I already have to keep in mind and do. Advice like this is what drives the suicide rates up. Expecting people to just "learn a language" like this is a sign of a psycho to me anymore. I totally concede I'm not cutout for the work though and just absolutely hate my life as a software engineer, and reading comments like this is why I take heart medication now.
> They get security updates, but not feature updates.

Well, obviously that's a feature, not a bug. Seeing as how 95% of "new" MS features seem to be some kind of spyware or advertising.

> After a few years, some consumer software (games in particular) often start having problems because they are built assuming you run a consumer edition that is never more than a year or so behind.

Any games in particular? I've been running IOT LTSC for about 1.5 years now and have had 0 issues, including gaming. Any issues were related to having to update Nvidia/AMD drivers or C++/.NET runtime updates and not the OS itself.
Interesting. Testing this myself I have an uleFone running Android and when I pull up the text messaging interface there is a load of isakmp traffic to t-mobile and it continuously talks to Google AS15169 over HTTPS I assume for RCS. Every character I type creates a burst of isakmp vpn traffic. LTE over Wifi

I've not installed any keyboard apps, this is the bog standard uleFone. This happens even if I disable smart-reply and I always disable the Let others know when I am typing. I must be missing a setting somewhere. It's odd that if RCS uses Google over HTTPS then I dont know why it sends so many packets for each character I type to TMO over their VPN / isakmp especially since I have not sent a message. The isakmp packet rate is reduced slightly if I disable spell checking which allowed me to change more settings that were greyed out.

I guess my question is why would my phone mirror all my keypresses to both TMO over their VPN and to Google over RCS in bigger bursts vs keypress, all without my actually sending a message? It appears that to debug this I have to install Magisk to use my Squid SSL Bump proxy but I doubt that will help my with the isakmp traffic unless they bootstrap the preshared secret over HTTPS on a domain not using public key pinning which Google has on several subdomains.
`await f()` is more convenient than simply `f()`? I don't get it.
With them picking Russia in their invasion of Ukraine, the term enemy is rather applicable at this point.
https://archive.is/U1pq3
Here's a video about making an OLED device from scratch, and all the physics involved:

https://www.youtube.com/watch?v=qg8pMUd-tSk
thank you for your feedback,
we are learning to improve the APP day by day ;)
I'd call it realistic. It's one thing to have an LLM developer facing and suggesting improvements etc _maybe_ "something went wrong? Try auto fix"

But LLM in a hotspot is asking for trouble in present LLM sota
>Florida can also impose a new bill on the next occupant of that bed, potentially allowing the state to double, triple, or quadruple charge for the same bed.

More like paying while next renter is already paying and the renter after him and the renter after him.

Just jail everybody to 10 years release them after a week and get the money the next 10 years.

Everywhere else this would be called a scam and exploitation.
So you disagree his achievements are impressive? That's my only assertion.

And if so, you are saying his achievements are nullified by his behavior?
Libertarians aren't anarchists. They don't generally believe that there should be no government (although you can find people who believe just about anything). I don't think there's anything hypocritical about libertarians taking government contracts for defense. If they were taking government contracts or jobs around regulating markets or building public housing, then that would be closer to hypocritical, but I'm not sure that even qualifies. Hypocrisy isn't benefiting from something you disapprove of, it's engaging in it, so arguably, they'd have to be the ones issuing the laws they disapprove of for it to be hypocrisy.
They've found their lanes now, but I think there's still a lot a historical baggage in the discourse from back when they were much closer together— Go thought it was competing with C++ rather than Python, and Rust originally had a much bigger runtime before no_std.
Just ask ChatGPT questions like "how the hell do I do (something in the language you know) in (the language you don't know)." And you'll never get an answer like "actually the language doesn't have this feature," it'll just tell you how to do basically what you wanted.
I've been keeping a fork of MVSqlite (sqlite on foundationdb) maintained.

What is Mvsqlite? According to the author it's a distributed, MVCC SQLite that runs on top of FoundationDB.

https://github.com/V-Sekai/mvsqlite

Made an Elixir client, a Godot Engine client and CLI.

Supabase on Mvsqlite would be great! I am still puzzling over Mvsqlite's write performance, but its read performance makes sense to me.

# ycsb (workloadf, 10000, --wire-zstd)

Run finished, takes 1m18.086881433s

READ - Takes(s): 78.1, Count: 99957, OPS: 1280.3, Avg(us): 27061, Min(us): 1409, Max(us): 98751, 99th(us): 59391, 99.9th(us): 81791, 99.99th(us): 94591

READ_MODIFY_WRITE - Takes(s): 78.0, Count: 50061, OPS: 641.6, Avg(us): 69636, Min(us): 13320, Max(us): 205823, 99th(us): 121215, 99.9th(us): 189823, 99.99th(us): 203007

UPDATE - Takes(s): 78.0, Count: 50095, OPS: 642.0, Avg(us): 42630, Min(us): 7792, Max(us): 200319, 99th(us): 81535, 99.9th(us): 175487, 99.99th(us): 195199

From the github actions tests the original author wrote.
JavaScript accelerator would probably half the power consumption of the world.
The problem is just, that as soon as it would have widespread usage it would probably already be too old.
raise more funding or sell, isn't that the business model of most startups these days? profitability is a problem for the bag holders
I never tried to explore the Pico deep sleep indeed. I used it with esp32 with great results even if the wake time of 200 ms does not make certain applications viable. Thanks for the point.
Love the Harris and Harris book!

I might add these:

- Computer Architecture, Fifth Edition: A Quantitative Approach - https://dl.acm.org/doi/book/10.5555/1999263

- Computer Organization and Design RISC-V Edition: The Hardware Software Interface - https://dl.acm.org/doi/10.5555/3153875

both by Patterson and Hennessy

Edit: And if you want to get into CPU design and can get a grip on "Advanced Computer Architecture: Parallelism, Scalability, Programmability" by Kai Hwang, then i'd recommend that too. It's super old and probably some things are made differently in newer CPUs, but it's exceptionally good to learn the fundamentals. Very well written. But I think it's hard to find a good (physical) copy.
What can LLMs never do?
The FEC reports don't include your email address or phone number - but unscrupulous actors may use the PII from the report to try to match against another data set of emails or phones.
Have screenshots.
user_id missing in monolith index.cjs application....
Perhaps because Democrats control half of Congress today, and the general trend of Congressional avoidance-of-clear-rulemaking has been the same even during those periods that Dems or Republicans control both chambers.
Not particularly - they could use distinct tokens (i.e. these brandings) on all types implicitly.
I strongly disagree with this statement, Golang is excellent for building backends and just the orchestration of all the services you are calling is better done in a typed/compiled language with great multi threading support and fast compilation times that is exactly what Golang excels at.
If you don't want to have a thoughtful discussion based on data, HN is not for you.
I think the same as Teenage Engineering's: selling most people a fancy paperweight.
Not helpful to you directly, but the iPad OS version runs on Apple Silicon Macs.
Americans 'just work harder' than Europeans, says wealth chief
Yes, the game supports most Bluetooth speed, heart rate, cadence, and power sensors, as well as most smart trainers and smart bikes. There is currently no support for fans or grade simulators.
OK you have me on compute. Seems like storage however has not budged since the $5tb month pricepoint a few like backblaze have established. More still have cut data plans e.g. enterprise plans clients would be happy to spend a huge amount to not worry about hitting a storage limit, but thats just not offered anymore these days despite prices of drives from the storage cartel dropping at an even pace per year.
> Converting skeptics means moving from vibes-based evals to empirically understanding the value LLMs are creating

Converting advocates means moving from vibes-based hype to empirically understanding the limits/risks LLMs are creating.
it's their artisanal trust me token. at least it's not monetary (yet). the technical description is a pull based delayed ledger.

the paper they link just show that by harming newcomers to the network you reduce free loaders, but they interpret that it solves fraud.
Stripe says "Crypto is Back. Stripe will start accepting global crypto payments"
> If you hate writing code but do it for your job, then you are going to really hate writing code in two different languages with their own syntax and paradigms.

I don't wish for this, but sometimes I wonder how different the industry would be today if dev salaries had remained in "respectable but nothing amazing" territory.

Maybe it's just nostalgia goggles, but when I was getting started ~35 years ago, I think it was rare to run into someone who hated writing code but did it for their job. There were other much more profitable jobs for people who were looking to be paid as well as possible for work they hated.
ActBlue doesn't sell data, but they do pass your email and phone number to the people you are donating to - they are the ones who are likely selling it.
grift?

I think the move is to raise more and more money and try to find a business model?
> nothing about the internet changed since then

I had an extended outage and could not contact my ISP. They kept sending me to a bot, and I had no idea if anyone actually knew about the outage or was doing anything to fix it.
What class of answer to this question would you accept? Why don’t you accept “civilizations”?
I often have to write little scripts in Python or C++ to test/verify things. Copilot is great for handling the setup/boilerplate in such cases. It has made me spend a lot less time trying to modify and come up with ways to debug complex issues when I could just tear out the part I'm working on and have Copilot help me quickly fill in the holes enough to get the torn out portion running independently.

It's also great for picking up new packages to do 'simple' tasks like reading in a specific file format.
For fixing the root cause, are you referring to something like public broadband etc to eliminate the profit incentives (of e.g. comcast/spectrum), or some other antitrust type of action to stimulate actual competition in private sector?
There are also modified commercial drones that just drop explosives, and that is what is mentioned here. Those drones drop their payload and may return to reload if not shutdown. Those drones aren't "hundreds of thousands each", but around $500 each.

As for the drone you linked - we don't know how much it cost Russian to produce Geran-2, but definitely less than you imagine.
Ask HN: Great example of (or tools for) mapping organizational processes?
I'm laying out in detail how things _really_ are done at our firm. My goal is to have a map that:

1. Has a visual representation that is understandable.
2. Can be updated easily (live would be great)
3. Exposes gaps, redundancies, &c.

I've done versions of this before using draw.io, mermaid, even prezi back in the day. It's always been a struggle to update and come to an agreement and I wonder if someone has had a great experience.

I don't mean to keep this map/document updated forever, just over the course of the next few months as I talk to people to uncover what's really happening.