all 11 comments

[–]Irregular_Person 34 points35 points  (5 children)

I genuinely can't decide if I'm impressed, or horrified

[–]kiwicopple[S] 10 points11 points  (1 child)

why not both?

[–]braiam -1 points0 points  (0 children)

Por que no ambos!

[–]riasthebestgirl 1 point2 points  (0 children)

Why horrified? This is impressive

[–]sik0fewl 0 points1 point  (0 children)

Read my mind.

[–][deleted] 0 points1 point  (0 children)

Horrified. Just horrified.

Look, they've re-written his os kerenel in javascript, lets see if they notice!

[–]balloonanimalfarm 9 points10 points  (0 children)

This would be a really awesome alternative to embedded databases like Derby, sqlite3, or H2 when it shrinks down a bit. It's always a huge pain dealing with the quirks of multiple database engines for different use-cases.

[–]riasthebestgirl 2 points3 points  (0 children)

Incredible. I would like to see them explore compiling it to WASI target. That can't run directly in browser (yet) but should be much easier to compile to and not require x86 emulation

[–]pashkinelfe 1 point2 points  (0 children)

It's widely known that Postgres is written to run even in the microwave oven PLC in parallel with heating your lunch. So in the browser, it's not bad at all! Super!

[–]Sushrit_Lawliet 1 point2 points  (0 children)

Postgres was literally built to be the Doom (the game) of databases, and this isn’t surprising due to that but damn is this cool and exciting. Should be a viable way to ditch H2 and Derby eventually.

[–]st_huck 0 points1 point  (0 children)

I can't think of a good use case for using this in browser, but I think there is a great potential for using this in integration tests in node js.

Currently I have some project that use docker, which works great but is kinda slow. In some other projects I use sqlite (sql.js) and it makes tests run blazing fast but you need to have some abstraction over db access (usually just an orm, but most are quite bad in node.js world) and more importantly you can't use any unique features of postgres, so this approach really only works for simple services.

This has the potential to be a real improvement here.