3 ms·
True, but it's become a specialist need - like construction machinery and heavy trucks. I wrote some C++ a few years ago (objects, STL, etc.) in a case where it
by ableal 18y ago
True, but it's become a specialist need - like construction machinery and heavy trucks. I wrote some C++ a few years ago (objects, STL, etc.) in a case where it had been chosen mostly out of inertia - Python could have been used with similar performance and less code (and did get used afterwards for other cases).
Speaking of Python and C++: possibly some of us would wish to write Python and get C++. Mark Dufour has been persistently plugging away at a Python-to-C++ compiler (and welcomes help): http://shed-skin.blogspot.com/ http://shed-skin.blogspot.com/
- old-gregg 18y agoIf you avoid web programming and SQL-heavy enterprise development C++ is very much mainstream and wouldn't call it a specialist need. Actually, the kind of open source projects I enjoy to tinker with [when not at work] is all C/C++: Qt, Webkit, SQLite, various compilers and interpreters, search engines, etc.
- ableal 18y agoExcellent taste in tinkering, but ... ahem ... aren't those a tad on the infrastructure side ? ("Is this the right room for an argument ?", or are you setting a subtle trap ? ;-) I don't doubt that most of the (non-idle, non-phone/TV/etc.) CPU cycles in the world are probably being burned by executing code written in C/C++. But the stuff in my shopping bag probably also did better than 90% of its movement by truck/train/ship. P.S. Mark Dufour's ShedSkin may have you covered for 100x of that 200x speed hit you mentioned in another thread: http://www.hxa.name/minilight/#comparison http://www.hxa.name/minilight/#comparison is instructive (one small case, restricted, etc. Void where prohibited by law).
- dchest 18y agoSQLite is written in C.