Skip to content
This repository has been archived by the owner on Aug 17, 2022. It is now read-only.

Android HAL in rust #1

Open
tekjar opened this issue Jan 30, 2019 · 3 comments
Open

Android HAL in rust #1

tekjar opened this issue Jan 30, 2019 · 3 comments

Comments

@tekjar
Copy link

tekjar commented Jan 30, 2019

Hi. I've been exploring ways to write binderized hals in rust. If this crate is meant for similar purpose, how did the experiment go?

@flxo
Copy link
Owner

flxo commented Jan 30, 2019

Hi,

This code here is more a learning thing for me to understand how Binder works that I did on a rainy weekend. The structure and design is horrible and I also think I learnt some more Rust in the meantime...

Background:
We experimented with our application framework and thought about doing IPC via Binder (and did in some experimental code). In the end we wen't for unix sockets first and may implement Binder once we need it for performance or other reasons.
If we're going once for Binder we'd probably rewrite what libbinder is doing since it's not optimal in some concerns for us.

So, this repo is just kept for reference, not maintained or actively developed - more a scratchpad.

Funny OT : yesterday I ran your MQTT broker on a Android device ;-) Anything planned there?

@tekjar
Copy link
Author

tekjar commented Jan 30, 2019

@flxo Super interested in learning and contributing if you ever want to work on binder in rust again.

Funny OT : yesterday I ran your MQTT broker on a Android device ;-) Anything planned there?

Oh nice. Can I know why you are using a broker in an android device? I'm waiting for async/await to be done so that I don't have to refactor again. Had this crazy idea to integrate MQTT and QUIC

@flxo
Copy link
Owner

flxo commented Jan 30, 2019

@tekjar
The Rust Binder stuff is not on top of the list but maybe a good match. Lets see. Google is pushing Rust a lot in Fuchsia but for Android there seems to be no interest.

The device is a headless Android 6.1 without any of the Google Java stuff. Classic IOT. The broker is used for inter process messaging and for entry point for messages from the outside. Currently there's a Mosquitto running but we will have some requirements like access control on client id level etc which is probably not so nice with Mosquitto. There are not so many brokers out there that fit into, so a Rust broker would be perfect! We're not working on one right now.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants