Better HN
topnewbestaskshowjobs
Log inSign up

bietroi

24 karma · joined Aug 4, 2023 (3y ago) · 9 submissions

Submissions

1.

Show HN: Typegraph – type-level graphs of Rust types(github.com ↗)

1 points · by bietroi · 1y ago · discuss

comment 1y ago · link · parent

Oh, that's pretty funny actually.

In retrospect, if I cared about getting peoples' attention I should have mentioned something about "static reflection", or positioned this as more of a direct "threat" to macro expansion (and made it opt-in instead of opt-out, I forgot how frightened people are by any new ability to infer things).

I'm just a coder, not an influencer, though I do have one additional change in mind which borders on sensationalism.

3.

Show HN: Inception: Automatic Rust Trait Implementation by Induction(github.com ↗)

10 points · by bietroi · 1y ago · 2 comments

comment 1y ago · link · parent

It's cool to see that others have explored some of these concepts more generally, thanks for the links!

The glowstick shape is also a type-level list of integers, and I could definitely see how other shapes might be useful in different situations.

Doing this sort of thing in Rust is a bit of a stretch for sure, but it makes the outcome easy to apply which is nice.

comment 1y ago · link · parent

Glowstick just provides the shape types and associated traits as a layer you can put on top of another tensor implementation. Since it's just verifying shapes and forwarding the operations to the underlying tensor (e.g. from candle/burn), I don't think there's any great way to get performance benefits from these integrations. It's mainly about the developer experience- getting errors at compile time vs runtime, checking shapes, etc.

That being said, it seems reasonable that you could make some optimizations like this if you had deeper integration of these types with a framework or similar. It's not something I've explored personally, sounds interesting though.

6.

Show HN: Glowstick – type level tensor shapes in stable rust(github.com ↗)

53 points · by bietroi · 1y ago · 5 comments

7.

Show HN: I made a web app for language learners using Rust->WASM->Canvas(synchrotales.com ↗)

2 points · by bietroi · 3y ago · discuss