Using Electron allows reading and writing local files much easier then from browser. Accessing local file system can be done through python back-end, but it would add a lot of complicated inter-process communication (which need to be tested, debugged,...) instead of directly reading and writing to local file system.
The other advantage of using Electron is that programmer doesn't need to check browser version and to deal with lot of browser compatibility issues.The disadvantage of using Electron is download size it brings in (~ 50M), but I believe it would be a small price to pay for the benefits and flexibility it provides.
I don't know what is happening with google groups. This morning I wrote a message to this thread and when I clicked the button POST, it showed that my message was deleted. At first I thought that I have clicked DISCARD button by mistake, so I rewrote the message again and carefully pressed POST button, but google showed that now two my messages are deleted. I didn't have time to try again, so I have left it. And later I see that Edward is quoting part of my second message? How is it possible? What is going on?
Yes, we have agreed not to try to embed python in node.js. I was just pointing what is (IMHO) the main difference between browser and Electron.VitalijePS: in August 2017, I have made a small example electron application that reads Leo document, draws the outline and allows editing of body text. I wandered at that time how fast could be rendering of Leo tree. AFAIR the experiment showed great potential of using Electron as front end for Leo.The experiment is written in clojurescript and using om (in effect it is React for clojurescript). I remember posting here on the forum a video demonstrating this app. It is about 500 lines of code. If it is of any interest I could share this experiment.
I remember posting here on the forum a video demonstrating this app. It is about 500 lines of code.
Edward
Here are two versions:
- Leo in ClojureScript (using Electron, and Om/React)
- Leo in CoffeScript (using Electron, Vue)
I find that most difficult part is publishing and sharing project experiments.
Here are two versions:
- Leo in ClojureScript (using Electron, and Om/React)
- Leo in CoffeScript (using Electron, Vue)
Edward
fossil clone https://leoelvue.computingart.net/ leoelvue.fossil
fossil clone https://repo.computingart.net/leocljs/ leocljs.fossil
fossil open <path to local repository file>
lein figwheel
yarnyarn dev