frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Tiny C Compiler

https://bellard.org/tcc/
117•guerrilla•3h ago•52 comments

SectorC: A C Compiler in 512 bytes

https://xorvoid.com/sectorc.html
197•valyala•8h ago•38 comments

Speed up responses with fast mode

https://code.claude.com/docs/en/fast-mode
115•surprisetalk•7h ago•120 comments

Brookhaven Lab's RHIC concludes 25-year run with final collisions

https://www.hpcwire.com/off-the-wire/brookhaven-labs-rhic-concludes-25-year-run-with-final-collis...
44•gnufx•6h ago•47 comments

Software factories and the agentic moment

https://factory.strongdm.ai/
138•mellosouls•10h ago•295 comments

OpenCiv3: Open-source, cross-platform reimagining of Civilization III

https://openciv3.org/
882•klaussilveira•1d ago•270 comments

Stories from 25 Years of Software Development

https://susam.net/twenty-five-years-of-computing.html
134•vinhnx•11h ago•16 comments

Hoot: Scheme on WebAssembly

https://www.spritely.institute/hoot/
166•AlexeyBrin•13h ago•29 comments

FDA intends to take action against non-FDA-approved GLP-1 drugs

https://www.fda.gov/news-events/press-announcements/fda-intends-take-action-against-non-fda-appro...
67•randycupertino•3h ago•108 comments

First Proof

https://arxiv.org/abs/2602.05192
101•samasblack•10h ago•67 comments

Vocal Guide – belt sing without killing yourself

https://jesperordrup.github.io/vocal-guide/
270•jesperordrup•18h ago•86 comments

Al Lowe on model trains, funny deaths and working with Disney

https://spillhistorie.no/2026/02/06/interview-with-sierra-veteran-al-lowe/
86•thelok•9h ago•18 comments

Show HN: I saw this cool navigation reveal, so I made a simple HTML+CSS version

https://github.com/Momciloo/fun-with-clip-path
55•momciloo•7h ago•10 comments

Start all of your commands with a comma (2009)

https://rhodesmill.org/brandon/2009/commands-with-comma/
551•theblazehen•3d ago•204 comments

The F Word

http://muratbuffalo.blogspot.com/2026/02/friction.html
98•zdw•3d ago•50 comments

Show HN: A luma dependent chroma compression algorithm (image compression)

https://www.bitsnbites.eu/a-spatial-domain-variable-block-size-luma-dependent-chroma-compression-...
28•mbitsnbites•3d ago•2 comments

I write games in C (yes, C) (2016)

https://jonathanwhiting.com/writing/blog/games_in_c/
174•valyala•7h ago•162 comments

Eigen: Building a Workspace

https://reindernijhoff.net/2025/10/eigen-building-a-workspace/
6•todsacerdoti•4d ago•2 comments

Show HN: Craftplan – Elixir-based micro-ERP for small-scale manufacturers

https://puemos.github.io/craftplan/
4•deofoo•4d ago•0 comments

Microsoft account bugs locked me out of Notepad – Are thin clients ruining PCs?

https://www.windowscentral.com/microsoft/windows-11/windows-locked-me-out-of-notepad-is-the-thin-...
92•josephcsible•5h ago•115 comments

The AI boom is causing shortages everywhere else

https://www.washingtonpost.com/technology/2026/02/07/ai-spending-economy-shortages/
252•1vuio0pswjnm7•14h ago•402 comments

Selection rather than prediction

https://voratiq.com/blog/selection-rather-than-prediction/
25•languid-photic•4d ago•7 comments

Reinforcement Learning from Human Feedback

https://rlhfbook.com/
112•onurkanbkrc•12h ago•5 comments

Unseen Footage of Atari Battlezone Arcade Cabinet Production

https://arcadeblogger.com/2026/02/02/unseen-footage-of-atari-battlezone-cabinet-production/
138•videotopia•4d ago•46 comments

Where did all the starships go?

https://www.datawrapper.de/blog/science-fiction-decline
126•speckx•4d ago•191 comments

A Fresh Look at IBM 3270 Information Display System

https://www.rs-online.com/designspark/a-fresh-look-at-ibm-3270-information-display-system
59•rbanffy•4d ago•18 comments

Learning from context is harder than we thought

https://hy.tencent.com/research/100025?langVersion=en
218•limoce•4d ago•123 comments

72M Points of Interest

https://tech.marksblogg.com/overture-places-pois.html
49•marklit•5d ago•9 comments

Show HN: Look Ma, No Linux: Shell, App Installer, Vi, Cc on ESP32-S3 / BreezyBox

https://github.com/valdanylchuk/breezydemo
295•isitcontent•1d ago•39 comments

Hackers (1995) Animated Experience

https://hackers-1995.vercel.app/
574•todsacerdoti•1d ago•279 comments
Open in hackernews

Rolling the dice with CSS random()

https://webkit.org/blog/17285/rolling-the-dice-with-css-random/
145•zdw•5mo ago

Comments

gherkinnn•5mo ago
Nice. Currently I have to set CSS custom properties with JS to achieve the same effect.

Wonderful to see how CSS gets a usable random function before JS does.

noman-land•5mo ago
Maybe "usable" is your qualifier but what's wrong with Math.random()?
tsujp•5mo ago
JS also has Crypto.getRandomValues()
akdev1l•5mo ago
To generate random number in a specific range you need to do something I always forget and need to google.

    Math.floor(Math.random() * (max - min + 1)) + min;

(Google AI summary says this is the thing)

The CSS function would be random(min, max)

Also the CSS function seems to take a number of steps, it is not immediately obvious to me how to do that with Math.random()

sdenton4•5mo ago
Why not add a Math.randint?

I imagine there's some deep ideological war over whether to add more programming functionality to css...

ameliaquining•5mo ago
Currently under discussion in the standards committee: https://tc39.es/proposal-random-functions/
ameliaquining•5mo ago

    Math.floor(Math.random() * Math.floor((max - min) / step)) * step + min
ballenf•5mo ago
So now we can add a random data prop to a hidden dom element, then query that from JS. You know, to make your JS random function simpler. ;)
gherkinnn•5mo ago
That was my second idea. I've done worse.
jvdvegt•5mo ago
Nice but... no dice!
Tepix•5mo ago
Related: Animated starfield in pure CSS

https://codepen.io/ArneSava/pen/BaWxOaR

lelandfe•5mo ago
Really laggy on an M1 MBP; probably `box-shadow`'s fault.
Tepix•5mo ago
Have you tried different browsers?
kachapopopow•5mo ago
I yern for the day we can have react-type pages without any javascript. Keep chugging webkit I believe in you.
hannob•5mo ago
Having seen too many "this randomness function was never meant to be used for security, but people use it for security anyway" vulnerabilities in the past:

Can we PLEASEPLEASEPLEASE have this secure by default from the beginning?

1718627440•5mo ago
Security in the Stylesheet? Come on, you need to set boundaries for expectable use.
phyzome•5mo ago
"Look, I implemented diceware in pure CSS!" is unfortunately not that hard to imagine.

I would bet someone is already working on it as we speak.

1718627440•5mo ago
I don't disagree on that point.

Introducing cryptography in the STANDARD for stylesheets adds complexity where it doesn't belong. Ultimately a browser vendor isn't responsible when a company sells insecure cryptography.

Adding crypto to CSS will bring us nearer to bitcoin mining in the CSS engine.

bigDinosaur•5mo ago
If you implement security protocols in a production app using CSS then you deserve to be hacked and then sued for negligence.
RestartKernel•5mo ago
Counterargument: it would make for a very funny post-mortem.
demurgos•5mo ago
Where is the spec? I can't find an entry on MDN.

Is there a way to get reproducibility? In the same browser or across browsers? Even if it's not the default mode.

twiss•5mo ago
Spec: https://www.w3.org/TR/css-values-5/#randomness

WPT test results: https://wpt.fyi/results/css/css-values?label=master&label=ex...

Only Safari supports it for now, it seems.

ameliaquining•5mo ago
And only in a prerelease build; no browser has yet shipped this to users by default.
JKCalhoun•5mo ago
Perhaps you can set the seed to a fixed value on page loads? I kind of like the idea of the same "random" star field even if the user refreshes the page. Or rather, it would somewhat bother me if it changed for a refresh since a refresh is supposed to simply re-present the same web page.
chipsrafferty•5mo ago
Says who? Why would I refresh to see the same page? Usually I refresh because I want to see some different content.
Analemma_•5mo ago
The starfield example is cool but it seems like that might be exactly where random() wouldn’t work as well as people hope: true randomness often looks pretty bad when you want to make graphics out of it, because true randomness has clumps and voids, and a lot of observers think it looks less random than pseudorandom sequences with more evenly-spaced points.

The term for this is “low-discrepancy sequences”, there have been a handful of HN posts on it over the years. I know I’m bikeshedding the API already before it even really exists, but for image presentation I think a lot of applications might actually find that more useful.

capitainenemo•5mo ago
This seems like a good opportunity to bring up the old, more hacky, but also more performant and predictable CSS random effect using backgrounds of prime number sizes to achieve a "random" distribution. The "cicada principle"

https://www.sitepoint.com/the-cicada-principle-and-why-it-ma...

https://lea.verou.me/blog/2020/07/the-cicada-principle-revis...

In this case you would use multiple transparent tiles of different star patterns (images, or gradient/clip-path tricks), each one a different prime number in size. It should work with anything you can tile and overlay in CSS though.

pstuart•5mo ago
I'm not sure if I'll ever get a chance to use that but it was very informative nonetheless.
capitainenemo•5mo ago
(oh, I should note that the 2nd link uses nth selector to apply any rules pseudo-randomly, not just tiles) ... and, hm, I guess you could "seed" the pseudorandom nth selectors if your pages had unique attribute selectors, by adjusting the primes and offsets. Like with drupal you could do different ones based on digits of the nid in the body tag.
ericyd•5mo ago
These examples feel a bit contrived, are there any other cases where random CSS values would be useful? I don't often reach for randomness when doing business apps.
EduardoBautista•5mo ago
I can only imagine the groundbreaking and innovative MySpace themes that would have been possible with this new random technology.