theborakompanioni / tor-spring-boot-starter

Automatically expose your application as Tor Hidden Service.
Apache License 2.0
7 stars 1 forks source link

Tor Graal-VM native-image compatibility #2

Open SpiReCZ opened 1 year ago

SpiReCZ commented 1 year ago

I would like to start a discussion on making the spring-tor and dependent libraries native-image compatible. Spring Boot 3 is going to have stable support for native-image and it can be also used in SB 2 as experimental feature.

Since Tor Spring functionality requires 3 different libraries, it would be helpful to perhaps try to add support for each library separately and try to introduce some PR in other github repos.

My use case consists of Tor and DJL + Tensorflow and maybe some other libraries. Most of them are compatible with native-image, however Tor is not one of them and DJL seems not to work at the moment.

theborakompanioni commented 1 year ago

Spring Boot 3.0.0 has been officially released. Attempting to upgrade soon.

SpiReCZ commented 1 year ago

Great news, i was just thinking to upgrade myself.

theborakompanioni commented 1 year ago

Hey @SpiReCZ. Just released v0.7.0 which uses Spring Boot v3.0.0. What else needs to change to support your use case?

theborakompanioni commented 1 year ago

Maybe switching from netlayer to kmp-tor is generally a good idea. Seems to support much better programmatic handling of hidden services. Care to provide your assessment?

SpiReCZ commented 1 year ago

I will take a look at 0.7.0 and kmp-tor. Thx for kmp-tor introduction, I would not know about it without you.

One thing is for sure, netlayer has a lot of changes compared to its predecessors, but the library development and maintenance bug fixing seems to be dead (other than bumping up dependencies and using new Tor binaries). Netlayer features gravitate toward their own usage, i don't blame them for it.