cosmopolitan/tool
Justine Tunney 4918121810 Add new calculator app
Cosmopolitan makes it easy to build and maintain programming languages,
since it abstracts system call #ifdef toil, so you can focus on vision.
Here's an example of a language that isn't turing complete, weighing in
at <1,000 lines of modern C, intended to help with testing libc / libm:

    .1 .2 + .3 - abs epsilon < assert
    pi sqrt pi sqrt * pi - abs epsilon < assert
    -.5 rint dup 0 = assert signbit assert
    -.5 nearbyint dup 0 = assert signbit assert
    -.5 ceil dup 0 = assert signbit assert
    -.5 trunc dup 0 = assert signbit assert
    -.5 round -1 = assert
    -.5 floor -1 = assert
    0 signbit ! assert

CALCULATOR.COM pays homage to CALC.EXE recently removed from Windows 10.
Microsoft should bundle this app instead. It too is roughly 100kb, works
just fine w/ command prompt, and portable since it runs on Mac/Linux/BSD
too while bundling even more features than the calculator on Google.com.

It should be possible to run CALCULATOR.COM on Android and iOS too, just
in case anyone needs a backend pipe driven framework, for graphical user
interfaces of calculators. Sadly we haven't tried it since we don't know
how to run software on telephones so the system call support is a priori
2020-06-30 19:58:08 -07:00
..
build Add new calculator app 2020-06-30 19:58:08 -07:00
cc Initial import 2020-06-15 07:18:57 -07:00
debug Initial import 2020-06-15 07:18:57 -07:00
decode Make small fixes and oops ran clang-format on dtoa 2020-06-30 19:55:47 -07:00
emacs Add new calculator app 2020-06-30 19:58:08 -07:00
hash Initial import 2020-06-15 07:18:57 -07:00
net Initial import 2020-06-15 07:18:57 -07:00
scripts Add glob and some finer tuning of documentation 2020-06-21 15:23:35 -07:00
viz Make small fixes and oops ran clang-format on dtoa 2020-06-30 19:55:47 -07:00
tool.mk Initial import 2020-06-15 07:18:57 -07:00