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

Is it possible to use it with MicroPython #129

Open
joeky888 opened this issue Aug 27, 2018 · 4 comments
Open

Is it possible to use it with MicroPython #129

joeky888 opened this issue Aug 27, 2018 · 4 comments

Comments

@joeky888
Copy link

See also

https://github.com/micropython/micropython

MicroPython implements the entire Python 3.4 syntax (including exceptions, with, yield from, etc., and additionally async/await keywords from Python 3.5).

https://github.com/micropython/micropython/wiki/FAQ

128K ROM/8K RAM is the recommended minimum configuration for doing something "real".

Thanks!

@Knight-X
Copy link
Member

That is a very interesting idea. Although I am not familiar with micropython, I think that we have some ways to integrate with it. Intuitively, you need to write the interface between micropython and its corresponding c++ ops. Take a look at our ops directory and give it a try if interested. https://github.com/uTensor/uTensor/tree/master/uTensor/ops

@joeky888
Copy link
Author

https://github.com/joeky888/awesome-micropython-lib

Actually I was searching for all MicroPython libs,

and I am new to MicroPython as well.

to write the interface between micropython and its corresponding c++ ops

I am not sure if libffi can do that
https://github.com/micropython/micropython/blob/master/examples/unix/ffi_example.py

Every MicroPython library I've found were written in pure python code.

I'll give it a try.

@torntrousers
Copy link

Did you ever get anywhere with this?

@joeky888
Copy link
Author

No, I was working on embedded linux and having troubles to cross-compile some Python libs.

After that I switch to Go, Go is extremely easy to cross-compile code to a single static binary on any platform (if all libraries are written in pure Go).

then I use upx to compress the binary (reduce binary size to 25%) and put it on my board.

Didn't even try uTensor, I am very sorry about this.

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

No branches or pull requests

3 participants