033 DON'T LET MICROPYTHON'S GARBAGE COLLECTOR RUIN YOUR PROGRAM

  Рет қаралды 429

Making Stuff with Chris DeHut

Making Stuff with Chris DeHut

Ай бұрын

Like most high-level languages, there needs to be a feature to clean up the mess programmers leave. In low level languages the program is required to clear up unused variables, pointers etc. Micropython's device to automatically do this is called the Garbage Collector. It works great, BUT, it takes time to execute and it can cause intermittent pauses in your program. In this video, we cover this problem in detail with a very real and practical problem and solution.
VISIT OUR COMPANION WEBSITE
makingstuffwithchrisdehut.com
INDEX TO ZOOMTOWN VIDEO SERIES
makingstuffwithchrisdehut.com...
REPOSITORY FOR ZOOMTOWN SOURCE CODE & OTHER DATA
makingstuffwithchrisdehut.com...
Some of the technologies explored in this experiment include, but is certainly not limited to:
[*] Autonomous Robotics
[*] Photo reflective sensors
[*] Time of flight sensors
[*] Hall effect sensors
[*] Rotary encoders
[*] Odometry
[*] Line following
[*] Color recognition and detection sensor
[*] Automatic route planning
[*] Localization
[*] Robotic cars
[*] Dead Reckoning
#Garbagecollector #micropython #pico #picow

Пікірлер: 17
@nigelworwood8530
@nigelworwood8530 Ай бұрын
No garbage here. Another interesting and informative video. Thanks.
@MakingStuffwithChrisDeHut
@MakingStuffwithChrisDeHut Ай бұрын
Glad you enjoyed it. Cheers! Chris
@larryplatzek9017
@larryplatzek9017 26 күн бұрын
Still no download for 033, hope will be posted soon.
@MakingStuffwithChrisDeHut
@MakingStuffwithChrisDeHut 25 күн бұрын
Thanks for letting me know. I also got the site updated for Episode 34 Cheers! Chris
@michaelangellotti5741
@michaelangellotti5741 Ай бұрын
Is 033 source code posted? Didn't see it on the bottom of the list.
@MakingStuffwithChrisDeHut
@MakingStuffwithChrisDeHut Ай бұрын
Sorry for not posting it right away - real life has been getting in my way of fun stuff. I posted it this morning (6/8/2024 4:21 Central time USA) Cheers Chris
@michaelangellotti5741
@michaelangellotti5741 Ай бұрын
@@MakingStuffwithChrisDeHut No worries. Many thanks.
@tomek3633
@tomek3633 Ай бұрын
>> 11:38
@MakingStuffwithChrisDeHut
@MakingStuffwithChrisDeHut Ай бұрын
Oh boy, Indian food can be "interesting", be careful. Pizza was great as always :-) Cheers! Chris
@tomek3633
@tomek3633 Ай бұрын
@@MakingStuffwithChrisDeHut it was hot and it was spicy and suuuuuper delicious :)
@MakingStuffwithChrisDeHut
@MakingStuffwithChrisDeHut Ай бұрын
@@tomek3633 You are a brave man eating that hot and spicy food! My body doesn't take kindly to it ;-) Cheers! Chris
@tomek3633
@tomek3633 29 күн бұрын
@@MakingStuffwithChrisDeHut 😂
@jasontiscione1741
@jasontiscione1741 Ай бұрын
Micropython's garbage collector loses track of stuff and leaves tiny bits of garbage distributed throughout RAM. You can call gc.collect() all you want. Soon you can't allocate a one kilobyte array even if you've got 90% free memory.
@MakingStuffwithChrisDeHut
@MakingStuffwithChrisDeHut Ай бұрын
Thanks for the additional information! I have not run into anything like that - YET, but I suspect that problem is "just around the corner"! Cheers! Chris
@mattytrentini
@mattytrentini 17 күн бұрын
Have you got any evidence of that? We've run simulated *years* of testing (actually performed over a couple of months) on some medical devices and have not seen this occur. Of course, we watched what the allocations looked like to ensure we weren't fragmenting memory...MicroPython never lost track of anything but it can - like any GC - fragment.
032 Using a Hall Effect Sensor and a Magnet as Stop Sign to Control Your Robot
10:27
Making Stuff with Chris DeHut
Рет қаралды 160
E022 How to Plan & Structure a Large MicroPython Program
35:43
Making Stuff with Chris DeHut
Рет қаралды 362
ОДИН ДЕНЬ ИЗ ДЕТСТВА❤️ #shorts
00:59
BATEK_OFFICIAL
Рет қаралды 9 МЛН
когда повзрослела // EVA mash
00:40
EVA mash
Рет қаралды 4,2 МЛН
He sees meat everywhere 😄🥩
00:11
AngLova
Рет қаралды 11 МЛН
reverse engineering makes you a better programmer (let’s try it out)
13:12
Low Level Learning
Рет қаралды 164 М.
Garbage Collection in Python: Speed Up Your Code
16:41
NeuralNine
Рет қаралды 14 М.
Tigger C: a file system on 6502 for I2C serial EEPROMs
25:20
Hopper Development Environment
Рет қаралды 592
034 Using the TCRT5000 for Line Following and More
25:35
Making Stuff with Chris DeHut
Рет қаралды 253
Compilers, How They Work, And Writing Them From Scratch
23:53
Adam McDaniel
Рет қаралды 97 М.
Python's 5 Worst Features
19:44
Indently
Рет қаралды 103 М.
Coding a Web Server in 25 Lines - Computerphile
17:49
Computerphile
Рет қаралды 327 М.
zig will change programming forever
9:34
Low Level Learning
Рет қаралды 238 М.
Спутниковый телефон #обзор #товары
0:35
Product show
Рет қаралды 2,2 МЛН
iPhone 16 с инновационным аккумулятором
0:45
ÉЖИ АКСЁНОВ
Рет қаралды 7 МЛН
Samsung Galaxy 🔥 #shorts  #trending #youtubeshorts  #shortvideo ujjawal4u
0:10
Ujjawal4u. 120k Views . 4 hours ago
Рет қаралды 2,4 МЛН