• 0 Posts
  • 88 Comments
Joined 1 year ago
cake
Cake day: August 4th, 2023

help-circle
  • Codex@lemmy.worldtoMemes@lemmy.mlSting
    link
    fedilink
    arrow-up
    19
    ·
    edit-2
    2 days ago

    In Alejandro Jodorowsky’s concept for a Dune film from the early 1970s, each house has their costumes and architecture designed by a contemporary artist. Giger was the designer for the Harkonnen, and several of his ideas persisted beyond the failed film.

    The Harkonnen Castle

    A Harkonnen chair

    I assumed Villeneuve was calling back to those designs.






  • Codex@lemmy.worldtoAsklemmy@lemmy.mlTouch Typing
    link
    fedilink
    arrow-up
    5
    ·
    13 days ago

    Try a typing game, there’s lots of them now in several genres. I learned to touch type in secondary school, doing the old fashioned thing of taping a sheet of paper over the keyboard (and typing under it) so you can’t see the keys. That works but I believe in the educational power of games, and it’ll be more fun.

    Otherwise, just practice. If you use lemmy on mobile, try switching to desktop to type more. Start writing letters to people or short stories or anything that just encourages you to type more.



  • I was curious if (since these are statistical models and not actually counting letters) maybe this or something like it is a common “gotcha” question used as a meme on social media. So I did a search on DDG and it also has an AI now which turned up an interestingly more nuanced answer.

    It’s picked up on discussions specifically about this problem in chats about other AI! The ouroboros is feeding well! I figure this is also why they overcorrect to 4 if you ask them about “strawberries”, trying to anticipate a common gotcha answer to further riddling.

    DDG correctly handled “strawberries” interestingly, with the same linked sources. Perhaps their word-stemmer does a better job?



  • I went on a tear at one point trying to really understand, rigorously (I’m a computer and maths person by trade and training), what dialectics are and how, specifically, the material dialectic (the foundation of Marxist thought!) should work.

    I was a bit dissapointed to understand that they can’t really be “rigorous” in that fashion and that they’re really more of a philosophical and rhetorical tool. I do still get a lot of use from them, and in discussions with other people the framework of the dialectic (“Ok, what if we took these two ideas and put them on opposite ends of a spectrum, how does that look?”) is very useful for explaining and expounding upon ideas.


  • I agree with the other suggestions so far, to wit:

    1.dyn is fine, when you need it. People will give you a lot of guff about performance but vtable lookup on a dyn is no less performant than the same thing in C++ (in higher level languages almost every call is dynamically dispatched and those are used for plenty of serious, performant work).

    1. Use enums more.

    2. Use traits and generic functions

    And I would add a couple of other thoughts.

    For some DI type work, you can use cargo’s Features to define custom build flags. You can then put variants on the same code (usually implementing a trait) in different modules and use conditional compilation on the Features to swap out which code is used. This is like a compile-time strategy pattern. I use it for testing, but also to swap out databases (using a local in-memory to test and a real one in prod) and to swap out graphical backends on my roguelike (compiles to OpenGL on windows but Metal on my Mac).

    You’ll probably want to learn Rust’s macro system sooner than later as well. Sometimes a macro is better than a function when you need to generically operate over several types (function argument overloading, in other languages) or work on something in a general but well-structured way (tree walking for example).


  • Codex@lemmy.worldtoMemes@lemmy.mlTime to start an internet war!
    link
    fedilink
    arrow-up
    9
    arrow-down
    1
    ·
    edit-2
    1 month ago

    I sort of consider dipping fries and fries with stuff on them to be two different but related species of meal, pretty much exactly like the difference between chips-and-salsa and nachos. Frychos.

    As to preferences, for dipping, spicy ketchup (mix tomato ketchup 1-for-1 with siriacha or other hot sauce); for frychos, fucking everything! Load em up: guacamole, chilli, cheese, onions, peppers, bacon, mushrooms, gravy, salsa, mustard, marshmallows, spinkles, alright alright I’m getting carried away now, you get the idea!






  • I’m just poking fun that the fundamental type in JS (Object) is an associative-array/hashmap. Technically it has some fancy under-the-hood handling for pure arrays and primitive types. This is also exactly true of Lua, and a little true of Ruby and Python.

    Really, most programmers would do great to start with a hash map or array list and only specialize out further when the problem calls for it.



  • Codex@lemmy.worldtoMemes@lemmy.mlBacon tho
    link
    fedilink
    arrow-up
    12
    arrow-down
    3
    ·
    2 months ago

    Totally missed touch along with many other senses.

    • Killing with my bare hands let’s me feel the life leaving their bodies
    • Killing while standing on one leg balances my desires for vengeance
    • Feasting upon the flesh of those I murder satiates the hunger within me
    • I become lost in the blood frenzy, all sense of time vanishing