frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

OpenAI model for masking personally identifiable information (PII) in text

https://openai.com/index/introducing-openai-privacy-filter/
1•tanelpoder•3m ago•0 comments

Tesla (TSLA) pulled questionable levers to make Q1 2026 financials look good

https://electrek.co/2026/04/22/tesla-tsla-q1-2026-one-time-benefits-warranty-tariff-refunds-margins/
1•pinewurst•7m ago•0 comments

Tesla becomes first customer for Intel's advanced 14A chip technology

https://www.reuters.com/business/autos-transportation/tesla-ceo-musk-says-company-plans-use-intel...
1•osnium123•8m ago•1 comments

Solo Dev Product Lunch (Laigo v1.0.0

https://laigo-frontend.onrender.com/
1•GrantBricks•10m ago•1 comments

Framework Announces Laptop 13 Pro, 'The MacBook Pro for Linux Users'

https://www.theverge.com/gadgets/915508/framework-announces-laptop-13-pro-the-macbook-pro-for-lin...
1•ravenical•11m ago•1 comments

Show HN: Pg_dbml – A dependency-free CLI to export Postgres to DBML

https://pg_dbml.80.cz/
1•heptau•12m ago•0 comments

Framework Laptop 13 Pro (back compatible, touch screen, double the battery life)

https://frame.work/pl/en/laptop13pro
1•piadista•14m ago•2 comments

US admiral calls Bitcoin an instrument for US 'power projection'

https://www.tradingview.com/news/cointelegraph:fd4c50ad7094b:0-us-admiral-calls-bitcoin-an-instru...
1•wslh•15m ago•0 comments

Tesla basically cooked the books to show one last quarter of positive cash flow

https://twitter.com/FredLambert/status/2047089101460099581
2•doener•17m ago•0 comments

Show HN: Cymatica – Chladni Plate Simulator

https://apps.apple.com/us/app/cymatica-music-visualizer/id6748863721
1•_august•18m ago•0 comments

A More Troubling Picture of Sea Level Rise Comes into View

https://undark.org/2026/04/22/sea-level-land-subsidence/
2•EA-3167•20m ago•0 comments

Wrist Assured: A Swatch Lover's Blog

https://wristassured.substack.com/
1•raeroumeliotis•26m ago•0 comments

Building Medichat.in

https://rittam.substack.com/p/building-medichatin
1•rdebnath•26m ago•0 comments

India has splurged billions on metro trains. But where are the commuters?

https://www.bbc.com/news/articles/c4g833128vlo
2•thunderbong•27m ago•0 comments

8000 profiles on the Portland Startups Slack

https://siliconflorist.com/2026/04/22/small-wins-8000-profiles-on-the-portland-startups-slack/
1•mooreds•29m ago•0 comments

How Much Caffeine in Coffee Cup?

https://www.researchgate.net/publication/317824932_How_Much_Caffeine_in_Coffee_Cup_Effects_of_Pro...
2•rzk•29m ago•0 comments

Approximating Hyperbolic Tangent

https://jtomschroeder.com/blog/approximating-tanh/
6•jtomschroeder•31m ago•0 comments

Ask HN: Is modern AI like glasses for the mind?

1•amichail•32m ago•1 comments

Rediscovering the Handcart

https://solar.lowtechmagazine.com/2026/04/rediscovering-the-handcart/
1•bergie•33m ago•0 comments

Electrostatics

https://en.wikipedia.org/wiki/Electrostatics
1•zdgeier•33m ago•0 comments

Show HN: DeckWeaver – Create AI-powered Google Slides presentations in minutes

https://usedeckweaver.com/login
1•BjoernKW•34m ago•0 comments

Ask HN: Favourite Assembly Instructions?

2•RetroTechie•34m ago•2 comments

Humanoid robots race past humans in Beijing half-marathon,showing rapid advances

https://www.reuters.com/sports/humanoid-robots-race-past-humans-beijing-half-marathon-showing-rap...
2•teleforce•39m ago•1 comments

Musk Defrauded Tesla Customers

https://twitter.com/RealDanODowd/status/2047076407705264227
4•doener•43m ago•0 comments

How to Stop a Data Center in Your Backyard

https://lataco.com/stop-sgv-data-center-building
18•cdrnsf•46m ago•10 comments

Show HN: Bro Skills – address the daily gaps your agents still struggle with

https://github.com/backnotprop/bro-skills
1•ramoz•47m ago•0 comments

Metrics SQL: A SQL-based semantic layer for humans and agents

https://www.rilldata.com/blog/introducing-metrics-sql-a-sql-based-semantic-layer-for-humans-and-a...
1•teleforce•48m ago•0 comments

Show HN: Ecstatic Dance Aggregator for worldwide wellness events

https://ecstatic.events
1•kinnth•49m ago•0 comments

Mars or the Moon or A.I.? Elon Musk's Changing Goals for SpaceX

https://www.nytimes.com/2026/04/22/technology/elon-musk-spacex-ipo-goals.html
1•doener•49m ago•1 comments

A good AGENTS.md is a model upgrade. A bad one is worse than no docs at all

https://www.augmentcode.com/blog/how-to-write-good-agents-dot-md-files
2•knes•54m ago•0 comments
Open in hackernews

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

https://www.hey.earth/posts/duckdb-doom
200•tanelpoder•1y ago

Comments

mritchie712•1y 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•1y 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•1y 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•1y 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•1y 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•1y 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•1y ago
Impressive project, the subhead might attract even more attention: "Building a SQL-Powered Doom Clone in the Browser"
robertclaus•1y 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•1y 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•1y 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•1y 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•1y 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•1y ago
100% organic!
bstsb•1y ago
it's the footer at the bottom of all pages. it's also present on the blog pages
marcellus23•1y ago
This one also has that same footer.
pjot•1y ago
Ha! I made this. I’m not a robot either :)
enescakir•1y ago
Like running Doom on a printer, but now it’s in the same engine powering your BI dashboards. Peak 2025 energy.
cess11•1y ago
Nice project. Reminds me of one of my favourite demos, a MySQL raytracer:

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

datadrivenangel•1y ago
Abusing databases is the way. I'm building a SQLite agent using triggers.
intalentive•1y 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•12mo ago
What sort of agent?!
dkga•1y ago
Very interesting!

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

gitroom•1y ago
i think this is super wild honestly, cant believe sql is doing graphics now
karmakaze•1y 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•1y 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•1y 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•1y ago
Neat UI, are you using a library for that?
r3tr0•1y ago
nope. everything off shelf was too slow.
robertsdionne•1y ago
https://x.com/geocucu_t/status/1909291486367166717
kevingadd•1y 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•1y ago
I'm a bit new to this stuff, but SQL and 3D GRAPHICS???
zxilly•12mo ago
You can use requestAnimationFrame to prevent race in the renderer