Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Golang/Zig/other for building apps #1185

Closed
1 task done
devnoname120 opened this issue Jun 18, 2022 · 8 comments
Closed
1 task done

Support for Golang/Zig/other for building apps #1185

devnoname120 opened this issue Jun 18, 2022 · 8 comments

Comments

@devnoname120
Copy link

devnoname120 commented Jun 18, 2022

Verification

  • I searched for similar feature request and found none was relevant.

Pitch us your idea!

C++ for building apps is hard for many users. I suggest to add support for a compiled language that is fast and with a low runtime footprint.

Description

MicroPython could be an option but the downside is that it could slow down the otherwise super snappy and battery-saving InfiniTime OS.

@devnoname120
Copy link
Author

Zig in particular has:

  • Low memory/CPU footprint
  • First-class support for calling C/C++ code.
  • Supports C/C++ compilation out of the box so we could switch the whole project to use their compiler and make Zig compilation/integration seemless.

@Elara6331
Copy link
Contributor

Theoretically, this should already be possible, though it would probably be more difficult than just writing the C++ itself. I'd wait for support for uploading apps, which is planned sometime in the future, and then see how those are implemented and do the same in another language.

@Elara6331
Copy link
Contributor

And MicroPython is not really an option. InfiniTime is already running out of RAM as it is, and every new feature uses more RAM. MicroPython would use a lot of RAM and be much slower. If you want MicroPython apps, you can use WaspOS

@JF002
Copy link
Collaborator

JF002 commented Jun 19, 2022

I agree with @Arsen6331, I think we have many other challenges to overcome before adding more possibilities to build apps. We are already working (experimenting) on offloading resources to the external memory in #321.

@devnoname120
Copy link
Author

I agree with @Arsen6331, I think we have many other challenges to overcome before adding more possibilities to build apps. We are already working (experimenting) on offloading resources to the external memory in #321.

Thank you. Are there plans to merge PineTime Lite changes upstream? 🙏
The UI/UX looks more sleek, and even horizontal scrolling is smoother/faster than InfiniTime.

@Riksu9000
Copy link
Contributor

Closing as not planned for the time being.

@Riksu9000 Riksu9000 closed this as not planned Won't fix, can't repro, duplicate, stale Jun 20, 2022
@devnoname120
Copy link
Author

Closing as not planned for the time being.

I planned to do it myself, not rely on the maintainers. Given your comments I'll wait a bit however.

@Riksu9000
Copy link
Contributor

I could've elaborated on this a bit more. Mainly I think that core InfiniTime apps should just be written in C++ and it's not worth bringing in more dependencies. We aren't in need of more app developers right now either, since there's not that much memory to spare.

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

No branches or pull requests

4 participants