frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Immersa: Open-source Web-based 3D Presentation Tool

https://github.com/ertugrulcetin/immersa
12•simonpure•25m ago•0 comments

What Does a Database for SSDs Look Like?

https://brooker.co.za/blog/2025/12/15/database-for-ssd.html
69•charleshn•3h ago•42 comments

NTP at NIST Boulder Has Lost Power

https://lists.nanog.org/archives/list/nanog@lists.nanog.org/message/ACADD3NKOG2QRWZ56OSNNG7UIEKKT...
207•lpage•6h ago•94 comments

Approaching 50 Years of String Theory

https://www.math.columbia.edu/~woit/wordpress/?p=15401
13•jjgreen•43m ago•12 comments

Charles Proxy

https://www.charlesproxy.com/
204•handfuloflight•7h ago•63 comments

Skills Officially Comes to Codex

https://developers.openai.com/codex/skills/
78•rochansinha•5h ago•40 comments

CSS Grid Lanes

https://webkit.org/blog/17660/introducing-css-grid-lanes/
593•frizlab•15h ago•168 comments

A terminal emulator that runs in your terminal. Powered by Turbo Vision

https://github.com/magiblot/tvterm
78•mariuz•3d ago•7 comments

Privacy doesn't mean anything anymore, anonymity does

https://servury.com/blog/privacy-is-marketing-anonymity-is-architecture/
146•ybceo•7h ago•101 comments

Raycaster (YC F24) Is Hiring a Research Engineer (NYC, In-Person)

1•levilian•2h ago

Mistral OCR 3

https://mistral.ai/news/mistral-ocr-3
583•pember•1d ago•104 comments

Airbus to migrate critical apps to a sovereign Euro cloud

https://www.theregister.com/2025/12/19/airbus_sovereign_cloud/
258•saubeidl•5h ago•182 comments

New Quantum Antenna Reveals a Hidden Terahertz World

https://www.sciencedaily.com/releases/2025/12/251213032617.htm
57•aacker•4d ago•1 comments

Reflections on AI at the End of 2025

https://antirez.com/news/157
62•danielfalbo•4h ago•80 comments

Garage – An S3 object store so reliable you can run it outside datacenters

https://garagehq.deuxfleurs.fr/
615•ibobev•22h ago•136 comments

A train-sized tunnel is now carrying electricity under South London

https://www.ianvisits.co.uk/articles/a-train-sized-tunnel-is-now-carrying-electricity-under-south...
51•zeristor•5h ago•52 comments

A proof of concept of a semistable C++ vector container

https://github.com/joaquintides/semistable_vector
12•joaquintides•4d ago•1 comments

Contrails Map

https://map.contrails.org/
67•schaum•6h ago•29 comments

Arduino UNO Q bridges high-performance computing with real-time control

https://www.arduino.cc/product-uno-q/
6•doener•3d ago•0 comments

The Deviancy Signal: Having "Nothing to Hide" Is a Threat to Us All

https://thompson2026.com/blog/deviancy-signal/
106•NickForLiberty•8h ago•70 comments

Hash tables in Go and advantage of self-hosted compilers

https://rushter.com/blog/go-and-hashmaps/
25•f311a•5d ago•12 comments

NOAA deploys new generation of AI-driven global weather models

https://www.noaa.gov/news-release/noaa-deploys-new-generation-of-ai-driven-global-weather-models
110•hnburnsy•2d ago•76 comments

Fuzix on a Raspberry Pi Pico

https://ewpratten.com/blog/fuzix-pi-pico
79•ewpratten•5d ago•6 comments

TP-Link Tapo C200: Hardcoded Keys, Buffer Overflows and Privacy

https://www.evilsocket.net/2025/12/18/TP-Link-Tapo-C200-Hardcoded-Keys-Buffer-Overflows-and-Priva...
309•sibellavia•19h ago•92 comments

Sharp: High performance Node.js image processing/optimization

https://github.com/lovell/sharp
25•nateb2022•3d ago•2 comments

Graphite is joining Cursor

https://cursor.com/blog/graphite
244•fosterfriends•22h ago•236 comments

8-bit Boléro

https://linusakesson.net/music/bolero/index.php
278•Aissen•1d ago•41 comments

LLM Year in Review

https://karpathy.bearblog.dev/year-in-review-2025/
257•swyx•17h ago•82 comments

Carolina Cloud – One third the cost of AWS for data science workloads

https://carolinacloud.io/
122•bojangleslover•5d ago•66 comments

A better zip bomb (2019)

https://www.bamsoftware.com/hacks/zipbomb/
152•kekqqq•16h ago•53 comments
Open in hackernews

Hash tables in Go and advantage of self-hosted compilers

https://rushter.com/blog/go-and-hashmaps/
25•f311a•5d ago

Comments

Hendrikto•2h ago
> Another takeaway here, as always, is not to trust everything LLMs say.

I would go even farther and say to not trust anything they say. Always be skeptical, always verify.

nasretdinov•1h ago
Applies to humans as well :)
lenkite•1h ago
There are many humans who are far more reliable than LLM's on a 99.9999% win streak.
cabirum•1h ago
> Using empty structs also hurts readability

An empty struct is idiomatic and expected to be used in a Set type. When/if the memory optimization is reintroduced, no code change will be needed to take advantage of it.

ioanaci•1h ago
I also feel like map[T]struct{} communicates its purpose way better than map[T]bool. When I see a bool I expect it to represent a bit of information, I don't see why using it as a placeholder for "nothing" would be more readable than a type that can literally store nothing.
tym0•1h ago
Using a bool instead of empty struct also means that there is more way to use it wrong: check the bool instead of if the key exist, set the bool incorrectly, etc...

I would argue using bool hurts readability more.

Even better write/use a simple library that calls things that are sets `Set`.

Joker_vD•11m ago
I could've sworn we got "sets" in the Go's standard library along with the "maps" module but... apparently not? Huh.
andunie•1h ago
So what is this article about?

1. How to do sets in Go?

2. What changed between Go 1.24 and 1.25?

3. Trusting an LLM?

4. Self-hosted compilers?

It is not clear at all. Also there are no conclusions, it's purely a waste of time, basically the story of a guy figuring out for no reason that the way maps are implemented has changed in Go.

And the title is about self-hosted compilers, whose "advantage" turned out to be just that the guy was able to read the code? How is that an advantage? I guess it is an advantage for him.

The TypeScript compiler is also written in Go instead of in TypeScript. So this shouldn't be an advantage? But this guy likes to read Go, so it would also be an advantage to him.

gethly•6m ago
I think it is quite obvious - the author has found out that a memory trick that used to work in previous Go versions no longer works - in this sigular use case.
nickcw•1h ago
I wonder if the compiler really needs to allocate 1 byte so you can get the address of the struct {}

In the general case then yes, but here you can't take addresses of dictionary values (the compiler won't let you) so adding 1 byte to make a unique pointer for the struct {} shouldn't be necessary.

Unless it is used in the implementation of the map I suppose.

So I conjecture a bit of internal magic could fix this.

pdpi•15m ago
It's worth noting that the "self-hosted compiler" thing here is a red herring.

E.g. the JVM is a C++ project, but you can easily read the HashMap implementation, because it's part of the standard library, not part of the runtime.

gethly•9m ago
Empty struct is good for representing non-nil zero-length information, for example this is ideal for many use cases where channels are involved. Or of you have a http route and you want to return empty response(200 OK or 204 No Content, instead of error).

Boolean on the other hand inherently contains two information: either true or false. ie. there will always be information and it will always be one of two values.

This is similar to *struct{} where we can signal no information, or false, by returning/passing nil or initiated pointer to empty struct as true/value present.

For maps, bool makes more sense as otherwise we just want a list with fast access to determine whether value in the list exists or not. Which is often something we might want. But it should not detract form the fact that each type has its own place and just because new implementation for maps ignores this, in this particular use, case does not make them worse than previous version.

tl;dr it is good to know this fact about the new swiss maps, but it should not have any impact on programming an design decisions whatsoever.