Akuli / jou

Yet another programming language
MIT License
11 stars 4 forks source link

More mathlib #387

Closed littlewhitecloud closed 1 year ago

littlewhitecloud commented 1 year ago

Improve & extend mathlib

littlewhitecloud commented 1 year ago

Still failed on compare-compilers, that strange. @Akuli could you please take a time to test it on Linux?

Akuli commented 1 year ago

The problem was that the self-hosted compiler didn't pass -lm when linking, so the math functions didn't work. Apparently it works on Windows without -lm for whatever reason.

littlewhitecloud commented 1 year ago

So... Should jou have types.jou?

Akuli commented 1 year ago

Not yet, for now it's probably better if you declare whatever you need. Otherwise Jou programmers will import the <ctype.h> functions without really knowing what they do, and without being aware of their problems (depending on the locale and assuming that a character fits in one byte).