Re: Duktape - embeddable-in-C/C++ JS engine
Reply #8 –
One thing I know is... Jurassic is definitely not portable - I've tried compiling it under Mono, (Mono just came out with it's latest version for Windows so I'll try again). Second, Jurassic is C# and not C/C++ and I want this to run on anything.
Allegro, unlike SFML is proven to work on the 5 major brands:
http://alleg.sourceforge.net/readme.html (SFML will soon, though, the support is there but I still think there hasn't been an official release).
Allegro is natively C (and C++) and so is best choice for that language. So is SFML but it isn't as cross-platform and I think Allegro is lighter weight? I'm not sure if allegro is necessarily faster, but it's API is fairly easy to figure out too.
Jurassic is leagues faster than Duktape (but, both support ECMA 5.1 standard). Duktape does say it has some ECMA6 stuff in it, so here's hoping for TypedArray. Just to have an idea, Jurassic is between Sphere 1.5 and any V8/SM Sphere in performance, so it's not the fastest but it can be easily 32 times faster, whereas V8 has been 58 times faster on some things (I have tested this using an internal build of SSFML using ClearScript (a currently maintained V8 wrapper for C#)).
Plus, anything C or C++ can be compiled into almost anything these days. C# and Java can only go where their VM's go and C#'s is limited to Windows only or anything Mono would try to support (which is Android and iPhone too). But, SFML and Jurassic would be severely limited on those two devices, which a native C app one of which was built with Allegro could potentially run faster and smoother on those devices. Plus, memory is a concern and by far C has the smallest footprints ever recorded. Git is programmed entirely in C and I'm always a fan of Linus's work (though I don't often use Linux myself, I have always loved it's simplicity as a programming environment, it's how I got through my CS major!)
I +1 any idea going forward in this manner.
Edit: Heh, I love XNA and Allegro and found out both projects were led by Shawn Hargreaves (well, Allegro started by him, and XNA ending with him). Wow. (Though SFML is good too,
)
If you use code to help you code you can use less code to code. Also, I have approximate knowledge of many things.
Sphere-sfml
hereSphere Studio editor
here