Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Mathematically, an algebra generated by ganja.js is ...

You're generating code that relates to a certain algebra, likely for providing API for doing calculations based on that algebra (so an algebra library). Why would you call that 'algebra generated by ganja.js'?

Generators [0], generating sets/functions [1][2], have precise definitions within mathematics, and they have zero relation to code generation. So they have zero relation to what ganja.js is doing (i.e., generating code). No offense, but you should know better.

[0] https://en.wikipedia.org/wiki/Generator_(category_theory)

[1] https://en.wikipedia.org/wiki/Generator_(mathematics)

[2] https://en.wikipedia.org/wiki/Generating_function



> You're generating code that relates to a certain algebra, likely for providing API for doing calculations based on that algebra (so an algebra library). Why would you call that 'algebra generated by ganja.js'?

The 'generated by' in that sentence is referring to the code generation - not the mathematical generators. I'll change 'algebra' to 'algebra implementation' to make that more clear. (I figured the very sentence 'an algebra generated by ganja.js' disambiguates the interpretation, but I'm happy to stand corrected.)

Ganja can create numerical implementations for a wide range of algebras (not just 'a certain algebra'), including any associative algebra (you can give it a Cayley table), although the focus is on Clifford Algebras, and providing the ability to stay close to the mathematical syntax. In order to do that it provides operator overloading, algebraic literals, etc .. (all features that do not natively exist in javascript). Because it is not 'a certain algebra', but a wide range, for which the code is only generated at runtime - it seemed a reasonable way of describing what is going on.

Thanks for letting me know it confused you - will fix it right away!


Fwiw I don’t really see a problem with the language the GP was complaining about. It’s pretty common for words to be heavily overloaded and ambiguous in mathematics and while this is often annoying and you may try to avoid this sort of issue, I don’t think you should be obliged to do that.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: