https://github.com/FBMachine/bon/blob/auto_mem/docs/ch02-01-...
Thanks for all of the feedback!
49 karma · joined January 23, 2019
https://github.com/FBMachine/bon/blob/auto_mem/docs/ch02-01-...
Thanks for all of the feedback!
[0] https://github.com/FBMachine/bon/blob/master/examples/equali...
[1] https://github.com/FBMachine/bon/blob/master/examples/multip...
This was purely for simplicity (they can be implemented in a couple of lines of code with algebraic data types). Simplicity of implementation is certainly not my priority, just a short term drive, so it will be revisited in the near future.
Thanks!
That's a fair comment. I will say however that the references to performance are more an attempt to keep it in mind from the beginning, rather than being an assertion at this point. I only began working on it shortly after my mom passed away last month (it's dedicated and named after her), so at this stage I'm mostly goal setting and rapidly prototyping.
I hope you can take time to give it another look when its further along. Thanks!
Memory will be garbage collected, though I am aiming for zero-cost as much as possible. At the moment it just leaks memory like a sieve as I work out the semantics.
You can indeed import standard c library calls by using a cdef. You can find examples in the stdlib, e.g.:
cdef sqrt(x:float) -> float
Thanks again for taking a look!