Linked by MOS6510 on Thu 10th Jan 2013 23:25 UTC
General Development "For years I've tried my damnedest to get away from C. Too simple, too many details to manage, too old and crufty, too low level. I've had intense and torrid love affairs with Java, C++, and Erlang. I've built things I'm proud of with all of them, and yet each has broken my heart. They've made promises they couldn't keep, created cultures that focus on the wrong things, and made devastating tradeoffs that eventually make you suffer painfully. And I keep crawling back to C."
Permalink for comment 548392
To read all comments associated with this story, please click here.
C++ could be bypassed
by fithisux on Fri 11th Jan 2013 15:28 UTC
fithisux
Member since:
2006-01-22

You can use ObjC/C/Asm for low level and build everything high-level with other languages. Ocaml is an example, ruby is another example and Go is yet another example. You can have a stack that does not use C++. But high-level languages are useful for large scale programming. Unfortunately there is no standard IMHO that allows to write a library in Pascal/Ocaml/C/Asm or Guile and re-use it by the others. This is unfortunate. For example it does not make sense to waste man months writing an xml library in C (it can be done optionally) when you can write it in Go. It makes no sense to write a proof system in C when you can do it in Ocaml and so on. Scripting languages are also another essential ingredient.

I believe that the main problem is the hardware and not the complexity that fostered C++. Fix the hardware in order to simplify the low level and use high level languages to build the stack. I could use C to interface to PCI and build a TCP/IP stack in Go in order to make it available to other consumers or even C. The main problem is that companies want to maintain the profit margin in HW and make bad hardware. Why should I ever need a driver for the printer if I could write it in user space with Ocaml and some C libraries via TCP/IP or a Wireless interface.

The complexity grows, the tools are there but the companies don't get it. Bad hardware costs manhours and makes life tougher.

Edited 2013-01-11 15:30 UTC

Reply Score: 3