programmerhumor·Programmer HumorbyKHTangent Swapping integers in PythonView original on lemmy.world107Comments15
ssofthat replylemmy.world1Hide 1 replyThis actually raises a very good question - could you increase the amount of available RAM by using the user? Juggling chainsaws comes to mind.2
JJulian replylemm.eeThat's basically what old games did with passwords for saves. Although I guess that's more like using the user as persistent storage rather than ram.1
Jason Novinger programming.dev2Hide 2 repliesI raise you @lambda _: _() def result() -> int: global a; global b; a, b = b, a hat tip to @[email protected] via Cursed Python3
𝕊𝕚𝕤𝕪𝕡𝕙𝕖𝕒𝕟 replyprogramming.dev1Hide 1 replyHaha thanks, but the original idea is from @goodside on Twitter, I just screenshotted his tweet and harvested the upvotes :D2
Never used Python but that's hilarious.
Storing the value in the user instead of RAM!
This actually raises a very good question - could you increase the amount of available RAM by using the user?
Juggling chainsaws comes to mind.
That's basically what old games did with passwords for saves. Although I guess that's more like using the user as persistent storage rather than ram.
Using an organic processor
I raise you
hat tip to @[email protected] via Cursed Python
Haha thanks, but the original idea is from
@goodsideon Twitter, I just screenshotted his tweet and harvested the upvotes :DD'oh, you're right! My bad and thanks for the catch!
So you are asking the user to do it
What do you think captcha is other than computers manualizing tasks.
Version 3 is disgusting.
Test2