3 ms·
As the author of the default bc in macOS and FreeBSD, good luck. Also, while mine is in C, I have tried very hard to eliminate all memory safety bugs, and I th
by gavinhoward 2y ago
As the author of the default bc in macOS and FreeBSD, good luck.
Also, while mine is in C, I have tried very hard to eliminate all memory safety bugs, and I think I have done pretty well.
https://git.gavinhoward.com/gavin/bc/ https://git.gavinhoward.com/gavin/bc/
- c0wb0yc0d3r 2y ago> good luck. Do you see this as an unexpectedly challenging task? If so, what do you think makes it challenging?
- gavinhoward 2y agoNot terribly challenging, but harder than expected. The reason: parsing. The bc language is poorly designed for a REPL, which it needs to handle. I got sick of fixing parse bugs, though, and my source code got a sarcastic comment: https://git.gavinhoward.com/gavin/bc/src/commit/4b83bf07b97f65b53ffa53f37737b1ddce42dcde/src/bc_parse.c#L49 https://git.gavinhoward.com/gavin/bc/src/commit/4b83bf07b97f...
- jgarzik 2y agoAmazing work. Thanks and kudos. I definitely tested some early stuff vs your bc.