-
Notifications
You must be signed in to change notification settings - Fork 118
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
Running ulab examples in the web browser #498
Comments
@urish Thanks for sharing your work! If you intend to keep your project alive for longer periods of time, I would definitely like to add a link in the README. I can also make this issue sticky, so that it would always be at the top of the issue page.
I cannot really comment on this question. To be honest, I have only very vague ideas as to how people use this code in their own projects. But if I were you, I would mention it somewhere on the micropython forum. You would get significantly more visibility there. |
Thank you! A link from the README would be cool. Also, good idea with the MicroPython forum. I shared the simulator there in the past, but perhaps the ulab support calls for another post there. p.s. I created a Dockerfile that builds the ESP32 firmware (latest micropython + ulab). I think it shouldn't be too hard to turn it into a GitHub action that will create nightly builds. If you are interested, I can look into this. |
OK, will do.
I have been experimenting with that here, and I really want to set up something that regularly compiles the firmware for many platforms. Not nightly builds, but perhaps every three days or so. That in itself is simple. The question is, what you do with the files afterwards. While the files can in principle be hosted on github, you cannot store them there for high-volume downloading, they have to be hosted on an external service. That is what |
Looks good, thanks!
It'd be very useful to have automated builds. I've actually seen quite few popular projects using the Releases feature of GitHub to manage their downloads. Here are some examples:
There's a way to run an action whenever you push a new tag, so it automatically attaches the binaries to the right tag. I set this up for wokwigw a few days ago. |
I am working on it. I want to do everything via bash scripts, so that one could also download the script, and run it on a PC. yaml files are not good for that. But there are a couple of things to consider. E.g., cloning
These are organisations, who pay for services. I am not sure I can just publish whatever artifacts for downloads. This repository is private. Your repository also belongs to an organisation, so you probably know what that entails.
I don't want to tie this to releases for at least two reasons. First, we have to clone two entirely separate repositories, whose release schedules might be completely out of sync. Second, neither |
Yes, that makes a lot of sense.
As far as I can tell, this is the case. For instance, the Wokwi organization uses the free tier. GitHub says: "There is no limit on the total size of a release, nor bandwidth usage." |
Oh, I was just looking for that, thanks! Now, when we are at it, would you have it as part of |
If you keep it in a separate repo, then make sure to make it obvious for people to know where they can find the releases. When I first looked at ulab, I immediately went to the "releases" section to see if there's a prebuilt firmware I can downloaded. Only then I looked at the README and scanned for "download" and "release", and a few minutes later I discovered the docs. This is where I was expecting the link to the docs to be: But it links back to the repo... |
OK.
Sorry, I see that it was confusing.
I've fixed it. Thanks for bringing this up! |
I think @urish takes the case |
@tejalbarnwal Actually, there was a hint in your output: |
First of all, thanks for bring numpy and scipy to embedded Python. It's so cool to have all these math abilities now available in micropython!
I'm working on an online simulator for the ESP32, and one of the users asked to add ulab support. So I went ahead and compiled the latest ulab (4.3.2) with the last micropython (1.18.0), and made it available for the users of the simulator:
https://wokwi.com/arduino/projects/322114140704342610
The idea is that anyone can open the link, modify the code, press the green "Play" button, and see the result immediately. Or they can just run the code and poke around in the MicroPython REPL. Then they can save the modified code, and share it with others. So it's a great way to get familiar with ulab without having to flash a custom firmware to your ESP32.
How can the online simulation be useful for the ulab community?
The text was updated successfully, but these errors were encountered: