• 0 Posts
  • 5 Comments
Joined 1 year ago
cake
Cake day: July 2nd, 2023

help-circle
  • I shouldn’t have used C++ as the example. Even C would work. I agree with everything you’re saying, but the original premise. I think if you put ASM vs C, C++, rust, etc, performance would fall near 50/50.

    I’m not the best assembly guy, and I’m not advocating we all write it. But I always felt that the compiler optimization assumption was wrong or weak. Everything would be aligned nicely for my sanity, not performance =]


  • jas0n@lemmy.worldtoRetroGaming@lemmy.worldHow hard could it be?
    link
    fedilink
    English
    arrow-up
    8
    ·
    edit-2
    18 days ago

    I feel like that’s only true if I was asked to “write the assembly for this c++ program.” If I’m actually implementing something big in assembly, I’m not going to do 90% of the craziness someone might be tempted to do in c++. Something that is super easy in c++ doesn’t mean it’s easy for the CPU. Writing assembly, I’m going to do what’s easy for the CPU (and efficient) because, now, I’m in the same domain.

    The bottom line is cranking up the optimization level can get you a 2-5x win. Using memory efficiently can give you a 10-100x win.




  • I clicked it for you:

    I’m so lost. Is there an easy mode to the fediverse? I’m trying to figure out how to get into the fediverse and Lemmy but the more I look into it the more confused I get. I’ve looked through a few guides and they all make it look so simple but then present me with like hundreds of different options about which instance I should go to and I’m unclear about what to do. I’m pretty much paralyzed by choice and I just find the whole thing rather frustrating. Am I the only one this whole thing doesn’t make sense to? Is there a simple layman’s guide somewhere that just explains things in general terms or makes the transition easier? It can’t be that hard; I’ve seen posts on whatever Lemmy instance my jerboa app is pointed at with thousands of upvotes, so I know plenty of people have managed to make the jump… But I’m still struggling to figure out how. I’ve already applied to several instances and haven’t heard anything from any of them.