3 ms·
The question is, what was the motivation behind re-writing Java Lucene in C?
by exDM69 15y ago
The question is, what was the motivation behind re-writing Java Lucene in C?
- Avshalom 15y agoIt says on the page: so it can be used by dynamic languages.
- exDM69 15y agoThat is a very good reason. This is also why I think that most system level libraries should be written in C, because it (unfortunately) is one of the only languages that can be called from pretty much any other language out there. If you go with JVM or CLR, your software will only run on that virtual machine. C++ may be possible to some degree but C++'s pass-by-value semantics make it a bit tricky to export to other languages (with reference based semantics), so if you have a good C++ API, it won't turn into a nice Python API. Exception handling and other issues make C++ also tricky.