Coder Social home page Coder Social logo

Comments (2)

mgeisler avatar mgeisler commented on July 23, 2024 1

Hi @Arthur-Milchior, thanks for raising this!

You have a great point. As I've written here and there, I work on Android — I'm part of Android Security we promote Rust in AOSP to improve security. My teams had written extensively about this on the Google Security Blog.

I wrote the course to help other Android engineers onboard with Rust. I've never done any Android application development and I didn't take into account how the course would be received by the huge amount of application developers.

Do you think it would make sense to describe Rust from the point of view of Android application developers? Are there established techniques for using Rust in Android apps? If so, we could consider adding content about this. I won't be able to teach it in my classes — but that could be okay!

I'm thinking that we'll need to make the course customizable anyway. So we could perhaps have a number of building blocks that people can mix into a course that works for their use case.

from comprehensive-rust.

Arthur-Milchior avatar Arthur-Milchior commented on July 23, 2024

There are some explanations on line about how to use Rust in Android app. But yeah, it’d be nice to have an official one by Android team/Google. Android updates regularly, on the other hand, it’s not always clear whether a medium post found by searching online will be up to date. Whether it follows best practice.
Admittedly, I don’t expect we need an introduction to Rust specifically for Android devs, unless you eventually plan to add API call that can be done from Rust without going through the JVM. But something such as https://developer.android.com/studio/projects/add-native-code , that assumes that the reader knows already C++, CMake, would really be helpful. Because it would ensure that there is one set of best practice that each software don’t have to invent by themselves.

Personally, I know that, on AnkiDroid, a software I maintain, I would not even know what to give reader to read if they want to understand how Rust and Kotlin interact. Our decision was to have the rust part in a different repository https://github.com/ankidroid/Anki-Android-Backend , include it in the Kotlin part https://github.com/ankidroid/Anki-Android/ and ensure that most of our contributors don’t need to know anything about rust. And even if they ever need to call a Rust function, they just need to know protobuf and call our API. That actually works greatly, but does not help that much grows the knowledge of our contributors.

By the way, if you want to chat this more, don’t hesitate to add a meeting on my calendar after I come back from holiday.

from comprehensive-rust.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.