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/)YE
Posts
3
Comments
373
Joined
2 yr. ago

  • The person on the video, known online as Tsoding (or by some as "mista azozin"), was writing a music visualizer program using the raylib library for writing videogames. raylib doesn't have code aimed at UI handling, meaning he had to manage the UI by himself. He likes doing a little bit of trolling, so that's why he picked that title.

    Tsoding does by far the most entertaining recreational programming sessions I have ever seen on the Internet, so, despite them being quite long (about two hours), I recommend you watch at least a little bit of his videos/streams if you have time.

    If you're interested specifically on this video in question:

  • It's interesting to see Apple fighting the EU's regulatory bodies while complying with everything that the Chinese government asks.

    There's a simple reason for this. If Apple doesn't follow every single one of the Chinese government's orders, they may be entirely banned from the country. In the EU, specially being it a union that prioritises democracy, they can complain all they want.

  • Tsoding has created a few rules for writing Rust to make Rust "fun" to program in, and gave them the name of Crust.

    Here is the rule set (it may change over time):

    1. Every function is unsafe.
    2. No references, only pointers.
    3. No cargo, build with rustc directly.
    4. No std, but libc is allowed.
    5. Only Edition 2021.
    6. All user structs and enums #[derive(Clone, Copy)].
    7. Everything is pub by default.

    If you ever want to try this out for some ungodly reason, there's a GitHub repository with an example Main that shows how to use libc and other libraries (in the example, it's raylib), and with a Makefile showing how to compile your projects (remember we aren't using cargo).

  • OP, I don't think you've correctly linked to the post (when I visit the linked webpage, the browser tries to download an ActivityPub activity instead of showing the post in the Mastodon web UI). Please replace the link with this one.

  • Wait, now I need to know why.

    some time later *

    I went to check why the hell this happened. It looks like the pair ("(,)") is defined as an instance of Foldable, for some reason, which is the class used by functions like foldl() and foldr(). Meanwhile, triples and other tuples of higher order (such as triples, quadruples, ...) are not instances of Foldable.

    The weirdest part is that, if you try to use a pair as a Foldable, you only get the second value, for some reason... Here is an example.

     
        
    ghci> foldl (\acc x -> x:acc) [] (1,2)
    
    [2]
    
    
      

    This makes it so that the returned length is 1.

  • 196 @lemmy.blahaj.zone

    Dear friends, let us rule Europe (via banning "conversion therapy" in the EU)

    196 @lemmy.blahaj.zone

    Brack(rul)eys

    196 @lemmy.blahaj.zone

    Cirno car(ule)