I believe that Graal can (or soon will be able to) target both python and javascript.
Python 3.7.0 (default, Jun 28 2018, 13:15:42)
[GCC 7.2.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> def f():
with open('leo/test/activeUnitTests.txt', 'r') as inp:
s = inp.read()
return _minileo.outline_from_str(s)
>>> import _minileo
>>> import timeit
>>> print(timeit.timeit(f, number=100)/100*1000, 'ms')
6.344196610007202 ms
On the idea of a Leo core in a machine efficient fast language, I think that Nim is a worth exploration also, as is syntax is Python inspired, compiles to JavaScript, has good metaprogramming facilities. I have found it pretty productive when I need a more low level or multi-paradigm, cross browser approach to my coding needs.
Offray
--
You received this message because you are subscribed to the Google Groups "leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email to leo-editor+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/leo-editor/c4401dca-c02a-4859-a4fe-e652fc7e6548n%40googlegroups.com.
On the idea of a Leo core in a machine efficient fast language, I think that Nim is a worth exploration also, as is syntax is Python inspired, compiles to JavaScript, has good metaprogramming facilities. I have found it pretty productive when I need a more low level or multi-paradigm, cross browser approach to my coding needs.
Here are some ideas which you are free to ignore if you find them uninteresting or useless.
...connecting leojs UI to a 'leo core' in an javascript environment can be done at first with some javascript code either rewritten or automatically transpiled...
Transcrypt seems working pretty good in that regard, according to the new mailing list findings. My suggestion was more related with a far ahead Leo Core (like the one proposed in Rust) also pointing to Nim as a language closer to Python that shares many Rust goals.
Cheers,
Offray