Re: [Texmacs-dev] TeXmacs & Webassembly

2022-01-31 Thread Massimiliano Gubinelli
Hi, > On 29. Jan 2022, at 18:57, Hammer Functor wrote: > > Hi Max, > > Maybe it’s possible to access local files systems with the help of wasi > (webassembly system call). I know little technical details, but I do heard of > something about it last year. Native wasm runtimes like wasmtime an

Re: [Texmacs-dev] TeXmacs & Webassembly

2022-01-29 Thread Hammer Functor
Hi Max, Maybe it’s possible to access local files systems with the help of wasi (webassembly system call). I know little technical details, but I do heard of something about it last year. Native wasm runtimes like wasmtime and wasmer are promising as well, which helps to run wasm programs witho

Re: [Texmacs-dev] TeXmacs & Webassembly

2022-01-29 Thread Massimiliano Gubinelli
Hi Joris, > On 28. Jan 2022, at 23:58, TeXmacs wrote: > > Dear Max, > > On Fri, Jan 28, 2022 at 06:36:26PM +0100, TeXmacs wrote: >> Thanks, that is already far more usable indeed. Next issues: >> - I noted that the keyboard shortcuts are somewhat problematic, >>since various modifier keys

Re: [Texmacs-dev] TeXmacs & Webassembly

2022-01-28 Thread TeXmacs
Dear Max, On Fri, Jan 28, 2022 at 06:36:26PM +0100, TeXmacs wrote: > Thanks, that is already far more usable indeed. Next issues: > - I noted that the keyboard shortcuts are somewhat problematic, > since various modifier keys don't work. > Also, ^ did not work on a French keyboard. >

Re: [Texmacs-dev] TeXmacs & Webassembly

2022-01-28 Thread TeXmacs
Dear Max, On Fri, Jan 28, 2022 at 05:52:27PM +0100, Massimiliano Gubinelli wrote: > I've improved a bit the windowing. Here's a new version > > https://www.dropbox.com/s/fteoz8vv9s6ltc0/TeXmacs-webassembly-3.zip?dl=0 >

Re: [Texmacs-dev] TeXmacs & Webassembly

2022-01-28 Thread Massimiliano Gubinelli
Dear all, I've improved a bit the windowing. Here's a new version https://www.dropbox.com/s/fteoz8vv9s6ltc0/TeXmacs-webassembly-3.zip?dl=0 Julien: ideally the application will be served by some fixed machine, so you

Re: [Texmacs-dev] TeXmacs & Webassembly

2022-01-28 Thread TeXmacs
On Thu, Jan 27, 2022 at 12:57:05AM +0100, Massimiliano Gubinelli wrote: > Sure, this is essentially the first version which can interpret user input in > some useful way. The browser impose some constraints so some work is needed > to have working windows and popup. Yes, but despite all problems

Re: [Texmacs-dev] TeXmacs & Webassembly

2022-01-26 Thread Massimiliano Gubinelli
HI Joris, > On 26. Jan 2022, at 21:23, TeXmacs wrote: > > Hi Max, > > On Wed, Jan 26, 2022 at 07:04:24PM +0100, Massimiliano Gubinelli wrote: > [...] > Thanks, now it works. With lots of quirks though. > Especially the size of windows is problematic, > for instance when opening a menu. > But

Re: [Texmacs-dev] TeXmacs & Webassembly

2022-01-26 Thread TeXmacs
Hi Max, On Wed, Jan 26, 2022 at 07:04:24PM +0100, Massimiliano Gubinelli wrote: > Sorry Joris, > my fault. I forgot an auxiliary file (on top of the image file). Now should > work, a new upload here > > https://www.dropbox.com/s/y4rijsbuya2s827/TeXmacs-webassembly-2.zip?dl=0 >

Re: [Texmacs-dev] TeXmacs & Webassembly

2022-01-26 Thread Massimiliano Gubinelli
Sorry Joris, my fault. I forgot an auxiliary file (on top of the image file). Now should work, a new upload here https://www.dropbox.com/s/y4rijsbuya2s827/TeXmacs-webassembly-2.zip?dl=0 same procedude as the other. Call

Re: [Texmacs-dev] TeXmacs & Webassembly

2022-01-26 Thread TeXmacs
On Wed, Jan 26, 2022 at 03:39:12PM +0100, Massimiliano Gubinelli wrote: > The files TeXmacs.* have to be right in the directory where you invoke the > python script (i.e. in $PWD). And then you visit > http://localhost:TeXmacs.html in the browser. Yes, that is exactly what I did... Best wishes,

Re: [Texmacs-dev] TeXmacs & Webassembly

2022-01-26 Thread Massimiliano Gubinelli
I'm not sure I understand the log correctly. Which page have you requested? It seems is not finding the files but it is strange since in this case it should not request for qtloader.js or the others. The files TeXmacs.* have to be right in the directory where you invoke the python script (i.e.

Re: [Texmacs-dev] TeXmacs & Webassembly

2022-01-26 Thread Massimiliano Gubinelli
The broken image is normal, I forgot to add a file to the bundle. Should not matter (it does not on my machine). You have to wait ~30 sec. The server should output some messages to indicate that the files have been requested by the browser. Firefox is faster in my experience, but it should work

Re: [Texmacs-dev] TeXmacs & Webassembly

2022-01-26 Thread TeXmacs
On Wed, Jan 26, 2022 at 02:37:51PM +0100, TeXmacs wrote: > > this will load the .wasm file and compile it and then load the .data file > > (which contains the resources like fonts, scripts, etc..) and create a > > virtual FS out of it. > > It takes some time but sooner or later you should see T

Re: [Texmacs-dev] TeXmacs & Webassembly

2022-01-26 Thread TeXmacs
Hi Max, On Wed, Jan 26, 2022 at 02:19:57PM +0100, Massimiliano Gubinelli wrote: > on my machine works as follows: > > - unzip the files and enter the directory. > - run 'python3 -m http.server' or something like this to initiate an HTTP > server. For me it start listening to localhost:8000: > >

Re: [Texmacs-dev] TeXmacs & Webassembly

2022-01-26 Thread Massimiliano Gubinelli
Joris, on my machine works as follows: - unzip the files and enter the directory. - run 'python3 -m http.server' or something like this to initiate an HTTP server. For me it start listening to localhost:8000: mgubi@Ulrike build-wasm % python3 -m http.server Serving HTTP on :: port 8000 (http:/

Re: [Texmacs-dev] TeXmacs & Webassembly

2022-01-26 Thread TeXmacs
Hi Max, Thanks, this sounds interesting, but could you provide a small HOWTO about how to launch this version of TeXmacs? I downloaded the zip file and I don't see how to use it. Best wishes, --Joris On Wed, Jan 26, 2022 at 11:01:40AM +0100, Massimiliano Gubinelli wrote: > Dear all, > > I've