Better HN
topnewbestaskshowjobs
Log inSign up

nlz

9 karma · joined Mar 18, 2021 (5y ago) · 7 submissions

tkmx.odio.dev/u/nevzheng
Submissions

comment 6mo ago · link · parent

Hi! I'm building a database for fun, and I wanted to share how I bootstrapped my sql engine catalog on top of my storage engine.

2.

Bootstrapping a SQL catalog on a flat key-value store(n8z.dev ↗)

4 points · by nlz · 6mo ago · 1 comment

comment 8mo ago · link · parent

Yes! This is a great idea. Thanks for mentioning it! GlueSQL could be another cool target too (https://github.com/gluesql/gluesql). I think there's a fun exploration in taking a storage engine and seeing if it's compatible with different SQL layers — GlueSQL as a simpler starting point, DataFusion as the more complete option (https://github.com/apache/datafusion). Plugging into a real SQL engine seems like a great strategy for uncovering bugs, fixing correctness issues, and discovering what use cases the storage layer actually needs to support. It's also interesting how certain SQL engines and storage engines tend to align well with each other — the right pairing can unlock a lot. Definitely a direction I want to explore.

4.

Show HN: I built an LSM storage engine from scratch in Rust(n8z.dev ↗)

3 points · by nlz · 8mo ago · 2 comments

comment 9mo ago · link · parent

Great point — the causal vs mechanical distinction is a cleaner way to put it than what I wrote. Context chains preserve application-specific, causal information about what you were trying to do. Stack traces just tell you where code happened to be executing. That gap gets huge with async, where the mechanical stack is basically noise.

comment 9mo ago · link · parent

Author here. I've been working with Rust more recently, and thinking through its error handling ecosystem led me down a rabbit hole comparing it to what I'd used before — C, Go, exceptions, and Google's Absl Status. The post ended up being a broader survey of error handling principles across languages and organizations than I originally planned. Looking forward to input — I'd love to hear what your experiences with error handling have been like, especially across different languages or at scale.

7.

Ow My Foot – Error Handling Across C, Go, Rust, and Google's Absl(n8z.dev ↗)

17 points · by nlz · 9mo ago · 6 comments