An interesting talk (though hard to watch, stage presence was not his strong suit). It seems like a good option to use Rust for this, since the dbus broker is privileged and talks to unprivileged processes. It thus forms a security barrier.
I'm a bit surprised by the choice of tokio, since zbus uses async-std instead. I wonder what the reason for tokio here was. I also wonder how the work stealing of tokio will work out for battery usage (my understanding is that work stealing scheduling works well when the system is almost fully loaded or very lightly loaded, but has issues with in between where threads compete for work to do causing un needed churn).
I look forward to seeing how this evolves.
Announcement
Collapse
No announcement yet.
Busd Taking Shape As A D-Bus Broker Written In Rust
Collapse
X
-
Originally posted by zaps166 View PostAnother (third) software doing the same thing with the same speed, but more complicated compilation?
cd code
git clone https://github.com/dbus2/busd.git
OR
wget https://github.com/dbus2/busd/archiv...s/0.3.1.tar.gz
<extract if needed>
cd busd
cargo build --release
install ...
- Likes 14
Leave a comment:
-
Another (third) software doing the same thing with the same speed, but more complicated compilation?
Leave a comment:
-
will try this at some point, if when I swap over nothing breaks, that would be a succsess in my books.
- Likes 1
Leave a comment:
-
Originally posted by archkde View Posthow do "terrible CPU usage" and "just as fast" go together?
The case where I think there is work still to be done here is in thread/pool/task/async type things. How you go from 0 workers to 1 worker (extremely common) can often be wasteful. (Do you wake up all threads saying I have a job for you? Do you round robin a fixed pool? Do you work steal? Do you create n_cpu threads at startup? Do you create a heartbeat thread? etc)
Anyway, this is why we should be profiling and using that profiler data to have meaningful conversations about software implementation.
- Likes 1
Leave a comment:
-
People are not tired of moaning about rust ?
Just learn the language and stop being offended.
Rust is C 2.0, you like it or not. They will never state it that clearly, but that's the case.
It's the second system language in the kernel, the us gov wants it more and more, it's not going to go away, so jump in or be left behind.
- Likes 10
Leave a comment:
-
Originally posted by mobadboy View PostI love how they don't show the (terrible) memory usage or the (terrible) CPU usage. It can be just as fast as dbus, but you can't get the same memory/CPU footprint from a managed language as you can with trusty, safe C. I remember the days when very clever programmers would even rely on assembly to optimize their programs. Now you have these snowflakes even pushing back against that or, worse, replacing the well-crafted assembly with (EW) Rust.
Rust is at least nice because it segments all of the non-coders into one group.
- Likes 13
Leave a comment:
-
Originally posted by bkdwt View PostHave you noticed that Rust fans only know how to rewrite pieces of software and rarely create something new?
- Likes 12
Leave a comment:
-
Originally posted by ahrs View Post
Rust is a systems programming language and it has an "unsafe" escape hatch that allows for all the same weird tricks you can do in C, including playing with raw/dangling pointers, etc. It can be just as fast as a good implementation in C but obviously needs to be similarly optimised in order to do so.
- Likes 3
Leave a comment:
Leave a comment: