Slashdot Mirror


User: hh10k

hh10k's activity in the archive.

Stories
0
Comments
29
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 29

  1. What about Lua? on The State of Scripting Languages · · Score: 2, Insightful

    Lua's said to be the number 1 scripting language for making games. Surely it deserves a mention.

    Poor Lua never gets the respect it deserves.

  2. Re:Next up... on Breakpoints have now been patented · · Score: 1

    The correct implementation of new will throw std::bad_alloc on failure, not return 0. Visual C++ 6 was the last compiler I know to just return 0, and you'd be crazy to be using that nowadays. If you want to allocate memory without throwing an exception, you can use new(std::nowthrow).

    Because of this your example has the potential to leak a's memory if b fails, so you need to either catch the exception or use something like boost::scoped_array. It amazes me that people still don't know about RAII in C++.

  3. Re:I got the last edition of directx 9 SDK on The People Behind DirectX 10 · · Score: 1
    I got the best version of directx SDK that I'll need for a long while.
    I remember people saying the same thing about DX8 when DX9 came out.
  4. Re:The Golden Rule of Optimization on Genetic Algorithms and Compiler Optimizations · · Score: 2, Insightful

    Perhaps you should re-learn basic algorithm and data structure theory, because bubblesort can beat the pants off quicksort when the data set is small enough. Anyway, if you're going to implement quicksort, don't you want a 20-30% faster quicksort?