CodeWalrus

Development => Calculators => Calc Projects, Programming & Tutorials => Topic started by: Legimet on February 04, 2015, 03:01:18 AM

Title: Duktape - A JavaScript interpreter for the Nspire [ti-nspire]
Post by: Legimet on February 04, 2015, 03:01:18 AM
Hi everyone, I just joined CodeWalrus  :D

This is a port of Duktape (http://duktape.org), a lightweight JavaScript (ECMAScript) interpreter, to the TI-Nspire.
It can run in interactive mode (NspireIO) or run a .js(.tns) file from the documents screen. To exit from interactive mode type ".exit".
More functions will be added later.

Download: http://ti-pla.net/a153555
Source code: https://github.com/Legimet/duktape-nspire
Title: Re: Duktape - A JavaScript interpreter for TI-Nspire calculators
Post by: Dream of Omnimaga on February 04, 2015, 04:14:44 AM
Hiya and welcome to the forums. :walrii: I saw this on Omni yesterday but I didn't return yet so that was why I didn't reply immediately. It seems very promising. How far into completion is it? Would, for example, simple Javascript-based games (point and click) be useable? Also how is the speed?

New languages are always welcome on the TI-Nspire. With the limitations of TI-BASIC and some people not always liking Lua, sometimes people might have felt there aren't enough alternatives that can suit them. Good job!  :thumbsup:
Title: Re: Duktape - A JavaScript interpreter for TI-Nspire calculators
Post by: Legimet on February 04, 2015, 02:46:23 PM
Quote from: DJ Omnimaga on February 04, 2015, 04:14:44 AM
New languages are always welcome on the TI-Nspire. With the limitations of TI-BASIC and some people not always liking Lua, sometimes people might have felt there aren't enough alternatives that can suit them. Good job!  :thumbsup:

Thanks. I think I'll do a benchmark similar to the one for Micropython (recursively calculate Fibonacci numbers). Duktape doesn't have a JIT but I don't think it should be bad. Games and other stuff should be possible once I add some "Duktape/C" functions for graphics, input, touchpad, etc. Duktape/C functions are native functions that can be called from JS code.

Also Vogtinator said that PyWrite should be easy to use for JS. The syntax highlighting is modular, and duktape.tns can be called in the same way as micropython.tns. Although the name might not fit :P
Title: Re: Duktape - A JavaScript interpreter for TI-Nspire calculators
Post by: Dream of Omnimaga on February 04, 2015, 05:11:09 PM
Do you mean a benchmark to compare the speed of each Nspire language? As for games I was mostly thinking about classic javascript material, as in stuff that would work in Internet Explorer 6 and anything above. I assume that you wouldn't support JQuery and other more modern stuff lol :P

Also nice to see that we can use C in the language. Glad to hear about PyWrite as well. I guess the name should not be a serious issue as long as that feature is clearly documented. Some people might prefer being able to run everything from just 1 software/launcher, like on the 84+ with Doors CS.
Title: Re: Duktape - A JavaScript interpreter for TI-Nspire calculators
Post by: Adriweb on February 05, 2015, 07:32:39 AM
Note: we (TI-Planet) intend to write a full-fledged news article about it soon, which will be like the MicroPython one (https://tiplanet.org/forum/viewtopic.php?t=15309) (if not directly based on it).
A draft will probably be available on some google docs somewhere, I guess I can invite you on it, Legimet, if you want to participate in its writing :)  *

So, benchmarks and all :)

Also, yeah, jQuery-like bindings so that we can do stuff like : $("calculator").eval("x+x") and $("geometry").newGraph().plot("y1(x)","sin(x)") etc. :P



* PS : like the python one, it will be sent to TI as well - the more we get them to acknowledge good things like those, that can seriously be useful for STEM and learning in general, the better it will be (more chances of getting more support from them in the future, maybe for official support of such things...
Title: Re: Duktape - A JavaScript interpreter for TI-Nspire calculators
Post by: Snektron on February 05, 2015, 09:43:11 AM
But javascript != html, right? So why would you need jQuery?  ???
Title: Re: Duktape - A JavaScript interpreter for TI-Nspire calculators
Post by: Duke "Tape" Eiyeron on February 05, 2015, 03:58:01 PM
I think he meant bindings which allows to make fluent expressions : f1().f2().f3()...
Title: Re: Duktape - A JavaScript interpreter for TI-Nspire calculators
Post by: Snektron on February 05, 2015, 04:32:21 PM
ooh, as in like, other apps? So if you'd want to do something with the Grapher $("Grapher")? I think i get it now :)
Title: Re: Duktape - A JavaScript interpreter for TI-Nspire calculators
Post by: Dream of Omnimaga on February 05, 2015, 06:15:05 PM
Also I know that some apps attempted to port HTML to calcs before, so maybe in the future Duktape could be expanded to support minimal HTML or something similar? :P

Anyway, in response to @Adriweb (welcome to CodeWalrus, by the way :) ) I am hoping that this, combined with MicroPython, can help convincing TI that Ndless can be very handy for educational purposes as well. But with their Nspire mentality in the last years, maybe they'll just tell us to port MicroPython and Duktape to the TI-83 Premium CE and TI-84 Plus CE and that they have no plan to open the Nspire to native language programs? <_<
Title: Re: Duktape - A JavaScript interpreter for TI-Nspire calculators
Post by: Snektron on February 05, 2015, 06:16:12 PM
While youre at it convincing TI, try to get them to not rename their calculators every minute :P
Title: Re: Duktape - A JavaScript interpreter for TI-Nspire calculators
Post by: Duke "Tape" Eiyeron on February 05, 2015, 07:33:35 PM
Oh, I know how I would have named this project : Duke Tape. Much better. Quite. (-_(//)):
Title: Re: Duktape - A JavaScript interpreter for TI-Nspire calculators
Post by: Dream of Omnimaga on February 05, 2015, 07:58:06 PM
Quote from: Cumred_Snektron on February 05, 2015, 06:16:12 PM
While youre at it convincing TI, try to get them to not rename their calculators every minute :P
Don't you mean hour? :P

http://codewalr.us/index.php?topic=237.0
Title: Re: Duktape - A JavaScript interpreter for TI-Nspire calculators
Post by: Legimet on February 07, 2015, 02:14:22 AM
I just uploaded a version compiled with -O3 (it's a little larger, but faster)
Title: Re: Duktape - A JavaScript interpreter for TI-Nspire calculators
Post by: Dream of Omnimaga on February 07, 2015, 02:25:55 AM
By the way, are there code examples that works both on calc and on a computer?
Title: Re: Duktape - A JavaScript interpreter for TI-Nspire calculators
Post by: Legimet on February 07, 2015, 02:55:18 AM
Well, there's always
print('Hello world!');

But seriously, an article which will be posted on TI-Planet with code examples. I have to add some modules first (filesystem, graphics, etc.)
Title: Re: Duktape - A JavaScript interpreter for TI-Nspire calculators
Post by: Dream of Omnimaga on February 07, 2015, 12:29:24 PM
Aah ok, I'll check there then.
Title: Re: Duktape - A JavaScript interpreter for TI-Nspire calculators
Post by: Legimet on March 23, 2015, 12:26:36 AM
I added some bindings, key functions and file io about a week ago. Graphics hasn't been added due to lack of time.
Title: Re: Duktape - A JavaScript interpreter for TI-Nspire calculators
Post by: Snektron on March 23, 2015, 12:27:30 AM
Good to know that this is still active though
Title: Re: Duktape - A JavaScript interpreter for TI-Nspire calculators
Post by: Dream of Omnimaga on March 23, 2015, 04:17:05 AM
Yeah I'M glad this is still alive. I can understand updates are slow due to lack of time, though. Hopefully life isn't too hard on you as well >.<

Good luck! By the way, I haven't kept up with Omni topics in a long while: Is nPDF still a thing?
Title: Re: Duktape - A JavaScript interpreter for TI-Nspire calculators
Post by: Adriweb on March 23, 2015, 04:21:18 AM
Interesting benchmarks will be done whenever he has time to add the basic graphics stuff :)

(Well, I guess I should start benchmarking the algorithms now, at least it will be done :P)
Title: Re: Duktape - A JavaScript interpreter for TI-Nspire calculators
Post by: Duke "Tape" Eiyeron on March 23, 2015, 04:20:37 PM
I allow you to use my avatar for your project (-_(//));
Jokes asides, that name made me directly find the Duke Tape thing. Oh and benchmarcking could be useful to see if the project is viable for heavy projects. Do you have any methods for knowing how much memory is free for the interpreter?
Title: Re: Duktape - A JavaScript interpreter for TI-Nspire calculators
Post by: Dream of Omnimaga on March 23, 2015, 04:49:12 PM
Wait so that's this project that triggered the Duke Tape inside joke? I thought it was just a coincidence O.O

Anyway yeah I am curious about how fast this will be. I know that some games are possible in JS so I wonder how feasible one would be on the Nspire using this language.
Title: Re: Duktape - A JavaScript interpreter for TI-Nspire calculators
Post by: Legimet on March 24, 2015, 01:57:10 AM
Quote from: DJ Omnimaga on March 23, 2015, 04:17:05 AM
Yeah I'M glad this is still alive. I can understand updates are slow due to lack of time, though. Hopefully life isn't too hard on you as well >.<

Good luck! By the way, I haven't kept up with Omni topics in a long while: Is nPDF still a thing?

This has been a really busy month, with all of my math/science/other stuff competitions, plus school work. :crazy:
nPDF is still a thing, but I haven't touched it in a while. (Pull requests are welcome.)

Quote from: Duke "Tape" Eiyeron on March 23, 2015, 04:20:37 PM
I allow you to use my avatar for your project (-_(//));
Jokes asides, that name made me directly find the Duke Tape thing. Oh and benchmarcking could be useful to see if the project is viable for heavy projects. Do you have any methods for knowing how much memory is free for the interpreter?
I never got the joke ???
Anyway, the Duktape website says it runs on systems with "256kB flash and 96kB system RAM." :)
Title: Re: Duktape - A JavaScript interpreter for TI-Nspire calculators
Post by: Dream of Omnimaga on March 24, 2015, 02:35:06 AM
Are you also in robotics? BEcause Hooloovoo and Pimath are as well. As for Duke Tape I never got the joke either. IIRC Eiyeron just started using the weird smiley randomly. Maybe an attempt to start some CW meme like with the "l'OL" thing. :P

Also nice and low memory requirements. :D This is good news for Clickpad users because under OS 3.9 they only have like 2 MB besides the OS and Ndless. *.*
Title: Re: Duktape - A JavaScript interpreter for TI-Nspire calculators
Post by: Legimet on March 24, 2015, 02:55:10 AM
No, I'm not in robotics.

I guess (-_(//)); is now my project's logo :P
Title: Re: Duktape - A JavaScript interpreter for TI-Nspire calculators
Post by: Dream of Omnimaga on March 24, 2015, 08:58:06 AM
l'OL Eiyeron has done it O.O

Title: Re: Duktape - A JavaScript interpreter for TI-Nspire calculators
Post by: Duke "Tape" Eiyeron on March 24, 2015, 09:11:40 AM
I must say, old chap, this is quite f****ng epic, isn't it? (-_(//));

Tested by chaps, approved by the Duke! ;)

And it wasn't a start of creating a meme. I just wanted to say it quite randomly as I was happy to find the punny name. I used the smiley originally as reaction to take some sort "old chap" reaction (like adding quite, or I must say). But well
Title: Re: Duktape - A JavaScript interpreter for TI-Nspire calculators
Post by: Snektron on March 24, 2015, 03:27:59 PM
if its an old britisch dude then WHERE IS THE TEA O.O Unacceptable
Title: Re: Duktape - A JavaScript interpreter for TI-Nspire calculators
Post by: Duke "Tape" Eiyeron on March 24, 2015, 04:03:20 PM
I drank it, so I got rid of the cup, you see. (-_(//));

So, I think I could have a try of DT once I get some free time.

EDIT : 900 posts. Quite. (-_(//));
Title: Re: Duktape - A JavaScript interpreter for TI-Nspire calculators
Post by: 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
Title: Re: Duktape - A JavaScript interpreter for TI-Nspire calculators
Post by: Dream of Omnimaga on March 24, 2015, 05:24:15 PM
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. ;)
Title: Re: Duktape - A JavaScript interpreter for TI-Nspire calculators
Post by: 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 :)
Title: Re: Duktape - A JavaScript interpreter for TI-Nspire calculators
Post by: Dream of Omnimaga on June 22, 2015, 05:36:39 AM
Good to hear. :)
Title: Re: Duktape - A JavaScript interpreter for TI-Nspire calculators
Post by: 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
Title: Re: Duktape - A JavaScript interpreter for TI-Nspire calculators
Post by: 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)
Title: Re: Duktape - A JavaScript interpreter for TI-Nspire calculators
Post by: 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.
Title: Re: Duktape - A JavaScript interpreter for TI-Nspire calculators
Post by: 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 :)
Title: Re: Duktape - A JavaScript interpreter for TI-Nspire calculators
Post by: alexgt on June 23, 2015, 06:10:00 PM
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?!
Title: Re: Duktape - A JavaScript interpreter for TI-Nspire calculators
Post by: Adriweb on June 23, 2015, 06:39:59 PM
Well you can see the archive got updated a few days ago, so yep :)
Title: Re: Duktape - A JavaScript interpreter for TI-Nspire calculators
Post by: alexgt on June 23, 2015, 07:53:15 PM
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
Title: Re: Duktape - A JavaScript interpreter for TI-Nspire calculators
Post by: Dream of 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.

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. :)
Title: Re: Duktape - A JavaScript interpreter for TI-Nspire calculators
Post by: 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?
Title: Re: Duktape - A JavaScript interpreter for TI-Nspire calculators
Post by: Adriweb on June 26, 2015, 07:05:56 AM
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 (https://github.com/svaarala/duktape/issues/183#issuecomment-95452880) in Duktape
(quote from the upcoming article)
Title: Re: Duktape - A JavaScript interpreter for TI-Nspire calculators
Post by: Snektron on June 26, 2015, 02:51:06 PM
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.
Title: Re: Duktape - A JavaScript interpreter for TI-Nspire calculators
Post by: Legimet on June 27, 2015, 02:43:26 AM
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. :)
Title: Re: Duktape - A JavaScript interpreter for TI-Nspire calculators [ti-nspire]
Post by: Legimet on October 12, 2015, 11:22:18 PM
Duktape 1.3.0 was released last month: https://github.com/svaarala/duktape/blob/master/RELEASES.rst. There are some performance improvements, so hopefully I will get time to test it soon. :)

Also, there's a pull request (https://github.com/Legimet/duktape-nspire/pull/2/commits) from fgalliat that I am planning to merge.
Title: Re: Duktape - A JavaScript interpreter for TI-Nspire calculators
Post by: Dream of Omnimaga on October 13, 2015, 02:41:40 AM
That is good. I was wondering if this was still alive but I'm glad you are still into the calculator scene. :)


I wonder how fast would DukeTape would be on the TI-84 Plus CE, if that calc had enough memory for one... (it has 150 KB of user RAM and 3 MB of Flash)
Title: Re: Duktape - A JavaScript interpreter for TI-Nspire calculators
Post by: Adriweb on October 13, 2015, 02:42:30 AM
It would theoretically run on the CE, but getting it to compile in the first place would probably be a nice challenge (ZDS has a bad C89 implementation)
Title: Re: Duktape - A JavaScript interpreter for TI-Nspire calculators
Post by: Legimet on October 14, 2015, 12:23:46 AM
Quote from: Adriweb on October 13, 2015, 02:42:30 AM
It would theoretically run on the CE, but getting it to compile in the first place would probably be a nice challenge (ZDS has a bad C89 implementation)

We also don't know how fast it would be. Anyway, I'm planning to do some benchmarking tomorrow to see how much things have improved :)
Title: Re: Duktape - A JavaScript interpreter for TI-Nspire calculators
Post by: Dream of Omnimaga on October 14, 2015, 03:01:26 AM
I guess as long as it's faster than hybrid TI-BASIC then I would be fine. But if the speed gain isn't enough then it wouldn't be worth it.

Anyway Legimet Please post your benchmarks to compare :)
Title: Re: Duktape - A JavaScript interpreter for TI-Nspire calculators [ti-nspire]
Post by: Legimet on November 01, 2015, 03:31:48 PM
There wasn't any noticeable difference, but the call handling will be improved in Duktape 1.4.
Title: Re: Duktape - A JavaScript interpreter for TI-Nspire calculators
Post by: Dream of Omnimaga on November 05, 2015, 09:15:59 AM
I see. Good luck with future improvements :)
Title: Re: Duktape - A JavaScript interpreter for TI-Nspire calculators [ti-nspire]
Post by: Legimet on December 06, 2015, 05:29:32 AM
After updating to Duktape 1.3.1, I've merged fgalliat's (https://github.com/fgalliat) contribution, which added some graphics functions to draw basic shapes such as lines, circles, polygons, etc. :)

An example can be seen here (https://raw.githubusercontent.com/Legimet/duktape-nspire/master/examples/xts_test.js.tns).

(https://cloud.githubusercontent.com/assets/3747118/9986943/865fdcd6-6042-11e5-95bb-bb5b2c12d967.png)
Title: Re: Duktape - A JavaScript interpreter for TI-Nspire calculators
Post by: Dream of Omnimaga on December 06, 2015, 06:53:47 AM
That is colorful :O

I like the polygon addition. It reminds me of HP PPL :P

Also I'm glad to see this updated :)
Title: Re: Duktape - A JavaScript interpreter for TI-Nspire calculators [ti-nspire]
Post by: Snektron on December 06, 2015, 10:13:55 AM
Pretty sweet :) How does the speed compare to other languages? (im not really familiar with NSpire calculators)
Title: Re: Duktape - A JavaScript interpreter for the Nspire [ti-nspire]
Post by: Legimet on December 06, 2015, 07:59:45 PM
@Adriweb and I did a recursive Fibonacci benchmark (the "dumb" method of computing the Fibonacci numbers) and Duktape was pretty slow due to its slow call handling (https://github.com/svaarala/duktape/issues/183#issuecomment-95452880). This is supposed to be optimized in Duktape 1.4. I haven't done any other benchmarks.

(https://i.imgur.com/QybJ0Rx.png)
Title: Re: Duktape - A JavaScript interpreter for the Nspire
Post by: Dream of Omnimaga on December 08, 2015, 09:29:39 PM
It doesn't seem that bad at least, but I guess it might not be as convincing for people who wants to switch from Lua for speed reasons. I'm glad this took is now available on the CX, though. More language options for Nspire coders. :D
Title: Re: Duktape - A JavaScript interpreter for the Nspire [ti-nspire]
Post by: Legimet on October 04, 2017, 10:11:34 PM
I was working on this a bit during the summer and was going to post about it but then stuff happened and I stopped working on it.

Anyway, I updated it to work with Duktape 2, which greatly improves the speed. I also added support for HW-W. I'll try to find the benchmarks that I did a few months ago and post a graph of it.

EDIT: Also Duktape 2.2.0 is out, so I guess I'll update it and do a new benchmark.
Title: Re: Duktape - A JavaScript interpreter for the Nspire
Post by: Yuki on October 04, 2017, 11:45:00 PM
Oooh, glad to see this active again.
Title: Re: Duktape - A JavaScript interpreter for the Nspire
Post by: Dream of Omnimaga on October 09, 2017, 08:42:17 PM
Quote from: Legimet on October 04, 2017, 10:11:34 PM
I was working on this a bit during the summer and was going to post about it but then stuff happened and I stopped working on it.

Anyway, I updated it to work with Duktape 2, which greatly improves the speed. I also added support for HW-W. I'll try to find the benchmarks that I did a few months ago and post a graph of it.

EDIT: Also Duktape 2.2.0 is out, so I guess I'll update it and do a new benchmark.
Glad to hear this is getting updated again. :) HW-W support addition was a must ^^
Title: Re: Duktape - A JavaScript interpreter for the Nspire
Post by: Adriweb on October 10, 2017, 07:05:39 PM
Nice :)