23 ms·
How are you getting 1:10 LOC ratio over C++? My Python code would be at most 3 times more dense than C++. C++ has some very expressive high level constructs (te
by killedbydeath 16y ago
How are you getting 1:10 LOC ratio over C++? My Python code would be at most 3 times more dense than C++. C++ has some very expressive high level constructs (template tricks mostly), please do not put it into the same bin with Java. And even Java gets less verbose with annotations.
- nivertech 16y agoI'm talking about large applications. In C++/Java large amount of code is defensive programming, locking and synchronization - you don't need it in Erlang. Distribution - even if you use CORBA/RMI you still have to write a lot of plumbing code in C++/Java. In Erlang it's comes almost for free. Binary protocols handling - very succinct in Erlang with binary syntax and verbose in C++/Java.
- killedbydeath 16y agoI am not too familiar with Erlang, but I am very familiar with Python and C++. And you put Erlang between Python and C++ by verbosity, so I made my conclusions accordingly. Also, synchronization and locking (with mutexes) are not the only approach to parallelization in C++. You can immutable objects, futures and other high level concepts. But Erlang has to be really nice for the stuff it was designed for, I have no doubts about that.
- thesz 16y agoYou're wrong. The code ratio is about 1/3, for large applications. http://www.slideshare.net/Arbow/comparing-cpp-and-erlang-for-motorola-telecoms-software http://www.slideshare.net/Arbow/comparing-cpp-and-erlang-for...