ezrosent / frawk

an efficient awk-like language
Apache License 2.0
1.25k stars 35 forks source link

arbitrary precision arithmetic #17

Open beling opened 3 years ago

beling commented 3 years ago

It's really good to see that great AWK language is not death, and modern implementation is developed. My congratulation!

I used to use AWK a lot, especially to calculate some statistics like sum, mean or standard deviation from data included in text files (usually logs produced by my software). But many time I had to switch to Python, to calculate them accurately. Python has:

Please consider adding some of these futures (especially arbitrary precision integers) to frawk.

ezrosent commented 3 years ago

Hi! Thanks for your interest in frawk. I have been thinking about adding higher or arbitrary-precision arithmetic to frawk. It's a big question with lots of points in the design space. I'm not sure when I'll be able to get to it, but I'll keep this issue open for the time being, and for you listing out the specific use-case you have for going beyond standard operations 64-bit integers and double-precision IEEE floats.

ghuls commented 3 years ago

@beling gawk has --bignum.