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

Programming Language to Replace C++

Name: Anonymous 2010-08-11 21:49

I think we can all agree that C++ is a terrible language. So why is it still around?

When talking to most C++ users (game developers, systems programmers), I've found that most seem to recognize C++'s faults, but they don't really care. They aren't even the slightest bit interested in a new language that might solve its problems, even one that gives them all the power of C++ with none of the downsides. You can't even get them to look at something new.

Why is that? Why does everyone just 'live with it' without wanting to improve the situation?

Name: Anonymous 2010-08-21 16:37

I'm sick of this bullshit about malloc() being slow. Who the fuck sprouts this bullshit?

The malloc() on my system takes less than 0.05 microseconds (that's less than 100 cycles) for random allocations of 0-128KB. There are some "long" pauses here and there, and by "long" I mean less-than-a-microsecond long. The overhead is also ludicrously low, for example allocating 10 million times 2 bytes (discarding the pointers) consumes less than 21MB of virtual space. I've never seen the overhead exceed 10%.

I'm not saying malloc() is the final solution for memory allocation, but goddamn, it's supposed to be a convenient tool and not something that makes you roll your own shit on top. If yours doesn't work properly, replace it.

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