• 0 Posts
  • 53 Comments
Joined 1 year ago
cake
Cake day: June 30th, 2023

help-circle

  • Most games, image processing libraries and other compute demanding libraries already use WASM in the browser. Have been for quite some time. It’s already widely used in every case where it provides a substantial benefit.

    But writing for GUI, which is what 99% of JS is used for, WASM provides little benefit. The speed bottleneck is mostly in DOM manipulation. And every web GUI framework uses 200 npm packages with something like webpack. Getting that to somehow work with your WASM code would be a nightmare if it’s even feasible.






  • Making something seem resilient and successful is very easy in the short term when you have control over what data is coming out of it.

    There were companies that were commiting fraud or were straight up ponzi schemes that seemed very successful, all while operating under some oversight from the western governments and the public. Some lasted many years before the facade crumbled and they collapsed.

    Now imagine what an entire corrupt government with full control of the reports, the media and no one to answer to, is capable of.

    Using resources on a war does stimulate the economy. That’s just the Broken Window Fallacy.


  • You can edit a blockchain without introducing new rules. The most obvious way would be to already have rules that allow you to edit it. If someone made a comment containing illegal content, Reddit would need to edit that previous block, they can’t just mark it as deleted in a new block since they would still be hosting illegal content in that case. Another way is a blockchain re-org. If you keep all signed transactions, you can rebuild the blockchain while excluding unwanted transactions. That’s what a 51% attack is essentially used for.

    Blockchains don’t have to be public any more than any other databases have to be public. Git repositories are technically blockchains, and are often private.

    If reddit made their traditional database public, it would be just as possible to tell any changes they made by comparing it to the previous state. A blockchain would make it a lot easier, but not any more possible.

    I think he was talking about reddit keeping karma scores and comments on a blockchain, not about the community points. Just from a practical standpoint, Ethereum would not be able to handle the volume of reddits data even if 100% capacity was dedicated to reddit.

    But coming back to the community points, I can nearly guarantee even without looking that it’s a token on ethereum blockchain. Tokens are custom coded, they can and often do have functions for admins such as issuing tokens, removing tokens, freezing addresses and pausing all token transactions. They also very often include an “upgrade” mechanism where the token code can be essentially rewritten.








  • Being easy to understand is one of the primary goals of any programming languages.

    The problem with Javascript is that it isn’t easy to understand. Javascript is easy to write.

    That’s why it’s easy for novices to pick up and why it ends up being spaghetti code. It’s very unrestrictive and allows writing very poor code that works based on assumptions and breaks when the assumptions aren’t met.

    It made sense at the time because it was just a scripting language for some minor website things, and you didn’t want your site to crash if your script ran into a problem.

    Now it’s being used to write full fledged applications and it’s past design choices are still haunting it.






  • whatsarefoogee@lemmy.worldtoGames@lemmy.worldXbox wins, FTC loses again
    link
    fedilink
    English
    arrow-up
    18
    arrow-down
    4
    ·
    1 year ago

    Why do you have mixed feelings? Has massive industry consolidation ever benefitted the customers in the long run?

    The US hasn’t shown much interest in breaking up big companies in the past two decades. Once this is done, it practically can’t be undone.

    Microsoft is more powerful than most world governments. And it keeps expanding and growing.