|
Yeah - I will take your advice on this.
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
not my point. my point is that I have already been banned on this site. I have also been told my next infraction is a ban for life.
I am shedding light on the double standard. Certain members get away with EVERYTHING on this site, other, do not.
|
|
|
|
|
Can we not have generalisations, please?
cheers
Chris Maunder
|
|
|
|
|
I've been wrestling with a problem all morning for what I thought would be a simple clock that also fetched weather information and exposed a tiny website on the home network at http://clock.local that will get the time and weather information. Simple, right?
The trouble I've been having is trying to get this thing to do WPS connect in the background. Everything has to be interrupt driven because I have no threads/scheduler and that's fine, but then I basically need a coroutine (like yield in C#) around all of the call backs because i have to ...
and I just figured out the solution.
woo. I'm leaving this here because i love when that happens.
Anyway, I love not having to deal with threads. I love that callbacks are safe to set global variables from.
Everything is so bloody simple. Yay.
But also, everything is so bloody simple. Boo!
Expect more articles. These things should keep me in material for at least the next month.
Real programmers use butterflies
|
|
|
|
|
|
Tell me when I can buy a microcontroller I can program in C# using Visual Studio.
Wrong is evil and must be defeated. - Jeff Ello
Never stop dreaming - Freddie Kruger
|
|
|
|
|
One problem with that is garbage collection. By nature garbage collectors tend to want to reserve a lot of memory. It's possible in theory to do .NET on a limited host, but maybe not something so limited as an ESP32. I could be wrong.
C++ isn't so bad, especially when coding these little things. There's no room for templates (what C# calls generics) so the code isn't actually that confusing. Most of it is C ish. There's very few reasons to do pointer ops so you won't typically be using things like * or -> except maybe * occasionally when dealing with strings.
Another option for some of these things is micropython which is python with a stripped down runtime.
Real programmers use butterflies
|
|
|
|
|
You won't even get to the GC problem until you solve the bloatware problem on both fronts!
|
|
|
|
|
Yeah, although the CLI itself is pretty compact, so if it shipped with a stripped down CLR i think it would probably be fine but for the GC.
Real programmers use butterflies
|
|
|
|
|
Quote: There's no room for templates (what C# calls generics) so the code isn't actually that confusing. Most of it is C ish. There's very few reasons to do pointer ops so you won't typically be using things like * or -> except maybe * occasionally when dealing with strings
It is C++ : templates can be used and have their usage (possibly you mean STL containers and the like...).
"In testa che avete, Signor di Ceprano?"
-- Rigoletto
|
|
|
|
|
They have their usage but you have to understand you have very little SRAM for program storage - it's precious, and templates tend to bloat code where every literally byte counts. It's why they're barely used by Arduino library writers. This isn't the same as coding for a PC for example.
Real programmers use butterflies
|
|
|
|
|
Quote: They have their usage but you have to understand you have very little SRAM for program storage I know that. Still, I don't see why templates bloat code.
"In testa che avete, Signor di Ceprano?"
-- Rigoletto
|
|
|
|
|
|
Linkers are pretty smart, nowdays.
"In testa che avete, Signor di Ceprano?"
-- Rigoletto
|
|
|
|
|
One would hope, but in an embedded environment I'm more concerned when it doesn't, because it matters more.
Real programmers use butterflies
|
|
|
|
|
here you are: https://nanoframework.net/
Real programmers use butterflies
|
|
|
|
|
Cool, I will take a look.
Wrong is evil and must be defeated. - Jeff Ello
Never stop dreaming - Freddie Kruger
|
|
|
|
|
UserFriendly 2020-11-08[^]
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Very.
|
|
|
|
|
yes
To err is human to really mess up you need a computer
|
|
|
|
|
I'm not sure how many cookies it makes to be happy, but so far it's not 27.
JaxCoder.com
|
|
|
|
|
"I didn't mention the bats - he'd see them soon enough" - Hunter S Thompson - RIP
|
|
|
|
|
|
It's not quite that bad ... yet!
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
Not with us either, but I see my wife's parents... They eating each other in the lockdown... Id do not want to finish like that...
"The only place where Success comes before Work is in the dictionary." Vidal Sassoon, 1928 - 2012
|
|
|
|