Skip Navigation
InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)BC
BB_C @programming.dev
Posts 2
Comments 124
fatal error: dbus/dbus-arch-deps.h: No such file or directory
  • % pkg-config --cflags dbus-1
    -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include
    % pkg-config  --libs dbus-1
    -ldbus-1
    
    gcc main.c `pkg-config --cflags --libs dbus-1`
    

    You don't need to link against the library yet, but you will.

    Linking might become a separate step when you have multiple files, not just main.

  • JetBrains RustRover Is Released and Includes a Free Non-Commercial Option
  • how does that help when I’m searching a non-Rust project via the GitHub web search interface

    Fair.
    But you are writing a comment under a topic regarding a Rust-flavored IDE, posted to a Rust community. With neither the IDE nor Rust involved, your quoted problem statement is 100% off-topic.

  • Ladybird announcement
  • A reminder that the Servo project has resumed active development since the start of 2023, and is making good progress every month.

    If you're looking for a serious in-progress effort to create a new open, safe, performant, independent, and fully-featured web engine, that's the one you should be keeping an eye on.

    It won't be easy trying to catch up to continuously evolving and changing web standards, but that's the only effort with a chance.

  • "Ladybird announcement" by Andreas Kling (from SerenityOS)
  • I for one am happy we’re getting an alternative to the Chrome/Firefox duality we’re stuck with.

    Anyone serious about that would be sending their money towards Servo, which resumed active development since the start of 2023, and is making good progress every month.

    I would say nothing but "Good Luck" to other from-scratch efforts, but It's hard not to see them as memes with small cultist followings living on hope and hype.

  • JetBrains RustRover Is Released and Includes a Free Non-Commercial Option
  • My post was a showcase of why there is no substitute for knowing your tools properly, and how when you know them properly, you will never have to wait for 5 minutes, let alone 5 years, for anything, because you never used or needed to use an IDE anyway.

    This applies universally. No minimum smartness or specialness scores required.

  • JetBrains RustRover Is Released and Includes a Free Non-Commercial Option
  • Not sure how what I write is this confusing to you.

    • Tests don't necessarily live in paths containing test.
    • Code in paths containing test is not necessarily all tests.
    • cargo expand gives you options for correctly and coherently expanding Rust code, and doesn't expand tests by default.
    • rg was half a joke since it's Rust's grep. You can just pipe cargo expand [OPTIONS] [ITEM] output to vim '+set ft=rust' - or bat --filename t.rs and search from there.
  • Dioxus Labs + “High-level Rust
  • that’s not what I’m looking for when I’m looking at a backtrace. I don’t mind plain unwraps or assertions without messages.

    You're assuming the PoV of a developer in an at least partially controlled environment.

    Don't underestimate the power of (preferably specific/unique) text. Text a user (who is more likely to be experiencing a partially broken environment) can put in a search engine after copying it or memorizing it. The backtrace itself at this point is maybe gone because the user didn't care, or couldn't copy it anyway.

  • Dioxus Labs + “High-level Rust
  • Don't get angry with me my friend. We are more in agreement than not re panics (not .unwrap(), another comment coming).

    Maybe I'm wrong, but I understood 'literally' in 'literally never' in the way young people use it, which doesn't really mean 'literally', and is just used to convey exaggeration.

  • Dioxus Labs + “High-level Rust
  • But why can’t we fight to make Rust better and be that “good enough” tool for the next generation of plasma physicists, biotech researchers, and AI engineers?

    Because to best realize and appreciate Rust's added value, one has to to be aware, and hindered by, the problems Rust tries to fix.

    Because Rust expects good software engineering practices to be put front and center, while in some fields, they are a footnote at best.

    Because the idea of a uni-language (uni- anything really) is unattainable, not because the blasé egalitarian "best tool for the job" mantra is true, but because "best tool" from a productive PoV is primarily a question of who's going to use it, not the job itself.

    Even if a uni-language was the best at everything, that doesn't mean every person who will theoretically use it will be fit, now or ever, to maximize its potential. If a person is able to do more with an assumed worse tool than he does with a better one, that doesn't necessarily invalidate the assumption, nor is it necessarily the fault of the assumed better tool.

    Rust’s success is not a technical feat, but rather a social one

    fighting the urge to close tab

    Projects like Rust-Analyzer, rustfmt, cargo, miri, rustdoc, mdbook, etc are all social byproduct’s of Rust’s success.

    fighting much harder

    LogLog’s post makes it clear we need to start pushing the language forward.

    One man's pushing the language forward is another man's pushing the language backward.

    A quick table of contents

    Stopped here after all the marketing talk inserted in the middle.
    May come back later.


    Side Note: I don't know what part of the webshit stack may have caused this, but selecting text (e.g. by triple-clicking on a paragraph) after the page is loaded for a while is broken for me on Firefox. A lot of errors getting printed in the JS console too. Doesn't happen in a Blinktwice browser.

  • Dioxus Labs + “High-level Rust
  • From my experience, when people say “don’t unwrap in production code” they really mean “don’t call panic! in production code.” And that’s a bad take.

    What should be a non-absolutest mantra can be bad if applied absolutely. Yes.

    Annotating unreachable branches with a panic is the right thing to do; mucking up your interfaces to propagate errors that can’t actually happen is the wrong thing to do.

    What should be a non-absolutest mantra can be bad if applied absolutely.

  • Dioxus Labs + “High-level Rust
  • (DISCLAIMER: I haven't read the post yet.)

    For example, if you know you’re popping from a non-empty vector, unwrap is totally the right too(l) for the job.

    That would/should be .expect(). You register your assumption once, at the source level, and at the panic level if the assumption ever gets broken. And it's not necessarily a (local) logical error that may cause this. It could be a logical error somewhere else, or a broken running environment where sound logic is broken by hardware or external system issues.

    If you would be writing comments around your .unwrap()s anyway (which you should be), then .expect() is a strictly superior choice.

    One could say .unwrap() was a mistake. It's not even that short of a shortcut (typing wise). And the maximumly lazy could have always written .expect("") instead anyway.

  • Frequency detection crate
  •     /// # Panics
        ///
        /// - if `samples.len()` does not match the `sample_count` passed to [Self::new]
        /// - if there are `NaN`s in the sample slice
    

    Since this is library code, why not make the function return a Result?

  • cushy v0.3.0 Released

    github.com Release v0.3.0 · khonsulabs/cushy

    Breaking Changes This crate's MSRV is now 1.74.1, required by updating wgpu. wgpu has been updated to 0.20. winit has been updated to 0.30. All context types no longer accept a 'window life...

    Release v0.3.0 · khonsulabs/cushy
    1

    slint 1.6.0 Released

    github.com Release 1.6.0 · slint-ui/slint

    Release announcement with the highlights: https://slint.dev/blog/slint-1.6-released Detailed list of changes: ChangeLog

    Release 1.6.0 · slint-ui/slint
    2