4 ms·
Its cool. But a language like Go would be much better suitable for these microcontrollers.
by TeeWEE 12y ago
Its cool. But a language like Go would be much better suitable for these microcontrollers.
- hyperbovine 12y agoWhy?
- CalRobert 12y agoPresumably because Go is hip, new, favoured by people on HN for some reason, etc. ? The attitude that once a new language comes out we need to drop all the old ones is not very helpful. Python is used by many, many people (more than Go, I'd venture) and having it available in something like this instead of having to work with Arduino and others which can be less user-friendly is spectacular.
- TeeWEE 12y agoI'm a python developer myself. I just started with Go. I'm just saying that Go fits microcontrollers better. Its cool to use Python. It doesn't matter much. I'm just saying that cool would also have been a good fit.
- jpetersonmn 12y agoActually you said "much better suitable for these microcontrollers" which you haven't explained yet. I think that's why you're getting these comments. I don't use GO, and think the Rasberry Pi is better than this thing anyway.
- boynamedsue 12y agoCan you elaborate on this? I'd like the understand what you mean.
- TeeWEE 12y agoFirst of all, if you want to use python, use it. However go is imho more suitable since - Python doesnt do parallel programming well, Go does (and low level programming is often async) - Go compiles to machinecode already (it will be faster, which is often important on lowend hardware) - Go is just as nice to write in as in Python (!debateable i know!) So all in all, python doesnt seem a right fit.
- pekk 12y agoThis criticism has no content. You like Go better, that's fine. But that doesn't mean it would be "more suitable" for these microcontrollers, because the whole point of these is to run a dialect of Python, which is novel. If you want to write in a low-level language there are already many microcontrollers you can trivially program in C or whatever.
- TeeWEE 12y agoWell, writing in Go is just as nice as writing in Python in my opinion. But I understand the whole point of these are to support python. Thats ok.
- donatj 12y agoGo binaries are too large for microcontrollers, you'd need some cut down version. Hello World comes out to ~500k on its own see: (shameless self link) https://donatstudios.com/Golang-Binary-Sizes https://donatstudios.com/Golang-Binary-Sizes
- zo1 12y ago"It's cool. But a language like C would be much better suitable for these microcontrollers." When you realize why the above doesn't sound right to you, then you'll realize why your sentence doesn't sound right to the rest of us.