vitalije <[email protected]> 于2018年10月8日周一 下午8:46写道:
...
> To achieve code completion, there is an interesting idea behind Nightlight
> editor. His author turned an editor into a library. Users do not install
> editor, but rather they list it in the project development dependencies.
> Using build tool this editor starts a small http server inside the project
> folder and displays the editor inside web browser allowing user to edit
> source code and run REPLs inside the project. That way editor server knows
> about names in the project and in the currently edited file.
>
> Using web browser as a GUI makes changing Leo's appearance on the fly easy.
> In modern web client frameworks the page is usually redrawn 60 times per
> second which means any and all changes in the state of the application (no
> matter how big those changes are), are displayed in the very next frame (in
> less than 16ms).
>
> Nightlight editor is written in Clojure/ClojureScript but as I said before,
> we can look at its code just as a Python code with some parenthesis moved to
> the left and some commas removed. Theoretically, we could take Nightlight's
> clojure code, then move few parentheses one word to the right after the
> function name and add some commas where Python expects them, and we'll get
> the working Python code. Naturally, we need to adjust few things to use
> Python libraries instead of Java and Clojure ones, but that also should not
> be very hard. There are about 1600 lines / 60k characters in Nightlight code,
> and yet it gives fully functional code editor, few types of REPLs,
> auto-complete function, a live app preview (when developing web applications)
> and almost zero installation.
>
> I am not suggesting replacing Leo with the Nightlight. There are some
> valuable ideas behind Nightlight, Clojure and ClojureScript that Leo might
> benefit from.
>
Wow thanx for share Nightlight editor,
Lisp hole the unicorn feature: code string is same running time structure,
so can HOT-debug/re-deploy/upgrade/...
and i agree the new IDE/Editor Architect :
RESTful server background
web as GUI load user expends
SEE: Calysto/nbplayer: A console notebook player
https://github.com/Calysto/nbplayer
Jupyter is same Architect think , so people can base Jupyter server
release others interface .
but clojure in fact run in JVM,
the speed is sad or hard to speed.
Leo as pure python project will hold all history amass,
just optimize or parallel new core server processor,
will mix easy others expands?
> Vitalije
>
> --
> 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 [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/leo-editor.
> For more options, visit https://groups.google.com/d/optout.
--
life is pathetic, go Pythonic! 人生苦短, Python当歌!
俺: http://zoomquiet.io
授: http://creativecommons.org/licenses/by-sa/2.5/cn/
怒: 冗余不做,日子甭过!备份不做,十恶不赦!
KM keep growing environment culture which promoting organization learning!
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.