News for hackers. Stuff that matters.

sondr3

Re:Remove pgrust: the entry is cheating on Friday October 23, 2026 @12:58PM (#50212053)
This absolutely does not pass any smell test, by your own admission you included the test files "by accident", could only barely pass the minimum of SQL for the benchmarks, included environment variables for "internal benchmarking" and a preview version you cannot immediately release because it might contain sensitive data? What kind of sensitive data are you putting in a Postgres slop fork in such a way that you cannot immediately release it, besides obvious admissions of cheating? This all just reeks.
Re:Remove pgrust: the entry is cheating on Friday October 23, 2026 @07:57AM (#50207559)
Hope the ClickHouse maintainers stand their ground and do not let pgrust back in until it and the maintainer has matured more.
Re:C# now beats Rust on WASM size on Wednesday October 21, 2026 @03:28AM (#50177223)
It's a bit of an unfair comparison, the benchmarked C# code here is also post-processed which none of the other targets are. See this comment[1] on reddit where the author announced this on the /r/dotnet subreddit, Rust can go much, much lower. The title is misleading at best and a lie at worst, this is great but saying it beats Rust is a far cry from the truth except for the very narrow benchmark made to showcase this tool.

[1]: https://www.reddit.com/r/dotnet/comments/1x7wsgb/rust_just_l...

Re:Radicle: Disclosure of Vulnerability in the Network Protocol on Wednesday September 23, 2026 @01:36PM (#49819688)
The fact that this was reported three months ago and the "workaround" is to stop using private repos and assume they are all pwnd is quite something. How do you not notice that cross-node traffic is not encrypted when building something like this?
Re:The lost joy of music piracy on Thursday July 16, 2026 @03:01AM (#48931207)
I still have my invitation email to What.CD and cherish the stuff I found and downloaded on it. After it went away I didn't do the reasonable thing and migrate to RED/OPS immediately, though I've joined OPS in recent years. It does not feel the same, but that's probably more me being older and less optimistic than during the What.CD days. I have fond memories of reading the forum threads about jazz when I was getting into it, or looking at all the weird collections people made (I vividly remember laughing at the "albums with feet on the cover"-collection) or finding really obscure, local artists you couldn't find anywhere else or going to the public library to rent CD's to rip and upload for credits. Fun times.
> Cloud makes sense when elasticity matters; bare metal wins when baseload dominates.

This really is the crux of the matter in my opinion, at least for applications (databases and so on is in my opinion more nuanced). I've only worked at one place where using cloud functions made sense (keeping it somewhat vague here): data ingestion from stations that could be EXTREMELY bursty. Usually we got data from the stations at roughly midnight every day, nothing a regular server couldn't handle, but occasionally a station would come back online after weeks or new stations got connected etc which produced incredible load for a very short amount of time when we fetched, parsed and handled each packet. Instead of queuing things for ages we could instead just horizontally scale it out to handle the pressure.

Re:Tsdown – The Elegant Bundler for Libraries on Sunday October 26, 2025 @05:15AM (#45710264)
We've switched over our libraries at $WORK to use `tsdown` and it's mostly been a very boring journey, we switched from `tsup` and the DX gains have been massive. Running our `dev` process in the frontend monorepo compiles and bundles all the libraries in less than a second on a cold start compared to `tsup` which was far slower. The biggest gain however was in our CI/CD pipeline where the build servers are much weaker than our developer machines, the `build` step in the quality gate for example went down by over a minute. We've also switched to the new native `tsgo` [0] for type checking, saving us another minute on CI/CD and have migrated a few things from ESLint to Oxlint, which was another easy minute saved. And we switched from Prettier to Biome, and checking the formatting on CI went from ~15s to ~1s. Massive gains are being had in the JS-world from gradual oxidation. Can't wait for Vite with rolldown, we tried that but have a few libraries that depend on SWC which made it a show stopper.

[0]: https://github.com/microsoft/typescript-go

Re:Using Emacs Org-Mode With Databases: A getting-started guide on Friday September 12, 2025 @04:47AM (#45220089)
I used Org Mode for all mandatory assignments [0] when I was a student, it worked super well and I could create well formatted LaTeX documents/PDFs from it as well. The supervisors were very impressed that I did my assignment in LaTeX, and I could never be bothered to correct them :-)

[0]: https://gist.github.com/sondr3/ae4eda2816cfeda7b8597ce1c48d0..., best viewed as the raw file for all the details

So much negativity... I for one really like the look of this, I've been yearning for something that's not the current crop of frontend frameworks to see where we go. The author definitely has the past experience to build something like this based on being a core member of both Svelte and React. It'll be cool to see where this goes, though I wish we had more Elm-like frameworks (that don't lock down the compiler).
Re:Optimizing a Math Expression Parser in Rust on Thursday July 10, 2025 @07:51AM (#44519948)
If you've never been exposed to a Hindley-Milner type system[1] it can seem a bit magical, but it essentially works by trying to figure out the types from the inside and out by inferring usage all the way to the top. The type of `n` however is `&str`, but I take it you mean the matching. `n.parse()` can be anything that implements `FromStr`, but `Token::Operand` can only take a `u32`, so it can immediately infer that the result of `n.parse().unwrap()` must be `u32` (`n.parse()` is a `Result<u32, Err>`).

[1]: https://en.wikipedia.org/wiki/Hindley%E2%80%93Milner_type_sy...

Re:Why Norway is edging towards a fresh EU membership bid on Monday March 31, 2025 @05:58AM (#43533119)
Norway has incredibly high tolls and tariffs on importing food (a bit ironic nowadays), primarily to protect the local farmers etc. We're a big country, but the amount of arable land is small and the climate does us no favors. We're at about 39% self sufficient for food, and import a majority of our vegetables, grains and fruits (Norway is one of the biggest importers of food in the world). Fact of the matter is that the only thing that props up local farmers is the subsidies and high import fees, if we join the EU that will have to go and local farms will not be able to compete on the open market. There's obviously much more nuance and details here, but that's the gist of why a lot of people don't want to join the EU. The last vote was essentially decided by the agricultural industry in Norway.
Re:Why Norway is edging towards a fresh EU membership bid on Monday March 31, 2025 @03:52AM (#43532327)
I think an EU membership will only happen in Norway when the old generations die out, the yes/no divide is a big generational thing. Even though the latest poll only shows a six percent difference between yes/no, it's only as high as it is now because of the current political situation with trade wars and actual wars. Any vote now for a membership will only happen when a party knows the yes side will win, doing otherwise will postpone the vote another thirty years again. Personally I think we should join the EU, we're already heavily tangled with EU laws and regulations, but I understand the concerns for our agriculture and fishing industries.
Re:Vanishing Culture: Punch Card Knitting on Wednesday February 12, 2025 @07:39AM (#43024780)
I recently bought an old Brother knitting machine (KH940) which is electronic but with a community of hackers adding third-party firmware and hardware on it [0]. There are also lots of models that read punch cards [1] and knit that purely mechanically (and later models electronically). They are a marvel of engineering that has essentially died out, only Silver Reed and Taitexma produce new models as far as I'm aware and they are often not as featureful as the old machines (SR has no garter carriages that Brother machines had 40 years ago for example).

[0]: http://www.ayab-knitting.com/ [1]: https://alessandrina.com/2015/09/03/brother-kms-punchcards-a...

Which then again could have AI integrations of its own! Imagine the endless possibilities of AI shredding.
I also over-engineered how I generate my CV[1], but went the opposite direction by using Dhall to create JSON and LaTeX files that I use to create a PDF and GraphQL API in Rust for it, automatically deployed via CI/CD to a VPS and a tagged GitHub release. It was a lot of fun to make, but is so over-engineered I hardly want to touch it anymore :)

[1]: https://github.com/sondr3/cv-aas

I too would be immensely frustrated if this was released in my terminal emulator, and would jump ship immediately. My current job would (and probably will) ban this and similar integrations unless compliance gives the thumbs up... and they do not care about how optional it is. GitHub Copilot is still not allowed unless you are in a small pilot project with their own agreement and contract for sharing and storage with Microsoft with tons of red tape. ChatGPT is still banned. Please keep AI out of the core features of applications that absolutely don't need it.
Re:Not all Graphs are Trees on Thursday May 02, 2024 @03:03AM (#40233469)
This also made me scratch my beard, but I think he maybe means allowing multiple mutable references to a variable when the compiler can prove that nothing bad happens. It's something a bunch of people have been trying to solve with different models, the most recent I know of is Tree Borrows [1].

[1]: https://www.ralfj.de/blog/2023/06/02/tree-borrows.html

Re:Rolldown: Rollup compatible bundler written in Rust on Friday March 08, 2024 @11:28AM (#39642675)
Yep, forgot to mention that in my post, thanks.
Re:Rolldown: Rollup compatible bundler written in Rust on Friday March 08, 2024 @08:53AM (#39641043)
I can't speak for the authors of Rolldown, but esbuild is essentially a one-man show and everything is bespoke and written for esbuild. Not saying this as a bad thing, Evan single-handedly improved bundling performance for Node and started us down this path of tools in Rust. The libraries and ecosystem for writing tooling for other languages is really taking off with projects like oxc, SWC, LightningCSS, Biome, rslint, Deno, rspack, napi-rs/Neon for JS/TS/Node etc plus ruff, uv, rattler, pixi for Python and so on, so you get a proliferation of libraries and authors that can share and help each other.

Plus, on a personal level, using a language with pattern matching and algebraic data types makes writing tooling for parsers and such much more ergonomic than in languages without.

Re:Gemma: New Open Models on Wednesday February 21, 2024 @01:36PM (#39457641)
Huh? The official numbers are 877k or 16% [0]. Are you just pulling numbers out of thin air?

[0]: https://www.ssb.no/en/innvandring-og-innvandrere/faktaside/i...

Re:Rust and Htmx: Making a Slack/campfire clone on Wednesday February 21, 2024 @07:47AM (#39453118)
While Rust and HTMX are a cool combo, this feels like random blog spam. The video is just a generic techfluencer talking about buzzword tech without any substance. At the very least tag the post with "Show HN".
Re:UUID Benchmark War on Monday February 05, 2024 @07:54AM (#39260746)
You can generate the UUID in your application and insert it, UUIDv7 can be used in any UUID column in Postgres. UUIDv7 natively in Postgres are coming in v17: https://commitfest.postgresql.org/43/4388/.
Re:Uiua: A minimal stack-based, array-based language on Wednesday September 27, 2023 @05:22PM (#37681501)
You’ll love Piet (https://esolangs.org/wiki/Piet) then :)
Re:Seriously Consider Skipping the Drinks on Friday September 22, 2023 @04:06AM (#37609260)
After getting a Garmin watch I’ve noticed that any drinking wreaks havoc on my body, and heavy drinking lingers for a long time. I’m getting the same readings when I’ve had a bit to drink from heart rate variability, sleep quality and such as when I’m really sick. It’s started to push me to drinking less, but I’ll never quit entirely. Life is too short and my mental health enjoys a glass every now and then.
Re:Rejected GitHub Profile Achievements on Wednesday July 05, 2023 @06:34PM (#36608151)
2FU is actually hilarious, I want some of these.
Re:Deno 1.35: A fast and convenient way to build web servers on Wednesday July 05, 2023 @12:01PM (#36602335)
I like Deno for many of the same reasons I like Rust and Go, the tooling comes bundled with the runtime. No fussing about with ESLint/prettier/tsconfig/bundling and all that jazz, Deno includes it all. The dependency story was a little rough for a while but with import maps now it’s really quite nice. With the npm ecosystem integrations it’s starting to be a very nice developer experience.

Older »