frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Simplest Hash Functions

https://purplesyringa.moe/blog/simplest-hash-functions/
18•ibobev•4d ago

Comments

bryanrasmussen•1h ago
a hash function that produce hashes that are already in the hash table should, IMO, not be called a hash function.

I get why technically it is a hash function, but still, no.

phinnaeus•1h ago
Here is a hash function that does not have hash collisions:

  fn hash(data):
    return data
Charon77•51m ago
Well it no longer constrains the data in a fixed output length.
dbdr•16m ago
Sure, but if you constrain to fixed output length, you will definitely have collisions (Pigeon Hole Principle). There's no way around that.
ahazred8ta•1h ago
A perfect hash function https://en.wikipedia.org/wiki/Perfect_hash_function has to be specially constructed for each desired set of inputs. Generic hash functions cannot be 'perfect'.
baruch•25m ago
It is mathematically impossible for a proper hash function (one with an output range smaller than its input range) to not have collisions. The proof uses the Pigeon Hole Principle https://en.wikipedia.org/wiki/Pigeonhole_principle
Charon77•50m ago
> Like addition

I'm perplexed to the claim that addition is cheaper than XOR, especially since addition is built upon XOR, am I missing anything? Is it javascript specific?

johanvts•18m ago
This is a excellent article for anyone looking for some more in-depth analysis of tabulation based hashing methods: https://arxiv.org/abs/1505.01523

The End of Eleventy

https://brennan.day/the-end-of-eleventy/
121•ValentineC•4h ago•69 comments

Small models also found the vulnerabilities that Mythos found

https://aisle.com/blog/ai-cybersecurity-after-mythos-the-jagged-frontier
976•dominicq•13h ago•267 comments

US appeals court declares 158-year-old home distilling ban unconstitutional

https://www.theguardian.com/law/2026/apr/11/appeals-court-ruling-home-distilling-ban-unconstituti...
63•Jimmc414•1h ago•33 comments

How We Broke Top AI Agent Benchmarks: And What Comes Next

https://rdi.berkeley.edu/blog/trustworthy-benchmarks-cont/
328•Anon84•11h ago•86 comments

How Complex is my Code?

https://philodev.one/posts/2026-04-code-complexity/
84•speckx•4d ago•15 comments

447 TB/cm² at zero retention energy – atomic-scale memory on fluorographane

https://zenodo.org/records/19513269
191•iliatoli•10h ago•96 comments

Dark Castle

https://darkcastle.co.uk/
168•evo_9•10h ago•21 comments

How a dancer with ALS used brainwaves to perform live

https://www.electronicspecifier.com/products/sensors/how-a-dancer-with-als-used-brainwaves-to-per...
26•1659447091•4h ago•1 comments

Pijul a FOSS distributed version control system

https://pijul.org/
119•kouosi•4d ago•22 comments

Tofolli gates are all you need

https://www.johndcook.com/blog/2026/04/06/tofolli-gates/
9•ibobev•4d ago•0 comments

Apple Silicon and Virtual Machines: Beating the 2 VM Limit (2023)

https://khronokernel.com/macos/2023/08/08/AS-VM.html
180•krackers•9h ago•128 comments

Simplest Hash Functions

https://purplesyringa.moe/blog/simplest-hash-functions/
18•ibobev•4d ago•8 comments

Advanced Mac Substitute is an API-level reimplementation of 1980s-era Mac OS

https://www.v68k.org/advanced-mac-substitute/
229•zdw•14h ago•60 comments

Cirrus Labs to join OpenAI

https://cirruslabs.org/
254•seekdeep•17h ago•125 comments

Why meaningful days look like nothing while you are living them

https://pilgrima.ge/p/the-grand-line
13•momentmaker•3h ago•5 comments

Surelock: Deadlock-Free Mutexes for Rust

https://notes.brooklynzelenka.com/Blog/Surelock
201•codetheweb•3d ago•66 comments

Building a Z-Machine in the worst possible language – Whitebeard's Realm

https://whitebeard.blog/posts/building-a-z-machine-in-elm/
15•techbelly•3h ago•0 comments

Show HN: Pardonned.com – A searchable database of US Pardons

413•vidluther•1d ago•230 comments

How to build a `Git diff` driver

https://www.jvt.me/posts/2026/04/11/how-git-diff-driver/
103•zdw•12h ago•12 comments

Software Preservation Group: C++ History Collection

https://softwarepreservation.computerhistory.org/c_plus_plus/
15•quuxplusone•5h ago•1 comments

The Soul of an Old Machine

https://skalski.dev/the-soul-of-an-old-machine/
45•mskalski•4d ago•10 comments

Midnight Captain – A midnight commander inspired file manager

https://github.com/duguyue100/midnight-captain
29•duguyue100•7h ago•10 comments

What is a property?

https://alperenkeles.com/posts/what-is-a-property/
67•alpaylan•4d ago•19 comments

Optimal Strategy for Connect 4

https://2swap.github.io/WeakC4/explanation/
281•marvinborner•3d ago•31 comments

Every plane you see in the sky – you can now follow it from the cockpit in 3D

https://flight-viz.com/cockpit.html?lat=40.64&lon=-73.78&alt=3000&hdg=220&spd=130&cs=DAL123
307•coolwulf•3d ago•58 comments

Keeping a Postgres Queue Healthy

https://planetscale.com/blog/keeping-a-postgres-queue-healthy
93•tanelpoder•14h ago•24 comments

The APL programming language source code (2012)

https://computerhistory.org/blog/the-apl-programming-language-source-code/
62•tosh•13h ago•18 comments

New synthesis of astronomical measurements shows Hubble tension is real

https://noirlab.edu/public/news/noirlab2611/?nocache=true&lang=en
54•anigbrowl•11h ago•13 comments

The Problem That Built an Industry

https://ajitem.com/blog/iron-core-part-1-the-problem-that-built-an-industry/
119•ShaggyHotDog•16h ago•41 comments

Filing the corners off my MacBooks

https://kentwalters.com/posts/corners/
1318•normanvalentine•1d ago•623 comments