|
You know where you go to weigh a pie?
Somewhere over the rainbow!
...♪ Weigh a pie ♪
|
|
|
|
|
There are certain things that are not appropriate in 192KB of SRAM.
Garbage collection is one of them.
There are certain things that are not appropriate on an 80MHz CPU.
Running an interpreter is one of them.
So why in the world is MicroPython so popular?
It's ridiculously slow, and just recently I've been trying diagnose what looks like (but can't be?) a heap frag issue in some MP firmware.
You can also write poor C and C++ code, of course. But the difference is you can also write *good* C and C++ code.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|
|
Worse - non thread safe memory allocation that c++ does at a whim. That drove us crazy for months until we figured out what was going on.
Charlie Gilley
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
Has never been more appropriate.
|
|
|
|
|
I don't even use the STL on embedded, mostly because I've run into incomplete and/or non-compliant implementations and I don't want to keep track of which platforms I need to fork for. Secondarily, the way it uses the heap is shameful out of the box. Utterly irresponsible unless you have gobs of RAM to where heap frag is never an issue, so you're usually stuck creating your own custom allocators and your own management scheme, but aside from that, many devices have multiple heaps with different sizes and performance characteristics, and getting The STL to handle that gracefully is just more trouble than it's worth, IMO.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|
|
The shop I'm leaving cannot spell STL. There were hopes, but design went into a different direction. All of the base code is written in pure C, the HMI - when one is needed is all JavaScript gobbly gook. Company just got fed up with MS bullshit.
Charlie Gilley
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
Has never been more appropriate.
|
|
|
|
|
Yeah. As far as I can tell Microsoft didn't truly straighten out their C++ compiler until VS 2022. That's when my standards compliant code started compiling for it, and it wasn't even using the STL, though it makes heavy use of templates.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|
|
I could draw metaphor for choosing js over msft but none would be appropriate for posting here... too vulgar.
|
|
|
|
|
The context of my comment goes back 10 years or more, when Microsoft abandoned the embedded devices market and threw an entire industry under the bus. Where once I used WinCE and WEC7, my customer said "f&&* this" and moved to devices that run on "we don't care just give me a modern browser." Microsoft erred in trying to port their OS and desktop to embedded devices, but they did a great job marketing it.
Then they abandoned the entire platform, tools, etc. After a few years they came back with their new offerings. No traction. No one in the embedded space I work in is using anything Windows, and as a professional I would seriously question your decisions if you wanted to push that crap. The bus left the station a long time ago.
Charlie Gilley
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
Has never been more appropriate.
|
|
|
|
|
I remember that.
I don't do embedded aside hobbyist stuff.
I still think choosing js if anything else is at all possible is a bigger mistake than any I made in that post.
|
|
|
|
|
5 years ago I would completely agree with you. But, these days I can drop a gigabit ethernet device on a board along with a 400MHz+ ARM process that services a dirt cheap touchscreen running a current browser, and I don't have to worry about the touchscreen's OS. I can then pull up a browser on my phone, or my desktop and talk to the device.
Touchscreen maker gets funky? Next maker.
As gnarly as JavaScript is, I hate looking at it (my personal problem), it works. And I don't think MS can f with JavaScript. Or a browser. It represents a stable platform relative to Microsoft. My customer switched, there's a whiz kid in the s/w group that pounded out a framework, and they aren't looking back.
The application uses JavaScript, Web sockets and more - all of it open source with people that understand you cannot break what you released before. Would I use JavaScript for a desktop application? Unlikely, but then again....
Charlie Gilley
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
Has never been more appropriate.
|
|
|
|
|
There can't be very good overlap with embedded and js when it comes to hiring.
And I don't think it's a personal problem it's just that language is like that new article post with the human skin fake face out of Japan. It's an abomination.
|
|
|
|
|
I was on a gig when I wanted to use STL, but was told to roll my own in plain old C. So much for learning STL!
BTW, if you want to get a good laugh, look at Scott Meyer's Effective STL book. The compiler warnings/errors are truly grotesque.
|
|
|
|
|
I guarantee this is work safe:
(This explains the way I see Codewitch.)
Google Images[^]
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
I have no idea why you'd think that.
*hides ACME shipping receipts*
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|
|
I am not clicking on that
Charlie Gilley
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
Has never been more appropriate.
|
|
|
|
|
Windows has been running for ages on computers to slow to run it
|
|
|
|
|
Do you like it? I despise it, but it's growing on me. Was this supposed to reduce eye strain or something?
Charlie Gilley
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
Has never been more appropriate.
|
|
|
|
|
I love it. I am extremely sensitive to light, and I find it helps me get through a full work-day without a tension headache around my eyes. Note that I run my "blue-light mode" 100% of the time to also reduce brightness and mellow the colors.
Theory is it reduces eye strain, but I think that depends on how well designed the color scheme is. I've seen some dark modes that aren't customizable that make my eyes hurt worse than light mode due to poor color choices that make it tough to pick up details.
Be wary of strong drink. It can make you shoot at tax collectors - and miss.
Lazarus Long, "Time Enough For Love" by Robert A. Heinlein
|
|
|
|
|
I'm awake at odd hours due to a segmented sleep pattern.
Bright light in an otherwise dark room is really hard on my eyes. Dark mode is a lot easier for me to look at.
VS Code slowly grew on me until I finally switched Visual Studio over as well.
Windows I switched separately but mainly because I liked the aesthetic of the theme in general, not because it was dark mode.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|
|
I didn't like it at first, but then I developed cataracts and dark mode helped negate the cloudy vision. Now that I've had cataract surgery I still like dark mode, it just seems like it places less strain on my eyes. I wish every web site and app had a dark mode option. (cough CP cough )
There are no solutions, only trade-offs. - Thomas Sowell
A day can really slip by when you're deliberately avoiding what you're supposed to do. - Calvin (Bill Watterson, Calvin & Hobbes)
|
|
|
|
|
I also like it, as it reduces strain on my old eyes.
A home without books is a body without soul. Marcus Tullius Cicero
PartsBin an Electronics Part Organizer - Release Version 1.4.0 (Many new features) JaxCoder.com
Latest Article: EventAggregator
|
|
|
|
|
I am very light sensitive these days. I really need to stop reading when I go to bed. I'm an exceptionally light sleeper and very sensitive to ambient light changes. I refuse to bring my phone into the bedroom, see note below, but sometimes my MIL will text or accidentally text my wife (she's 65% into full blown dementia) and if that phone lights up, I'm screwed.
I've been up since 3am today, because it's useless to try to go back to sleep.
Anyway, so today I've learned in Opera (browser of choice) that dark mode is website dependent. Well, that's elephanting irrritating.
Weirder - the popups from code project are in dark mode. As I type this, not in dark mode.
Charlie Gilley
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
Has never been more appropriate.
|
|
|
|
|
charlieg wrote: Anyway, so today I've learned in Opera (browser of choice) that dark mode is website dependent. Well, that's elephanting irrritating.
Does CodeProject have a Dark Mode?
Anyway, it's really disconcerting when, after working an a Dark Mode IDE for some hours, you need to look something up and the the site has a put white (#FFFFFF) background!
|
|
|
|
|
I use a solarized light as opposed to solarized dark. But then I think I'm part mushroom, I like monitor glow.
A pale yellow or green works well for me. I'm opposed to dark modes for most things probably because I am old and crotchety (to reference a post above).
I’ve given up trying to be calm. However, I am open to feeling slightly less agitated.
I’m begging you for the benefit of everyone, don’t be STUPID.
|
|
|
|
|
I'm with you, really terrible.
I feel like there's a lot I don't see in dark mode because not all shapes and colors are converted to some other color equally well.
|
|
|
|