News for hackers. Stuff that matters.
Re:C or C++ for my game engine? by nly on Monday January 18, 2016 @11:51AM (#10925391)
Here's an ugly hacked up version of Pythons 'with' statement:

https://gist.github.com/nlyan/7319c7b2a6328460ce9c

As for external libraries...sometimes it requires a bit of ingenuity to find that perfect 'wrap everything!' vs 'write C' balance... but it's usually not so bad if you approach the problem judiciously. unique_ptr and shared_ptr's capabilities are often underestimated in this regard for instance. Both can be used with external reference counting, the former being the most efficient.

There are no comments on this comment yet.