I've tried for a while to actually compile lilypond to wasm, and it seems very 
difficult, so I gave up. More recently I discovered container2wasm (linked 
below) and I decided to give this another shot. I've actually managed to get 
the lilypond Docker container working in a browser! It took quite some effort 
to get the emulated filesystem to work, but in the end I managed to pull it 
off. It now works, but is still very slow (the example on my website took 60 
seconds on my laptop and 130 on my phone). Still I'm quite happy with the 
result because this means I can control every part of the process (including 
adding local files and commandline parameters). My code and corresponding 
GitHub pages website are linked below (and these are still very much a work in 
progress, barely out of Proof-Of-Concept fase). Curious what you guys think! 
Any ideas for easy performance improvements?

container2wasm: https://github.com/container2wasm/container2wasm
lilypond-wasm repo: https://github.com/thyrum/lilypond-wasm
lilypond-wasm website: https://thyrum.github.io/lilypond-wasm/

Greetings,
Aron


-------- Original Message --------
On Sunday, 04/13/25 at 10:24 Janneke Nieuwenhuizen <[email protected]> wrote:
Han-Wen Nienhuys writes:

> On Wed, Apr 9, 2025 at 2:51 PM Aron de Jong via Discussions on LilyPond
> development <[email protected]> wrote:
>
>> Is there any way to run lilypond client side in a web app? Like with wasm
>> or something similar? I've started trying to build lilypond for wasm with
>> emscripten but am held up trying to compile all the depenencies for wasm as
>> well.
>>
>> All help and insights are greatly appreciated.
>
>
> I expect that compiling Guile will be hard, because it  does a lot of low
> level stuff (BDW Garbage collector, JIT etc.)

Guile is running quite well in the browser, nowadays.  You need a recent
browser, though.  See https://spritely.institute/hoot/

Greetings,
Janneke

--
Janneke Nieuwenhuizen <[email protected]>  | GNU LilyPond https://LilyPond.org
Freelance IT https://www.JoyOfSource.com | Avatar® https://AvatarAcademy.com


Reply via email to