[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Texmacs-dev] TeXmacs & Webassembly

From: Massimiliano Gubinelli
Subject: Re: [Texmacs-dev] TeXmacs & Webassembly
Date: Wed, 26 Jan 2022 14:19:57 +0100


 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://[::]:8000/) ...

then on a browser visit the page http://localhost:8000/TeXmacs.html

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 TeXmacs in the window. (tested on Safari and Firefox on Mac).


On 26. Jan 2022, at 14:15, TeXmacs <texmacs@lix.polytechnique.fr> wrote:

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 experimented in porting TeXmacs to Webassembly. The result is attached to this message. It is a version of TeXmacs with S7 as scheme interpreter and running with the legacy widget kit on top of a Qt layer. All compiled in Webassembly with Qt/Wasm and Emscripten. It seems usable even if compiled without optimization.

You can grab it here (67mb compressed)


but you need a local server to serve the files to the browser.

Note that this is just a test. Windows and maybe many other things are not yet working properly. You can try it safely since the program is sandboxed and cannot interact with your filesystem. In particular you have only access to a virtual filesystem in memory, so you cannot save files on your computer (yet).

Hope you enjoy. Webassembly is really an interesting technology. We should think if we can leverage it to have more widespread adoption of TeXmacs.


Texmacs-dev mailing list

Texmacs-dev mailing list

reply via email to

[Prev in Thread] Current Thread [Next in Thread]