Readit News logoReadit News
kreelman commented on Benchmarks for Golang SQLite Drivers   github.com/cvilsmeier/go-... · Posted by u/cvilsmeier
Twirrim · 3 days ago
It's wild to me that stdin/stdout is apparently significantly faster than using the API in so many cases.

That's the kind of result that makes me wonder if there is something odd with the benchmarking.

kreelman · 3 days ago
That's an interesting thought. I wonder.

I wonder if the following things make the C driven version slower...

- prepare the send buffers (sqlite side)

- prepare the receive buffers (go side)

- do the call

- get the received data into go buffers of some kind

- free up the send buffers (happens automatically)

- free up the receive buffers (semi automatically in Go).

When using stdin/stdout, the system looks after send/receive buffers. It's simply reading/writing them. No allocation is needed. The stream can be as big or as little as wanted/needed. The OS will look after the integrity of the streams and these are probably fairly well tested subsystems on most operating systems.

stdin/stdout becomes a "library" for "fast data transfer".

Pretty neat.

kreelman commented on Benchmarks for Golang SQLite Drivers   github.com/cvilsmeier/go-... · Posted by u/cvilsmeier
Mawr · 3 days ago
Nit: "For benchmarks I used the following libraries: <snip>". This is begging to be a table.
kreelman · 3 days ago
You could do the edit for him and create a pull request. I did that for a really small mistake in the README.md of sqinn.

I see what you mean, there are some categories there (cGO based or not) that lend themselves to quick understanding via a table.

kreelman commented on Litestar is worth a look   b-list.org/weblog/2025/au... · Posted by u/todsacerdoti
rmonvfer · 19 days ago
Thank you for writing this, I've been building a large backend with FastAPI for the last year or so and I've gone through all the levels of the purgatory.

I began using the standard "tutorial" style and started cringing when I saw the official template [1] place all CRUD operations in a single file (I've been doing Rails and Spring for a while before) and the way dependencies where managed... let's just say I wasn't feeling very comfortable.

Then came the SQLModel problems. The author pushes it very hard in the FastAPI docs (which imho are terrible because when I'm looking for docs I want that, documentation, not a fancy tutorial) but as an ORM (yes I know its a layer on top of SQLAlchemy) it doesn't even support polymorphic models and the community even has contributed PRs that have gone months without any review (is it even maintained anymore? I honestly can't tell).

I guess I'm the only one to blame for choosing FastAPI to build a big project but after having used it quite a lot (and also read its code because again, docs are extremely poor) I wouldn't recommend it for anything serious. Sure, if you want to build a quick CRUD then go ahead and use SQLModel and FastAPI, but keep in mind that its not built for complex applications (at least not without requiring you to write a framework on top, like I've unfortunately done).

So yeah, a big thank you to the author of this post because I will migrate to Litestar as soon as I wake up tomorrow.

kreelman · 18 days ago
I'm starting out with API style apps. This post was great since it covered several architectural and tool points I'd not thought of.

I think I'll use LiteStar for my app now too.

Thanks for your good comment and I 2nd your thanks to the author.

kreelman commented on The Rickover Corpus: A digital archive of Admiral Rickover's speeches and memos   rickovercorpus.org/... · Posted by u/stmw
kreelman · 23 days ago
Ah, the "Kindly Old Gentleman"...

Though a very difficult man to get on with... He did champion the correct building of the first nuclear subs.

kreelman commented on SIOF (Scheme in One File) – A Minimal R7RS Scheme System   github.com/false-schemers... · Posted by u/gjvc
kreelman · a month ago
Nice. Thanks for putting this together!!
kreelman commented on Show HN: Reviving a 20 year old OS X App   andrewshaw.nl/blog/revivi... · Posted by u/shawa_a_a
kreelman · a month ago
I love the early web feel of the site. The points around DuoLingo not working are informative. This could be turned into a PWA so it can run anywhere?

Dead Comment

kreelman commented on I made a chair   milofultz.com/2025-05-27-... · Posted by u/surprisetalk
wonger_ · 3 months ago
kreelman · 3 months ago
Thanks for that! I like that hardware is getting covered on HN :-)

u/kreelman

KarmaCake day201March 23, 2017View Original