frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

QueryLeaf: SQL for Mongo

https://github.com/beekeeper-studio/queryleaf
23•tilt•9mo ago

Comments

ttfkam•9mo ago
Would much rather have "Mongo" for SQL like this:

https://github.com/microsoft/documentdb

I am skeptical that SQL with Mongo backing it would be at all performant except in the most trivial cases. On the flip side, Postgres's jsonb indexing makes the inverse very doable.

Zambyte•9mo ago
https://www.ferretdb.com/
VWWHFSfQ•9mo ago
We're seeing a convergence of document DBs adding relational features, and relational DBs adding document features. At this point I find the best of both worlds to simply be PG with JSONB.

    create table document (
      id uuid primary key default gen_random_uuid(),
      doc jsonb
    );

This alone will give you a huge number of the features that Mongo provides, but also the full power of Postgres for everything else.
victor106•9mo ago
this makes so much sense.

I also wonder if there are some specific capabilities of MongoDB that this pattern does not support?

etse•9mo ago
Maybe not capabilities, but I'm wondering if Postgres has gotten any easier to scale horizontally. The administrative overhead of scaling and maintenance with MongoDB seemed lower to Postgres to me.

Would love to hear from others with more Postgres than I.

ttfkam•9mo ago
Excluding conversations about MongoDB compatibility, PG16 added bidirectional replication for multiple writers and there are Postgres-compatible options out there for a distributed database including Citus, EDB Postgres Distributed, Yugabyte, CockroachDB, Aurora Limitless, etc.

The choices require some nuance to figure out a best fit, but then again so does any MongoDB installation (despite the marketing hype to the contrary as there are no free lunches).

You might be surprised how far most folks can typically scale with just read replica(s) on a reasonably sized writer. Add in bidirectional replication for multiple writers, and you can go even further. Beyond that, even vanilla Postgres can do it, but you'll need to do some combinations of partitioning and foreign tables.

zareith•9mo ago
Curious if there is something similar that works with sqlite.
maxbond•9mo ago
As of 3.38 (or 3.45 if you meant a binary JSON structure specifically) https://sqlite.org/json1.html
zareith•9mo ago
We can use json type, but the dx around directly using that is not comparable to mongodb. Which is why I was looking for a similar abstraction.
aleksi•9mo ago
There is FerretDB v1, which provides MongoDB protocol for SQLite. See https://github.com/FerretDB/FerretDB/tree/main-v1
zareith•9mo ago
They seemed to have moved away from that.

From https://docs.ferretdb.io/migration/migrating-from-v1

> Unlike v1.x that provides options for PostgreSQL and SQLite as backend, FerretDB v2.x requires a PostgreSQL with DocumentDB extension as the backend

aleksi•9mo ago
FerretDB v2 is built on top of this extension. See https://github.com/FerretDB/FerretDB
gavinray•9mo ago
It's somewhat of a secret, but AWS's JDBC driver for DocumentDB supports Mongo as well

Let's you interact with Mongo as if it were a regular SQL JDBC database

https://github.com/aws/amazon-documentdb-jdbc-driver

bdcravens•9mo ago
That driver is read-only
gitroom•9mo ago
Honestly, putting Mongo and SQL together always confuses me a bit. I'm way more comfy with Postgres and jsonb. Anyone else feel like scaling Postgres is still kinda a pain?
sparky_•9mo ago
I can appreciate the technical aspect of a translation layer, but I struggle to understand the use case for a tool like this. If your data is inherently relational, then you should be using a relational store anyway. And if it isn't, trying to hammer it on-demand into something that looks relational is going to eat you with performance implications. Unless I'm missing something.

Claude’s C Compiler vs. GCC

https://harshanu.space/en/tech/ccc-vs-gcc/
62•unchar1•1h ago•14 comments

Art of Roads in Games

https://sandboxspirit.com/blog/art-of-roads-in-games/
165•linolevan•9h ago•53 comments

Vouch

https://github.com/mitchellh/vouch
742•chwtutha•1d ago•336 comments

TSMC to make advanced AI semiconductors in Japan

https://apnews.com/article/semiconductors-tsmc-japan-taiwan-ai-11256f2bfde73ca23d08331ad138d6d5
53•dev_tty01•1h ago•18 comments

Reverse Engineering the Prom for the SGI O2

https://mattst88.com/blog/2026/02/08/Reverse_Engineering_the_PROM_for_the_SGI_O2/
77•mattst88•7h ago•16 comments

Custom Firmware for the MZ-RH1 – Ready for Testing

https://sir68k.re/posts/rh1-firmware-available/
26•jimbauwens•4d ago•5 comments

Show HN: A custom font that displays Cistercian numerals using ligatures

https://bobbiec.github.io/cistercian-font.html
55•bobbiechen•7h ago•6 comments

Apple XNU: Clutch Scheduler

https://github.com/apple-oss-distributions/xnu/blob/main/doc/scheduler/sched_clutch_edge.md
123•tosh•9h ago•23 comments

Every book recommended on the Odd Lots Discord

https://odd-lots-books.netlify.app/
66•muggermuch•6h ago•19 comments

Quartz crystals

https://www.pa3fwm.nl/technotes/tn13a.html
55•gtsnexp•21h ago•11 comments

More Mac malware from Google search

https://eclecticlight.co/2026/01/30/more-malware-from-google-search/
139•kristianp•9h ago•95 comments

Cooking with glasses

https://macwright.com/2025/09/21/cooking-with-glasses
15•surprisetalk•3d ago•2 comments

Stop Generating, Start Thinking

https://localghost.dev/blog/stop-generating-start-thinking/
92•frizlab•8h ago•40 comments

Ask HN: What are you working on? (February 2026)

115•david927•10h ago•358 comments

Show HN: I created a Mars colony RPG based on Kim Stanley Robinson’s Mars books

https://underhillgame.com/
177•ariaalam•12h ago•57 comments

Roundcube Webmail: SVG feImage bypasses image blocking to track email opens

https://nullcathedral.com/posts/2026-02-08-roundcube-svg-feimage-remote-image-bypass/
122•nullcathedral•11h ago•35 comments

AI makes the easy part easier and the hard part harder

https://www.blundergoat.com/articles/ai-makes-the-easy-part-easier-and-the-hard-part-harder
227•weaksauce•6h ago•180 comments

The Little Bool of Doom (2025)

https://blog.svgames.pl/article/the-little-bool-of-doom
92•pocksuppet•12h ago•31 comments

Toma (YC W24) Is Hiring Founding Engineers

https://www.ycombinator.com/companies/toma/jobs/oONUnCf-founding-engineer-ai-products
1•anthonykrivonos•7h ago

Shifts in U.S. Social Media Use, 2020–2024: Decline, Fragmentation, Polarization (2025)

https://arxiv.org/abs/2510.25417
167•vinnyglennon•8h ago•154 comments

LispE: Lisp Interpreter with Pattern Programming and Lazy Evaluation

https://github.com/naver/lispe
4•PaulHoule•4d ago•0 comments

Experts Have World Models. LLMs Have Word Models

https://www.latent.space/p/adversarial-reasoning
65•aaronng91•11h ago•81 comments

Running Your Own As: BGP on FreeBSD with FRR, GRE Tunnels, and Policy Routing

https://blog.hofstede.it/running-your-own-as-bgp-on-freebsd-with-frr-gre-tunnels-and-policy-routing/
161•todsacerdoti•16h ago•63 comments

A GTA modder has got the 1997 original working on modern PCs and Steam Deck

https://gtaforums.com/topic/986492-grand-theft-auto-ready2play-full-game-windows-version/
162•HelloUsername•9h ago•74 comments

Show HN: Slack CLI for Agents

https://github.com/stablyai/agent-slack
71•nwparker•3d ago•15 comments

Dave Farber has died

https://lists.nanog.org/archives/list/nanog@lists.nanog.org/thread/TSNPJVFH4DKLINIKSMRIIVNHDG5XKJCM/
234•vitplister•18h ago•37 comments

GitHub Agentic Workflows

https://github.github.io/gh-aw/
233•mooreds•16h ago•116 comments

A tough labor market for white-collar workers has turned recruiting upside down

https://www.wsj.com/lifestyle/careers/job-hunters-are-so-desperate-that-theyre-paying-to-get-recr...
9•KnuthIsGod•44m ago•1 comments

Exploiting signed bootloaders to circumvent UEFI Secure Boot (2019)

https://habr.com/en/articles/446238/
114•todsacerdoti•15h ago•65 comments

OpenClaw is changing my life

https://reorx.com/blog/openclaw-is-changing-my-life/
271•novoreorx•23h ago•438 comments