duktape is a great find and appears quite complete. But still seems
quite large. There's also Tiny-JS [0] (2k-ish LOC), 42Tiny-JS [1] (a
forked, enhanced, more complete version), and Espruinio [2] (same
original author as Tiny-JS, more complete but focused on Arduino
applications).
[0]
https://code.google.com/p/tiny-js/
[1]
https://code.google.com/p/42tiny-js/
[2]
https://github.com/espruino/Espruino
On Sun, Oct 26, 2014 at 11:23 AM, Anthony J. Bentley <anthony_AT_cathet.us> wrote:
> F Hssn writes:
>> On Sun, Oct 26, 2014 at 12:34 AM, Andrew Hills <ahills_AT_ednos.net> wrote:
>> > On 10/25/14 13:41, F Hssn wrote:
>> >>
>> >> Following suckless's minimal philosophy, I'd be interested to find out
>> >> ... <snip> ...
>> >> latest webkit.
>> >
>> >
>> > Do you really want to write your own Javascript engine?
>> >
>>
>> Well, I hadn't thought of that but now that you mentioned, I
>> downloaded v8 and spidermonkey sources, 0.5 vs 1.2 million (both
>> mostly C++). Then in v8 I noticed it has directories for architectures
>> like arm arm64 mips mips64 ia32. I removed those directories and left
>> only x87 and x64 and ended up with 333k, with 223k lines of C++ source
>> files.
>>
>> To answer your question, I guess it comes down to how much time I have
>> (as always) which is, not much. But I would definitely like some
>> "suckless cleanup" in this direction, just like in other directions.
>
> Duktape isn't perfect but it's at least within the realm of sanity:
> http://duktape.org/
>
> --
> Anthony J. Bentley
>
Received on Mon Oct 27 2014 - 05:58:30 CET