I want to make a file parser for some file format ...
# announcements
j
I want to make a file parser for some file format for best possible speed, preferably multithreaded. The question is, would writing it in Kotlin/Native instead of C/++ hurt its performance? I suppose Kotlin/Native is fairly slower than C++, but what are your opinions?
b
You've answered your question yourself. If it's "best possible speed" you're after, use c++ or at least kotlin jvm
Heck, even kotlin js would probably be faster
r
If your primary goal is as much speed as possible, then I would recommend C(++) or maybe Rust (tho afaik, Rust can be bit overwhelming at first time) Afaik Kotlin/Native is not optimized for speed properly yet
(Rust as language keeps up with C++'s speed, but brings a lot of modern language features... while dumping majority of work on compiler, so runtime can be as fast as C++ code)
j
sure, I never played with rust