Daily Thought - 2024-04-26
Hey, I'm Hanno! These are my daily thoughts on Crosscut, the programming language I'm creating. If you have any questions, comments, or feedback, please get in touch!
This thought was published before Crosscut was called Crosscut! If it refers to "Caterpillar", that is the old name, just so you know.
My primary language for the last 10+ years has been Rust, which has zero-cost abstractions (I prefer the term "zero-overhead"). An abstraction is zero-cost (or zero-overhead), if you couldn't implement it any faster "by hand", and if it doesn't impose a performance cost on code that doesn't use it.
While I rarely, if ever, use Rust to its full potential in terms of performance, I very much appreciate that concept. It ensures that the language can be used in many different environments. Heavier abstractions, like garbage collection, can rule out many microcontroller or WebAssembly use cases, for example.
It is unlikely that Caterpillar will support as diverse a set of use cases as Rust does. But I don't want to make design decisions that rule out whole classes of those outright. And for that reason, I absolutely want to implement the concept of zero-overhead abstractions in Caterpillar.
Hey, you! Want to subscribe to my daily thoughts? Just let me know (maybe include a nice message, if you're up for it), and I'll send you an email whenever I post a new one.