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

Ada

Name: Anonymous 2010-04-03 16:48

just discovered this language (Ada) and am thinking of learning it, it looks like it would be a very good language to make some small projects

what does /prog/ think?

Name: Anonymous 2010-04-04 15:26

>>34
A lot of C programmers (and really, most other programmers as well) don't seem to understand that in a language like C with manual allocation, it is extremely important to design the control flow of your program around the allocation scheme.

Ideally you should allocate all the memory you'll ever need at the earliest possible point in your program, and never touch malloc() again. Even if you can't do that, there are still a number of schemes for keeping track of all the chunks of memory you've allocated. Most of these break in recklessly concurrent programs, so you have to be very strict in treating multiple threads like intercommunicating processes.

If none of this is possible (such as when using an OS-facing event-driven API) then you should be using a garbage collector. Waving your manually allocated e-penis around in a harsh environment like that will just get it chopped off.

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