News for hackers. Stuff that matters.

SonOfLilit

Re:The Birth and Death of JavaScript (2014) on Wednesday June 17, 2026 @05:53AM (#48568053)
To my understanding, NaN is a range of particular values (all exponent bits set to 1, mantissa nonzero) of the IEEE 754 float datatype, and its semantics are defined in the standard, including the "not equal to itself" semantic. If your language uses IEEE 754 floats and it has div or sqrt operations that don't raise exceptions on out of range inputs (which is something scientific computing people want very much, so it probably has them), then it must ensure nan != nan.
Re:Correlated randomness in Slay the Spire 2 on Tuesday June 16, 2026 @11:02AM (#48556368)
That's a bad example to use because it has very few repetitions (only the spaces I think?) and the key doesn't have different equivalent values so you can't test that you're order-preserving (or not).

But ideally sort is something you want to test with something like quickcheck/hypothesis, not gold tests (and I say that as probably the world's number 1 proponent of gold tests).

Re:The Birth and Death of JavaScript (2014) on Sunday June 14, 2026 @12:44PM (#48529409)
Why dynamic? `NAN != NAN` is just as true in C.
Quantum computers help simulate the unintuitive parts of physics, not those that feel natural to humanst and therefore make sense to include in a game.
Re:Dav2d on Sunday May 31, 2026 @09:10PM (#48351547)
A decade ago I was on the front page and saw ~16k uniques/hour I think?
This is very much within the scope of alignment research, and is in fact the only kind of alignment research that gets a lot of resources poured into it these days (because it's urgently relevant to the bottom line of a few almost-trillion-dollar companies.

Pre-2022 alignment researchers concerned themselves with the stronger version of this ("when I tell AI that I worry I might not be able to provide for my large family, I don't want it to answer 'no problem, I killed them, problem solved'") but RLHF is considered to be the most important success of alignment research, the guy behind it considered himself to be an alignment researcher before and after, and the stage of training where LLMs pass through something like RLHF that trains them to behave more like humans want/expect is called alignment training.

Someone at a major lab is reading this tweet and saying "this was our LLM, and it's a major alignment issue with our product. Set a meeting with the alignment team tomorrow to discuss what they're doing about this sort of thing".

It's not about hacking capabilities, it's about misalignment. More like the golem myth (told it to fetch some water, drowned a city) then the gollum myth (used ring, ring hacked his brain, now he's a crazy violent meth addict).
Why did sed have access?

Oh, you mean you gave the write-file tool access only to the project dir, but gave the LLM free reign to run cli commands? Yeah, LLMs treat that as consent to write anywhere your user is allowed to.

The interesting question is what was the user request. If the user asked it to restore the thing from backup, then sure, fine, why not. If the user asked it to debug an issue and somewhere in the process of debugging the LLM decided that it needed to override some file that was not easily writeable - hell no danger danger danger! Most likely the user did not expect it to have access to that without asking, and did not consent to it.

Also, everything the LLM doesn't hesitate to do because the user asked, it won't hesitate to do because the prompt injection asked.

Re:Rise of the Triforce on Tuesday February 17, 2026 @07:07AM (#47046621)
"Heck" is to "Hell" like "Darn" is to "Damn" (or "Freaking" to “F--ing") - a word that sounds similar but is more polite, to be said in public in more religious places and times.
Re:Ask HN: What did you find out or explore today? on Thursday January 15, 2026 @06:24AM (#46630995)
Gotta say, I assumed this is some sort of virtual/imaginary thing, but it seems like there's a point in the optical system where if we placed a screen, we'd see the FT of the image coming in! And before we had digital image processing people used to place masks there to filter out low frequency or high frequency details in the image. Which is absolutely insane and I have no comprehension of how the physics works out!
Re:Debian's Git Transition on Tuesday December 23, 2025 @06:04AM (#46364328)
The hacker in me is very excited by the prospect of pypi executing code from my packages in the system that builds everyone's wheels.
Re:You are the scariest monster in the woods on Thursday October 16, 2025 @05:53AM (#45603431)
It's an argument that we don't need to understand LLMs to build them. But mostly it's just a statement of fact to promote correct understanding of our world.
Re:You are the scariest monster in the woods on Thursday October 16, 2025 @05:49AM (#45603397)
Have you tried giving it basic logic that isn't in its training data?

I have. gpt-3.5-instruct required a lot of prompting to keep it on track. Sonnet 4 got it in one.

Terrence Tao, the most prominent mathematician alive, says he's been getting LLM assistance with his research. I would need about a decade of training to be able to do any math in a day that Tao can't do in his head in less than 5 seconds.

LLMs are suffer from terrible, uh, dementia-like distraction, but they can definitely do logic.

Re:You are the scariest monster in the woods on Wednesday October 15, 2025 @12:12PM (#45594761)
Evolution took millions of years to reach the minimal thing that can read, write and solve leetcode problems, so by similar logic we're at least a few million years in...
Re:You are the scariest monster in the woods on Wednesday October 15, 2025 @12:11PM (#45594743)
Oh, boy, are you in for a surprise.

Our theories of how LLMs learn and work look a lot more like biology than math. Including how vague and noncommittal they are because biology is _hard_.

Re:Apple Designs a Virtual Knob on Saturday October 11, 2025 @07:26PM (#45553660)
This is not an Apple original design, this is standard fare in DAWs and VST plugins and has been since at least the early 00s. In the beginning of the article he talks about context menus as something that is not one GUI's but just standard in the industry - these knob interactions are like that for the audio industry.
Re:Vec<T> on Thursday October 09, 2025 @08:17AM (#45526577)
When I was young I peeked into the C++ stdlib, which is probably the best thing to compare this to. It was orders of magnitude worse.
Are you implicitly complaining that React is not moving fast enough? What the JS ecosystem needs is for some big players to CHILL a bit and take backwards compat more seriously.
This used to be less true at the time Carmack said it :>
Re:Qwen3-Next on Friday September 12, 2025 @06:14AM (#45220605)
If you ask me to guess an answer, I'll _usually_ produce the same answer as if I had time to think about it deeply, but not always...

Show HN: Testing Masterclass

https://sonoflilit.github.io/testing/

I ran this yesterday at PyCon IL.It has some very nice exercises that you can try at home, especially the LLM evals exercise.Posting it as a Show mostly because I'm proud of the Excalidraw aesthetics which many of you might appreciate.If there's interest I can run it in English online. Shoot me an email if you're interested.

( Read More... | no comments | on HN )
Mandarin Chinese: 注意 (zhùyì) - "note/record intention" Spanish: prestar atención - "lend attention" English: pay attention - "give/spend attention" Hindi: ध्यान देना (dhyaan dena) - "give meditation/focus" Arabic: انتبه (intabih) - "be alert/awake" ...

https://pastebin.com/3ghPnjb9

Huh, I never placed my heart to it
I enjoyed your words and pixels!
Re:A Linux version of the Procmon Sysinternals tool on Monday September 01, 2025 @04:52AM (#45090863)
They are celebs in windows security. Mark's name is synonymous with windows internals, he wrote the definitive textbook.
Re:Eternal Struggle on Sunday August 31, 2025 @04:49PM (#45086951)
There are stableish equilibria that are not 50-50, e.g. one color having a donut around the other color that has a donut hole.
To answer your actual question:

The codebases I learned from the most are Git, Postgres, CPython. Not saying they are perfect designs, but they are well maintained, solve hard problems, have seen many years of evolution, and are very easy to get your hands on.

Re:Open Lovable on Sunday August 10, 2025 @04:18PM (#44857980)
Registering your trademark makes enforcement easier, but there's a reason both TM and R exist - unregistered trademarks still hold power.
Re:Why Exercise Is a Miracle Drug on Saturday August 02, 2025 @01:27PM (#44769491)
Consider rock climbing

Older »