4 ms·
> Worse, there're no good open source implementations of GPU-based ones. Microsoft ships an implementation as a part of OS (Direct2D) but it's not open source.
by leakbang 4y ago
> Worse, there're no good open source implementations of GPU-based ones. Microsoft ships an implementation as a part of OS (Direct2D) but it's not open source. Linux simply doesn't have an equivalent.
What about OpenGL? I believe that the Firefox/Servo WebRender (written in Rust) also uses OpenGL. But I do believe that the GPU acceleration implementation is more complete on Windows and Mac OS.
> you'll definitely find good free libraries to deal with HTML and CSS, you'll probably find libraries to interpret or JIT-compile JavaScript, but still, the remaining pieces are huge.
I really want to not use libraries as much as possible and do everything on my own. It won't be good as the libraries but I see a lot of value in doing everything myself and learn it.
- Const-me 4y ago> What about OpenGL? Yeah, GL is good now. Vulkan too, when supported by GPU driver. However, both GL and VK can only render triangle meshes. Browsers don't quite need meshes (except WebGL but that's another story), they need 2D graphics and text. On Windows, browsers and most other modern apps are using Direct2D and DirectWrite. They are OS-provided libraries which render 2D graphics and text with triangle meshes using Direct3D 11 underneath. While modern GL is comparable to D3D11 (and VK comparable to D3D12), there's no equivalent libraries on Linux, i.e. you'll need to do that part on your side, instead of consuming OS-provided libraries. These parts are far from being trivial. > I really want to not use libraries as much as possible and do everything on my own OK but at least you'll be able to look how other people did that. Also the standard library is a part of the language runtime, no reason not to use it. In C# it contains quite a few complicated low-level pieces, like network protocols and cryptography.