Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
matt_trentini
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
61.
▲
by
matt_trentini
4y ago
"...only ok on an esp32 with psram"?? I use it on many devices (rp2040, nRF52, ESP32 and, professionally, on STM32). It's an effective platform on all of them.
62.
▲
by
matt_trentini
4y ago
My company uses it for medical device development, ama if it will help!
63.
▲
by
matt_trentini
4y ago
It allows typing as you'd expect. Edit: More specifically, the parser correctly ignores type hints.
64.
▲
by
matt_trentini
5y ago
As an Australian tech worker, that list certainly doesn't seem that privileged. Excluding the Aeron, none of those would be surprising for any of my colleagues - and a few do have Aerons (all have decent chairs). We spend a lot of
65.
▲
by
matt_trentini
5y ago
Just beware that FATFS is very easy to corrupt in the event of power outages - unless it's read-only. Personally I would be reluctant to use FATFS as a writable filesystem on a commercial embedded device.
66.
▲
by
matt_trentini
5y ago
It's one of the filesystem options in MicroPython and we've used it extensively for a number of (medical device) products. It's been bullet-proof for us.
67.
▲
by
matt_trentini
5y ago
Some, you know, _actual benchmarks_ might be nice too. The claims are certainly possible, but somewhat hollow without evidence...
68.
▲
by
matt_trentini
5y ago
It's an excellent educational device to introduce people to embedded development.
69.
▲
by
matt_trentini
5y ago
I'd like to work on tailoring a mainline MicroPython build to their boards - to support their peripherals - but it has, so far, been low on my priority list.
70.
▲
by
matt_trentini
5y ago
I run a MicroPython meetup and many of the members use the ESP32. Due to it's rich feature set and low price it's basically the gateway drug to MicroPython...
71.
▲
by
matt_trentini
5y ago
It's not (nearly!) the same but if you're interested in audio applications it's worth noting that I2S support was added to MicroPython recently - and will work on the TinyPICO. https://github.com/micropython&#
72.
▲
by
matt_trentini
5y ago
Just be aware that PyCom chose to fork the MIT-licensed MicroPython and re-licensed it with GPL. As a MicroPython contributor I can't/won't use PyCom's fork because any code I develop for it cannot be accepted upstream.
73.
▲
by
matt_trentini
5y ago
The ESP32 is vastly more powerful than the ESP8266. Dual core, each core is more powerful, it has BLE, more RAM, flash, GPIO - as well as a handful of other useful peripherals (RMT, PWM etc). Now, the TinyPICO is more expensive than some ES
74.
▲
by
matt_trentini
6y ago
Slightly different. And also covered on Ian's Shoelace Site: https://www.fieggen.com/shoelace/berluti-knot.htm
75.
▲
by
matt_trentini
6y ago
Take a look at flynt, a tool that can convert older string formatting code to the newer fstring style. I've found it very helpful! https://github.com/ikamensh/flynt
76.
▲
by
matt_trentini
6y ago
...or not and realise that professional development is not only possible in MicroPython but can significantly reduce development time - and costs - to your client. (I work for a company that makes medical devices that use MicroPython.)
77.
▲
by
matt_trentini
6y ago
The difference in real-world use isn't nearly so pronounced in my experience. MicroPython is written in C, so whenever you're using modules implemented natively then you're only paying for a small boundary crossing. For examp
78.
▲
by
matt_trentini
6y ago
> But there are plenty of differences between MicroPython and CPython Are there any differences there that you'd consider significant? They are generally quite minor and usually have workarounds. Typically a difference is only intro
79.
▲
by
matt_trentini
6y ago
That's roughly true: 32KB RAM and 256KB Flash will provide a decent MicroPython environment. I'm afraid if you have fewer resources than that you should probably look at other alternatives.
80.
▲
by
matt_trentini
6y ago
#5026 was merged last year; it provides the sys.settrace primitive which paves the way for debugging support. https://github.com/micropython/micropython/pull/5026 Still quite a lot of work left for pdb-like f
81.
▲
by
matt_trentini
6y ago
Yes, this is a complete game-changer; I love showing experienced embedded engineers how to connect to the REPL, and poke live, interactive I2C or SPI at a peripheral. :)
82.
▲
by
matt_trentini
6y ago
Resource usage is carefully considered when introducing new features; but there are cases where it has becomes smaller. The recent addition of LittleFS meant that a couple of KB more RAM was available at boot for example.
83.
▲
by
matt_trentini
6y ago
> one uses a FFT and the other an interrupt running at 170 kHz Neither of those rule out using MicroPython. Though you are likely to have to do some C work to achieve higher performance.
84.
▲
by
matt_trentini
6y ago
No, an effective MicroPython environment requires 32KB RAM and a couple of hundred KB of flash (it's possible to use less but the compromises are not worth it IMO). So yes, it's not possible to use very small devices. Still, t
85.
▲
by
matt_trentini
6y ago
Although much smaller in scope than NumPy, MicroPython (and CircuitPython) now have the ulab library which provides similar fast array manipulations: https://github.com/v923z/micropython-ulab
86.
▲
by
matt_trentini
6y ago
Yes, and this has recently attracted some focus. Take a look at the example for embedding MicroPython: https://github.com/micropython/micropython/tree/master/examp...
87.
▲
by
matt_trentini
6y ago
Generally the tactic is to write everything in MicroPython and, only if performance requires it, drop into C to write small sections. It's still significantly faster than developing wholly in C - or Rust for that matter. And that'
88.
▲
by
matt_trentini
6y ago
Already available on some devices. Notably the ESP32 and ESP8266.
89.
▲
by
matt_trentini
6y ago
The language is surprisingly complete; bigger differences are found in library support, even standard library support. Libraries that are memory efficient are easy to port but many Python libraries assume vast amounts of memory so it can re
90.
▲
by
matt_trentini
6y ago
Python 3.4 is actually the baseline for MicroPython these days. Many other more modern features have crept in; such as f-string support that was recently added. And the asyncio support is a modern implementation too... Generally MicroPyth
More ›