• 0 Posts
  • 244 Comments
Joined 1 year ago
cake
Cake day: July 1st, 2023

help-circle






  • I would argue they don’t know what that means really. Assembly is pretty much a mapping of words to machine code. It’s just a way to make machine code easier to read. It doesn’t actually change how it works.

    A compiler re-arranges and modifies things so what you write isn’t the same as the final program that is created. With assembly it is. It’s not really an abstraction, but a translation. It doesn’t move you further from the machine, it only makes it so you’re speaking the same language.


  • Cethin@lemmy.zip
    cake
    toProgrammer Humor@programming.devIt's called attaining divinity
    link
    fedilink
    English
    arrow-up
    17
    arrow-down
    1
    ·
    8 days ago

    If you want some modern day fun with this, try the Zachtronics programming games; TIS-100, Shenzhen I/O, and Exapunks.

    Or, my personal favorite I only discovered somewhat recently, try Turing Complete. You start by designing all your logic gates from just a negate gate IIRC. You eventually build up an ALU and everything else you need and then create your own computer. Then you define your own assembly language and have to write programs in your assembly language that run on the computer you’ve designed to complete different tasks. It’s a highly underrated game, although it takes a certain type of person to enjoy.


  • This is pedantic, but assembly languages get “assembled” to machine code. This is somewhat similar to higher level languages being “compiled,” which eventually becomes assembly which gets assembled. The major reason why these are different is because a compiler changes the structure of the code. Assembly is a direct mapping to instructions. It just converts the text into machine code directly, which is why it’s easy to go from machine code to assembly but decompiling doesn’t give you identical results to the original source code.

    Also, binary and hexadecimal are just different ways to view the same binary data and aren’t different things. There is only “machine code” which is a type of binary data but you can view binary with any arbitrary base, though obviously powers of 2 work better.


  • Cethin@lemmy.zip
    cake
    toProgrammer Humor@programming.devCOMEFROM
    link
    fedilink
    English
    arrow-up
    5
    ·
    9 days ago

    A function will be called by code and go to that point in code. To implement functions, you store necessary things to memory and goto the function definition. To implement that with comefrom you’d have to have a list of all the places that need to call the function as comefroms before the function definition. It’d be a mess to read. We almost never care where we are coming from. We care where we’re going to. We want to say “call function foo” not “foo takes control at line x.”








  • Cethin@lemmy.zip
    cake
    toRPGMemes @ttrpg.networkGood
    link
    fedilink
    English
    arrow-up
    6
    ·
    27 days ago

    That should always be the response. It keeps it consistent. It should never be “there are no traps” because it’s a comment on their characters knowledge, which is just that they can’t see any. There’s never a guarantee.


  • Cethin@lemmy.zip
    cake
    toRPGMemes @ttrpg.networkIt's terrifying...
    link
    fedilink
    English
    arrow-up
    4
    ·
    1 month ago

    Not the guy you’re talking to, but my opinion is the only good shows spend time building their world like that. It shows the world is complex and matters. If you blow past that then your world must either be identical to ours or it isn’t interesting.

    My favorite show I think is Battlestar: Galactica. You have to watch a entire miniseries before it gets into the swing of things; when the episodes start. The viewer needs to be immersed in the world to be able to understand the stakes and actually care about what’s happening, for any world anyone creates that isn’t our own.



  • I see a lot of comments saying they aren’t. I’d disagree, but I agree they don’t have to be. The issue is most of the major powers in the world have opposed leftist governments anytime they show up. The ones that didn’t have a strong central power and cultural hegymony collapsed under the pressure. Any nation that had a weaker central power was either destroyed, couped, or undermined by the west.

    There is nothing intrinsically authoritarian about leftism (really, I’d say it’s less authoritarian in it’s ideals), but authoritarianism is easier to hold together when outside pressures are trying to destroy you.