Linked by Eugenia Loli on Mon 10th Oct 2005 16:48 UTC, submitted by Shlomi Fish
Permalink for comment 42916
To read all comments associated with this story, please click here.
To read all comments associated with this story, please click here.
News
Linked by Thom Holwerda on 05/20/13 22:43 UTC
Linked by Thom Holwerda on 05/20/13 21:50 UTC
Linked by Thom Holwerda on 05/19/13 23:15 UTC
Linked by Thom Holwerda on 05/19/13 23:11 UTC, submitted by Drumhellar
Linked by Thom Holwerda on 05/18/13 21:06 UTC
Linked by Thom Holwerda on 05/18/13 7:37 UTC
Linked by fran on 05/18/13 1:38 UTC
Linked by Thom Holwerda on 05/17/13 23:35 UTC, submitted by kragil
Linked by MOS6510 on 05/17/13 22:22 UTC
Linked by Thom Holwerda on 05/17/13 22:15 UTC, submitted by Tom
More News »
Sponsored Links



Member since:
---
The real advantage of C is that a single C shared library can be used by your C++/Java/Perl/Python/C#/etc. programs, which saves memory and limits security. In other words, C plays nice with other languages.
Try writing a library in Java. Sure, it will be faster to write it in Java than to write it in C. However, it doesn't help someone who wants to do the same functionality in Python; so the Python guy writes a similar library inj Python from scratch. Then the Ruby, Perl, Lisp, etc. people also write independent but similar libraries. You end up with 10 different virtual machines running on you computer, each one doing basically the same thing, but since they cannot share libraries, they take up massively more memory than they ought to. (And no, .net is not an answer -- not if you want to use the .net assembly in a program running on a JVM)
Basically, if you are considering writing a library, <em>write it in C</em>. Or C++ if you really hate C. That way, everyone can use your library, and the world becomes a better place.