frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Power over Ethernet (PoE) basics and beyond

https://www.edn.com/poe-basics-and-beyond-what-every-engineer-should-know/
109•voxadam•5d ago•63 comments

rlsw – Raylib software OpenGL renderer in less than 5k LOC

https://github.com/raysan5/raylib/blob/master/src/external/rlsw.h
137•fschuett•7h ago•28 comments

OpenBSD 7.8 Released

https://cdn.openbsd.org/pub/OpenBSD/7.8/ANNOUNCEMENT
85•paulnpace•2h ago•16 comments

Replacing a $3000/mo Heroku bill with a $55/mo server

https://disco.cloud/blog/how-idealistorg-replaced-a-3000mo-heroku-bill-with-a-55-server/
486•jryio•8h ago•340 comments

LLMs can get "brain rot"

https://llm-brain-rot.github.io/
321•tamnd•14h ago•181 comments

Show HN: Modshim – a new alternative to monkey-patching in Python

https://github.com/joouha/modshim
15•joouha•5d ago•3 comments

Neural audio codecs: how to get audio into LLMs

https://kyutai.org/next/codec-explainer
342•karimf•15h ago•103 comments

The Hidden Engineering of Niagara Falls

https://practical.engineering/blog/2025/10/21/the-hidden-engineering-of-niagara-falls
69•chmaynard•5h ago•1 comments

Ask HN: Our AWS account got compromised after their outage

223•kinj28•12h ago•57 comments

Wikipedia says traffic is falling due to AI search summaries and social video

https://techcrunch.com/2025/10/18/wikipedia-says-traffic-is-falling-due-to-ai-search-summaries-an...
321•gmays•1d ago•301 comments

NASA chief suggests SpaceX may be booted from moon mission

https://www.cnn.com/2025/10/20/science/nasa-spacex-moon-landing-contract-sean-duffy
254•voxleone•15h ago•740 comments

ChatGPT Atlas

https://chatgpt.com/atlas
601•easton•11h ago•571 comments

Mathematicians have found a hidden 'reset button' for undoing rotation

https://www.newscientist.com/article/2499647-mathematicians-have-found-a-hidden-reset-button-for-...
112•mikhael•5d ago•78 comments

Rectal oxygen delivery might soon be a real medical treatment

https://arstechnica.com/science/2025/10/butt-breathing-might-soon-be-a-real-medical-treatment/
133•zdw•5h ago•63 comments

Show HN: AutoLearn Skills for self-improving agents

https://www.autolearn.dev
3•toobulkeh•1h ago•1 comments

Getting DeepSeek-OCR working on an Nvidia Spark via brute force with Claude Code

https://simonwillison.net/2025/Oct/20/deepseek-ocr-claude-code/
137•simonw•1d ago•25 comments

Build your own database

https://www.nan.fyi/database
421•nansdotio•12h ago•64 comments

60k kids have avoided peanut allergies due to 2015 advice, study finds

https://www.cbsnews.com/news/peanut-allergies-60000-kids-avoided-2015-advice/
307•zdw•1d ago•278 comments

Minds, brains, and programs (1980) [pdf]

https://home.csulb.edu/~cwallis/382/readings/482/searle.minds.brains.programs.bbs.1980.pdf
60•measurablefunc•1w ago•25 comments

Understanding conflict resolution and avoidance in PostgreSQL: a complete guide

https://www.pgedge.com/blog/living-on-the-edge
28•birdculture•1w ago•1 comments

Doomsday scoreboard

https://doomsday.march1studios.com/
191•diymaker•8h ago•88 comments

What do we do if SETI is successful?

https://www.universetoday.com/articles/what-do-we-do-if-seti-is-successful
131•leephillips•1d ago•216 comments

Foreign hackers breached a US nuclear weapons plant via SharePoint flaws

https://www.csoonline.com/article/4074962/foreign-hackers-breached-a-us-nuclear-weapons-plant-via...
339•zdw•12h ago•231 comments

Flexport Is Hiring SDRs in Chicago

https://job-boards.greenhouse.io/flexport/jobs/5690976?gh_jid=5690976
1•thedogeye•11h ago

The death of thread per core

https://buttondown.com/jaffray/archive/the-death-of-thread-per-core/
94•ibobev•1d ago•38 comments

Cdb: Add support for cdb64

https://cdb.cr.yp.to/download.html
75•kreco•4h ago•21 comments

Show HN: Katakate – Dozens of VMs per node for safe code exec

https://github.com/Katakate/k7
96•gbxk•13h ago•36 comments

Erowid - Documenting the Complex Relationship Between Humans and Psychoactives

https://www.erowid.org
27•slow_typist•8h ago•1 comments

KDE Connect: Enabling communication between all your devices

https://community.kde.org/KDEConnect
393•snthd•1w ago•161 comments

Diamond Thermal Conductivity: A New Era in Chip Cooling

https://spectrum.ieee.org/diamond-thermal-conductivity
178•rbanffy•17h ago•59 comments
Open in hackernews

Cdb: Add support for cdb64

https://cdb.cr.yp.to/download.html
75•kreco•4h ago

Comments

Bolwin•3h ago
Interesting, never heard of this before. I'm assuming the use case is when your data is too large to conveniently fit into memory?
dsr_•3h ago
It is a database for when you read a lot and don't write too often; when a write might be pretty big but not frequent; when you don't want to write a database engine yourself (I.e. figure out what to write and when). And, especially, when corrupting the data would be a big problem.

And it is especially good on copy-on-write filesystems, because it is CoW itself.

bloppe•3h ago
So it's not constant?
tptacek•3h ago
The lookups are ~O(1).
renewiltord•2h ago
Nothing is truly constant lookup in number of elements in nature because we can’t pack it tighter than a sphere.
tptacek•3h ago
It's a database for strictly exact-match lookups for very read-intensive workloads; think systems where the database only changes when the configuration changes, like email alias or domain lookups. It's very simple (a first-level hash table chaining to a second-level open-addressed hash table) and easy to get your head around, but also very limiting; an otherwise strict K-V system that uses b-trees instead of hash tables can do range queries, which you can build a lot of other stuff out of.

Most people would use Redis or SQLite today for what CDB was intended for; CDB will be faster, but for a lot of applications that speed improvement will be sub-threshold for users.

paws•2h ago
For me this answer was helpful and succinct, thank you.
kimos•1h ago
Great reply.

What comes to mind from my experience is storing full shipping rate tables for multiple shipping providers. Those change extremely rarely but are a high throughput exact lookup in a critical path (a checkout).

But we just implemented them in SQLite and deployed that file with the application. Simple clean, effective, and fast. Maybe shipping rate data is smaller than this is intended for, but I doubt using this instead would see a consequential perf increase. Seems niche, like the domain name lookup example.

tptacek•3h ago
Haven't there been 64-bit ports of CDB for ages?
wolfgang42•2h ago
Yes, the modifications you need to support it are trivially obvious (literally just replace “4 bytes” with “8 bytes” everywhere in the spec) and have been implemented by a number of authors, some of which this page links to. I guess it’s nice that they’ve been “officially” acknowledged, though.
gnabgib•3h ago
Title: cdb: Intro (please use the original title) https://news.ycombinator.com/newsguidelines.html
gchamonlive•3h ago
It'd never have crawled out of the new page with that title.
trvz•3h ago
No, the title is much better as it is.
gjvc•1h ago
weak
stevefan1999•3h ago
Can't this be implemented as a PHF: https://en.wikipedia.org/wiki/Perfect_hash_function
wolfgang42•2h ago
CDB is an interesting format, optimized for read-heavy write-rarely[1] random lookups on slow media. This isn’t a very common requirement these days, but it’s convenient for very specific use cases.

[1] You “update” by overwriting the entire file. This is remarkably fast and means that there’s no overhead/tracking for empty space, but it does mean you probably want this to be a fairly rare operation.

I rolled my own cdb reader library for a project a few years ago, and wrote up my notes on the format and its internals here: https://search.feep.dev/blog/post/2022-12-03-cdb-file-format

a-dub•2h ago
GALACTIC SCALE QMAIL that can run efficiently on a 486 AND survive a supernova!
tombert•2h ago
I'm kind of surprised I hadn't heard of this, I could see this being something useful for a few projects. Historically for things in this space I've used RocksDB but RocksDB has given me headaches with unpredictable memory usage for large data sets.
binary132•1h ago
Now I’m curious about working around the writer limitations….
tptacek•1h ago
It's designed to rebuild the whole database with every write, and the format reflects that.
waynesonfire•22m ago
cdb is a fun format to implement! highly recommend it.