just because people are too lazy to write code to deallocate the pointer jungle they allocated? i cant see a single good argument for why it should be allowed
it's because JS is a language used in web browsers and like html, it must be forgiving.It's to prevent browsers from leaking memory from visiting websites.
>>109772778>it must be forgivingNope. There was no necessity for it, it was simply invented back when people thought more convienent to use = technologically better in every way.
>>109772778if i open any modern corpo site like IG on the main home page and scroll a bit i very quickly hit 30GB+ per tab, happened to me today the whole computer froze for a few mins until it crashed
>>109772599We want to be productive, not spend time and add extra code pollution on silly things such as deallocating memory. Only heavily bullied autistic retards care about such low-level solved-problem stuff.
>>109773363>what is RAII
>>109775101>open file>close fileI shouldn't have to do either of these. Procedural thinkers are so fucking dumb.
>>109772599the continent of india women and lazy researchers
>>109772778Web shouldn't have scripting at all.
>>109773363>productiveThe vaguest word ever that basically means “let me write spaghetti code and goon for the rest of the day” this is why no one cares about writing responsible code anymore
>>109773363>code pollution>}
>>109772599Imagine the state of our world if we had the same amount of software but so many more memory leaks and zombie pointers...
>>109773363updooter spotted
what difference does it make? if you want to be explicit about deallocation in a gc language, you can usually invoke the gc yourself. if you're consistent about it, it will only ever have one thing to collect, which is the thing you just freed.
>>109776439>>109776301less slopwaremore gatekeeping
>>109772599>just because people are too lazy to write code to deallocate the pointer jungle they allocated?You don't even need that. ;)
>>109775988Anon, the biggest spaghetti codes in the world are written around memory-allocating retardation. Also, handling and hunting down bugs with memory is one of the most time-wasting activities. Go check game development. Furthermore, I code Lua. I don't even need to know what memory is. Shit works, shit is fast, shit is high quality, and shit never breaks.
>>109776404You need to fix your spotting code. May I suggest you to double-check your memory allocation, anon-kun.
>>109776524skid
>>109772599>>109776497frognigs>Verification: not required.
>>109776583frogs won
>>109776599frognigs
>>109776497>Didn't understand the premise at allGood job! This is great bait!
>>109772599Because people would rather focus on writing the actual program logic. That's the thing the customer actually cares about.
>>109776608kek>>109776599dubs btw
>>109776616an end user who can't compile your program themselves and modify source code as needed shouldn't be using a computer. idk like write apps for them or idc honestly
>>109772599>i have never programmed any real-life complex software, and i'm also oblivious to concurrent, precise, state-of-the art garbage collection. Because i'm a fucking ignorant. kekcollect yourself
>>109776722software is supposed to be simple you trog
>>109776757Well, garbage collectors make it simple.
>>109776770even simpler. so simple it's natural to write it without a gc.
stop shitting up and obscuring things with features. just write clean well documented simple code that even the simplest of simpletons can understand what it does, how it does it, where and when how much memory is allocated and why.you won't tho, because you are too stupid to write simple code.
>>109775101refcounting is a form a garbage collection
>>109772599garbage collection is a nothingburger, it doesnt activate until there is a possibility one container points to another it contains, the other words, it is only for breaking cycles, cyclic references. otherwise it stays silent.binary retards like Casey Moratorium and better bloated staticly threaded software know little about. you may unsubscribe from them now.OOP and objects are superior. function is an object and object is a function of the future.garbage collection may be easily turned on or off in very rare cases. likegcOff();doYourThing();gcOn();it can be activated explicitly, the count of "maybe" cycles can be checked, all in realtime. GC doesnt influence performance of the program. performance is influenced by call chain clusterfucks. just look into some old C codebases, something like **redacted**, its function call upon function call upon function call that is all caused by optionation. add runtime opcodes in there and youll get something like Python.
>>109772599>t. 1st cemester CS faggot
>>109772599If you're running a company you have to optimize for the lowest common denominator you'll end up hiring and try to make them somewhat productive instead of destructive. That's why basically all language development is focused on mitigating retarded mistakes rather than giving more power to the programmer.
>>109772922>very quickly hit 30GB+ per tabthere's something wrong with your browser
>>109772922You can thank React for that. I'm no fan of JavaScript but these days it's decent enough, at least for browsers/frontend. The problem is all the retards inventing absolute dogshit frameworks that can melt your CPU to show you a button.
Go is a GC language. It's fats enough and has low memory profile. Same for D. They're not perfect languages and sure, C or Rust are maybe faster and use less memory, but compared to like Ruby or Python they're fine. There's no reason to not use a non-GC language for 90% of the things. In fact it's preferable.
>>109772922>if i open any modern corpo siteThere's your problem