I have previously compared performance of the three most popular interpreted languages - Perl, Python and Lua (part1, part2). The next question was - how do they compare to the Javascript? Unlike the above mentioned languages it was quite unusual to use Javascript outside of a browser sandbox but with developing of the node.js this became possible.
Thoughts and ideas about programming, scripting, automation, electronics, gadgets, web and technology
Showing posts with label lua. Show all posts
Showing posts with label lua. Show all posts
Tuesday, September 3, 2013
Tuesday, July 23, 2013
Python vs Perl vs Lua - speed comparison. Part 2
As far as people show interest in this topic I decided to perform an additional measurement to the one I performed in Part 1.
This time I wanted to compare floating point numbers operations performance because my good friend Anonymous worried about it. He said that I shouldn't have abused lua interpreter with basic arithmetic operations on integers because it's not good at it. He said that I should have tried floating points numbers instead to let lua interpreter shine. I was a bit skeptic about it to be honest but Anonymous's logic was sound.
Tuesday, May 14, 2013
Python vs Perl vs Lua - speed comparison
I have written the base64 encoding algorithm in Perl, Python and Lua to compare the performance in basic arithmetic and file-io operations. Perl implementation was written a long time ago and it supposed to be a one liner. That's why the script looks so obfuscated:
Friday, June 29, 2012
AVR-stick as a temperature logger
I've stumbled recently upon a little gem called AVR-Stick and bought two of them for about 7€ per stick. I also had a thermoregulated fan controller salvaged from a recycled computer. I decided to desolder a thermistor from that controller and put it onto the stick to use it as a USB temperature logger. Stick's ATtiny85 has an internal temperature sensor too but it should be calibrated otherwise its precision is ±10°C. Thermistor that I'm using is equivalent to the NTCLE100E3103JB0 and its resistance is 10K at 25°C. Any other NTC thermistor that has resistance around 10K at room temperature could also be used but it should be checked if manufacturer specifies Steinhart-Hart equation coefficients for it.
Labels:
attiny85,
avr-stick,
bash,
bootloader,
C,
collectd,
logger,
lua,
temperature
Subscribe to:
Posts (Atom)
![[Image]](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAgYJLD5BudImPD7BAh8oKKm-2Hl1UzQSY0NmZJz46aWfzyKuyCf-iFuO-aP-dDxB6WzMVTUSEHmPd9k0XZOq0sAjSbxo1ZcKT6rXWZeuqzzsujdUViawjADmt21m3FCwqnE2I12cHlS0/s1600/avrstick.jpg)