Manual memory management is for bootlicking fascists.
Name:
Anonymous2016-01-15 22:05
>>5 "The world would be better place without trash, so I pick it up and maybe others will too" Nobody forces you to manage memory but the system will suffer if you don't.
Name:
Anonymous2016-01-15 22:25
It's really easy when compiling to CPS to see when you need to allocate and deallocate something. In fact, it could be compile-time GC.
Name:
Anonymous2016-01-15 22:38
I wrote Hello World! in lambda calculus when I was 12 (it still hasn't halted).
Name:
Anonymous2016-01-16 11:22
>>7 Chicken Scheme and, I'm sure, some other compilers for functional languages do this. No one has seen any real opportunity to make it into compile-time GC. You're saying you're smarter than those compiler writers?
>>7 One word: User input. Static analysis of memory requirements go out the window. Example: Take an input string and make a sorted list of all the vowels. Compile-time GC that!
Name:
Anonymous2016-01-16 12:46
Being paranoid about your girlfriend wouldn't be necessary
>>17 Are you saying that to decide if you will put free in your C program after you have put malloc you need to solve the halting problem? Please do not claim things you have no idea about.
>>24 Thanks for explaining yourself. Everyone else is now enlightened by how clever you are.
Name:
Anonymous2016-01-17 0:37
>>25 why are you arguing with a retard? He either doesn't know this problem is undecidable and will never understand that -- in which case arguing is pointless. Or he has figured that out and is too embrassed to admit he was wring -- in which case arguing is pointless. do something better that let idiots enjoy arguing on here! If we keep responding to them about haskell or the turing machine section of cs 101 the board will be taken over by them and we wont be able to talk about anything else.
A complementary form of automatic memory management
you still need a runtime GC along with this. It just means the runtime GC does less.
Name:
Anonymous2016-01-17 2:15
>>28 also if you're pointing me at this because you're actually interested in compile time GC (and aren't just just some shitter wasting peoples time trying to prove that a thing you said is "right") you should read matt mights thesis - it has a chapter on abstract GC.
Welcome to C. You must be new. Enjoy your malloc() and free().
Seriously, go crank open an old school book on actual Computer Science sometime, as opposed to the standard Java diploma mill schmutz that mostly gets pumped out nowadays. The more I (slowly) learn, the more I realize there's bugger all math or science involved in 99% of today's mainstream programming and languages. It's mostly bureaucracy, ideology, and good ole John Wayne cowboyism; just high-functioning Dunning Kruger-ism.
To quote Guy Steele (before he went to the dark side): "The most important concept in all of computer science is abstraction."
Everything else is just the tedious mechanical crap you've gotta wade through on your way to being able to say what you mean. And modern mainstream languages are *fantastically good* at drowning that one simple truth under such infinite barrels of crap. Sorry, but if your only pleasure in life is spelunking code all day, every day, there is something wrong with you as a person. Go write a metacircular evaluator. I'll wait.
Name:
Anonymous2016-01-18 21:01
>>42 The wisest thing ever said on /prog/ was that programming is demeaning. My kneejerk reaction was that this was wrong, but after puzzling over it for a few years, I can see the brilliance of it. Anonymous wasn't speaking of the nature of programming, or an idealized programming, or anything like that, he was speaking of programming as it is practiced. Programming in C or Java is not an mental exercise (though it too often is mental masturbation), it is a menial one. One does not create universes by fiddling with electrons, electrons are just a building block. Likewise, it is likely to be impossible for a human programmer to ever creating meaningful programs while he is tethered to the ground by his limited toolset. Languages like Scheme set the programmer free from the tedious shackles of manual memory management, and allow him to instantly begin exploring the beautiful side of programming. Lisp is a language for humans, C is a language for computers. To program in C (or any other low level language), one forces oneself to subsume the role of the computer, to become it. How is that fitting for great beings such as ourselves?
Name:
Anonymous2016-01-18 22:08
>>43 It's a trade off. Do you want fine control over the computer? The price to pay for this control is a more complex programming paradigm as you're required to specify the details of what to control. If you prefer a more abstract programming paradigm, there are other languages that are designed to automatically manage the machine bookkeeping aspect of programming.
I like C and I use it for what it is good for: a systems level programming language good for writing operating systems, compiler tools and other applications that would benefit from explicit programmer control. Most of the applications that I write don't need such level of control so I prefer to reduce my cognitive burden by using a more abstract language. Scheme is my general purpose language of choice.
Name:
Anonymous2016-01-19 2:35
You wanna know what's a good systems language, vee-echci-fucking-dee-ell.
Name:
Anonymous2016-01-19 3:20
the average gro needs GC bc he can't into low level stuff
Name:
Anonymous2016-08-24 2:17
If Java has garbage collection, why doesn't it collect itself?