FlatAssembler / AECforWebAssembly

A port of ArithmeticExpressionCompiler from x86 to WebAssembly, so that the programs written in the language can run in a browser. The compiler has been rewritten from JavaScript into C++.
https://flatassembler.github.io/AEC_specification
MIT License
32 stars 2 forks source link

Analyze and possibly fix the problems that Stuxxnet complained about on Discord #16

Open FlatAssembler opened 2 years ago

FlatAssembler commented 2 years ago

Here is what Stuxxnet has to say about my compiler:

you've also written a log function that runs in an infinite loop if the input is close to 1 you're trying to compare sort functions written in an interpreted language to those provided by that language in its native VM you're overfitting measurement data to come up with a completely insane formula for the comparisons of quicksort you're using rand in c++ code you implement custom math functions using highschool maths that just doesn't work if you want to be numerically efficient or just even get a sane result for the whole range of possible inputs. I'm sorry, but I really don't have much confidence in your judgement calls...

FlatAssembler commented 2 years ago

G. Sliepen also has a lot of negative comments about the way I made my compiler.