Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

>2013 >still using C

Name: Anonymous 2012-12-21 20:04

Some people, when confronted with a problem, think ``I know, I'll use manual memory management.'' Now they have two problems.

Name: Anonymous 2012-12-21 21:38

free(ptr);

HOLY FUCKING SHIT THAT WAS SO FUCKING HARD!

Name: Anonymous 2012-12-21 21:42

My function can't return an array, what do I do!?

Name: Anonymous 2012-12-21 22:01

>>3
Return a function instead.

Name: Anonymous 2012-12-21 22:20

In practice, GC is actually faster than its alternatives. MMM means more performance only in the ideal case (see: Nirvana fallacy). Dynamic allocation and deallocation is also subject to crashes and exploitation, which means no one touches it for serious projects.

Name: Anonymous 2012-12-22 1:52

GC is great if you don't need determinism and you aren't resource limited (i.e. most situations.) Even in the case of being resource limited GC can usually still work.

GC still a shit though.

Name: Anonymous 2012-12-22 4:04

>>5
Dynamic allocation and deallocation is also subject to crashes and exploitation
If you have a hold of the environment or kernel, and can manipulate what is on RAM. Also that statement is true regardless of GC or determined Dynamic Memory Allocation(IOW, GC uses DMA too).

>>7 has said correctly. And most situations are 99% of the time, unless you really want to have frequent reboots and crashes.

Name: Anonymous 2012-12-22 4:04

>>3 or loops.

Name: Anonymous 2012-12-22 5:11

GC is actually faster than its alternatives
It's faster only until it has to free something.

Then performance goes to hell.

Don't change these.
Name: Email:
Entire Thread Thread List