News for hackers. Stuff that matters.
Re:Looking back at how Signal works by bsaul on Saturday June 06, 2020 @06:02AM (#23438052)
Never tried Signal, but from what you're telling, it seems that they redevelop the core functionalities for each platform.

That's interesting, because i've been looking for a way to share core logic code across platform (mobile & desktop at least), and still haven't found something really user friendly. From my brief lookup (rust & gomobile are the ones i've looked at), it seems that most dev environment seem to support some kind of C-style interfacing, but it becomes much more clumsy as soon as you're trying to have it run on java.

Has anyone found a solution that he's comfortable with and would recommend ?

Re:Looking back at how Signal works by spians on Saturday June 06, 2020 @08:57AM (#23438861)
Honestly there are no perfect solutions to this. There are cross platform frameworks (React Native, Xamarin etc) that you can try but you'll definitely hit the wall when trying to access low level native APIs. Kotlin Multiplatform seems to be the step in the right direction. It has first party support on Android and works seamlessly for Android apps, but it's too early to tell for the other platforms. In an ideal scenario, you can share the core business logic using Kotlin Multiplatform and then implement UI and platform specific stuff using native APIs (or something like Flutter (again, not production ready)).
Re:Looking back at how Signal works by bsaul on Sunday June 07, 2020 @02:31PM (#23449459)
I’ve heard of people running all the logic in a self-contained local http server (developped in whatever language) then rely on local socket connection + protobuf for communicating between the native and the cross-platform codes.

i had hoped some people here would chime in with this trick, but it doesn’t seem like it