sheng's comments

sheng | 11 years ago | on: Testing the 12-inch MacBook's Performance with Windows 10

I know what you mean and the amusing thing is that it used to be the other way around. Back then in the older days of Gnome2 and KDE3 it was possible to use them with other window managers like Beryl and Compiz. These again also provided a 3D desktop experience and in their later development stage they were well optimized and stable. They were the one who blew windows vista out of the water when it came to smoothness, resource consumption and hardware support.

sheng | 11 years ago | on: OpenGL in 2014

All the whining and complaining makes me wondering how anyone was able to write something with OpenGL at all. This is fascinating because a great amount of people were actually able to write awesome Games and Applications with this API.

Look at the whole lot of mobile devices. I have no numbers to base this statement on but I would be bold enough to claim that OpenGL is thanks to the multiplatform ability by far the most successful graphics API out there. The set of devices that brings some or another form of OpenGL support outnumbers other graphics platforms. This alone is a huge accomplishment. Heck, even Minecraft was able to run on PowerPC systems until they pushed the java version supported[1].

But now I need to look at the link and have to admit that the criticism is still correct. The API is still pretty rough and could see some improvements. I know this myself, I also played around with OpenGL at some point. There is a lot of boilerplate code that needs to be written before you can start yourself with the real game. This was always the case. This is why we always had an engine, a framework to built on.

But to say that it all is a huge pile of shit is a little bit harsh …

[1] https://help.mojang.com/customer/portal/articles/884921-mine...

sheng | 12 years ago | on: Python and Flask Are Powerful

I'm not familiar with SQLAlchemy but my overall SQL sense is tingling here:

  purchase.downloads_left -= 1
Is this the preferred method to update a field? I'm asking because i'm wondering if sqlalchemy will translate this to an sql query similar to:

  UPDATE purchase SET downloads_left = downloads_left - 1;
Because otherwise this might be dangerous.

sheng | 12 years ago | on: Real-time applications and will Django adapt?

Another real time application issue that rarely gets any attention is WebRTC. I wish people would start tackling these issues for python/django, too. As of writing this I don't know about any library that would allow me to write a server application in python that would serve as a peer in a WebRTC session. The benefit would be unreliable real time data channels to the server. This can be of great use for games. Of course there are many different use cases.

sheng | 12 years ago | on: Ask HN: Do any netbooks still exist?

Silly customers won't buy them, unfortunately. It has to be Windows7 or OSX, everything else seems to be a deal breaker.

No offence here, i'm a linux user myself. Everywhere i go and look all i can see are macbook{air,pro} and i can't really understand why anyone would go with such a cage.

sheng | 12 years ago | on: Flat Surface Shader

it looks quite nice but unfortunately I guess it's by far too power hungry. My GTX 560's fan went up.

sheng | 12 years ago | on: What makes Lua tick?

would you mind to state some of the so many ways of summing up all the numbers in a list of strings for python? And give a counter example for lua?
page 1