Code Monkey home page Code Monkey logo

Comments (3)

xlab avatar xlab commented on August 18, 2024

@gedw99 Hi! I will outline the options that we have for cross-platform development of applications (not games).

The first and the best option is https://github.com/therecipe/qt.
Qt itself is a powerful framework that allows to do many things avoiding writing native platform code, but still keep the ability to use platform-native stuff like sensors, payment and advertising APIs and so on. The guy did amazing job creating the bindings and it runs seamlessly across many platforms in a single build. The Go code is the only code you'll need to write. Since you have a web app, you can boot into Qt's WebView to display the UI.

As for gomobile, they are good option to use when you already have lots of Java/Obj-C code and want to integrate some of Go libs into the project. The tool is mostly for experienced mobile developers who just want to try Go sometimes. They provide a framework that hides platform details, but they also may be to restrictive and limited due to this and can't be used for crazy experimenting stuff.

Now, about my projects. They are not achieving the same goal as gomobile, but rather fill the niche that gomobile doesn't suit well. First of all, android-go provides stateless and absolutely explicit 1:1 bindings to Android NDK. It's a low-level approach, but it's more flexible as you are free to do crazy stuff, for example initialize your own EGL context or don't initialize it at all. It is not good for SDK and Java interaction because I have no such plans and it's the topic of gomobile. It's good when you want to add some Go code and want know how it works, with no extra dependencies and under-the-hood magic. The same goes for ios-go, I did two projects to run Vulkan / GLES surfaces with minimum mental overhead, they are not conventional apps.

I hope this answers your questions :)
It seems that my packages are not an option for your case.

from android-go.

 avatar commented on August 18, 2024

@xlab
thanks for taking the time to look at this.

I played around with https://github.com/therecipe/qt.
I agree that the developer behind it is awesome, and really helpful.
I must admit i did not know that it supports a webview.
That would mean i have killed many problems in one hit:

  • On mobile, no need for JAVA, Objective C code to write the RPC plumbing code.
  • On Desktop, no need for Electron / Gallium.

I really need to check how the QT WebView connects to my golang code.
At the moment i use GRPC and GRPC-gateway to expose all the code, which is probably really different to how QT WebView wants to work.

from android-go.

 avatar commented on August 18, 2024

will close..

from android-go.

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.