What does HackerNews think of wasmer-postgres?

💽🕸 Postgres library to run WebAssembly binaries.

Language: Rust

#22 in PostgreSQL
#32 in PostgreSQL
Supabase didn't do Postgres WASM first, wasmer did FYI (3 years ago)

https://github.com/wasmerio/wasmer-postgres

I believe the team at Wasmer have worked on something like this:

https://github.com/wasmerio/wasmer-postgres

It only works for PG10, but I can't imagine it will take much effort to bring it up to the latest version

> Please don't tell me that someone compiled Postgresql to WASM.

I don't believe that nobody has ever done this... And google delivers: https://github.com/wasmerio/wasmer-postgres

Technically, it can be integrated with Postgres with https://github.com/wasmerio/wasmer-postgres. That said, it makes little sense to integrate this at the database level since it'll bloat up the column size, unless just the encrypted integer is stored (without converting to a base58 string).

As for collisions, a hash function maps an input of any length to an output of fixed length, so collisions will happen eventually. What I'm using is encryption, which cannot collide, otherwise decryption would be impossible https://crypto.stackexchange.com/questions/60473/can-collisi...