I'm reading a paper on my phone in bed and see this problem:
Convolving a list with itself.
Given a list [x1, x2, ..., xn−1, xn], where n is unknown, construct [(x1, xn), (x2, xn−1), ..., (xn−1, x2), (xn, x1)] in n recursive calls.
And I am able to switch apps and solve it right on my phone, without needing to get out of bed.
Looks like it's a fork of emscripten augmented to compile a whole OS kernel and userland. Includes raylib for graphics, and Lua bindings to it so I feel at home. Seems easy to build so I'm comfortable depending on the hosted version.
There's an app store anyone can publish apps to. Your changes remain in your browser's local storage until you publish them. All apps in the app store are mounted on the file system under /usr/store so it's easy to look at their source code.
Disclaimers. It's slow. Still lots of bugs. I had to reboot the VM several times while recording this video. Commands often hang or crash, then completely stop working until I reload. It's never lost my data, though. (Data is stored in local storage.)
I've been thinking some more about handling what are essentially merge conflicts when editing my .love files.
As background, you can click 'edit' on my Carousel-based .love files…
… to edit their source code right on your device, whether it's a computer or mobile device.
The question is how to preserve your edits in the face of changes to lower levels: either the LÖVE app or the .love file you're making changes to.
It seems to me one essential constraint of my platform choice is: upgrading the LÖVE app on a mobile device will blow away all installed .love files. Nothing I can do about this, and luckily LÖVE upgrades rarely enough that maybe we can live with that.
But it does mean we can't get too comfortable making edits on a mobile device. With that in mind, I'm trying out the following flow:
When you edit a file in my Carousel-based multi-file apps like sokoban.love, it highlights the file in red to show that it has local modifications.
Later if you switch to a new version of sokoban.love, you can choose to 'revert' the file and blow away your changes.
You can also 'stash' the file so it won't run but you also still have access to it.
Stashed files receive an immutable version suffix, and get highlighted in a third color.
Stashed files can be unstashed if you want to try them out after making edits.
Still klunky, but feels like an improvement. And I'm trying to only show the new complexities when they're relevant, so most people won't have to care about them. Above all, the hope is that the red reminds people to not make too many changes on a mobile device.
And yes, I've been thinking about Ink & Switch all week. Perhaps this needs CRDTs and collaborative editing. But making it more friendly might encourage more changes than this platform can candidly handle, given the restrictions of mobile platforms.
Of all the apps I've built, perhaps my favorite is snap.love, my box and line drawing tool. I use it constantly -- including for work. I have a terrible short term memory, and now I make quick mindmaps for every little situation where a full-screen IDE on a huge monitor is too tiny to show all the parts of the codebase I care about right now.
I seldom mess with it, but today I modified it to show gridlines any time I drag things around. Should lead to neater maps!
Here's every possible rule for a one-dimensional (neighborhood-1) cellular automaton. All on a single infinite surface you can pan and zoom around on your touchscreen device. In 100 lines.