I mean, with Electron, you're stuck with WebView, with Chromium. With Tauri, you're stuck with WebView. What if you want to pick? I mean, people should have the power to decide with what they want while keeping the technology that they're using. So, we made it possible to just be able to use either the WebView, which is the default, or you can use Chromium. This is all done via just a simple flag. It doesn't change. It doesn't make your compilation time any slower while building the app. It just works. We just pick the right stuff for you. And it just makes it work.
So, yeah, Ceph obviously gives you more consistency, but it gives you a massive binary, like an example binary was 300 megabyte. We're still trying to optimize it a bit. And WebView is very tiny, like 100 megabytes. For reference, Dino binary itself is, like, I think nowadays at like 80 megabytes. Maybe a bit more, maybe a bit less, not fully sure. But yeah, it's OS-dependent. So, on whatever machine you're on, if you're on a Mac, you're going to potentially see different stuff than you see on, like, a Windows machine, just because on Mac, it would use Safari. On Windows it was Chrome under the hood.
Or you can also just not use an engine. I mean, if you don't want to render a browser window, you don't have to. We have a very lightweight backend, which is the raw backend, which just lets you manage windows, get all the events, et cetera, just like that. You don't get a browser window, but you get a window that you can use WebGPU on. So, if you want to render maybe using, like, 3.js to a window, you can just do that quite simply. Yeah. You get, obviously, no DOM, no Chromium, nothing, but just a GPU window directly. And it's the smallest binary, obviously, because we don't have to include the whole browser. Yeah. So, if you want to, like, again, just creating a window, getting the GPU device, getting the actual, like, underlying Windows surface that you want to render to, and setting up, like Windows Surface is just like Canvas. It uses the exact same API. If you're familiar with Canvas, it just reuses that.
Comments