Hiker, software engineer (primarily C++, Java, and Python), Minecraft modder, hunter (of the Hunt Showdown variety), biker, adoptive Akronite, and general doer of assorted things.

  • 50 Posts
  • 2.51K Comments
Joined 2 years ago
cake
Cake day: August 10th, 2023

help-circle







  • Hm… I’ll admit I wasn’t awkward of the .__len__ function. However, does this mean it’s possible to write a len(x) == 0 that’s diverges from not x?

    If not, then the substitution is still valid (and not presumably also considers the same fundamental. If so, that’s kind of silly.

    EDIT: I missed the part of your comment about .__bool__ … so yeah in theory you could have something where these two operations are not equivalent.

    Arguably, you could just say that’s pathological and invalid. Then, still have an optimized path to prefer not .__bool__() if .__len__() == 0 is the comparison you’d be making. Even with the extra interpreter check during evaluation, that would quite possibly be faster if the overhead is truly high.

    EDIT 2: you’d probably need a little bit more overhead than a straight substitution anyways because you need to maintain the semantic of “if this thing is None it’s not valid if the syntax was originally len(x).”






  • Story is relatively cheap to develop. A lion share of the cost of making a game is the coding (which with this being moved to another engine, there almost certainly was a lot of that) and art (which it seems they redid like all of that and there’s a good chance a lot of the animations had to be tweaked).

    Basically the only thing wouldn’t have to pay for was the story writers and some level designers (people still had to touch up the maps even if there was some automated conversion that pulled most of the map into Unreal Engine 5).

    https://youtu.be/1jZXzv1-CmA – like this isn’t just a texture upscale and some minor tweaks to the animations, it’s a large scale remaster.



  • I mean, I’ve seen a growing number of companies looking for Salesforce; it’s even worse (all of your code only works on their platform because it’s a proprietary language AND they charge for things as absurd as how many lines of code you have).

    A lot of the things that you can’t do with serverless expressed in this article are not things you want to do on a web server anyways. Like writing a temporary file, sharing state in process between requests, or spawning a thread.

    Sure for a truly small workload where you don’t have to worry about abuse and scaling beyond one machine you can get away with that stuff. However, for companies that do need to be able to deal with multiple machine workloads and don’t want to worry about hiring a team of engineers to implement a scalable cloud or run their own physical hardware in a data center … I think serverless likely has some value.