Ewe (sh.itjust.works)
submitted 11 months ago by to c/memes@lemmy.world
 
you are viewing a single comment's thread
view the rest of the comments
[–] 19 points 11 months ago (5 children)

👎 download more RAM

👍 make software use less RAM

  • source
  • parent
  • hideshow 5 child comments
  • [–] 0 points 11 months ago* (4 children)

    👎 download more RAM

    👍 make software use less RAM make development take 10 times longer and get fired from your precarious dev job as you wasted time making optimisations no one needed nor asked for

    Fixed that for ya

  • source
  • parent
  • hideshow 4 child comments
  • [–] 4 points 11 months ago (3 children)

    Non ironically: In practice it mostly boils down to experience, writing relatively efficient software should not take much more time or even long term accelerate development (less time to wait) (I don't talk about the last few percent of compiler reverse-engineered SIMD optimisation that takes time...)

    I detest the state modern web development has downspiraled to. I bet I'm faster writing a big application in Vanilla js vs using the abomination that Next.Js has come to...

  • source
  • parent
  • hideshow 3 child comments
  • [–] 1 point 11 months ago (2 children)

    I wish that were true but writting efficient software, with low allocation, low memory foot print, all that good stuff, definitely takes more time.

  • source
  • parent
  • hideshow 2 child comments
  • Welcome to Rust which "solves" this issue...

    Yeah it takes more time than a quick and dirty python script. But when I'm counting the countless hours (what irony) into this equation because of mindless leaky abstractions and resulting debugging, I'm certain that I'm at least not a lot slower writing that. As I said I'm not talking about the last 10-20% of performance that's possible say even up to 40%, but more like an order of magnitude (at least), i.e. algorithmically insufficient or relying too much on that your abstractions do everything right and you use it correctly (which in the case of react is seemingly not the case, when looking at the modern web).

    Taking that example (Rust) again, I very often get away with .clone() everywhere, i.e. not even caring much about performance while the performance is not significantly impacted. Then I switch to our typescript code-base in my job and get aggressions because of this extreme slowness (because of stupid abstractceptions, like wtf? shadcn needs to be built on radix-ui needs to be built on react etc. which in effect results in a slow abstraction-hell... and leaky abstractions everywhere)

  • source
  • parent
  • [–] 1 point 11 months ago

    It's a culture problem too. Just today, reading about OLPC:

    Jim Gettys, responsible for the OLPC laptops' system software, has called for a re-education of programmers, saying that many applications use too much memory or even leak memory. "There seems to be a common fallacy among programmers that using memory is good: on current hardware it is often much faster to recompute values than to have to reference memory to get a precomputed value. A full cache miss can be hundreds of cycles, and hundreds of times the power use of an instruction that hits in the first level cache."[54]

  • source
  • parent