imdat celeste :v_nb: :v_tg: on Nostr: My client, netfiles, is using a software that has two APIs: - JavaScript - C++ The ...
My client, netfiles, is using a software that has two APIs:
- JavaScript
- C++
The JavaScript API is implemented by that software having an ES4-engine (the original Firefox engine from around 2005/2006) with a "native module" linked against a C++ library.
Now, I can either continue using that engine (which we do for the moment and which is ok for another 1-2 years because we have found a way of writing everything in Typescript but then transpiling to ES4), port all that stuff to nodeJS and link that C++ library to nodeJS, or
... crazy idea here
... create rust-binding to that C++ library and re-write the server-software that we have just finished writing in TypeScript (transpiled to ES4) in #rust.
I dunno, this sounds crazy but ... crazy interesting, doesn't it?
I found `#bindgen` and it sounds quite interesting (https://rust-lang.github.io/rust-bindgen/cpp.html)
Any recommendations from rust experts would be really welcome.
The one thing I can't do is replace that C++ library with anything else because that is a given. It is static library + C++ header-files that I have.
- JavaScript
- C++
The JavaScript API is implemented by that software having an ES4-engine (the original Firefox engine from around 2005/2006) with a "native module" linked against a C++ library.
Now, I can either continue using that engine (which we do for the moment and which is ok for another 1-2 years because we have found a way of writing everything in Typescript but then transpiling to ES4), port all that stuff to nodeJS and link that C++ library to nodeJS, or
... crazy idea here
... create rust-binding to that C++ library and re-write the server-software that we have just finished writing in TypeScript (transpiled to ES4) in #rust.
I dunno, this sounds crazy but ... crazy interesting, doesn't it?
I found `#bindgen` and it sounds quite interesting (https://rust-lang.github.io/rust-bindgen/cpp.html)
Any recommendations from rust experts would be really welcome.
The one thing I can't do is replace that C++ library with anything else because that is a given. It is static library + C++ header-files that I have.