Zulip Chat Archive

Stream: lean4

Topic: Local mobile app


Geoffrey Irving (Jan 18 2024 at 18:07):

It’s probably a lot of work for minimal advantage, but it would be cool to have a local iPhone app with a Lean 4 repl.

Eric Wieser (Jan 18 2024 at 19:10):

The web editor works fairly well on mobile, but I guess not without internet access

Geoffrey Irving (Jan 18 2024 at 19:10):

Yeah, it’s nice to have offline capabilities, though probably not nice enough to be worth it in this case.

Eric Wieser (Jan 18 2024 at 19:17):

Depending on your use-case, you could host your own web editor from a laptop in your backpack, and connect to a local wifi network with your mobile...

Ruben Van de Velde (Jan 18 2024 at 19:48):

My main issue on mobile is copying code out of it

James Gallicchio (Jan 18 2024 at 20:49):

Geoffrey Irving said:

Yeah, it’s nice to have offline capabilities, though probably not nice enough to be worth it in this case.

even once we have a wasm backend and can run stuff in browser, there's issues running any wasm executable that needs more than like 100MB of memory on mobile :melt:

Geoffrey Irving (Jan 18 2024 at 21:13):

Hmm, I thought the iOS wasm memory limit is closer to 1/2 GB. They did decrease it a while ago: I had to optimize https://perfect-pentago.net to fit under 1/2 GB, since before it used almost 1 G and started erroring out recently.

Geoffrey Irving (Jan 18 2024 at 21:14):

But maybe that’s different as it only uses the memory for brief spikes.

James Gallicchio (Jan 18 2024 at 21:16):

https://github.com/WebAssembly/design/issues/1397 I think that's just an issue with wasm memory specification ;-) you're probably not doing anything wrong

Geoffrey Irving (Jan 18 2024 at 21:17):

That isn’t a problem for the pentago website: I make a fresh wasm instance for each position solve, then tear it all down.

Geoffrey Irving (Jan 18 2024 at 21:18):

But basically: it used to work using almost 1 GB at peak, then stopped working when they tightened the limit, and now it works optimized to use slightly less than 1/2 GB. But that’s still way more than 100 MB.


Last updated: May 02 2025 at 03:31 UTC