Re:Why is Rust difficult?
by StudentStuff on Monday January 22, 2018 @03:32AM
(#16202827)
Even the ESP8266, where ram & flash are measured in kilobytes can run a minimal version of python. This whole "low resource can't run heavy languages" trope needs to die.
[ Parent
| on HN ]
Re:Why is Rust difficult?
by turbinerneiter on Monday January 22, 2018 @04:00AM
(#16202952)
Comparison of a sensor fusion algorithm the likes of which are used in quadcopters:
| impl | c | py3 | mpy | pypy3 | cy3 |
|------|-------|--------|---------|-------|-------|
| [ns] | 0.176 | 11.462 | 37.633 | 0.818 | 0.590 |
| .c | 1.000 | 65.126 | 213.824 | 4.648 | 3.352 |
mpy - MicroPython
cy3 - Cython
So, ... low resource can't run heavy languages fast (yet?). Good thing is by using MicroPython and writing the time critical stuff in C you can get the best of both worlds while paying the least.
edit: sigh, markdown table
If you add two spaces in front of each line, it formats as monospace. Like this:
| impl | c | py3 | mpy | pypy3 | cy3 |
|------|-------|--------|---------|-------|-------|
| [ns] | 0.176 | 11.462 | 37.633 | 0.818 | 0.590 |
| .c | 1.000 | 65.126 | 213.824 | 4.648 | 3.352 |
Also, I'm taking a guess here and assuming that the values in the second line mean "execution time as multiples of the execution time for C".
Re:Why is Rust difficult?
by turbinerneiter on Monday January 22, 2018 @07:28AM
(#16203858)
Yes, it was `*c`, but the star screwed up formatting even more ;)