Search found 153 matches

by v923z
Mon Aug 17, 2020 8:59 am
Forum: Development of MicroPython
Topic: MicroPython firmwares with "'MICROPY_PY_REVERSE_SPECIAL_METHODS'" enabled ?
Replies: 16
Views: 917

Re: MicroPython firmwares with "'MICROPY_PY_REVERSE_SPECIAL_METHODS'" enabled ?

To add to this I created builds with and without MICROPY_PY_REVERSE_SPECIAL_METHODS for Pyboard D SF6W and for ESP8266. On each platform I verified that the reverse special methods only work with the appropriate build. I then tried to figure out exactly what resource is being conserved by disabling...
by v923z
Sun Aug 16, 2020 3:35 pm
Forum: Development of MicroPython
Topic: MicroPython firmwares with "'MICROPY_PY_REVERSE_SPECIAL_METHODS'" enabled ?
Replies: 16
Views: 917

Re: MicroPython firmwares with "'MICROPY_PY_REVERSE_SPECIAL_METHODS'" enabled ?

That's a very good point. It calls into question whether there is much merit in MicroPython supporting only this subset. In micropython, you are usually not faced with this problem: I believe, there is only one case, where two operands are of different kind, namely, when a string is multiplied by a...
by v923z
Sat Aug 15, 2020 4:32 pm
Forum: Development of MicroPython
Topic: MicroPython firmwares with "'MICROPY_PY_REVERSE_SPECIAL_METHODS'" enabled ?
Replies: 16
Views: 917

Re: Reverse special methods and numeric classes

Thinking about this some more, the absence of these special methods is problematic, especially __rtruediv__ . If you have a class Foo representing some numeric type, you might ask users to put other types on the RHS: f = Foo() g = f + 4 # uses normal special method h = 3 - f # Ask users to avoid th...
by v923z
Sat Aug 15, 2020 4:29 pm
Forum: Development of MicroPython
Topic: MicroPython firmwares with "'MICROPY_PY_REVERSE_SPECIAL_METHODS'" enabled ?
Replies: 16
Views: 917

Re: MicroPython firmwares with "'MICROPY_PY_REVERSE_SPECIAL_METHODS'" enabled ?

... when the firmware size doesn't fit the firmware partition. This problem can be helped in a number of ways. 1. In ulab, you can exclude sub-modules. There are some that are somewhat obscure (e.g., approx, or filter, or compare), and might not hold general appeal. They are there, but it doesn't m...
by v923z
Fri Aug 07, 2020 4:04 pm
Forum: Development of MicroPython
Topic: ulab, or what you will - numpy on bare metal
Replies: 106
Views: 15426

Re: ulab, or what you will - numpy on bare metal

rcolistete wrote:
Fri Aug 07, 2020 3:35 pm
Some news :
- my new MicroPython Firmwares repository, where currently there are 60 firmware files with ulab (v0.54.0 or v0.54.2)
Thanks! I have updated the link.
by v923z
Fri Aug 07, 2020 2:36 pm
Forum: ESP32 boards
Topic: ESP32 firmwares with single/double precision and ulab module
Replies: 5
Views: 537

Re: ESP32 firmwares with single/double precision and ulab module

I just meant that the firmware files should have a distinct repository. I don't care, if you mix different types of firmware there. Done, all of my MicroPython built firmwares in one dedicated repository : https://gitlab.com/rcolistete/micropython-firmwares/ OK, thanks! I will update the link on my...
by v923z
Mon Aug 03, 2020 6:46 pm
Forum: Development of MicroPython
Topic: ulab, or what you will - numpy on bare metal
Replies: 106
Views: 15426

Re: ulab, or what you will - numpy on bare metal

rcolistete wrote:
Mon Aug 03, 2020 6:08 pm
Yeah, I was planning some days between firmware releases. I'll try to submmit 'linalg.cross()' and 'linalg.norm()' with more features during this wees.
Well, actually I managed to merge this now: https://github.com/v923z/micropython-ulab/pull/165
by v923z
Mon Aug 03, 2020 6:03 pm
Forum: Development of MicroPython
Topic: ulab, or what you will - numpy on bare metal
Replies: 106
Views: 15426

Re: ulab, or what you will - numpy on bare metal

I think it is better (less limitation) to document 'argsort' explaining that it deals with arrays with size up to 65535, due to the internal number types of ulab (uint16 is the maximum integer). OK, so if the length > 65535, we simply bail out with a ValueError? Could be done. Yeah, error message a...
by v923z
Mon Aug 03, 2020 6:01 pm
Forum: ESP32 boards
Topic: ESP32 firmwares with single/double precision and ulab module
Replies: 5
Views: 537

Re: ESP32 firmwares with single/double precision and ulab module

I was also thinking to separate into more repositories... Different repository only for MicroPyton firmwares with ulab ? Or the repository can have non-ulad and ulab firmwares ? I just meant that the firmware files should have a distinct repository. I don't care, if you mix different types of firmw...
by v923z
Mon Aug 03, 2020 5:52 pm
Forum: Development of MicroPython
Topic: ulab, or what you will - numpy on bare metal
Replies: 106
Views: 15426

Re: ulab, or what you will - numpy on bare metal

Motivation to keep ulab powerful/not limited : some initial benchmarks show that ulab on some MCU boards is competitive with NumPy on Raspberry Pi. Raspberry Pi Zero (W) is even slower. Well, that is surprising. But it could be related to the fact that ulab has absolutely no python facade. In numpy...