Join us on Discord!
You can help CodeWalrus stay online by donating here.

Duktape - A JavaScript interpreter for the Nspire [ti-nspire]

Started by Legimet, February 04, 2015, 03:01:18 AM

Previous topic - Next topic

0 Members and 4 Guests are viewing this topic.

Dream of Omnimaga

Quote from: Cumred_Snektron on March 24, 2015, 04:52:34 PM
And you didn't get another cup? Wow..
Also i missed my 666th, 700th and 777th post, so yeah

I missed my 55555th post on Omni twice (there was a stats recount so my post count went under 55K after the first time I hit 55555)

Anyway let's not hijack Legimet's thread any further now. ;)
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

Adriweb

Bump.
The article is almost ready now, with additions and changes from Legimet and myself - it should be released relatively soon :)
  • Calculators owned: TI-Nspire CX CAS, TI-Nspire CX, TI-Nspire CAS (x3), TI-Nspire (x2), TI-Nspire CM-C CAS, TI-Nspire CAS+, TI-80, TI-82 Stats.fr, TI-82 Plus, TI-83 Plus, TI-83 Plus.fr USB, TI-84+, TI-84+ Pocket SE, TI-84+ C Silver Edition, TI-84 Plus CE, TI-89 Titanium, TI-86, TI-Voyage 200, TI-Collège Plus, TI-Collège Plus Solaire, 3 HP, some Casios
Co-founder & co-administrator of TI-Planet and Inspired-Lua

Dream of Omnimaga

  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

alexgt

Quote from: Adriweb on June 22, 2015, 05:07:22 AM
Bump.
The article is almost ready now, with additions and changes from Legimet and myself - it should be released relatively soon :)
Awesome, time to learn some JS :P
  • Calculators owned: Ti-84+, Ti-Nspire, Hp Prime, Broken HP Prime, HP 48SX

Snektron

Quote from: alexgt on June 22, 2015, 01:33:45 PM
Quote from: Adriweb on June 22, 2015, 05:07:22 AM
Bump.
The article is almost ready now, with additions and changes from Legimet and myself - it should be released relatively soon :)
Awesome, time to learn some JS :P

Its literally one of the easiest languages :P (if you exclude the cross html part, but even that)
  • Calculators owned: TI-84+
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


DarkestEx

Quote from: Cumred_Snektron on June 22, 2015, 03:51:57 PM
Quote from: alexgt on June 22, 2015, 01:33:45 PM
Quote from: Adriweb on June 22, 2015, 05:07:22 AM
Bump.
The article is almost ready now, with additions and changes from Legimet and myself - it should be released relatively soon :)
Awesome, time to learn some JS :P

Its literally one of the easiest languages :P (if you exclude the cross html part, but even that)
Haha, not in life. :P
JS is one of the most brainf*cking languages I ever, ever used (aside from the Android ADK, which is not really a language; Java itself is quite easy though).
Even Assembler is easier than JS IMAO.
  • Calculators owned: TI-84+, Casio 101-S, RPN-Calc, Hewlett-Packard 100LX, Hewlett-Packard 95LX
  • Consoles, mobile devices and vintage computers owned: Original Commodore 64C, C64 DTV, Nintendo GameBoy Color, Nintendo GameCube, Xbox 360, PlayStation 2

Legimet

Quote from: Adriweb on June 22, 2015, 05:07:22 AM
Bump.
The article is almost ready now, with additions and changes from Legimet and myself - it should be released relatively soon :)

Yes, and you can download it here: https://tiplanet.org/forum/archives_voir.php?id=153555 :)

alexgt

Quote from: Legimet on June 23, 2015, 03:53:43 PM
Quote from: Adriweb on June 22, 2015, 05:07:22 AM
Bump.
The article is almost ready now, with additions and changes from Legimet and myself - it should be released relatively soon :)

Yes, and you can download it here: https://tiplanet.org/forum/archives_voir.php?id=153555 :)
Is that the finished version?!
  • Calculators owned: Ti-84+, Ti-Nspire, Hp Prime, Broken HP Prime, HP 48SX

Adriweb

Well you can see the archive got updated a few days ago, so yep :)
  • Calculators owned: TI-Nspire CX CAS, TI-Nspire CX, TI-Nspire CAS (x3), TI-Nspire (x2), TI-Nspire CM-C CAS, TI-Nspire CAS+, TI-80, TI-82 Stats.fr, TI-82 Plus, TI-83 Plus, TI-83 Plus.fr USB, TI-84+, TI-84+ Pocket SE, TI-84+ C Silver Edition, TI-84 Plus CE, TI-89 Titanium, TI-86, TI-Voyage 200, TI-Collège Plus, TI-Collège Plus Solaire, 3 HP, some Casios
Co-founder & co-administrator of TI-Planet and Inspired-Lua

alexgt

Quote from: Adriweb on June 23, 2015, 06:39:59 PM
Well you can see the archive got updated a few days ago, so yep :)
Awesome! I am not used to Ti-planet's layout :P
  • Calculators owned: Ti-84+, Ti-Nspire, Hp Prime, Broken HP Prime, HP 48SX

Dream of Omnimaga

Quote from: DarkestEx on June 22, 2015, 03:53:47 PM
Quote from: Cumred_Snektron on June 22, 2015, 03:51:57 PM
Quote from: alexgt on June 22, 2015, 01:33:45 PM
Quote from: Adriweb on June 22, 2015, 05:07:22 AM
Bump.
The article is almost ready now, with additions and changes from Legimet and myself - it should be released relatively soon :)
Awesome, time to learn some JS :P

Its literally one of the easiest languages :P (if you exclude the cross html part, but even that)
Haha, not in life. :P
JS is one of the most brainf*cking languages I ever, ever used (aside from the Android ADK, which is not really a language; Java itself is quite easy though).
Even Assembler is easier than JS IMAO.
I wouldn't go as far as saying that ASM is easier than JS, but it's definitively easier to read for particularly complex stuff. JS code will just stop working for unexplained reasons and it's a major PITA to debug.

I dropped off my college major partly because of JS. When it became clear I just wouldn't get it and that I would have to use it on a regular basis in the future, I called it quit.

Quote from: Legimet on June 23, 2015, 03:53:43 PM
Quote from: Adriweb on June 22, 2015, 05:07:22 AM
Bump.
The article is almost ready now, with additions and changes from Legimet and myself - it should be released relatively soon :)

Yes, and you can download it here: https://tiplanet.org/forum/archives_voir.php?id=153555 :)
Glad to see an update. :)
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

Ivoah

  • Calculators owned: TI-86 (now broken), TI SR-56, TI-Nspire CX CAS, TI-84+ SE, TI-84+ SE, TI-85, TI-73 Explorer VS, ViewScreen, TI-84+ CSE, TI-83+ SE

Adriweb

Quote from: Ivoah on June 26, 2015, 05:30:05 AM
Quote from: Legimet on June 23, 2015, 03:53:43 PMyou can download it here: https://tiplanet.org/forum/archives_voir.php?id=153555 :)

I'm surprised at how much slower it is than micropython. Is there a specific reason?
Yes (edit: well, this is for a recursive fibonacci, so not exactly the same issue(s) I believe):
Quoteruns slower than Lua or Python due to a specific  known issue in Duktape
(quote from the upcoming article)
  • Calculators owned: TI-Nspire CX CAS, TI-Nspire CX, TI-Nspire CAS (x3), TI-Nspire (x2), TI-Nspire CM-C CAS, TI-Nspire CAS+, TI-80, TI-82 Stats.fr, TI-82 Plus, TI-83 Plus, TI-83 Plus.fr USB, TI-84+, TI-84+ Pocket SE, TI-84+ C Silver Edition, TI-84 Plus CE, TI-89 Titanium, TI-86, TI-Voyage 200, TI-Collège Plus, TI-Collège Plus Solaire, 3 HP, some Casios
Co-founder & co-administrator of TI-Planet and Inspired-Lua

Snektron

Quote from: DJ Omnimaga on June 26, 2015, 05:27:44 AM
Quote from: DarkestEx on June 22, 2015, 03:53:47 PM
Quote from: Cumred_Snektron on June 22, 2015, 03:51:57 PM
Quote from: alexgt on June 22, 2015, 01:33:45 PM
Quote from: Adriweb on June 22, 2015, 05:07:22 AM
Bump.
The article is almost ready now, with additions and changes from Legimet and myself - it should be released relatively soon :)
Awesome, time to learn some JS :P

Its literally one of the easiest languages :P (if you exclude the cross html part, but even that)
Haha, not in life. :P
JS is one of the most brainf*cking languages I ever, ever used (aside from the Android ADK, which is not really a language; Java itself is quite easy though).
Even Assembler is easier than JS IMAO.
I wouldn't go as far as saying that ASM is easier than JS, but it's definitively easier to read for particularly complex stuff. JS code will just stop working for unexplained reasons and it's a major PITA to debug.

I dropped off my college major partly because of JS. When it became clear I just wouldn't get it and that I would have to use it on a regular basis in the future, I called it quit.

O.O i really didn't have any trouble learning JS. Also i get the feeling everything with web programming is just a bit... eh. I mean, everyone is bashing Java web, action script, flash, PHP, etc. Things like HTML and CSS just fall apart when you look at it... Maybe i've been doing it wrong but it just feels a bit eh imo.
  • Calculators owned: TI-84+
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


Legimet

Here's the article: https://tiplanet.org/forum/viewtopic.php?f=43&t=16900

Quote from: Ivoah on June 26, 2015, 05:30:05 AM
I'm surprised at how much slower it is than micropython. Is there a specific reason?

The main reason is that Duktape doesn't have a JIT like Micro Python. However, Sami Vaarala, the developer, is gradually rolling out performance improvements so that should help. :)

Powered by EzPortal