Just a few quick notes, will add more later. For those working on the electron approach, did you see this: https://www.fyears.org/2017/02/electron-as-gui-of-python-apps-updated.html
I'm swamped with a new project so I won't be able to work on this for a bit. But I am planning on adding form.io support to Leo Vue soon, will post on that later. About Leo Vue, it is not Leo and it is not a desktop app. It is only a viewer of Leo files, it allows you to make a web app using Leo as an editor. It has plenty of features that wouldn't make sense in an editor, like subtrees as nodes, summary nodes etc. Not sure if any benefit to making it a desktop app. Why make an electron version of Leo: 1. Get the modern look and feel that people expect. The Leo editor maybe doesn't really need any UI improvements, but I think the current look of Leo gives newcomers the impression that the program is dated, although it isn't. 2. Widgets like the ACE editor, or for that matter, the entire Atom editor. Atomic Leo could be a fork of Atom. A web based version of Leo would be an entirely new category of app. I'm sure it would be cool but I'm not sure what exactly it would be. How does the file diff feature fit in here? Certainly you could make a node + web outiner that would allow creation of cloned outlines, collaboration on tree creation, put everything in mongo etc. This would be a different tool than Leo tho. Joe On Tuesday, February 6, 2018 at 4:47:44 AM UTC-5, Edward K. Ream wrote: > > Some ideas in reply to Terry's recent question about whether node.js will > be a dependency of the Leo Vue desktop app. > > My initial reply was that it is way too early to say. Here are some > further thoughts: > > 1. electron <https://electronjs.org/docs/tutorial/about>, the lib on > which the atom <https://atom.io/>desktop editor is built, "[combines] > Chromium <https://www.chromium.org/Home> and Node.js <https://nodejs.org> > into a single runtime...Apps can be packaged for Mac, Windows, and Linux. > Atom has a great look, but a much different look than Leo Vue. > > Alas, atom is a pure *javascript* app. > > 2. In this reply > <https://groups.google.com/d/msg/leo-editor/50SZd4136iM/Rtos4hAtCwAJ>, in > the Leo Vue thread > <https://groups.google.com/forum/#!topic/leo-editor/50SZd4136iM>, Joe Orr > said: "About Electron, that is basically just node + browser in a package. > I think should be doable to wrap Leo python code in node and have the > browser interface, maybe using something like this: > https://www.npmjs.com/package/node-python". > <https://www.google.com/url?q=https%3A%2F%2Fwww.npmjs.com%2Fpackage%2Fnode-python&sa=D&sntz=1&usg=AFQjCNG1Qx5EsX92_rDKWn5aZwjqSr8cjg> > > The source for this project is here > <https://github.com/JeanSebTr/node-python>. > > Hmm. node-python is dormant (4-years old) and marked as hyper-beta. > Worse, the to-do list makes it appear as if there is language translation > going on. I have a bad feeling about this... > > Anyway, node-python is a fork of another node-python > <https://github.com/chrisdickinson/node-python>, which says it "actually > embeds a python process inside of Node". The file binding.cc > <https://github.com/chrisdickinson/node-python/blob/master/binding.cc> is > C code which (if I am not mistaken) implements the Python API > <https://docs.python.org/2/c-api/index.html> using the V8 interface > <https://nodejs.org/api/v8.html#v8_v8> of node.js. > > *Summary* > > Implementing the Python API in V8 is *much* easier that trans-compiling > Python into JavaScript. It might actually work ;-) Still, I am not > convinced either node-binding project would form a solid basis for a major > project. > > An alternative might be to use interprocess communication between python > and electron. This might be a client server architecture, or something > else. This is a completely open question, imo. > > Your comments please, Amigos. > > Edward > -- 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+unsubscr...@googlegroups.com. To post to this group, send email to leo-editor@googlegroups.com. Visit this group at https://groups.google.com/group/leo-editor. For more options, visit https://groups.google.com/d/optout.