ENB: Why python will remain Leo's future

75 views
Skip to first unread message

Edward K. Ream

unread,
Feb 16, 2018, 4:45:23 AM2/16/18
to leo-e...@googlegroups.com
Rewriting Leo's core is out of the question. Python is:

- Best for users as the simplest and most flexible scripting language.
- Dynamic. Imagine doing @button in rust.
- The basis for Leo's API.

Instead, Leo can and should add support for the rust language #727 and .vue files #726.

It is straightforward to support scripting in any language. The new #729 info/enhancement item discusses this topic. Support for rust, javascript and clojurescript are on the list. This item will remain open indefinitely.

Important: although #729 might allow rust scripts in @button nodes, such scripts would have no direct access to Leo or it's data structures.

Summary

Rewriting Leo's core in rust would be a catastrophic mistake.

Instead, it will be relatively easy to support rust, vue.js and other interesting languages in python.

Joe Orr has already rewritten Leo's read code for .leo files in javascript.  This work might be extended to support vue.js as a complete back end for Leo.

All comments welcome.

Edward

Edward K. Ream

unread,
Feb 18, 2018, 4:53:38 PM2/18/18
to leo-editor
On Friday, February 16, 2018 at 3:45:23 AM UTC-6, Edward K. Ream wrote:
Rewriting Leo's core is out of the question. Python is:

- Best for users as the simplest and most flexible scripting language.
- Dynamic. Imagine doing @button in rust.
- The basis for Leo's API.

 Rust is an interesting language, but it is totally unsuitable for non-professional programmers.

Edward

jkn

unread,
Feb 19, 2018, 4:22:27 AM2/19/18
to leo-editor
Hi Edward

A bit of an aside, but I'd be interested in learning more about your views of why this is...

    Regards
    Jon N
 

Edward K. Ream

unread,
Feb 19, 2018, 7:26:32 AM2/19/18
to leo-editor
On Mon, Feb 19, 2018 at 3:22 AM, jkn <jkn...@nicorp.f9.co.uk> wrote:
Rust is an interesting language, but it is totally unsuitable for non-professional programmers.
I'd be interested in learning more about your views of why this is...

​Rustaceans must be aware of lifetimes.​
 
​ Pythonistas don't.

Edward
Reply all
Reply to author
Forward
0 new messages