slmjkdbtl / is-is-odd

:shrimp: check if the given function is is-odd
zlib License
99 stars 7 forks source link

Rewrite in Rust #8

Open Lukasdoe opened 1 year ago

Lukasdoe commented 1 year ago

We seem to have reached a working version of this project that a lot of customers can enjoy on a daily basis without any major problems or performance issues, that's why I propose to rewrite this project in Rust.

Please let me support my proposal with the following arguments:

Let me know your opinions :)

Alexiscomete commented 1 year ago

I think this is a good idea. We might create a new repo to do this. Rust have many benefits.

Kotlin is also a good langage: it can be compiled for JS, JVM and native.

Lukasdoe commented 1 year ago

Creating a new repo just splits our userbase, doubles the attack surface for potential bugs and increases our (already high) development cost. I don't think we can currently afford managing another high maintenance project.

We could however (as an intermediary solution) incorporate the already ported Rust parts of the implementation into this repository by compiling the Rust code to WebAssembly and supplying a compatibility wrapper to call our Rust implementation from the original JavaScript base.

This allows us to break out small parts of the implementation and replace them one-by-one instead of creating two competing implementations of the same project.

Lukasdoe commented 1 year ago

I also like the idea of using Kotlin, though. We should look into ways to use the JVM and its high portability to reach users that, so far, were not able to profit from our implementation, because our releases did not support their platform or architecture.

Alexiscomete commented 1 year ago

I think we must before resolve the #4 Security vulnerability