🌉 bridged from @squaresinger@lemmy.world by Tidepool
squaresinger
@squaresinger.lemmy.world.ap.tdpl.io
programming 64KB Games vs. Your 2MB App: What Modern Developers Forgot About Constraints | Comuniq
8 0The other catch is something OOP mentions right at the beginning: The main reason their app was 2MB large was because it had images.
You couldn't do full-frame images on a SNES. Instead, images were built up by pasting small sprites and repeating background tiles everywhere.
If you want high-res images with a colordepth of more than 13 colors per pixel, you will need a lot of storage space for that.
programming 64KB Games vs. Your 2MB App: What Modern Developers Forgot About Constraints | Comuniq
15 1Super Mario Bros shipped in 40KB. A bare React app ships more before you write a line of your own. What did they know that we forgot?
Stupidly easy answer: compatibility and visuals. I recently did just that: I made a handheld physiotherapy game console base. The prototype ran on an Arduino Nano I had laying around. 32KB flash and 2KB RAM. That makes the 192kb ROM and 10kb RAM that Super Mario Bros has to work with look luxurous. You fight for every bit on a platform like that but at the same time it's also really easy to do so. With that little available resources you can optimize almost perfectly because there is so little code. That doesn't explain why a bare React app is larger than a finished Super Mario Bros. The answer is compatibility. SMB needs to run on exactly one platform with exactly one CPU, so it ships compiled. React needs to run on a multitude of different browsers, so not only does it ship in source, but it also needs to ship hundreds of polyfils to work with different browsers. Not only that though, it needs to ship tons of features that any given app might need. Which brings us to the next issue: content and visuals. OOPs blog post formatted in ASCII contains 14.8kb in pure blog post text. At the level of performance these old games had, text was really expensive, which is why even RPGs of that time had very limited dialogue. The NES had a resolution of 256x240px, or 637 kilopixel with less than 4bit color depth, which means a full screen image would take around 30kB (uncompressed). A full HD screen has 2 megapixel at 24-42bit color depth, so 6MB-10MB per full-screen image (uncompressed). The 30kB would have been far to expensive on a NES, so in practice graphics were limited to a handful of small sprites moving over a background filled with repeating tiles. On the other hand it's very common to have large, high-quality images on a website. Sure, you can still make websites with the same graphics as a NES game, but then it also will look like a NES game. And we aren't even talking about animations, videos or anything like that at all. TLDR: Yes, it's still possible to program like on NES. The catch is quite plainly visible to anyone who has spent more than 3 minutes programming: • It will look like a NES game • It will take inordinate amounts of time to optimize • It will run on exatly the one machine you build it for OP's point is... very uninformed.
comicstrips Peer Pressure (Azul Crescent's silly scribbles)
0 0If you want best effects, do no more than 2x per week, only when you actually urgently need a boost. Otherwise the one instant per day won't have an effect either.
comicstrips Party Time Flies (2021-10-04) [Perry Bible Fellowship]
2 0I think OP is confusing fruit flies with mayflies, some of which really only live for a single day as flies. Some of them even live only for a few minutes as flies. E.g. Oligoneuriella rhenana only lives for about 40 minutes in their adult form.
But they live much longer, some of them up to 4 years, in their non-adult forms.
comicstrips Old [Mr Lovenstein]
6 022 years were always long, especially when you are talking about the edge times just before there were massive changes.
Take for example 1913 vs 1938 in Austria. (Ok, technically it's 25 years, but it's not much more than 22 years.)
In this time span you had:
• Monarchy, Austrohungarian Empire, at peace • WW1 starts (1914) • Austria loses WW1 (1918), Monarchy fails, first Austrian Republic is created. • First radio station goes live (1924) • Roaring 20s • The head of government makes a coup, declaring the Federal State of Austria (Ständestaat), a fascist dictatorship. (1934) • The Nazis take over Austria (1938)
You can find similar periods of rapid change in every country. For the US look at e.g. the independence war or the civil war. Or the time before, during and after WW2.
Yes, we are in a time of somewhat rapid change, but neither is that unique, nor is it especially rapid.
———
And the comparison between 1890 and 1960 is entirely invalid. Much more changed in this time frame than between 2004 and 2026.
comicstrips Peer Pressure (Azul Crescent's silly scribbles)
0 1That's basically the same thing. When you feel sleepy, you aren't at the end of your reserves. Your body tells you that you are sleepy at a time when you still have reserves.
Blocking these receptors doesn't tap into any magic hidden energy, it just stops your body from telling you that you are running on fumes. Thus it allows you to go farther into your reserves. In extreme cases to the point where you collapse, because you really don't have any reserves left.
Edit: Just to be clear, going into your reserves is not a good or healthy thing. It's not some magical potential unlocker or something, but it's running your body under circumstances it's not made for. If you use caffeine when you really should be sleeping, that's short-term ok, but can lead to some serious consequences in the long term.
comicstrips Peer Pressure (Azul Crescent's silly scribbles)
0 1The way caffeine works is that it allows the body to release energy reserves that it usually "locks" away from you. It allows you to tap into these reserves for concentration and makes you feel less tired.
That's helpful for short-term use, giving you more energy and concentration.
But if you use too much caffeine for too long ("too much" depends on your body and "too long" is a few days), the body adjusts to the caffeine levels and now you have the same energy reserves and concentration that you had without caffeine before. Caffeine thus loses its effect on you and your baseline shifts, so that you need caffeine to be on the same level as before.
If you now stop your caffeine intake, this swings back. Your body thinks you are really tired and you get headaches, bad mood, low concentration and so on, until you either take in more caffeine or you abstain long enough for your baseline to shift back.
That's why there are people who say they can't work before they had their first coffee/energy drink. They literally can't, because if they aren't on the level of caffeine they are used to, their body tells them that they are super exhausted. This is the caffeine dependency/withdrawal effect.
comicstrips Peer Pressure (Azul Crescent's silly scribbles)
0 1The good thing is that coffee withdrawals are over quite quickly and don't have long-term effects.
But getting peer pressured into an addiction by one's mom of all people is ironic.
raspberry_pi Raspberry Pi RP2350 microcontroller overclocked to run at more than 5X original frequency
0 0Overclocking low-clock devices is surprisingly easy. The reason they are clocked so low is mostly power consumption and heat. Both of which are not that hard to combat if you don't care about stuff like battery life and portability.
3ds Nintendo ends repair support for New 2DS XL, meaning all 3DS models are now no longer supported
0 0insert Anakin and Padme meme
Right? Right?