Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
pfalcon
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
17 ms
·
121.
▲
by
pfalcon
11y ago
This is a project update for MicroPython port for ESP8266, discussing possible reasons why ESP8266 became so popular and successful with OpenSource projects, and some challenges MicroPython port is going to deal with.
122.
▲
Getting the most out of ESP8266 WiFi SoC
(kickstarter.com)
10 points
by
pfalcon
11y ago
|
3 comments
123.
▲
by
pfalcon
11y ago
I appreciate your comment. I keep an eye on other projects' progress, and I agree that few last months were active in ESP8266 community. Is my observation right that many changes in NodeMCU (finally upgrading from 0.9.6, switching from
124.
▲
by
pfalcon
11y ago
Well, the page you linked to actually "looks better" than a typical page you get on bountysource.com, but even it shows that only handful projects receive good funding, other mostly "motivational pack", and clicking arou
125.
▲
by
pfalcon
11y ago
Thanks for your kind words and your project! I have no idea how I missed Home Assistant, written in Python3 and so popular (my usual complain about HA projects is "where're Python projects?" and "where's critical ma
126.
▲
by
pfalcon
11y ago
Depends on what you consider "serious". You can watch a Kickstarter video, at least the beginning. A gadget which shows you weather. Is it serious? I dunno. But I find it useful. Well, perhaps I don't need to know weather in
127.
▲
by
pfalcon
11y ago
If you think that Lua is good for that, you'd be surprised how MicroPython is good - it's written purposedly for microcontrollers. And Lua was written for "desktop" scripting and found its stronghold in gaming industry.
128.
▲
by
pfalcon
11y ago
We upgrade from proprietary "callback mess" API to a de-facto standard socket API. There will be non-blocking sockets support, and thus portable way for async socket programming. I'd love to say that we'll support Python
129.
▲
by
pfalcon
11y ago
For fair comparison, that's GPL-licensed. To get that part out, I'm great proponent of FSF and GPL, and use GPL for most of my "desktop/server" code. But we know that in embedded it's a bit different, and being
130.
▲
by
pfalcon
11y ago
The github link is above (that's where the development happens). If you're interested in ESP8266 port specifically, currently the best way to contribute is to back Kickstarter campaign, and spread the word about it. (We ran ESP826
131.
▲
by
pfalcon
11y ago
The aim of MicroPython port for ESP8266 is exactly to make it very easy to use, even for beginners/people coming from "desktop". (Other people will answer that ESP8266 already has easy enough tools to use, and I won't ar
132.
▲
by
pfalcon
11y ago
Thanks. I still can't believe that my little hack of a makefile became so popular ;-). I wish my other personal projects grew as popular as it. It started as personal "executable documentation" to keep sanity in the early day
133.
▲
by
pfalcon
11y ago
asyncore (if you mean it) is old and deprecated by now. MicroPython does support asyncio (subset of it to be exact), which is the default async framework in Python 3.
134.
▲
by
pfalcon
11y ago
MicroPython is fully open-source and available at https://github.com/micropython/micropython . The ESP8266 port of it, developed within Kickstarter campaign, will be open-sourced too: either immediately, if enough fund
135.
▲
by
pfalcon
11y ago
No. But running SQL where you never could run it before (where SQLite couldn't fit even remotely) is definitely interesting.
136.
▲
by
pfalcon
11y ago
128K/256K of builtin flash is a midline for microcontrollers now. A 16Mb SPI flash chip costs $0.5, and many newer devices have some external flash. Of course, nobody precludes you to manage all that space manually, bit by bit.
137.
▲
by
pfalcon
11y ago
Also mind that software doesn't stay the same either. As an example, LMDB (smaller, key-value DB) in its initial docs and slides bragged 30K of object size. Build current version, you'll get 60K, and there doesn't seem to be
138.
▲
by
pfalcon
11y ago
You can adapt, or have you adapted? I looked at SQLite internals, and decided that I'll skip that adaptation for now, seeing if someone else would do that. LittleD's author says that he looked into adapting SQLite, and that's
139.
▲
by
pfalcon
11y ago
That's what I'm telling LittleD's author too! I posted here on HN just to show him that it's not my whim, and other people think the same ;-).
140.
▲
by
pfalcon
11y ago
The same as on any other device I guess - you either need to sit and roll out your own data structures, or just take and use a database.
141.
▲
by
pfalcon
11y ago
Please go to https://github.com/graemedouglas/LittleD/issues/6 and give it +1 then.
142.
▲
by
pfalcon
11y ago
Yes, currently you need to build it yourself to do size comparisons. Generally, this HN post is in argument to LittleD's author that people care about his project, and that he should care about its potential users (and contributors!) a
143.
▲
by
pfalcon
11y ago
I thought hard what to put in the subject (limited length, you know) - code size or working RAM size, but figured if I write "can run queries in 1KB", people won't get it ;-).
144.
▲
by
pfalcon
11y ago
LittleD is designed to run on devices the size of (higher-end) Arduinos. So, it's difference of not being able to use a database and being able to use it. Reliability is a different problem, which is addressed for deeply embedded devic
145.
▲
LittleD – SQL database for IoT, can run queries in 1KB
(github.com)
244 points
by
pfalcon
11y ago
|
103 comments
146.
▲
by
pfalcon
11y ago
Thanks, I have full drawer of boards ;-). If only I had enough time to work on them. esp8266 port progresses, but quite slowly. We need more people to contribute (spreading a word is helpful). Another option to give it more momentum is some
147.
▲
by
pfalcon
11y ago
There's also pretty large subset of stdlib available: https://github.com/micropython/micropython-lib . But it's targeted primary at Unix port - you can install it even on a low-cost Linux board with 4MB of Fl
148.
▲
by
pfalcon
11y ago
It's better than 2.7 REPL, definitely. It's a bit different than 3.5 REPL. 3.5 does more for you on auto-completion front, but MicroPython is much better on smart- and auto-indenting. Give it a try - it's easy to build it for
149.
▲
by
pfalcon
11y ago
Some highlights: 1. Advanced REPL support with smart auto-indent and auto-completion for comfortable interactive typing pf Python code, easily switchable to paste mode to copy pre-made code snippets. 2. Support for client SSL connections. 3
150.
▲
MicroPython 1.5 (small Python implementation for IoT, etc.)
(mail.python.org)
5 points
by
pfalcon
11y ago
|
7 comments
More ›