MurphyA/hacker-news huggingface dataset:
by fragmede | 2025-10-31 07:43:30+00:00
The "why" would involve different design considerations that a warship that may get shot at with enemy missiles, and the cost incentives for building one, and also because naval destroyers typically aren't connected to the grid, so black starts are much more of a possibility and need to recover from them is often under duress, vs a land-based power station simply isn't going to have those same issues.
by jandrewrogers | 2025-10-31 07:43:31+00:00
A 1-millisecond pause is an eternity. That’s disk access latencies. Unless your computation is completely and unavoidably dominated by slow network, that latency will have a large impact on performance.

Ironically, Java has okay performance for pure computation. Where it shows poorly is I/O intensive applications. Schedule quality, which a GC actively interferes with, has a much bigger impact on performance for I/O intensive applications than operation latency (which can be cheaply hidden).
by bjoli | 2025-10-31 07:43:35+00:00
Your example of the flatten and grep will build two intermediate arrays before summing. That's inefficient.

I would also reach for higher order functions for most things, but when you need things to be fast that is not how you would do things. You would express it with nested for loops and ifs, and you would have to juggle state all by yourself. That is my main critique of looping constructs: they only cover the absolute simplest case, and then you are by yourself.

The partition example is not a particularly nice implementation of partition. It is there to show that you can write non-tail recursive loops, meaning you can use it to do tree walking and such. Using mutation, like your example, would make it prettier, but would make the code unsafe with schemes call/cc. Even a traditional named let (tail recursion) would be prettier.
by zahlman | 2025-10-31 07:44:45+00:00
> The advantage of being forced to do this is other people (including yourself on a new laptop) can clone your project

I know this might be a strange idea on HN, but tons of people writing code in Python, who need access to PyPI packages to do what they're doing, have no intention whatsoever of providing a clonable project to others, or sharing it in any other way, or indeed expecting anyone else on the planet to run the code.
by wiether | 2025-10-31 07:45:32+00:00
Thanks for the test!

Thinking about it with the feedback, I'm not sure of what I would have liked to see actually.

First I was expecting no highlight once you added a comment explaining why.

But then, seeing the highlight, I'm thinking that a comment shouldn't a magical tool to allow doing crazy stuff.

I don't know anything about the Electron wrapper, so maybe it is actually possible to do HTTPS and someone could point out how to achieve this. And having the downgrade highlighted can help having this someone finding out.

I'll keep thinking about it! Thanks!
by thelastgallon | 2025-10-31 07:45:57+00:00
> It doesn't matter if Congolese children are dying in the cobalt mines to make EV-grade lithium ion batteries, us Americans need to virtue signal with our wallet.

Love how you were able to take Musk's missteps, layer marketing, and blend in the emotional heart wrenching, think of the (Congolese) children!

Of course, fossil fuels are the ONLY solutions, otherwise you are a victim of marketing or a horrible person for not thinking of (Congolese) children!

If you really care about children at all or any life, first thing would be get off fossil fuels. The right metric is Deaths/TWH: https://ourworldindata.org/grapher/death-rates-from-energy-p...
by adrian_b | 2025-10-31 07:46:24+00:00
As a young child, a half of century ago, when I have received an electronic pocket calculator (with 8-digit numbers and without transcendental functions) I was taught that I can do a quick check whether it functions correctly by multiplying 12345679 with 8 (using thus all non-null digits), when the result must be 98765432. Obviously, an additional check is the corresponding division that reverses this operation.
by v9v | 2025-10-31 07:46:34+00:00
> Lisp is also a huge train wreck that way. [...] There's like 20+ different lisp like languages.

Lisp is not a language, but a descriptor for a family of languages. Most Lisps are not functional in the modern sense either.

Similarly, there are functional C-like languages, but not all C-likes are functional, and "learn c-likes" is vague the same way "learn lisp" is.
by skinkestek | 2025-10-31 07:48:29+00:00
No, but it wouldn't be surprising if they might be somewhat correlated?

I can recognize my wife easily now, but the first few months as we dated I was always scared that I wouldn't see her because I don't know what she looks like, I just recognize her and everyone else when I see them.

To the degree I have any day to day mental imagery it only works as a very very brief "overlay" when my eyes are open and I only see certain pictures:

a passport image of my Mom that I have in a photo book

a picture of my wife before we married that is my phone background and that I therefore have seen many times

the wedding photo of my parents from the hallway as a kid (even though I meet them a few times a year and often see other pictures of them)

And these images are faint, overlayed on other images and disappear in milliseconds.
by fouronnes3 | 2025-10-31 07:48:30+00:00
As a native french speaker, I feel so uneasy reading source code in french. It feels very very uncanny. I've often wondered if English native speakers feel the same when reading normal source code which is always in English. They probably don't. But how? I've always associated the "other language-ness" to correctness and technicality. It must be so weird to code in your own language. Feels like reading bad pseudo code. It's very nice to be able to map "english" to "technical, correct" and "native language" to "descriptive, approximate, comments, pseudo-code". Having only a single language to work with is like removing a color from the rainbow.
by zahlman | 2025-10-31 07:50:15+00:00
> I know the performance meta in Python is to...not use python (bind to C, Rust, JVM) - and you can get pretty far with that (see: uv), but I'd rather spend my limited time building expertise in a language that isn't constantly hemorrhaging resources unless your code secretly calls something written in another language :/

In case it encourages you: a lot of uv's performance benefits come from things that are not the implementation language. In particular, it has a much more intelligent system for caching downloaded package artifacts, and when asked to pre-compile bytecode it can use multiple cores (this is coming soon to pip, to my understanding; actually the standard library already has a primitive implementation).
by einpoklum | 2025-10-31 07:50:20+00:00
Well, the outcry is completely justified. Suppose a video conversion app really did have just have a drop-target area and a "do it" button. It would be ridiculously bad. That kind of crutch is ok to install for illiterate users who don't know anything and won't learn anything - but:

1. Some day, those users think "Hey, I'm not happy with some setting, what do I do?" and they can do nothing.

2. The users who need more functionality can't get it - and feel like they have to constantly wrestle with the app, and that it constantly confounds and trips them up, even when they express their clear intents. It's not like the GNOME apps have a "simple mode" and an "advanced mode"

3. The GNOME apps don't even really go along those lines. You see, even non-savvy users enjoy consistentcy and clarity; and the GNOME people have made their icons inscrutable; take over the window manager's decorations to "do their own thing"; hide items behind a hamburger menu, as though you're on a mobile phone with no screen space; etc. So, even for the non-savvy users - the UX is kind of bad. And just think of things like the GTK file picker. Man, that's a little Pandora's box right there, for the newbie and power user alike.
by cheshire_cat | 2025-10-31 07:50:33+00:00
Thanks for those great recommendations!

You might be interested to hear that Carolyn Cassadi, Neal Cassadys wife at the time, wrote a book about her life with Neal and Jack. Not only did their lifestyle not consider family, they where in a complicated love triangle that neither of them was prepared for. A real challenge for Kerouac with his catholic upbringing. She also writes about how Kerouac very intentionally left some of his short comings out of his books. As Bukowski reportedly said: "I'm the hero of my own shit." I guess Bukowski was more honest about his editorializing.

Either way, the book is called "Off the Road: Twenty Years with Cassady, Kerouac and Ginsberg" [0] and is well worth the read. It might disnechant the beat authors for some, but at the same time it humanizes them.

[0] https://en.wikipedia.org/wiki/Off_the_Road

Edit:

The interview with Alene Lee daughter is very moving. Reminds me of a story, maybe it's in On the Road?, how Kerouac meets a guy in a Jazz Club and he invites him over to his place to drink some more beer. They wake up his wife by being loud, but she doesn't complain and Kerouac goes on about how she's such a good wife. Lot's of moments in the books like that if you're looking for them.

It's very interesting for me to look back on how I didn't really register those passages when I was reading Kerouac in my teens, being swept away by the radical and breathless enthusiasm of his writing. I probably was a huge shit head back then myself.. :D
by Hakkin | 2025-10-31 07:51:52+00:00
That only helps so much, some things still won't work if the browser thinks you're talking over an unencrypted connection, like HTTP/2. Technically HTTP/2 allows unencrypted connections (h2c) but as far as I know, no browser implements it (including Tor Browser) and server support is also somewhat limited, so Tor Browser is limited to HTTP/1.[01] on Onion sites unless they have a TLS certificate.
by pjmlp | 2025-10-31 07:53:05+00:00
Drawback, it isn't Python in community scale, remember it was born in 1996, so it had enough time to grow.

Advantages, it is yet another Lisp like language in a Algol like syntax, like Dylan and Wolfram Alpha, also another one with multi-methods support a la Common Lisp, Dylan, Clojure, and whoever else implements a subset of CLOS.

It was designed from the ground up to be compiled with a JIT, not as an afterthought.

These are the kinds of places making use of it,

https://juliahub.com/case-studies
by tetha | 2025-10-31 07:54:59+00:00
At work, we're currently looking into firejail and bubblewrap a lot though and within the ops-team, we're looking at ways to run as much as possible, if not everything through these tools tbh.

Because the counter-question could be: Why would anything but ssh or ansible need access to my ssh keys? Why would anything but firefox need access to the local firefox profiles? All of those can be mapped out with mount namespaces from the execution environment of most applications.

And sure, this is a blacklist approach, and a whitelist approach would be even stronger, but the blacklist approach to secure at least the keys to the kingdom is quicker to get off the ground.
by Fire-Dragon-DoL | 2025-10-31 07:55:00+00:00
Decades ago a kitty bolted in the middle of the street.

I was less than 18, using one of those little cars that reaches at most 50 Km/h. I slammed the break and manage to stop maybe 2 cm from the kitty, which managed to continue out of the street alive.

The scooter behind me came close to me and complained that I almost killed them by slamming the breaks. To this day, I still don't know if that was the right call. That guy could have been a dad and I could have killed a father. Still I couldn't think of killing a cat either.
by wiether | 2025-10-31 07:56:19+00:00
Salutations,

I always felt the same and one theory I have is because the imperative nature of source code feels rude if you try and put it in French. It feels like yelling orders to a dog.

Then I don't know if it's just because in French, despite everyone calling us rude, we are usually quite polite. Or if it's the same for every ESL.
by anonym29 | 2025-10-31 07:56:39+00:00
You're entitled to believe that, and I'm entitled to keep buying bitcoin.

My strategy is working better for me than most other human beings' strategy is working for them. They spend several decades running in a hamster wheel to make another man wealthy because of their strategy. I'm retired before 30 because of mine.

I can sleep easily with the consequences of my interaction with Bitcoin. Can you?
by subscribed | 2025-10-31 07:57:40+00:00
Ew, entirely AI-generated half-assed review.

While most points raised are true the way it's laid out is awful, it's just utter contempt of readers.

And on topic: yes, cellebrite admitted it (thread about that is a nice rrad), but the autocomplete generating the "article" failed to notice that even the unlocked phone doesn't get fully pwned.

Read it yourself: https://discuss.grapheneos.org/d/27698-new-cellebrite-capabi...
by csin | 2025-10-31 07:57:45+00:00
"If Excel was simpler and had an intuitive UI, it would be worthless."

Excel is a simple intuitive UI.

I use 10% of Excel. I don't even know the 90% of what it's capable of.

It hides away it's complexity.

For people that need the complex stuff, they can access it via menus/formulas.

For the rest of us, we don't even know it's there.

Whereas, Handbrake shoves all the complexity in your face. It's overwhelming for first time users.
by silisili | 2025-10-31 07:57:49+00:00
As an American...no uncanniness to English. I guess because it was always the default and what was taught.

The first time I encountered a non English PL, I did feel the same uncanniness you spoke of. It felt... wrong? I wish I remembered which one it was. It was probably the first time I realized how prevelant English was, and that PLs could even be written in any language .
by thelastgallon | 2025-10-31 07:58:09+00:00
> I'm not anti-business; in fact, quite the opposite: These policies block a free market and the brilliant new businesses that can thrive and deliver solutions to everyone.

Lets hope PG&Es price gouging kicks-off people to look for off-grid solution. EVs have humongous batteries, home batteries are getting pretty cheap. With solar + EV + home battery there is a strong economic case for a large number of people in CA to switch to off grid. Which makes PGE raise rates, driving more people to go off grid. California is a big enough market, which can create this new demand for off grid, new companies and economies of scale.
by jostylr | 2025-10-31 07:58:27+00:00
In EPR, the setup is that there are two labs doing measurements outside of each other's lights cone. The outcome in one lab allows a perfect prediction of what happens in the other. This means that it is not possible that something random is going on in unless there is some nonlocal coordination between the two. This suggests that there is some actual fact of the matter as to how the experiment will turn out. That is, they argued that QM+locality = extra information beyond the wave function to determine outcomes. Bell then saw Bohm's theory and wondered about getting rid of the nonlocality. Bell showed that QM+extra info determining outcomes = nonlocal. In short, EPR + Bell shows that if QM predictions are correct (the predictions, not the theory), then there is something nonlocal going on. The lab experiments confirmed this and nature is indeed nonlocal.

Thus, there is no local theory that has definite experimental results compatible with what is actually demonstrated in labs. Many worlds, to the extent that one can apply any notion of locality to it, avoids this by not having singular, definitive experimental results (all results happen).
by Lio | 2025-10-31 07:59:23+00:00
Are you seriously trying to suggest that monitoring of all private messages in Russia and China has stopped child abuse images from being shared?

That is preposterous.

We dismiss the suggestion of removing the right to privacy precisely because it doesn’t stop these crimes but it does support political repression.

The crimes go on, only criticism of the government for failing to address them is stopped.

EDIT: the more I reread your post the more I suspect this might be exactly the point you are making. Sorry, too subtle for me first thing in the morning. Need more coffee.
by CraigJPerry | 2025-10-31 07:59:49+00:00
Larger attack surface - you just need one of those N dependencies to fall for a spear phishing attack and you're cooked. Larger N is necessarily worse.

It depends on the software being written, but if it's a product your business sells or otherwise has an essential dependency on, then the best model available right now is vendoring dependencies.

You still get all the benefits of standing on top of libraries and frameworks of choice, but you've introduced a single point of entry for externally authored code - there are many ways you can leverage that to good effect (vuln scans, licence audits, adding patch overlays etc etc) and you improved the developer experience - when they check out the code, ALL of the code to build and run the project is already present, no separate npm install step.

You can take this model quite a bit further and buy some really useful capabilities for a development team, like dependency upgrades because they're a very deliberate thing now, you can treat them like any other PR to your code base - you can review the changes of each upgrade easily.

There's challenges too - maybe your npm dep builds a native binary as part of it, you now need to provide that build infra / tooling, and very likely you also want robust build artifact and test caching to save wasting lots of time.
by 0xDEAFBEAD | 2025-10-31 08:00:00+00:00
>amending the US constitution seems to be utterly impossible.

Amending the US constitution is not supposed to be easy. You are supposed to accomplish most tasks through legislation. I see no reason why the legality of abortion should not be accomplished through legislation. In any case, the constitution has been amended 17 times, most recently in 1992. I don't see any slam-dunk amendments which are in need of ratification. If amendments aren't being ratified, maybe it's because we don't have broad consensus on changes which should be made. If it ain't broke, don't fix it.

With regard to the rest of your comment, you appear to be responding to something I didn't write. I didn't claim all transgressions were equivalent in magnitude, nor that "new developments" should be "left undisturbed". I think Trump is generally a terrible president. However, I see ways in which the left laid the foundations for Trump's transgressions by undermining the social contract in the US in a lot of different ways, and I want to persuade people that maintaining the social contract is inherently valuable in and of itself, the same way maintaining cooperation in an iterated prisoner's dilemma is valuable.
by lukan | 2025-10-31 08:00:27+00:00
"Tolstoy was not a good person"

Because he did not cheat on his wife, like it was common, but told her from the beginning, that he is not monogamous and she should make up her mind, whether she can accept that?

That is not a flaw in my book.

And that he left household chores to her?

Well, depends how things were agreed between them, but since his dayjob was writing .. I think that article overall presents a very weak case.
by flohofwoe | 2025-10-31 08:00:59+00:00
I'm coming from C so I got used to writing code like this ;)

fn computeVsParams(rx: f32, ry: f32) shd.VsParams { const rxm = mat4.rotate(rx, .{ .x = 1.0, .y = 0.0, .z = 0.0 }); const rym = mat4.rotate(ry, .{ .x = 0.0, .y = 1.0, .z = 0.0 }); const model = mat4.mul(rxm, rym); const aspect = sapp.widthf() / sapp.heightf(); const proj = mat4.persp(60.0, aspect, 0.01, 10.0); return shd.VsParams{ .mvp = mat4.mul(mat4.mul(proj, state.view), model) }; }

Zig also has a `@Vector` type for SIMD-style vector math though, but I haven't been using that because sometimes I want to add methods to the vector types.

What I would like to see though is a Ziggified version of the Clang extended vector and matrix extensions.
by danw1979 | 2025-10-31 08:01:13+00:00
> You don't need to apologize for making the wrong choice, but you do need to put down the proprietary crap and reclaim your dignity.

Are you making the argument here that there is a free software alternative to ICEblock that is suitable for novice technology users - the wider public - and offered the same guarantees of anonymity that Apple’s notification system offered ?
by anonym29 | 2025-10-31 08:02:20+00:00
Obviously this is because 77% of all pornhub viewers were underage, and NOT because privacy-infringing age checks create a deterrent effect that reduces all pornography consumption, which totally was NOT the goal all along by the puritanical fundamentalist religious groups backing this expansion of warrantless state surveillance.

It was definitely to protect the kids and NOT to try to quash all depictions of human sexuality due to a fetish for appeasing the arbitrary whims of the invisible sky daddy, as told to us by the people who pinky promise they were speaking on behalf of invisible sky daddy.
by impure-aqua | 2025-10-31 08:02:45+00:00
The walled gardens got a lot more appealing.

When we moved to Canada from the UK in 2010 there was no real way to access BBC content in a timely manner. My dad learned how to use a VPN and Handbrake to rip BBC iPlayer content and encode it for use on an Apple TV.

You had to do this if you wanted to access the content. The market did not provide any alternative.

Nowadays BBC have a BritBox subscription service. As someone in this middle space, my dad promptly bought a subscription and probably has never fired up Handbrake since.
by zahlman | 2025-10-31 08:04:27+00:00
Obviously dumb microbenchmark, but here's ~17x on my machine:

$ time python -c 'sum(range(1_000_000_000))' real 0m19.997s user 0m19.992s sys 0m0.005s $ time pypy -c 'sum(range(1_000_000_000))' real 0m1.146s user 0m1.126s sys 0m0.020s
Show HN: Render-graph-based 2D graphics framework for the web
by martintrif | 2025-10-31 08:04:33+00:00
I've been working on a small 2D graphics framework for the web and just put a first prototype online. It aims to make authoring graphics pipelines easier without hiding how the GPU actually works.

The core idea: you write your renderer as a function that returns a RenderGraph - a graph of resources (textures, buffers, etc) that describes how data flows through the GPU. The engine maps your graph to physical resources on the GPU in an optimised way.

The value proposition: For beginners, it could serve as a gentle onramp into GPU programming. For experienced developers, it could be a fast prototyping tool for experimentation.

I'm curious whether people see potential in a framework like this. I'd be very grateful to hear your thoughts!
by adrian_b | 2025-10-31 08:05:20+00:00
AMD makes laptop CPUs with good performance per power consumption ratio, but they are designed for high power consumptions, typically for 28 W, or at least for 15 W.

AMD does not have any product that can compete with Intel's N-series or industrial Atom CPUs, which are designed for power consumptions of 6 W or of 10 W and AMD never had any Zen CPU for this power range.

If the rumors about this "Sound Wave" are true, then AMD will finally begin to compete again in this range of TDP, a market that they have abandoned many years ago (since the AMD Jaguar and Puma CPUs), because all their resources were focused on designing Zen CPUs for higher TDPs.

For cheap and low-power CPUs, the expensive x86-64 instruction decoder may matter, unlike for bigger CPUs, so choosing the Aarch64 ISA may be the right decision.

Zen compact cores provide the best energy efficiency for laptops and servers, especially for computation-intensive tasks, but they are not appropriate for cheap low-power devices whose computational throughput is less important than other features. Zen compact cores are big in comparison with ARM Cortex-X4, Intel Darkmont or Qualcomm cores and their higher performance is not important for cheap low-power devices.