Why can't everyone just use C++ and C and throw away all GC-languages.
It's simple, just write all your applications in C++ and all your OSs in C and everything will be fast and beautiful.
Is there any place where using GC would actually benefit in any way? I think not.
Name:
Anonymous2011-10-26 16:12
state is shit.
Name:
Anonymous2011-10-26 16:13
Why can't everyone just use Java and Python and throw away all C-languages.
It's simple, just write all your applications in Java and all your OSs in Python and everything will be easy and beautiful.
Is there any place where using C would actually benefit in any way? I think not.
Name:
Anonymous2011-10-26 16:16
Why can't everyone just use BBCode and Bonerlang and throw away all real languages.
It's simple, just write all your applications in BBCode and all your OSs in Bonerlang and everything will be easy and beautiful.
Is there any place where using anus would actually benefit in any way? I think not.
Name:
Anonymous2011-10-26 16:21
GC is used to avoid mutable state.
for problems that don't directly have to do with hardware (that is, most software problems) memory is an irrelevant thing and worrying about it is completely crippling to designing a good solution. RIAA is a stupid hack.
Name:
Anonymous2011-10-26 16:29
memory is an irrelevant thing
It's relevant if you are programming computers.
>>7
with the increasing number of cores and not good ways to halve the work between them, having no state can help implement correct parallel programs with STM or data parallelism
Name:
Anonymous2011-10-26 22:45
>>6
no it's not. 90% of the time it has nothing to do with the problem you're solving.
Do you worry about CPU registers? Caches? microcode? Why is it OK to abstract some of the machine but not all of it?
>>13
No. I don't write device drivers. I don't write math libraries. I write applications. I write front-ends and back-ends for databases. I write "business logic." I write server code that needs to be portable and scalable. I write GUIs. I write network layers.
>>14
Nope. There is no 99% that wholly cares (or doesn't) about memory. Too many PHP/Ruby/Python kids, yet not enough. You'll get about 30% who can care much about memory and the rest are at the mercies of their runtime.
(And if you're writing a DB backend without caring about the CPU, please let me know what your product is so I can avoid it. There are too many players in that game to put up with crap. I will take any chance to make the shortlist shorter.)
Name:
Anonymous2011-10-27 3:14
So the people who care about optimizing memory are:
- performance matters
- CPU is bottleneck
- have to run on single core
This is clearly a minority.
Name:
Anonymous2011-10-27 3:23
>>17
Use the right tool for the job. The requirements of the system ought to dictate which tools you will need to use to deliver the system.
And I'm saying, for most programmers, who don't have that particular combination of factors, GC is almost a requirement. To not use it is to not use the right tool for the job.
Name:
Anonymous2011-10-27 3:30
C++ is such a good garbage-collected language because it creates so little garbage that needs to be collected
Why can't everyone who have no clue of programing go back to /b/ and not try to repeat the shit that he read here so he looks likes he is not a usless piece of shit?
Learn a real language, kid. C'mon now, it's 2011 already.
Name:
Anonymous2011-10-27 12:52
i never became a pro-gc
i was born a pro-gc
i dont code i paint
Name:
Anonymous2011-10-27 16:59
Garbage collection is bullshit. The Universe doesn't use garbage collection, it uses pre-allocation. Biology doesn't use garbage collection, it uses cellular respiration and transcription. Real programmers don't use garbage collection either.
Name:
Anonymous2011-10-27 17:20
if you lrn2stl you basicly never need to worry bout calling new/delete by yourself
>>31
eerrr because you said the universe function that way is true?
also accepting what you say is true (which i don't), we as a species have a long history of anti-nature behavior and we have done fine (say for example change the course of a river for our own benefit)
Name:
Anonymous2011-10-27 17:36
>>31
holy shit that's why people hate C programmers,
they can switch some pointees and suddenly
>I am the master of the universe hurr durr derp!?
>Implying you know how the universe werks