News for hackers. Stuff that matters.

lennoff

Can't we settle somewhere in the middle? Like occasionally sleeping an hour longer, but never shorter?
Re:NP-Overrated on Thursday August 13, 2026 @05:53PM (#49292326)
Sometimes you don't need an _exact_ solution. approximation of the traveling salesman problem exists for the metric version, it's O(n^3), and produces a result that's not worse than 50% of the optimal result, and for the general case O(n^2) algorithm exists that produces a result that costs at most twice the optimal result.
Re:The startup's Postgres survival guide on Wednesday July 22, 2026 @02:35PM (#49011364)
wow, i checked the documentation, and you're right. the type is indeed poorly named!
Re:The startup's Postgres survival guide on Wednesday July 22, 2026 @01:21PM (#49010181)
I disagree with the timestamptz advice. I tend to use timestamp (without the timezone), this forces me to use UTC everywhere, so I'm not even tempted to use anything else. I work in fintech, and so far whenever i saw someone storing datetimes with an associated time zone, it always ended with a disaster.
afaik before the final sampling, every "next" token has a probability, so theoretically it could select the 10 most likely tokens (based on some kind of sampling algorithm), but you'd end up with exponentially many output-sequences, so nobody does that.
i think it actually makes sense, an LLM just imitates human communication, which happens to be useful from time to time.
Re:The Agent2Agent Protocol (A2A) on Wednesday April 09, 2025 @04:08PM (#43637227)
keep in mind that we have "vibe coding" now, where the goal is exactly to _not_ have a human in the loop (at least not constantly).
Re:React for Two Computers on Wednesday April 09, 2025 @02:17PM (#43635433)
It's fun to theorize about an alternate universe where JavaScript has a LISP-like syntax (Brendan Eich originally wanted "Scheme in the browser"[1], so this isn't so far-fetched!). Indeed, `interpret` sounds like a LISP macro that can "partially evaluate" code (so someone else, ie. the browser can continue to evaluate it).

[1]: https://brendaneich.com/2008/04/popularity/

Re:React for Two Computers on Wednesday April 09, 2025 @01:27PM (#43634788)
It seems like that the author by using JSX to express code directly as an AST re-invented LISP? See Greenspun's tenth rule[1].

[1]: https://wiki.c2.com/?GreenspunsTenthRuleOfProgramming

How can you ban AI? It's literally designed to produce text that's indistinguishable from text that was produced by a living human being.
Re:Cryptographic Best Practices on Monday April 17, 2023 @06:12AM (#35598802)
It's sad to see that Web Crypto[1] does not support Ed25519 (yet), only RSA and ECDSA for asymmetric signatures.

[1]: https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypt...

Because of the company VPN, I usually teleport to Israel, and I have absolutely no idea how to change the language on a right-to-left layout with a Hebrew alphabet...
Re:React Source Code as Image on Wednesday January 12, 2022 @08:07AM (#29905842)
I guess I'll mint an NFT that's going to be a screenshot of this HN thread...
Re:Making bracket pair colorization faster on Wednesday September 29, 2021 @11:41AM (#28695195)
Slightly related question: is there a plug-in that can color my code based in scope instead of syntax?
Re:Nuitka: An extremely compatible Python compiler on Thursday September 02, 2021 @06:56AM (#28390563)
Tangentially related question: could Nuitka target WebAssembly, given that according to their overview page, they translate Python into C? Usually when it comes to Python -> WebAssembly, the biggest problem is the lack of GC in the WebAssembly spec (as far as I understand), and I'm wondering if this would be an issue for Nuitka as well...
Re:The Seniority Roller Coaster and Down-Leveling in Tech on Wednesday September 01, 2021 @10:42AM (#28380433)
I think the key takeaway is to never believe when someone says "Don't worry, you'll get promoted in no time".
Is a CS degree important nowadays? I do have one, but literally no one mentioned or asked about my education during an interview, ever.
Re:GitHub Copilot regurgitates valid secrets on Monday July 05, 2021 @08:46AM (#27737389)
Oh, it does... It generates code that's vulnerable to SQL injections, XSS, etc. It was trained on such code! (hopefully this will improve)
Re:REPL vs CLI: IDE wars on Thursday July 01, 2021 @10:52AM (#27699611)
When you evaluate a form deep in a function, how do you handle variables that are defined "outside"? How can you evaluate such expressions?
Well, how can we teach copilot to avoid raw string interpolation in such cases? Sure, some people will correct it, and the AI might improve, but I suspect that the majority of the developers will never notice it, and that'll just reinforce the AI's bad habits.
So black holes can't evaporate? How does Hawking radiation works if the back hole are has to stay the same?
Re:XXY Oscilloscope on Saturday February 03, 2018 @10:23AM (#16297937)
Re:Minecase – A distributed Minecraft server in .NET Core on Thursday November 23, 2017 @11:25AM (#15766025)
How exactly is this distributed? The readme isn't really useful...