JavaCAN icon indicating copy to clipboard operation
JavaCAN copied to clipboard

Rewrite in Rust/Zig/C++

Open pschichtel opened this issue 1 year ago • 2 comments

As much as "Rewrite in Rust" is a meme these days it kinda feels stupid to even write it. Rust per se is not actually the point here, but I'd like to use a more modern language that comes with a reasonable standard library and possibly some form of automated JNI binding support. Rust, Zig and even standard C++ come to mind as options that have a significant eco system.

Main concern for rust and zig might be architecture support, C is probably unbeatable in that regard.

pschichtel avatar Aug 28 '24 10:08 pschichtel

I'm building JavaCAN for quite a few architectures out of the box and any dockcross-supported architecture can be manually build by users, but I have no idea which architectures are actually being used.

From personal use and some of the issues and communication I had with people, these architectures are probably in use to some degree:

  • x86_64
  • aarch64
  • armv6
  • armv7
  • armv7l
  • android-arm64

Architectures I assume are unused:

  • x86_32
  • riscv32
  • riscv64
  • android-arm
  • android-x86_64
  • android-x86_32

Not sure how the rust/zig/c++ support is for these and also not sure which other architectures are being built.

pschichtel avatar Aug 28 '24 10:08 pschichtel

let's stick to C, but maybe introduce some more linting into the codebase.

pschichtel avatar Dec 22 '24 16:12 pschichtel