Conversation

I wonder how hard it would be to make a dynamically typed, interpreted, garbage-collected language with Rust syntax and then give it full interop with Rust
4
9
Like, my dream is a gradually typed language where typed code gets efficient binary packing. For awhile I've been imagining one gets this by taking something like TypeScript and compiling classes into structs.
4
11
i daydreamed about this with sylph but never really got anywhere because handling the boundary seemed like a nightmare, and if you accidentally crossed the boundary a lot (which would surely be the whole point) you'd probably end up slower than just using one or the other
2
yeah i was chatting with someone who was working on optional type annotations for some normally untyped lang (python?), and they were like "right now adding types makes everything slower because it creates tons of dynamic assertions at the boundary"
1
2
(based on gradual type researchy folk in my feed this is basically the #1 research focus in their field (or at worst #2 if I'm forgetting something) so yeah. apparently it's fundamentally hard)
3
3