Hacker Newsnew | past | comments | ask | show | jobs | submit | brandonpollack2's commentslogin

I haven't read it yet. The answer is no.

This gist is something i threw together really quick (with the help of an agent to save me thinking). It fetches/caches for some configurable amount of time the top 30 hacker news stories and lets you display a random one. I have it as my motd when i open a shell.

Thanks for your kind words. I think the product is great and I do really like it, I just couldn't resist the urge to pick at it and ground it.


I recently saw the same video and decided to do an analysis of their crazy results, take a look https://news.ycombinator.com/item?id=47148920


Recently clockwork labs put out this great marketing video launching spacetimedb 2.0. It was seriously impressive so I took a closer look at their bench and results.

TLDR It felt a little dishonest due to using different clients, protocols, concurrency, etc in the benchmarks but I'd love for someone to come explain how foolish and wrong I am.


I really like the idea of gleam but I don't want to hand implement serialization for every type (even with an LSP action) in 2026.


Biggest issue with this language. But... fairly trivial to implement codegen with gleam/glance[0]. No good libraries do this well right now (e.g. support for discriminated unions).

[0] https://hexdocs.pm/glance/glance.html


Indeed. Gleam is a sort-of mix between Elixir and Rust, yet you don't have to explicitly implement serialization for either of them.

It's definitely something they should figure out.


I rarely serialise every type in my gleam code, My quick back of the napkin math is less than 5%.


But 100 percent of projects writing the same stuff


I don't think anyone is serializing exactly the same stuff that i'm doing.


Dart has the same glaring issue (yes, yes, you can use a codegen library but it's not the same).


If only there was a typed language that didn't hand wave serialization


I don't think we'll ever do better than 'IO is made out of bytes'.


Like Java?


This isn't about being good this about friendship


Live on twitch today


I was trying to get this working in a rust ecosystem some time ago but none of the blessed.rs sql (rusqlite, sqlx) wrappers seem to take advantage of it yet and wrapping it yourself is a bit tricky since when I was trying I couldn't figure out a way to to get emscripten wasm code to play nice with wasm32-unknown-unknown without some kind of JS wrapper which then requires implementing the interface those crates expect and exposing it from JS. Once that is done in rust itll be great there too!


I have been working on one. If you're interested in working on it or contributing, feel free to chime in here:

https://github.com/rhashimoto/wa-sqlite/discussions/154

This essentially requires that we import the sqlite emscripten build via an extern C header in wasm bindgen, and then we need to re-implement the VFS in rust while compiling it in multi-threaded mode to allow for shared array buffer access. After that is all done, we will be able to access SQLite rows as raw wasm bytes. That gives us the ability to implement a rust-sqlite style wrapper or integration. There would still not be some of the niceties such as connection pooling, but in wasm you likely want to use the db in exclusive mode.


Got this SQLite build working with rusts diesel sqlite here: https://github.com/xmtp/diesel-wasm-sqlite

I'm gearing up for a 0.2 release this week which should iron out a few kinks, but otherwise you can use the diesel ORM as if its native


> I couldn't figure out a way to to get emscripten wasm code to play nice with wasm32-unknown-unknown

There is good news there, some people plan to get Emscripten and Rust to work well together in Wasm:

https://github.com/rustwasm/wasm-bindgen/pull/4014#issuecomm...


Yeah I’ve been waiting awhile for this myself. A few PRs with work pending for a year or so. I’ve seen some proof of concepts but nothing anywhere close to usable.


you should check out https://github.com/xmtp/diesel-wasm-sqlite

reliable so far, being dogfooded in production as we speak


Sorry just saw this. Looks promising, I love diesel! Haven’t looked at the landscape in a few months and don’t work on the project that needed it anymore but very cool to see. Even uses OPFS!


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: