3 ms·
Glad you like them, one of the most underrated abstractions in software if you ask me. Floats are just plain evil for most use cases. I spent 13 years maintaini
by codr7 7y ago
Glad you like them, one of the most underrated abstractions in software if you ask me. Floats are just plain evil for most use cases. I spent 13 years maintaining a 2Mloc accounting system written using an exotic mix of float types and layers upon layers of failed attempts to control the resulting rounding chaos.
Agreed, same is true of many general purpose languages. One advantage is a stronger compiler with more static guarantees than Python that produces significantly faster code.
What is gained from restricting the use case is simplification of syntax and semantics. Once you don't have to cover all bases any more, you don't have to make as many compromises. I'm barely getting started here, once I get around to defining functions/equations/integrals etc. it will become more obvious.
Easier embedding/integration is another good reason. Let's say you need to evaluate formulas in some application. Adding Python as a build dependency is serious business and writing your own means reinventing a lot of infrastructure along the way.
Finally, building on top of cidk [0] means smooth integration with any language targeting the same framework. The calc opcode mentioned in the README is a good example.
[0] https://github.com/codr7/cidk https://github.com/codr7/cidk