Search found 348 matches

by stijn
Tue Sep 17, 2019 3:48 pm
Forum: General Discussion and Questions
Topic: Debugger for Micropython
Replies: 11
Views: 2839

Re: Debugger for Micropython

Yes that's it.
I briefly tinkered with it and it's fairly easy to implement 'break when line in file y is hit' and print a stacktrace, but inspecting variables seems harder because not all features for that are implemented yet.
by stijn
Tue Sep 17, 2019 7:19 am
Forum: General Discussion and Questions
Topic: Debugger for Micropython
Replies: 11
Views: 2839

Re: Debugger for Micropython

With the recent addition of sys.settrace we're one step closer to a Python-level debugger..
by stijn
Mon Sep 09, 2019 2:34 pm
Forum: Development of MicroPython
Topic: compiling C modules into loadable shared objects
Replies: 32
Views: 853

Re: compiling C modules into loadable shared objects

if you pass a pointer to a function, it is the caller's responsibility to allocate the required amount of memory, otherwise, all hell might break loose. But no one would consider this error prone. Depends on whom you ask, one can always find (misinformed) people who consider C and raw pointer acces...
by stijn
Mon Sep 09, 2019 10:14 am
Forum: Development of MicroPython
Topic: compiling C modules into loadable shared objects
Replies: 32
Views: 853

Re: compiling C modules into loadable shared objects

Yes that's also possible, but then the calling code has to know exactly what the function is going to do and create a buffer of the correct size. Certainly doable, but more error prone and increases coupling of the code.
by stijn
Mon Sep 09, 2019 8:49 am
Forum: Development of MicroPython
Topic: compiling C modules into loadable shared objects
Replies: 32
Views: 853

Re: compiling C modules into loadable shared objects

From my understanding the C function that performs the fft doesn't need access to any of the MP modules (not sure how RAM allocation for the C functions works). Ok I get what you're saying. Such fft example indeed doesn't need much 'internal' things, but just returning a new buffer does mean having...
by stijn
Mon Sep 09, 2019 8:42 am
Forum: General Discussion and Questions
Topic: Does anybody know what is going on with micropython?
Replies: 6
Views: 371

Re: Does anybody know what is going on with micropython?

the micropython-themed subs are dead. Has the project failed or something? The state of a forum isn't a good measure of project activity. Github is much better for that, and shows continuous work on the code: https://github.com/micropython/micropython/commits/master (that doesn't always reflect the...
by stijn
Sun Sep 08, 2019 10:58 am
Forum: Development of MicroPython
Topic: compiling C modules into loadable shared objects
Replies: 32
Views: 853

Re: compiling C modules into loadable shared objects

With case 1 do you maen anything which access the public API, and/or can you give an example of what you consider case 2? Just asking because the public API of MicroPython (i.e. all functions which are non-static and accessible through it's headers) is pretty large in that it exposes pretty much eve...
by stijn
Tue Sep 03, 2019 6:01 pm
Forum: ESP8266 boards
Topic: ESP Wi-Fi Vulnerabilities
Replies: 0
Views: 275

ESP Wi-Fi Vulnerabilities

Not sure if this is a problem with the SDKs used by MicroPython (if so, should probably upgrade a.s.a.p), but interesting nonetheless: https://github.com/Matheus-Garbelini/es ... 66_attacks
by stijn
Mon Sep 02, 2019 5:55 pm
Forum: Development of MicroPython
Topic: compiling C modules into loadable shared objects
Replies: 32
Views: 853

Re: compiling C modules into loadable shared objects

There's https://github.com/micropython/micropython/pull/1627 which think is similar to what you're asking about and there's my take on it https://github.com/stinos/micropython/tree/windows-pyd which is roughly like what CPython does. which could be employed without the hassle of the extra compilatio...
by stijn
Sun Aug 25, 2019 7:54 am
Forum: General Discussion and Questions
Topic: Windows Compile Error
Replies: 2
Views: 154

Re: Windows Compile Error

I tried compiling in both Cygwin 64 and in native Windows and I get the same error in both Can you explain what 'Cygwin 64' is, and 'native Windows'? I.e. which compiler version etc? And which port are you trying to build (the unix one or the windows one)? In any case: the only thing which is compl...