For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?
The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.
I had previously vowed to never use Python in protest of its use of significant whitespace.
However, I've been seduced by microprogramming projects using ESP8266 chips on which Micropython is a major player. LUA is my other option but comes with disadvantages.
I may have to learn one of them and the allure of micropython is WebREPL which leads me to believe I can create a little dynamic webserver on about $10 worth of components drawing modest usb power.
It's not so much the webserver part that's interesting but these devices are so cheap and easy to program against and wire things into you can automate most of your home with them if you're inclined. They're magic, and they all speak WiFi.
If I can run python on an $8 chip that I can slave an arduino mega 2560 to I will rule the world (or at least the gadgets in my home) for about $15. Woo!
I was actually into building simple circuits before I ever started programming. This combines the two, it's just I never really had a reason to do it before, but now with WiFi being so ... cheap and readily connectible to dumb 8 bit hardware how can i not be thrilled by this? The possibilities are endless. Most of them involve clever ways to use AI to harass my cats, but still.
When you're working with digital circuitry it's not all that different. I mean, there's some different ground rules, but it's all just logic. Logic circuits vs. lines of code.
There is an LGPL'ed tiny C compiler out there with backends for x86 and x64. I recall a (much earlier) tiny C compiler in Byte magazine for 8- or 16- bit processors. Modifying one or the other shouldn't be too difficult for one of your talents.
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
It's funny because you'd think so, but with microcontrollers these days apparently it's not hard to find them out there running a version of python, lua or even javascript when they're not running the more traditional C variants. Hardware is cheap, and lower power chips can do a lot more than they used to.
is it actually though? The reason I ask is it's not *exactly*, like there's functions in there like digitalWrite() that have no corresponding header at the top.
That's why I've been confused as to what language it actually is. Most of the constructs look Cish, but there are some C++isms. No generics to my knowledge though, and no standard library which is why i hesitate to say anything more than Cish? This is just my takeaway after getting my hands on it. I fully expect in you saying that you know something I don't.
Real programmers use butterflies
Last Visit: 31-Dec-99 18:00 Last Update: 15-Jun-24 11:56