Hacker News new | past | comments | ask | show | jobs | submit login

As an experiment in doing something interesting with C++11, I attempted a "literal translation" of an algorithm for the medcouple that I initially prototyped in Python. I was very happy to see how remarkably easy this was:

http://www.inversethought.com/hg/medcouple/file/default/medc...

http://www.inversethought.com/hg/medcouple/file/default/jmed...

Most Python idioms have an almost literal C++ translation. Even Python sugar like a,b = v can be done with tie(a,b) = move(v). C++11 is an almost pleasant language. If only it could completely break backwards compatibility and lose all of the ugly parts... I suppose this is what D is.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: