home.social

Bobulous :rust: :codeberg:

  1. @carnage4life Isn't this what bankers did with sub-prime mortgages? Bundle the garbage together into a complicated new product, get someone shady to give it an 'A' rating, then just wait for suckers to queue up to buy it. How did Margot Robbie describe it?

  2. @molly0xfff He does understand that by taking Wikipedia text under a Creative Commons Attribution-ShareAlike 4.0 licence he's required to make all future versions of his text available under the same licence, right? Right?

    creativecommons.org/licenses/b

  3. Really enjoyed this article about Rust newtypes:

    howtocodeit.com/articles/ultim

    and was sure I'd arrived there via a recent Mastodon post, but now cannot find it to boost it.

  4. Did anyone else finish Detroit: Become Human and somehow manage to get the detective thrown off the case and unintentionally get pretty much all of the friendly characters killed?

    Not sure I could have made a bigger mess of it if I'd tried.

  5. @matari Most of your recorded time will actually have been spent on the System.out.println command. And self-made benchmark timers are notorious for giving bad data, so I recommend JMH instead.

    You're right that String.format is slower than using the + operator, but a JMH benchmark comparison would show the difference to be much greater. (It would also show that String.format allocates a bunch more bytes to the heap.)

    In summary: don't use String.format for simple concatenation.

  6. Just spent another five hours fixing up a new feature I'm hoping the maintainers of will accept into their project.

    github.com/servo/servo/issues/

    The original prototype code was finished within twenty minutes of fetching the Servo codebase for the very first time, and all of the hours since then have been spent fixing edge case bugs and making sure the unit tests work. Always amazes me how strong the Pareto Principle is when it comes to software development.

  7. @atamakahere Surely that would need to limit itself to u8 as the input and u128 as the output? And even then you'd need a hard limit enforced on the input value because 255! is equal to more than 3.35E104, whereas u128::MAX is less than 3.5E38.

    In fact, the biggest number which fits is 34! equal to roughly 2.95E38.

    Factorials grow up so fast.

  8. @imperio Is it possible to have rustdoc add a table of contents based on headings and sub-headings in the crate-level documentation block?

    My "Examples" section in lib.rs has become (necessarily, I feel) rather huge, and a table of contents would really help with navigation.

    (This is a naive question rather than a feature request.)

  9. I like the fact American Fuzzy Lop can be halted and resumed, because I really don't need to have a desktop machine rumbling away in the bedroom while I sleep.

    But after 12h12m01s it has so far found zero crashes and zero hangs. So either my XML parser is great at avoiding panics, or my fuzzing method is testing some no-op action. (Though, while I was writing this, it found another path of interest through the executable, so it's doing something.)

  10. @markstos If you're collecting awkward timezone-free clocks, then don't forget my Universal Decimal Time format:

    bobulous.org.uk/udt/index.html

    (Wow, the big graphical version really does not play nice on a smartphone screen in vertical orientation. I'll have to try to make it responsive when I get a chance.)

  11. I was planning to have my parser and XML parser packages published to crates.io by now, but while writing example code I keep finding new features begging to be added, such as the ability to specify a default namespace before reaching for a chain of child elements.

    But I'm pretty sure they say that scope creep always leads to the best outcome, right?

  12. Hey, when are you going to release a patch for the vulnerability for all your active motherboards?

    I see you've released a patch for several ROG X670 models, but no fix for the ROG X570 models (one of which I've had for less than three years). You're not going to leave us hanging, are you?

  13. @imperio I've opened a feature request on the repo:

    github.com/rust-lang/rust-anal

    Out of curiosity, what setup do you use for Rust development?

  14. @RecursiveNeuron Well, I'm using and but this is effectively the same as printf: writing information to the console (on the test environment only). Makes the console tell a story, so you can see where, when, and how your specific logic came off the rails. Using the IDE debugger feels more like taking a magnifying glass to a single grain of sand, but having no idea how it fits into the rest of the beach.

  15. It took a few hours and some experimentation, but using a new Apple TV 4K box as a Thread border router, plus Eve Motion and Eve Power devices, something critically important has been achieved: the Christmas tree in the back room now lights up when someone walks past it.