vello VS xilem

Compare vello vs xilem and see what are their differences.

vello

An experimental GPU compute-centric 2D renderer. (by linebender)

xilem

An experimental Rust native UI framework (by linebender)
Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
vello xilem
31 14
1,936 2,746
8.2% 8.3%
9.4 8.6
3 days ago 7 days ago
Rust Rust
Apache License 2.0 Apache License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

vello

Posts with mentions or reviews of vello. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-03-20.
  • Rive Renderer – now open source and available on all platforms
    7 projects | news.ycombinator.com | 20 Mar 2024
    I'm looking forward to doing careful benchmarking, as this renderer absolutely looks like it will be competitive. It turns out that is really hard to do, if you want meaningful results.

    My initial take is that performance will be pretty dependent on hardware, in particular support for pixel local storage[1]. From what I've seen so far, Apple Silicon is the sweet spot, as there is hardware support for binning and sorting to tiles, and then asking for fragment shader execution to be serialized within a tile works well. On other hardware, I expect the cost of serializing those invocations to be much higher.

    One reason we haven't done deep benchmarking on the Vello side is that our performance story is far from done. We know one current issue is the use of device atomics for aggregating bounding boxes. We have a prototype implementation [2] that uses monoids for segmented reduction. Additionally, we plan to do f16 math (which should be a major win especially on mobile), as well as using subgroups for various prefix sum steps (subgroups are in the process of landing in WebGPU[3]).

    Overall, I'm thrilled to see this released as open source, and that there's so much activity in fast GPU vector graphics rendering. I'd love to see a future in which CPU path rendering is seen as being behind the times, and this moves us closer to that future.

    [1]: https://dawn.googlesource.com/dawn/+/refs/heads/main/docs/da...

    [2]: https://github.com/linebender/vello/issues/259

    [3]: https://github.com/gpuweb/gpuweb/issues/4306

  • WebKit Switching to Skia for 2D Graphics Rendering
    6 projects | news.ycombinator.com | 20 Feb 2024
  • Looking for this. html + css rendering through wgpu.
    14 projects | /r/rust | 3 Jul 2023
    Dioxus is working on this with blitz. It's leveraging wgpu through the linebender group's Vello renderer. Still in early stages.
  • A note on Metal shader converter
    2 projects | news.ycombinator.com | 12 Jun 2023
    If you're doing advanced compute work (including lock-free data structures), then it's best effort.

    https://github.com/linebender/vello/issues/42 is an issue from when Vello (then piet-gpu) had a single-pass prefix sum algorithm. Looking back, I'm fairly confident that it's a shader translation issue and that it wouldn't work with MoltenVK either, but we stopped investigating when we moved to a more robustly portable approach.

  • Vello: An experimental WebGPU-based compute-centric 2D renderer in Rust
    1 project | news.ycombinator.com | 23 Apr 2023
  • XUL Layout has been removed from Firefox
    18 projects | news.ycombinator.com | 1 Apr 2023
    There are a number of up-and-coming Rust-based frameworks in this niche:

    - https://github.com/iced-rs/iced (probably the most usable today)

    - https://github.com/vizia/vizia

    - https://github.com/marc2332/freya

    - https://github.com/linebender/xilem (currently very incomplete but exciting because it's from a team with a strong track record)

    What is also exciting to me is that the Rust GUI ecosystem is in many cases building itself up with modular libraries. So while we have umpteen competing frameworks they are to a large degree all building and collaborating on the same foundations. For example, we have:

    - https://github.com/rust-windowing/winit (cross-platform window creation)

    - https://github.com/gfx-rs/wgpu (abstraction on top of vulkan/metal/dx12)

    - https://github.com/linebender/vello (a canvas like imperative drawing API on top of wgpu)

    - https://github.com/DioxusLabs/taffy (UI layout algorithms)

    - https://github.com/pop-os/cosmic-text (text rendering and editing)

    - https://github.com/AccessKit/accesskit (cross-platform accessibility APIs)

    In many cases there a see https://blessed.rs/crates#section-graphics-subsection-gui for a more complete list of frameworks and foundational libraries)

  • Drawing and Annotation in Rust
    1 project | /r/rust | 8 Mar 2023
    blessed.rs lists these three crates for 2D drawing: - https://lib.rs/crates/femtovg - https://lib.rs/crates/skia-safe - https://github.com/linebender/vello
  • Recommended UI framework to draw many 2D lines?
    5 projects | /r/rust | 6 Mar 2023
    Vello (https://github.com/linebender/vello) which uses wgpu to render Edit: just saw you require images. Vello doesn't support those yet
  • Announcing piet-glow, a GL-based implementation of Piet for 2D rendering
    3 projects | /r/rust | 6 Mar 2023
    How does this relate to Vello? Both target raw-window-handle for winit compatibility. Vello uses WGPU vs piet-glow using GL.
  • Is WGPU actually a good idea yet?
    1 project | /r/rust_gamedev | 1 Mar 2023
    Finally, maybe vello could help you with ideas. It's not production ready yet, but they have some interesting ideas for 2D rendering using wgpu.

xilem

Posts with mentions or reviews of xilem. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-07-27.
  • Xilem – An experimental Rust architecture for reactive UI
    1 project | news.ycombinator.com | 17 Oct 2023
  • Graphite: In-development raster and vector 2D graphics editor that is FOSS
    3 projects | news.ycombinator.com | 27 Jul 2023
    The web browser gives us an extremely frictionless development and deployment process. Our CI generates a fully deploy at a unique link for every commit which lets us open and test PRs with a single click. It deploys updates to users without needing to make them go through an updater. In these relatively early stages of our development process, the importance of the velocity that gives us cannot be understated. Plus, the ability for users to try it out in one second is quite helpful.

    I've designed the whole architecture specifically to avoid the web UI "feeling like a web app" with the subtle latency of interacting with the site. I wrote all-custom UI components using the minimal amount of HTML and CSS to achieve the requirements instead of depending on an external component framework which always loves nesting dozens of `div`s inside each other to achieve what should be doable in one or two. And our highly-lightweight JS which calls into Rust (Wasm) lets it keep the slow logic out of slow JS. And we are using Svelte to move most of the frontend DOM management logic from runtime to compile time. This architecture really helps us keep performance levels as close as possible to feeling native despite using the web for its GUI rendering; and I believe it has succeeded at feeling responsive by comparison to most other web apps you use (even Slack, for example, which shouldn't be nearly as complex).

    Web lets us build fast, deploy the latest version to users fast, leverage prevalent developer experience with HTML/CSS for creating GUIs, and avoid getting stuck in a box with Rust's currently-immature GUI ecosystem. That's the tradeoff we had to make early on, and it was a good decision. But we will eventually move towards a fully native version...

    In the short term, we plan to use [Tauri](https://tauri.app/) which is sort of a hybrid between Electron and a native application. It uses the OS's webview to shrink the shipped binary to only a few megabytes and reuse shared memory resources with other webviews at runtime. It also runs all our Rust code natively instead of through WebAssembly so all the business logic in Graphite runs natively and only the thin UI layer becomes dependent on web tech for the GUI display.

    In the long term, we plan to rewrite the entire GUI in [Xilem](https://github.com/linebender/xilem) which is the up-and-coming Rust GUI that I believe will finally get everything right, including performance (which is something many desktop GUI frameworks are actually bad it, and sometimes even worse than web). We'll still deploy a web version but at that point, it will become native-first.

    Hopefully that roadmap and explanation of the architectural decisions clears up any worries about the short and long term state of our GUI.

  • Is it possible to create Android apps using Rust?
    5 projects | /r/rust | 9 Jul 2023
    That said, Xilem is very close to that idea, but it's in its very early stages and nowhere near Flutter's capabilities.
  • Xilem Vector Graphics (Rust meetup talk)
    2 projects | news.ycombinator.com | 7 Jun 2023
  • 50 Shades of Rust, or emerging Rust GUIs in a WASM world
    3 projects | /r/rust | 26 Apr 2023
    xilem#62 demonstrates how Xilem's reactive layer can target DOM nodes.
  • GUI development with Rust and GTK 4
    15 projects | news.ycombinator.com | 25 Apr 2023
  • Floem - yet another new Rust native UI library
    5 projects | /r/rust | 13 Apr 2023
    Inspired by Xilem, Leptos and rui, Floem aims to be a high performance declarative UI library with minimal effort from the user.
  • XUL Layout has been removed from Firefox
    18 projects | news.ycombinator.com | 1 Apr 2023
    There are a number of up-and-coming Rust-based frameworks in this niche:

    - https://github.com/iced-rs/iced (probably the most usable today)

    - https://github.com/vizia/vizia

    - https://github.com/marc2332/freya

    - https://github.com/linebender/xilem (currently very incomplete but exciting because it's from a team with a strong track record)

    What is also exciting to me is that the Rust GUI ecosystem is in many cases building itself up with modular libraries. So while we have umpteen competing frameworks they are to a large degree all building and collaborating on the same foundations. For example, we have:

    - https://github.com/rust-windowing/winit (cross-platform window creation)

    - https://github.com/gfx-rs/wgpu (abstraction on top of vulkan/metal/dx12)

    - https://github.com/linebender/vello (a canvas like imperative drawing API on top of wgpu)

    - https://github.com/DioxusLabs/taffy (UI layout algorithms)

    - https://github.com/pop-os/cosmic-text (text rendering and editing)

    - https://github.com/AccessKit/accesskit (cross-platform accessibility APIs)

    In many cases there a see https://blessed.rs/crates#section-graphics-subsection-gui for a more complete list of frameworks and foundational libraries)

  • What was the hardest coming from C++ to Rust?
    8 projects | /r/rust | 3 Mar 2023
    Yeah, Druid is being replaced by Xilem, but unfortunately Xilem isn't ready yet. So that whole project's in a bit of an awkward in-between phase where there isn't really any toolkit that can be recommended.
  • Druid, a Rust-native UI toolkit, released v0.8 after two years of work by 80 contributors.
    7 projects | /r/rust | 27 Jan 2023
    Third, we are discontinuing Druid proper. Years of experience has shown that people can struggle with the Druid data architecture and we can do better. This layer will be replaced by a new project called Xilem. We have spent a lot of time thinking about it and this decision was not taken lightly. You can read a more detailed post about the Xilem architecture but the gist of it is that we've found at a way to code UI in Rust that feels a lot more effortless than previous attempts. Xilem will look very intuitive to those familiar with state of the art toolkits such as SwiftUI, Flutter, and React, while at the same time being idiomatic Rust. Also we plan to port as many widgets from Druid to Xilem as possible, which should give the project a reasonable timeline to v0.1. Hopefully later this year.

What are some alternatives?

When comparing vello and xilem you can also consider the following projects:

nanovg - Antialiased 2D vector drawing library on top of OpenGL for UI and visualizations.

floem - A native Rust UI library with fine-grained reactivity

msdfgen - Multi-channel signed distance field generator

iced - A cross-platform GUI library for Rust, inspired by Elm

Vrmac - Vrmac Graphics, a cross-platform graphics library for .NET. Supports 3D, 2D, and accelerated video playback. Works on Windows 10 and Raspberry Pi4.

leptos - Build fast web applications with Rust.

troika - A JavaScript framework for interactive 3D and 2D visualizations

slint - Slint is a declarative GUI toolkit to build native user interfaces for Rust, C++, or JavaScript apps.

tinyraytracer - A brief computer graphics / rendering course

vizia - A declarative GUI library written in Rust

gpuweb - Where the GPU for the Web work happens!

druid - A data-first Rust-native UI design toolkit.