frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Agent design is still hard

https://lucumr.pocoo.org/2025/11/21/agents-are-hard/
111•the_mitsuhiko•4h ago•44 comments

Personal blogs are back, should niche blogs be next?

https://disassociated.com/personal-blogs-back-niche-blogs-next/
444•gnabgib•16h ago•291 comments

Kodak ran a nuclear device in its basement for decades

https://www.popularmechanics.com/science/energy/a69147321/kodak-film-nuclear-reactor/
141•cainxinth•1w ago•55 comments

The twin probes just launched toward Mars have an Easter egg on board

https://arstechnica.com/space/2025/11/the-twin-probes-just-launched-toward-mars-have-an-easter-eg...
21•pseudolus•1w ago•8 comments

Helping Valve to power up Steam devices

https://www.igalia.com/2025/11/helpingvalve.html
686•TingPing•22h ago•240 comments

Samsung's 60% DRAM price hike signals a new phase of global memory tightening

https://www.buysellram.com/blog/samsungs-memory-price-surge-sends-shockwaves-through-the-global-d...
334•redohmy•1w ago•290 comments

The Connectivity Standards Alliance Announces Zigbee 4.0 and Suzi

https://csa-iot.org/newsroom/the-connectivity-standards-alliance-announces-zigbee-4-0-and-suzi-em...
80•paulatreides•3d ago•52 comments

Original Superman comic becomes the highest-priced comic book ever sold

https://www.bbc.com/news/articles/c8e9rp0knj6o
282•1659447091•10h ago•163 comments

Show HN: Wealthfolio 2.0- Open source investment tracker. Now Mobile and Docker

https://wealthfolio.app/?v=2.0
575•a-fadil•22h ago•186 comments

A looming 'insect apocalypse' could endanger global food supplies

https://www.livescience.com/animals/insects/a-looming-insect-apocalypse-could-endanger-global-foo...
12•Brajeshwar•35m ago•1 comments

Weight-sparse transformers have interpretable circuits [pdf]

https://cdn.openai.com/pdf/41df8f28-d4ef-43e9-aed2-823f9393e470/circuit-sparsity-paper.pdf
36•0x79de•1w ago•5 comments

Moss Survives 9 Months in Space Vacuum

https://scienceclock.com/moss-survives-9-months-in-space-vacuum/
112•ashishgupta2209•11h ago•46 comments

TiDAR: Think in Diffusion, Talk in Autoregression

https://arxiv.org/abs/2511.08923
24•internetguy•6d ago•3 comments

How I learned Vulkan and wrote a small game engine with it (2024)

https://edw.is/learning-vulkan/
132•jakogut•16h ago•73 comments

Sharper MRI scans may be on horizon thanks to new physics-based model

https://news.rice.edu/news/2025/sharper-mri-scans-may-be-horizon-thanks-new-physics-based-model
102•hhs•15h ago•26 comments

Concrete Shipbuilding – Argentina

https://thecretefleet.com/blog/f/concrete-shipbuilding-–-argentina
35•surprisetalk•5d ago•9 comments

We should all be using dependency cooldowns

https://blog.yossarian.net/2025/11/21/We-should-all-be-using-dependency-cooldowns
400•todsacerdoti•1d ago•238 comments

How to See the Dead

https://www.asimov.press/p/see-the-dead
3•mailyk•4d ago•0 comments

Event Sourcing in Go: From Zero to Production

https://skoredin.pro/blog/golang/event-sourcing-go
50•tdom•4d ago•39 comments

Discontinuation of ARM Notebook with Snapdragon X Elite SoC

https://www.tuxedocomputers.com/en/Discontinuation-of-ARM-notebooks-with-Snapdragon-X-Elite-SoC.t...
168•Venn1•19h ago•99 comments

Arduino Terms of Service and Privacy Policy update: setting the record straight

https://blog.arduino.cc/2025/11/21/the-arduino-terms-of-service-and-privacy-policy-update-setting...
69•manchoz•18h ago•61 comments

LAPD helicopter tracker with real-time operating costs

https://lapdhelicoptertracker.com/
185•polalavik•17h ago•212 comments

Childhood Friends, Not Moms, Shape Attachment Styles Most

https://nautil.us/childhood-friends-not-moms-shape-attachment-styles-most-1247316/
240•dnetesn•1w ago•79 comments

ADHD and monotropism (2023)

https://monotropism.org/adhd/
67•wonger_•4h ago•43 comments

You can make PS2 games in JavaScript

https://jslegenddev.substack.com/p/you-can-now-make-ps2-games-in-javascript
286•tosh•22h ago•71 comments

Is Matrix Multiplication Ugly?

https://mathenchant.wordpress.com/2025/11/21/is-matrix-multiplication-ugly/
114•jamespropp•17h ago•74 comments

An Interview with Unity CEO Matthew Bromberg About Turnarounds

https://stratechery.com/2025/an-interview-with-unity-ceo-matthew-bromberg-about-turnarounds/
27•feross•1w ago•20 comments

Pixar: The Early Days A never-before-seen 1996 interview

https://stevejobsarchive.com/stories/pixar-early-days
137•sanj•18h ago•9 comments

Self-hosting a NAT Gateway

https://www.awsistoohard.com/blog/self-hosting-nat-gateway
148•veryrealsid•4d ago•98 comments

Make product worse, get money

https://dynomight.net/worse/
132•zdw•1d ago•140 comments
Open in hackernews

Abusing DuckDB-WASM by making SQL draw 3D graphics (Sort Of)

https://www.hey.earth/posts/duckdb-doom
200•tanelpoder•7mo ago

Comments

mritchie712•7mo ago
This is a DuckDB feature that's incredibly hard for Snowflake (or anyone else) to copy. Running the same database client-side (WASM) and server-side can make for a pretty magical experience.

Queries that normally take 1s to 2s can run in 25ms, so you get under the "100ms rule" which is very uncommon in analytics applications.

We DuckDB server side and have experimental support for DuckDB WASM on the client-side at https://www.definite.app/ and sometimes I don't trust that a query ran because of how fast it can happen (we need some UX work there).

esafak•7mo ago
How does that work? Does the client clone the database at the beginning of the session and work with a shapshot? If so, do you automatically and periodically sync it?
randomtoast•7mo ago
With HTTP Range Requests, which is typically used for pausing and resuming large file downloads, to request specific byte ranges from the file. This allows you to retrieve only the data you need. With SQL indexes, the data returned will be minimal because the lookup is optimized. However, if you select *, you will still end up downloading the entire database.
jasonjmcghee•7mo ago
Parent comment isn't asking how data is requested from the back-end.

GP comment is (seemingly) describing keeping an entirely client side instance (data stored locally / in memory) snapshot of the back-end database.

Parent comment is asking how the two are kept in sync.

It's hard to believe it would be the method you're describing and take 25ms.

If you're doing http range requests, that suggests you're reading from a file which means object storage or disk.

I have to assume there is something getting triggered when back end is updating to tell the client to update their instance. (Which very well could just be telling it to execute some sql to get the new / updated information it needs)

Or the data is entirely in memory on the back end in an in memory duckdb instance with the latest data and just needs to retrieve it / return it from memory.

immibis•7mo ago
Doesn't that mean you have way more round-trips than necessary? Instead of asking for the row, you ask for the file header, the list of tables and indices, an index page, another index page, another index page, and a table page?
mritchie712•7mo ago
Yes, we're still fine-tuning exactly what we cache, but a simple example would be:

1. user writes a `select` statement that return 20k records. We cache the 20k.

2. user can now query the results of #1

we're also working on more complex cases (e.g. caching frequently used tables).

xnx•7mo ago
Impressive project, the subhead might attract even more attention: "Building a SQL-Powered Doom Clone in the Browser"
robertclaus•7mo ago
This is great! I did a similar project a while back to do image processing in a SQL database with pixels being individual records. It's amazing what SQL can do with the right table structures.
adornKey•7mo ago
Finally somebody did it! Back in the day my attempts to write a game in SQL were thwarted by buggy query-optimizers. They cached my calls to rand() way too often although documentation promised not to do that.
dspillett•7mo ago
> They cached my calls to rand() way too often although documentation promised not to do that.

For some DBs (SQL Server definitely), RAND() and similar are handled as if they are deterministic and so are called once per use. For instance:

    SELECT TOP 10 RAND() FROM sys.objects
    SELECT TOP 10 RAND() FROM sys.objects
just returned ten lots of 0.680862566387624 and ten lots of 0.157039657790194.

    SELECT TOP 10 RAND(), RAND(), RAND()-RAND() FROM sys.objects
returns a different value for each column (0.451758385842036 & 0.0652620609942665, -0.536618123021777), so the optimisation is per use not per statement or even per column (if it were per column that last value would be 0, or as close to as floating point arithmetic oddities allow).

This surprises a lot of people when they try “… ORDER BY RAND()” and get the same order on each run.

One workaround for this is to use a non-deterministic function like NEWID(), though you need some extra jiggery-pokery to get a 0≤v<1 value to mimic rand:

    SELECT TOP 10 CAST(CAST(CAST(NEWID() AS VARBINARY(4)) AS BIGINT) AS FLOAT)/(4.0*1024*1024*1024) FROM sys.objects
For the example of sorting, the outer cast is not needed. You might think just using “ORDER BY NEWID()” would be sufficient, but that is an undefined behaviour so you shouldn't rely upon it. It might work now, a quick test has just worked as expected here, but at any point the optimiser could decide it is more efficient to consider all UUIDs as having the same weight for sorting purposes.
nonethewiser•7mo ago
Given the first post in the blog says "not made by a [ROBOT EMOJI]", should I assume this one which does not have this message, is made by a [ROBOT EMOJI]?

https://www.hey.earth/posts

NitpickLawyer•7mo ago
I swear we're gonna start seeing disclaimers like "100% handcrafted code, our devs eat only grass-fed beef, free-range devops teams, specialty coffee sustained QA department, no IDEs, no intelisense, we code in notepad++" soon...
andhuman•7mo ago
100% organic!
bstsb•7mo ago
it's the footer at the bottom of all pages. it's also present on the blog pages
marcellus23•7mo ago
This one also has that same footer.
pjot•7mo ago
Ha! I made this. I’m not a robot either :)
enescakir•7mo ago
Like running Doom on a printer, but now it’s in the same engine powering your BI dashboards. Peak 2025 energy.
cess11•7mo ago
Nice project. Reminds me of one of my favourite demos, a MySQL raytracer:

https://www.pouet.net/prod.php?which=83222

datadrivenangel•7mo ago
Abusing databases is the way. I'm building a SQLite agent using triggers.
intalentive•7mo ago
I’ve been using triggers as FTS boilerplate for so long I didn’t pause to think that they’re just event listeners. Say more about your project..?
DANmode•7mo ago
What sort of agent?!
dkga•7mo ago
Very interesting!

You know it gets wild when you read "... Here's the core of the raycasting algorithm in SQL"!

gitroom•7mo ago
i think this is super wild honestly, cant believe sql is doing graphics now
karmakaze•7mo ago
I'd like to see something like this done in SpacetimeDB which was made specifically for game backends. I haven't looked into it yet, only seen the 1.0 announcement on HN and in my YT feed, and curious how its feature set makes this sort of thing easier or more natural.
pjot•7mo ago
Author here, wild to see this at the top of HN!

You can play it here: https://patricktrainer.github.io/duckdb-doom/

Pressing “L” enables (very) verbose logging in the dev console and prints much of the sql being executed.

r3tr0•7mo ago
We use duck db wasm to make live system performance dashboards based on eBPF.

It really is magic!

You can check it out here.

https://yeet.cx/play

dndn1•7mo ago
Neat UI, are you using a library for that?
r3tr0•7mo ago
nope. everything off shelf was too slow.
robertsdionne•7mo ago
https://x.com/geocucu_t/status/1909291486367166717
kevingadd•7mo ago
> But because tick() and render() involved async database calls, sometimes a new interval would fire before the previous one finished.

This is a tricky one when writing games using async APIs. The game I've been working on is written in C# but I occasionally hit the same issue when game code ends up needing async, where I have to carefully ensure that I don't kick off two asynchronous operations at once if they're going to interact with the same game state. In the old days all the APIs you're using would have been synchronous, but these days lots of libraries use async/await and/or promises and it kind of infects all the code around it.

It does depend on the sort of game you're building though. Some games end up naturally having a single 'main loop' you spend most of your time in, i.e. Doom where you spend all your time either navigating around the game world or looking at a pause/end-of-stage menu - in that case you can basically just have an is_menu_open bool in your update and draw routines, and if you load all your assets during your loading screen(s), nothing ever needs to be async.

Other games are more modal, and might have a dozen different menus/scenes (if not hundreds), i.e. something like Skyrim. And sometimes you have modals that can appear in multiple scenarios, like a settings menu, so you need to be able to start a modal loop in different contexts. You might have the player in a conversation with an NPC, and then during the conversation you show a popup menu asking them to choose what to say to the NPC, and they decide while the conversation menu is open they want to consult the conversation log, so you're opening a modal on top of a modal, and any modal might need to load some assets asynchronously before it appears...

In the old days you could solve a lot of this by starting a new main loop inside of the current one that would exit when the modal went away. Win32 modal dialogs work this way, for example (which can cause unpleasant re-entrant execution surprises if you trigger a modal in the wrong place). I'm still uncertain whether async/await is a good modern replacement for it.

vd2287•7mo ago
I'm a bit new to this stuff, but SQL and 3D GRAPHICS???
zxilly•7mo ago
You can use requestAnimationFrame to prevent race in the renderer