3 ms·
This is cool, someone should port this to bash, which also only supports integers. Then I can use it as a benchmark for https://www.oilshell.org https://www.oi
by chubot 6y ago
This is cool, someone should port this to bash, which also only supports integers.
Then I can use it as a benchmark for https://www.oilshell.org https://www.oilshell.org :)
Also bash can do the multicore part very easily with processes, like cmake.
- gumby 6y ago> This is cool, someone should port this to bash, which also only supports integers. With a little bitfield support (you could always call out to dc but you can do boolean arithmetic directly in bash) you can simply implement IEEE 754 in bash.
- chubot 6y agoYeah bash has 64 bit signed integers and bitwise ops on them. I'd be interested in seeing a floating point implementation. I think it would be pretty much identical to an implementation in C with signed long. echo $(( 2**63 | 1 )) -9223372036854775807
- nrdvana 6y agoFeel free to use my bash 3d geometry library https://github.com/nrdvana/CmdlineGL/blob/master/share/lib-bash/Geom.lib https://github.com/nrdvana/CmdlineGL/blob/master/share/lib-b...