It will remain OSS.
Thanks for the detailed questions. A geospatial globe on HPC is exactly the kind of app I hoped someone would try. Here are honest answers:
1. Will it stay open source, and is there lock-in?
Yes. omxcode is MIT licensed and will stay that way. An app is plain Mojo: a view() that returns a tree of components and an update() that handles events. Your rasterizer and OGC code stay your own Mojo modules and don’t depend on omxcode. The thin “host” layer (GTK, web, AppKit, Android) is the only platform-specific part, and you can read it, fork it or replace it. The real dependency is Mojo itself, which you’ve already chosen.
One caveat: it’s early, and it’s mostly me working on it.
2. Can you write your own geospatial components?
Yes. That’s the main idea: the product is the component library, and apps are built from it. The building block you’d want is Canvas. It handles pan, zoom, tap, press, release, right-click, keys, and per-frame animation (on_frame). Content is drawn as a display list of keyed layers, and each host replays it on its own GPU path. For data-heavy layers you can run a Mojo GPU kernel. That’s how the point-cloud demo draws 20M points at about 1.5 ms a frame. Your rasterizer would fit as one of those layers: tiles or terrain drawn by your code, with labels, cursor and selection as cheap overlay layers on top.
There’s no ready-made 3D or globe component yet. You’d be building the first one!
3. Is it an alternative to gpui, rune and similar?
It overlaps, but the approach is different. gpui is native Rust. omxcode is “write it once in Mojo, draw with each platform’s own widgets and GPU path.” The web host today does not use wasm: the Mojo app runs on a server and streams its view and canvas frames to a small JavaScript renderer in the browser. That could suit HPC well, since the heavy compute stays on your nodes and the browser only displays. Mojo-to-wasm worked in a small spike, but Mojo doesn’t support it officially, so it’s parked for now.
4. Tips for porting your 2D playground:
- Start on Linux plus the web host. Those are the most tested. Mac and iPhone build but haven’t been run much on real hardware.
- Keep the rasterizer and OGC code as a separate Mojo package, and write a thin component that hands its output to a
Canvas layer. That way you can still use it outside omxcode.
- Move the 2D map first: tiles, pan and zoom, picking. Leave the globe projection until the interaction feels right. The gestures you need are already there.
- Make data-heavy things (points, rasters) GPU layers, and keep UI-like things (labels, selection rings) as display-list items, so panning doesn’t redraw everything.
- When you need something the framework doesn’t have, open an issue on the repo: GitHub - abhisheksreesaila/omxcode: Write an app once in Mojo; get native Linux, web, Mac and iPhone apps, with the GPU in the same language · GitHub. Real use cases like yours decide what gets built next.
Happy to look at your playground once you’ve started. Feel free to share a link.