Re: Electron, not for web apps.?

2018-02-10 Thread vitalije
Also, for building clojurescript version one must have installed java and 
leiningen. Command for building development version is (IIRC)
lein figwheel

For the coffeescript version one must have installed node version 8 + and 
yarn package manager. Command for installing dependencies is
yarn

 And then for starting development version:
yarn dev

Both projects contain a reference Leo file. You should copy 
leo-el-vue-ref.leo to leo-el-vue.leo. Demo application expects to find 
leo-el-vue.leo in root project folder. It will automatically open that Leo 
file and display it. 

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 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.


Re: Electron, not for web apps.?

2018-02-10 Thread vitalije

>
>
> Leo in Clojurescript:
> https://repo.computingart.net/leocljs/vinfo?name=284258273ec5c6a5
>
> Leo in Coffeescript:
> https://leoelvue.computingart.net//vinfo?name=961ffef69d171c52
>
> Edward
>

The other alternative would be to use fossil executable. It is a single 
file, just put it in PATH. Fossil for Linux, Windows and Mac are here 
.

With fossil in the path type the following command in shell:
fossil clone https://leoelvue.computingart.net/ leoelvue.fossil

fossil clone https://repo.computingart.net/leocljs/ leocljs.fossil

These command each, will make single repository file. Then you enter an 
empty folder and run:

fossil open 

and you would have all files in their latest version.

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 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.


Re: Electron, not for web apps.?

2018-02-10 Thread Edward K. Ream
On Sat, Feb 10, 2018 at 6:26 AM, vitalije  wrote:

> Here are two versions:
>
>- Leo in ClojureScript  (using
>Electron, and Om/React)
>- Leo in CoffeScript  (using
>Electron, Vue)
>
> ​To download the files, click one of the links above, then click the
"files" link, and then click on the link:

"Files of check-in [hash]"

at the top of the page.  That will take you to a page that gives you the
option of downloading a .zip file or a tarball.

The actual download pages are:

Leo in Clojurescript:
https://repo.computingart.net/leocljs/vinfo?name=284258273ec5c6a5

Leo in Coffeescript:
https://leoelvue.computingart.net//vinfo?name=961ffef69d171c52

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.


Re: Electron, not for web apps.?

2018-02-10 Thread Edward K. Ream
On Sat, Feb 10, 2018 at 6:26 AM, vitalije  wrote:

​>> ​
Of course it is of interest! It would also give a boost to #574: Create
clojurescript importer 
​.
​​

> Here are two versions:
>
>- Leo in ClojureScript  (using
>Electron, and Om/React)
>- Leo in CoffeScript  (using
>Electron, Vue)
>
> ​Many thanks for these.  I'll look at them today.

I find that most difficult part is publishing and sharing project
> experiments.
>

​Have you tried pushing to
​​ 
​Leo's snippets repo ? ​
​ You, and anyone else, is also welcome to add to leo/scripts/scripts.leo.​

​> ​
PS: It seems that I am going to be very occupied with other duties in the
following few months and I don't know when I will be able to continue
development on the Leo-Electron-Vue. It is totally different story than
what Terry and Edward are doing on implementing Web front for python Leo
back-end, but it may happen that these two stories find something in common
and share some development. After all, Leo users may wish all kinds of Leo
apps.

​Exploring the contrast between the two approaches will be valuable,
regardless of what we end up doing. And it's time I learned clojurescript
and its way of thinking.

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.


Re: Electron, not for web apps.?

2018-02-10 Thread vitalije
Looking in the timelines of both projects, I am surprised how little time 
it took to develop both implementations (5 days for the first and 3 days 
for the second). However, publishing those two projects took two days.

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 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.


Re: Electron, not for web apps.?

2018-02-10 Thread vitalije

>
>
> ​Of course it is of interest! It would also give a boost to #574: Create 
> clojurescript importer 
> ​.
>
> Edward
>

Here are two versions:

   - Leo in ClojureScript  (using 
   Electron, and Om/React)
   - Leo in CoffeScript  (using 
   Electron, Vue)


I am sorry for the delay. I find that most difficult part is publishing and 
sharing project experiments. It took me day or two to publish two 
experimental projects. First one is the one I wrote about in previous post. 
It is implementation of Leo as desktop application using Electron and 
written in clojurescript. I haven't test it lately, and it may be dated 
because all the libraries used are in high pace development. I hope it is 
still possible to build without errors.

Inspired by LeoVue, I was thinking about replacing Om/React with Vue. 
Finally I have restarted the whole experiment using new set of libraries 
and using CoffeeScript instead of ClojureScript.

HTH Vitalije

PS: It seems that I am going to be very occupied with other duties in the 
following few months and I don't know when I will be able to continue 
development on the Leo-Electron-Vue. It is totally different story than 
what Terry and Edward are doing on implementing Web front for python Leo 
back-end, but it may happen that these two stories find something in common 
and share some development. After all, Leo users may wish all kinds of Leo 
apps.

-- 
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.


Re: Electron, not for web apps.?

2018-02-08 Thread Edward K. Ream
On Wed, Feb 7, 2018 at 8:32 AM, vitalije  wrote:

I remember posting here on the forum a video
>  demonstrating this app. It
> is about 500 lines of code.
>

​Excellent, impressive and good looking demo.  The fact that changes to
body text persist while switching nodes is highly significant.

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.


Re: Electron, not for web apps.?

2018-02-08 Thread Edward K. Ream
On Wed, Feb 7, 2018 at 8:32 AM, vitalije  wrote:

> 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?
>

​I don't know.  Terry has reported similar problems in the past.  I suggest
contacting google support.  This is a very serious issue.​


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.
>
> Vitalije
>
> PS: 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.
>

​Of course it is of interest! It would also give a boost to #574: Create
clojurescript importer 
​.

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.


Re: Electron, not for web apps.?

2018-02-07 Thread vitalije
it seems the last message was posted ok. Perhaps it was some googlegroups 
update this morning that deleted my messages.

-- 
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.


Re: Electron, not for web apps.?

2018-02-07 Thread vitalije
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. 

Vitalije

PS: 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. 


-- 
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.


Re: Electron, not for web apps.?

2018-02-07 Thread Edward K. Ream
On Wed, Feb 7, 2018 at 2:35 AM, vitalije  wrote:

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.
>

​I'm confused.  I thought we agreed that we don't want to try embedding
python in node.js?

Isn't some form of ipc required so we can run Leo's core in a separate
process?​


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.
>

​Thanks for these comments.  ​


​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.


Re: Electron, not for web apps.?

2018-02-07 Thread Edward K. Ream
On Tue, Feb 6, 2018 at 9:42 PM, Terry Brown  wrote:

> https://discuss.atom.io/t/how-to-run-electron-desktop-app-
> in-web-browser-without-downloading/30495
>
> only serves to deepen my suspicions that Electron is solving the wrong
> problems.
>
> Maybe I'll try and make a proof of concept for the python server + some
> other js stack just so we're sure we're all on the same page.
>

​Excellent.  This is the time for quick prototypes and demos.

The electron "hello world" app and your csv video are informative in ways
that words, words, words are not.

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.


Re: Electron, not for web apps.?

2018-02-07 Thread vitalije
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.

Vitalije
On Wednesday, February 7, 2018 at 4:42:40 AM UTC+1, Terry Brown wrote:
>
>
> https://discuss.atom.io/t/how-to-run-electron-desktop-app-in-web-browser-without-downloading/30495
>  
>
> only serves to deepen my suspicions that Electron is solving the wrong 
> problems. 
>
> Maybe I'll try and make a proof of concept for the python server + some 
> other js stack just so we're sure we're all on the same page. 
>
> Cheers -Terry 
>

-- 
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.


Re: Electron, not for web apps.?

2018-02-07 Thread vitalije
What Electron hast to offer more than a Chrome browser is ability to write 
and read local files without user intervention. To save file from browser, 
user must click download link and then choose where to save file or set 
preference to download all files in the same folder, and after downloading 
manually move file to its final location. It is not big deal to do it once 
per session, but imagine saving Leo outline which contains ten or more 
files. Using Electron would allow user to save files and also to open local 
files.

You could say that the same functionality can be achieved with python 
back-end, but sometimes it can be very useful to just read and write local 
files directly from Web page. It certainly would be much easier to 
implement than full client-server version for this basic functionality of 
reading and writing local files.

The other advantage of using Electron is that programmer can rely on its 
Web API rather then to check which browser version user have installed and 
whether it is compatible or not.

The disadvantage is of course size of download (~ 50M).

Vitalije

On Wednesday, February 7, 2018 at 4:42:40 AM UTC+1, Terry Brown wrote:

>
> https://discuss.atom.io/t/how-to-run-electron-desktop-app-in-web-browser-without-downloading/30495
>  
>
> only serves to deepen my suspicions that Electron is solving the wrong 
> problems. 
>
> Maybe I'll try and make a proof of concept for the python server + some 
> other js stack just so we're sure we're all on the same page. 
>
> Cheers -Terry 
>

-- 
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.