MurphyA/hacker-news huggingface dataset:
by rendaw | 2025-09-03 08:10:03+00:00
The difference in what? TBH I don't get the purpose either. You have to use javascript either way, and it's trivial to do make a shorthand for `document.createElement` that sets properties and adds children... maybe 10 lines per project.

I thought it was an optimization, but benchmarking `document.createElement` was significantly faster (firefox).

And then having `template` in your html means that changes to the template/use are less local.

I feel like this is an improvement that only makes sense if you're neck deep in the react world.
by jll29 | 2025-09-03 08:10:28+00:00
Thanks for sharing. Not knowing Odin's syntax yet, having had a quick look at the code, a few things are strange:

Are there two types of assignment?

p1[0] = 0 ... n := 0

What should this mean? The comma notation usually indicates a pair or left-to-right control flow (Python and C, respectively), but why (appear to) assign a pair to itself? This probably means something else, but it reads odd.

car, cdr := car, cdr

If Odin is so similar to C, what are the "dark corners" where it outshines it?
by testdelacc1 | 2025-09-03 08:10:46+00:00
LLVM is the code generation backend used in several languages, like Rust and one of the many compilers for C and C++ (clang). Code generated by these compilers is considered “fast/performant” thanks to LLVM.

The problem with LLVM has always been that it takes a long time to produce code. The post in the link promises a new backend that produces a slower artifact, but does so 10-20x quicker. This is great for debug builds.

This doesn’t mean the compilation as a whole gets quicker. There are 3 steps in compilation

- Front end: transforms source code into an LLVM intermediation representation (IR)

- Backend: this is where LLVM comes in. It accepts LLVM IR and transforms it into machine code

- Linking: a separate program links the artifacts produced by LLVM.

How long does each step take? Really depends on the program we’re trying to compile. This blog post contains timings for one example program (https://blog.rust-lang.org/2023/11/09/parallel-rustc/) to give you an idea. It also depends on whether LLVM is asked to produce a debug build (not performant, but quicker to produce) or a release build (fully optimised, takes longer).

The 10-20x improvement described here doesn’t work yet for clang or rustc, and when it does it will only speed up the backend portion. Nevertheless, this is still an incredible win for compile times because the other two steps can be optimised independently. Great work by everyone involved.
by norome | 2025-09-03 08:11:05+00:00
seems pretty telling that the article is all about Britain and the UK, but the author calls it a "European" problem. While afaik european countries do not have "free speech" in the american sense they do each have differing levels of tolerance, criminalization, and enforcement. I think the social side is even more important than the legal aspects. Orwell wrote his 1984 about England, after the social repression he experienced. And I would say the same or stronger repression and conformism exists in north america, despite the law. What I've seen in europe is that day-to-day freedom of expression is far and away greater than anywhere in Canada or the US i've been. Including the UK sphere. So I think it's a serious error to conflate the law itself with the "tyranny of the majority", and to conflate one country or region with "europe".
by mort96 | 2025-09-03 08:12:10+00:00
> I would rather be able to see the probably dozens of pages ruling with the full details rather than hear it secondhand from a reporter at this point

And the reporter would rather you hear it second hand from them :)

I agree, online "journalists" are absolutely terrible at linking to sources. You'll have articles which literally just cover a video (a filmed press conference, a YouTube video, whatever) that's freely available online and then fail to link to said video.

I don't know what they're teaching at journalistic ethics courses these days. "Provide sources where possible" sounds like it should be like rule 1, yet it never happens.
by palata | 2025-09-03 08:12:25+00:00
> Heading towards a future where you need to use government-approved devices which are tied to your real identity to access the internet is a recipe for disaster.

That's unrelated to passkeys. When you use your credit card to pay online, it's tied to your real identity. Many countries offered to do a lot of official stuff online (like taxes) long before passkeys.
Show HN: Rage shake but for your Voice AI agent
by mehrad_1 | 2025-09-03 08:12:55+00:00
I have built this open source tool to make the bug reporting seamless in voice AI agents. This has been very helpful for me in perfecting the Voice Agents I build for our customers. Initially, I used to give the voice agent to our customers for their testing and feedback. And they used to comeback to us after a few days with all their feedback written on multiple documents/papers. Rarely they used to mention time stamp etc.,. making it very difficult for me to pin point the issue.

Now which this tool integrated in my Voice Agents, they can simply say "Feedback Start" --> Give feedback --> Say "Feedback Stop". And continue talking to the agent. In the backend I can clearly see where user wants improvement and at which conversation turn they felt that way.

I want to share this tool with a wider community. Pls feel free to use it and contribute to it. This tool will stay open source and free.
by wink | 2025-09-03 08:13:21+00:00
> Not really. Try to rent an apartment in Germany (any EU country really).

Been a while for me but afaik nothing has changed: if you lived and worked here before, then a couple of your last salary statements are sufficient (bar the problem of actually finding anything and being accepted, but that is besides the point).

So I am definitely not loving or defending this, but afaik compared to needing years of time to build your credit score in a "smart" way (and by hearsay I would probably mess it up, "just be employed for 3 months" sounds very easy to do?
by bambax | 2025-09-03 08:13:37+00:00
Not sure what the quote has to do with anything here, but it's a as good an opportunity as ever to say that large parts of the "Old Testament" draw most of its inspiration from the code of Hammurabi ("an eye for an eye, a tooth for a tooth"), the Epic of Gilgamesh (which gave us, notably, the story of the deluge, and the dark role of the serpent) and Ancient Egypt, to which it owes, among many others, the concept of eternal life and the idea that man was made in God's image.

To be "in God's image" was one of the titles of Pharaoh.

And about the staff: early depictions of Jesus often have him holding a magic wand [0], as he was considered by followers and ennemies alike to be a magician. The "Three Wise Men" or "Three Kings" (?!) that show up at his birth are just "magi" (magicians) in the original text [1].

[0] https://www.biblicalarchaeology.org/daily/people-cultures-in...

[1] https://en.wikipedia.org/wiki/Biblical_Magi
by lovich | 2025-09-03 08:14:05+00:00
It’s true if you’re a cutting edge company doing real R&D and parting with capital and agency to your workers as a result of it.

Every company whose CEO thinks he’s a mag7 but scoffs as paying more than >150k/yr to an engineer because that’s executive money that tries to ape that kind of risk management ends up with a hiring process that is optimized for rejecting people since their offered compensation will never meet the demand of people with the skill set they are looking for
by mettamage | 2025-09-03 08:14:24+00:00
Damn, I don't have the time. I've been reading for 20 minutes and I really need to get back to work, haha.

I love how this blog post describes a use after free, all its limitations and then next steps to deal with all of it. In many cases this would be like a 2 to 4 part blog post but this just all is written in one go. I could keep my attention span for about half of it. This would be fun to recreate in a course or something. Also, I didn't know you could slow down the execution time of certain code.
by zeristor | 2025-09-03 08:15:51+00:00
Indeed, the biggest constraint being I imagine the grid connection.

One thing I keep thinking is that with the grid being a network, there are certain key points in the network which would be extremely useful to have battery storage.

Overall the system may have peaks and troughs, however it is a network of edges, some my reach capacity for several hours a day, if battery storage could be built at these points, then the other edges could still be served.

Indeed some points may go up and down several times in a day, and a large enough battery to sate that demand could earn a lot.

I can't see the high level prices reflect the intricacies of a working network. It might be useful on the edges when power is brought in, but further in where use and demand are intertwined something more sophisticated would be needed.

I keep thinking there should be a good case for a simulator game so that people can understand how this really works. (Caveat the above is my chopped liver sliding down a wall version of it, I don't work in the industry and as a physics graduate I'm no doubt buoyed by an inherent arrogance of it being easier than it is.)

Normally if I have an idea, I find that someone has already done something already.

Are there any electricity network simulator games out there already?
by raquuk | 2025-09-03 08:18:12+00:00
This is fun! Just yesterday I was thinking of creating something similar, but your version is great. I especially like the "keystrokes used" in the leader board to learn from and the diff view. Looking forward to some hard challenges.

My suggestions:

- It should show which challenges I already solved in the list of challenges, but it does not. I did not log in, maybe this is different then.

- Navigation between challenges could be simpler. Something like a button "go to next unsolved challenge".

- You could display the leader board when a challenge was solved. You could even include the keystrokes used in the leader board, without the need to click on each position individually. This makes it easier to learn from better players.

- I find the "Keystrokes used" a bit hard to parse because of the comma between each key. A monospace font would be nice as well.

- I suspect "Rank by Time" will become meaningless for most players when this gains popularity and and people submit unbeatable scores by cheating. Maybe private leader boards I can share with my friends would be a nice addition.

- For a vim-based game, I need to use the mouse too much for navigation.

I will definitely come back to this for more challenges.
by phh | 2025-09-03 08:18:15+00:00
Well you can't really do -600C sand (or anything), so the benefits of sand VS water largely diminished. "just" freezing water already gives you around 300C equivalent of sand (if my napkin is correct).

Also the point of this plant is to exploit the counter-correlation of cheap electricity and cold. Usually there is a bigger correlation between cheap electricity and heat.
by southernplaces7 | 2025-09-03 08:18:20+00:00
I think you really need to reconsider the definition of a given. Because most people don't say no to a thing doesn't make it coercive. Whether the world is worse or better for it in this context, I can't be sure (though I lean more towards big corporations eating nearly all competitors as generally dangerous), but we're still talking about voluntary choices in a market where competition still does frequently emerge to overhaul what's established. It's impressive how often people don't notice this even as it happens all around them in ways that directly benefit their daily lives.
by ryangibb | 2025-09-03 08:19:35+00:00
I built similar functionality into a DNS server so the device can be woken from beyond the local network: https://github.com/RyanGibb/eon/tree/main/bin/hibernia

There's a bit of a writeup here: https://www.sicsa.ac.uk/wp-content/uploads/2024/11/LOCO2024_...
by jll29 | 2025-09-03 08:19:45+00:00
Not as sophisticated as your solution, but works with all hardware for the "backup use case": use a mechanical timer set to 10 minutes before backup starts (and power off 30 minutes after backup normally ends):

https://www.amazon.de/Mechanical-Analogue-Switching-Christma...

It's a more rigid solution that doesn't let you ssh in (unless during backup time ;-), but it saves electricity and it is implemented in 10 minutes (5 for an Amazon order and 5 to plug in and set the timer to your backup hours). It's also a more robust solution - little can go wrong (the only thing is you need to balance backup time against electricity/time savings as backup size grows).
by IshKebab | 2025-09-03 08:20:21+00:00
Wow, paying himself $150k after tax from donations! That's wildly more successful than I would have guessed. (Not saying it's undeserved.)

> we need more recurring donations

Damn... really? More than $170k/year from Github Sponsors? That's got to be the most successful Github Sponsor income ever right?
by ackfoobar | 2025-09-03 08:21:57+00:00
> Junie, which also benefits greatly from integration into the IDE.

That is very plausible, I really want it to be true as a fan of IntelliJ and Kotlin. I used Cursor at work and tried out Junie on a hobby project. Maybe it's the different niche, maybe I'm more used to Cursor for chat bot workflows, but I got a personal Cursor license after trying out Junie.
by tialaramex | 2025-09-03 08:23:08+00:00
IMO the worst problem with LLVM isn't that it's slow, the worst problem is that its IR has poorly defined semantics or its team doesn't actually deliver those semantics and a bug ticket saying "Hey, what gives?" goes in the pile of never-never tickets, making it less useful as a compiler backend even if it was instant.

This is the old "correctness versus performance" problem and we already know that "faster but wrong" isn't meaningfully faster it's just wrong, anybody can give a wrong answer immediately and so that's not at all useful.
by polyrand | 2025-09-03 08:23:26+00:00
Hi! Not really a question, but just an appreciation message. I haven't used the full "Lit" package a lot, but "lit-html" is incredibly useful.

I use it in almost all my personal websites. And when I don't use it, I end up reinventing half of it and realize I should have used it from the start. This command is in most of my projects:

curl -L https://cdn.jsdelivr.net/npm/lit-html@3/lit-html.js -o ${project}/lit-html.js

I've never felt I'm using a framework or anything that deviates from Vanilla JS and valid HTML, which is why using it hardly causes any more cognitive load than using regular string templates and JavaScript functions. Which is something that I can't say about other frontend tools.

Another thing I like from Lit is that with the CDN bundle, it's straightforward to experiment and use all the features without needing a build step.
by a-french-anon | 2025-09-03 08:23:27+00:00
"Cruelty" is a rhetoric word because its meaning is caught between the classical "deliberate causing of pain" and the new "neglect, indifference towards another's pain" and of course, that discrepancy is fully exploited. What livestock beasts suffer is purely for practical reasons.

>I am genuinely unsure where this disconnect comes from

1. Empathy is a base emotional response triggered by nearby animals, not a rational/moral one.

2. Empathy is also an evolutionary tool that "happened" in (some) humans to help survive situations that require some sort of cooperation, like harsh winters. Anthropomorphization is an associated bug, not a feature.

2b. Being disconnected from nature and reality is the #1 cause for such disorder; you don't see any kind of vegetarianism in rural people.

3. People with a brain realize that eating meat is important.

4. People with a bigger brain also realize that that eating other animals is the prerogative of power: humans have simply won the animal kingdom's oldest game and are enjoying its spoils. Things wouldn't (and shouldn't) be different if positions were reversed.
by CjHuber | 2025-09-03 08:24:12+00:00
At least in Germany there is definitely a „free speech problem“. There are several crimes such as „Volksverhetzung“ (agitation of the people) that do serve a legitimate purpose but which are very vaguely defined. Also, trying to ban a party like the AfD, which is the second largest in Germany, for things that are not illegal to say (I‘m not judging their politics here, I‘m just saying the assessment has been leaked and there are no illegal things in there) doesn’t exactly scream free speech
by habinero | 2025-09-03 08:25:13+00:00
As I said, the government did ask them to do that.

Apple refused and then rearchitected their hardware so they couldn't even if they wanted to.

And no, Apple bakes in immutable encryption during chip fabrication. They literally cannot update it.

https://support.apple.com/guide/security/boot-process-for-ip...

There's no blind faith involved. Apple has one of the best security teams in the world. If they decided to punch a hole in their flagship product security, I am very certain at least one engineer would speak up about it.
by bob1029 | 2025-09-03 08:25:34+00:00
I think looking at power consumption is potentially a more interesting canary when using very high core count parts.

I've ran some ML experiments on my 5950x and I can tell that the CPU utilization figure is entirely decoupled from physical reality by observing the amount of flicker induced in my office lighting by the PWM noise in the machine. There are some code paths that show 10% utilization across all cores but make the cicadas outside my office window stop buzzing because the semiconductors get so loud. Other code paths show all cores 100% maxed flatline and it's like the machine isn't even on.
by preommr | 2025-09-03 08:25:38+00:00
Any whispers of something like lit being made part of the webcomponents standard?

Web components are nice because they're browser-native, but they don't support reactivity, which in hindisight, is a massive oversight, issue, whatever you want to call it - it's hindered adoption.

Lit is nice because there's a very straightforward progression from web components.
by troupo | 2025-09-03 08:25:52+00:00
> You have a very large axe to grind against web components and Lit

Yes, yes I do. Because Web Components are almost 15 years now, and they still struggle with the most basic of things. How's that abandoned roadmap going? https://w3c.github.io/webcomponents-cg/2022.html

> No, there are no custom JavaScript rules. Templates have some rules.

That is "here are regular JS functions. However, you cannot use them as regular JS functions in these specific contexts". Reminds me of certain very specific rules about specific functions in specific contexts in some other framework. Can't put my finger on it.

> I'm not sure what makes that not a function.

I never said it doesn't make it a function.

> But to your main point: Lit is not like React because it's not a framework.

Yeah, React wasn't a framework either, but just a library. Everything about DOM elements that React produces, how you instantiate them, style them, where they work etc. is all defined by the HTML and DOM standards.

But then React grew in the number of features, and can no longer be called a library even though still the only thing it does is output some DOM nodes.

I guess you'll insist on Lit being "just a library" even after it adds a ton of other functionality all other frameworks already have or are moving towards.

> I'm not sure what the actual criticism is

The criticism is usual: Lit is rapidly absorbing all the features from all the other frameworks and becoming a framework itself while many of its developers and proponents can't stop shitting all over other frameworks.
by maxvij | 2025-09-03 08:26:01+00:00
I stumbled upon a lecture by Josh Tenenbaum (MIT) yesterday. Starting from minute 19 he talks about world models, and how we're nowhere near 'real AI'. This lecture was from 7 years ago, I wonder what a more recent take from him on this topic would be. https://youtu.be/TFyAEHk5asY?si=lZfjeF7t66FhkdSZ&t=1157
by shkurski_ | 2025-09-03 08:26:47+00:00
Location: Germany

Remote: yes, only

Willing to relocate: no

Technologies: C++, C, Rust, Assembly, Python, JS

Résumé/CV: https://shkur.ski/cv.pdf

Email: dima [:at:] shkur.ski

Offer: my expertise in building desktop applications, device management, high-performance systems and more. I worked on products deployed on 10sM machines, both implementation and architecture level. In different environments: from large companies to seed stage startups (incl. YC-backed and own products).

For the past few years: LLM/semantic search applied in the productivity space. Built from scratch and tested with users a bunch of MVPs around the idea of proactive user interfaces: https://shkur.ski/notai

Open work permit: Germany, Canada. Worldwide as a B2B contractor and/or part-time involvement possible.
by isoprophlex | 2025-09-03 08:27:10+00:00
None, really. Pure, fine sand being mostly silicon dioxide, it melts at ~2000 and boils at ~3000 C, still without decomposing or reacting. It is really extremely chemically stable.

That said in practice, at scale... before filling up your storage tank you'd probably need to pre-heat it once to remove all moisture and volatile gunk adsorbed onto the sand.
by jajko | 2025-09-03 08:28:34+00:00
One thing I noticed over and over, from cheap sitcoms to expensive blockbusters - when actors sip, they have liquid, but clearly the movement of glass to mouth is 'dishonest', as in too fast or too low for any liquid to actually make it into mouth. No swallowing movement of throat neither.

I guess its subconscious - they know they are not going to actually drink it, they focus their mind on other aspects of acting, so this part leaves them not faking it well.

If you see it once, you can't stop noticing it elsewhere afterwards, beware.