raqote
Rust 2D graphics library (by jrmuizel)
cargo-asm
cargo subcommand showing the assembly or llvm-ir generated for Rust code (by gnzlbg)
Our great sponsors
raqote | cargo-asm | |
---|---|---|
4 | 13 | |
979 | 1,104 | |
- | - | |
4.9 | 0.0 | |
19 days ago | about 2 years ago | |
Rust | Rust | |
BSD 3-clause "New" or "Revised" License | GNU General Public License v3.0 or later |
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.
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.
raqote
Posts with mentions or reviews of raqote.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-10-04.
- Did we just found a use for bubblesort?
-
Hey Rustaceans! Got an easy question? Ask here (40/2021)!
There's several different approaches you could take, but I'd probably suggest macroquad as the easiest. I've also used minifb for windowing + a drawing library like raqote or tiny-skia.
- Pixie – A full-featured 2D graphics library for Nim
-
Yofi A Minimalistic Application Launcher For
You may specify font family by adding a line font = "Source Sans Pro" into a config file (path is $HOME/.config/yofi/yofi.config). Though, perhaps you meant "Source Code Pro" which is unfortunately broken in third-party rendering library. You may specify font size similarly with font_size = 12 line, though the binary from the last release doesn't support it yet, so you either may built yofi from master (as simple as cargo b --release), or wait for the next release (I think it will be on this week).
cargo-asm
Posts with mentions or reviews of cargo-asm.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-12-08.
-
Performance difference between obj.function(...) and function(obj, ...) ?
cargo asm might be useful here (if you can't use godbolt).
-
Is there a simple way to borrow the value of an Option without using a match statement?
They should be inlined in release mode. You'd have to verify by checking the assembly, though, which could be done directly in the Rust playground or with a tool like cargo-asm.
-
Hey Rustaceans! Got a question? Ask here (4/2023)!
You can use cargo asm - not sure if you can integrate it with VSCode, but even from a terminal it's a pretty convenient tool.
-
How does rust optimize this code to increase the performance so drastically?
There's probably a built-in one somewhere, but I suspect it'd be easier just to install https://github.com/gnzlbg/cargo-asm
-
Is there a library to display source with annotations?
I don't know if there's a way to do a side by side comparison but cargo-asm uses the source mapping information from rustc to annotate chunks of assembly with it's respective rust code, though it's an imperfect process.
-
Hey Rustaceans! Got a question? Ask here! (25/2022)!
After that you would need some tools to help figure out how to achieve improvements. That will depend on your system and personal preferences. As the other commenter suggested, perf is a good choice on linux. I personally like to look at the generated assembly, using either cargo asm, godbolt, or just rust playground.
-
New crate announcement cargo-show-asm
Doesn't this already exist? https://github.com/gnzlbg/cargo-asm
- on the fly disassembler for Rust symbols
-
Writing the fastest GBDT libary in Rust
From the flamegraph, we knew which function was taking the majority of the time, which we briefly described above. We started by looking at the assembly code it generated to see if there were any opportunities to make it faster. We did this with cargo-asm.
-
How can I profile this type of slowdown?
You're best bet at the moment is probably using cargo-asm to inspect the function assembly to see when it is performing the correct TCO.
What are some alternatives?
When comparing raqote and cargo-asm you can also consider the following projects:
tiny-skia - A tiny Skia subset ported to Rust
rust - Empowering everyone to build reliable and efficient software.
pixie - Full-featured 2d graphics library for Nim.
cargo-show-asm - cargo subcommand showing the assembly, LLVM-IR and MIR generated for Rust code
pixie-python - Full-featured 2D graphics library for Python.
multitarget-issue
rustybuzz - A complete harfbuzz's shaping algorithm port to Rust
safe_arch - Exposes arch-specific intrinsics as safe function (via cfg).
macroquad - Cross-platform game engine in Rust.
wide - A crate to help you go wide. By which I mean use SIMD stuff.
resvg-test-suite - resvg test suite
stateright - A model checker for implementing distributed systems.