accesskit
elm-architecture-tutorial
Our great sponsors
accesskit | elm-architecture-tutorial | |
---|---|---|
24 | 38 | |
908 | 4,157 | |
14.4% | - | |
8.8 | 0.0 | |
5 days ago | about 4 years ago | |
Rust | Elm | |
BSD 3-clause "New" or "Revised" License | BSD 3-clause "New" or "Revised" License |
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.
accesskit
-
Looking for this. html + css rendering through wgpu.
If you were to implement this yourself, i'd look into either swash or cosmic-text for the text rendering stack (this is one of the things you really don't want to write from the ground up). For accessibility, AccessKit has quickly become the standard for communicating with crossplatform accessibility APIs in rust GUI. lightningcss (or its lower level counterpart cssparser) are both decent options for CSS parsing. Taffy handles some of what browsers offer for a layout engine, but is still being worked on.
-
JetBrains Noria
> Fleet relies on the Java AWT/Swing framework to get a window from an operating system, but it doesn’t use the Java platform for managing its GUI components besides one JFrame and JPanel on top of it.
This is a terrible decision that is going to bite them in the long run. Doing things this way makes it far, far more difficult to implement accessibility, and regulations on this are only going to get stricter.
Implementing accessibility for a framework like that would involve three separate implementations for three separate platforms and the need to interface with D-Bus, COM and Objective C, from Java. I imagine that the latter two would be particularly difficult, considering how bad Java's FFI support is. It's not just calling methods either, you'd actually need to implement your own classes that conform to the relevant COM interfaces / Objective C protocols. There are libraries that can help with this[1], but I don't think they would work particularly well for something as complex as a code editor.
-
fltk-accesskit: AccessKit integration for fltk
fltk-accesskit is an accesskit integration crate for fltk-rs, the gui crate. It's implemented as an external crate to allow for more experimentation before stabilizing the api, especially since fltk is at version 1.4.
- Emerging Rust GUI libraries in a WASM world
-
We're building a browser when it's supposed to be impossible
Libraries for a lot of this stuff exist (albeit in many cases not very mature yet):
- https://github.com/pop-os/cosmic-text does text layout (which Taffy explicitly considers out of scope)
- https://github.com/AccessKit/accesskit does accessibility
- https://github.com/servo/rust-cssparser does value-agnostic CSS parsing (it will parse the general syntax but leaves value parsing up to the user, meaning you can easily add support for whatever properties you what). Libraries like https://github.com/parcel-bundler/lightningcss implement parsing for the standard css properties.
- There are crates like https://github.com/BurntSushi/bstr and https://docs.rs/wtf8/latest/wtf8/ for working with non-unicode text
We are planning to add a C API to Taffy, but tbh I feel like C is not very good for this kind of modularised approach. You really want to be able to expose complex APIs with enforced type safety and this isn't possible with C.
-
XUL Layout has been removed from Firefox
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)
-
A new open-sourcing project launches!!! A declarative, compose-based and cross-platform GUI
Using HarfBuzz makes sense. But if you're looking for a pure-Rust alternative, I hear cosmic-text (made by Pop!_OS) is good. There's also AccessKit for accessibility.
-
GPU-Backed User Interfaces
There are efforts to support a cross platform accessibility library:
-
Egui 0.20 Released
egui is an easy-to-use immediate mode GUI for Rust, and I just released 0.20. It's a big release!
There is now support for AccessKit (https://github.com/AccessKit/accesskit) which brings accessibility to egui (a first for an immediate mode GUI?).
There is also better table support, nicer keyboard shortcut handling, better looking text in light mode (still not great, but better).
See more in the changelog: https://github.com/emilk/egui/blob/master/CHANGELOG.md
Try it out at www.egui.rs
-
Why Rust?
So-so. There is an experimental screen reader you can enable in the "Backend" panel of egui.rs.
There is ongoing work to integrate AccessKit (https://github.com/AccessKit/accesskit) which will improve things significantly.
elm-architecture-tutorial
-
Is there any alternative other than JavaScript to deal with web frontend?
Elm is a different approach that compiles into JavaScript. In the extreme case, you have Emscripten which will compile many language into JavaScript but will feel really clumsy compared to using JavaScript in a lot of cases.
-
Learning functional oncepts - Which Language?
https://guide.elm-lang.org/ for a high level guide, and an unstyled button example https://elm-lang.org/examples/buttons.
-
Elm for React developers
I hope this tiny guide was helpful, and that you learned something new today. If you want to learn more about Elm, you should check out the official guide or say hello in the Elm Slack #beginners channel
-
The best language tutorials that you have seen?
https://guide.elm-lang.org/ is always a solid example for me
-
Why I decided to learn (and teach) Clojure
After going through the whole Introductory Guide to the Elm Language and reading the Elm in Action book, I already felt quite comfortable developing webapps in this paradigm. I liked Elm so much that I started a project to teach programming to beginners using this language and made the first classes available on the website elm.dev.br (in Brazilian Portuguese).
- Por que Elm é uma linguagem tão deliciosa?
- Statically-typed functional programming, Elm, Conway's Game of Life, and Emergence
-
Learn functional programming with Advent of Code! ☃️
The Elm guide
-
No side effects/change state.
I'd be happy to jump on a discord call to see if we can't get a fun hello world going locally. There's a live one here you can check out that just renders 'hello world', and they've got a great guide (sorta like the Rust Book).
-
Which functional programming language should I learn?
If you know Web development already, Elm might be the easiest approach. The Elm guide will have you work on functional snippets of code very quickly. The syntax is almost the same as Haskell, it's also pure, it just comes with far less bells and whistles as far as advanced features go. But you'll be able to have a real working web app in no time and the Elm architecture will basically force you to make it functional (whereas you can bend Haskell to program something imperative, with mutable state all over the place, etc…). Elm also has some of the most helpful compiler error messages and a time-traveling debugger, both great features when you're learning. (well, the time-traveling debugger is a great feature, period)
What are some alternatives?
papers-we-love - Papers from the computer science community to read and discuss.
Elm - Compiler for Elm, a functional language for reliable webapps.
tauri - Build smaller, faster, and more secure desktop applications with a web frontend.
widevine-l3-guesser
flux - Application Architecture for Building User Interfaces
Kalman-and-Bayesian-Filters-in-Python - Kalman Filter book using Jupyter Notebook. Focuses on building intuition and experience, not formal proofs. Includes Kalman filters,extended Kalman filters, unscented Kalman filters, particle filters, and more. All exercises include solutions.
vite-plugin-elm - A plugin for Vite enables you to compile an Elm application/document/element
gyroflow - Video stabilization using gyroscope data
Scala school - Lessons in the Fundamentals of Scala
clojure-style-guide - A community coding style guide for the Clojure programming language
femtovg
chibi-scheme - Official chibi-scheme repository