|
Yes, it's nasty, but synchronization primitives can add a lot of overhead to a task, and make the task non-restartable. For example, take the case where a thread in the task takes ownership of a mutex then crashes. How do you know what the state of the mutex should be? You can possibly detect the crashed thread, but restoring the task to a consistent state without restarting from the beginning is much more difficult.
(I'm not going to do more than mention deadlocks, livelocks, priority inversions, convoying, and all of the other issues that can occur with lock-based multithreading. Even where fixes are possible, many small processors simply don't have the horsepower to handle all of these issues.)
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
Daniel Pfeffer wrote: Yes, it's nasty, but synchronization primitives can add a lot of overhead to a task
Yeah, that's why I said I'm okay with not using them (regardless of how ugly it is to me)
It's just ... the "timing" thing doesn't inspire confidence in me. I'm used to traditional OS's where you simply can't do that.
Real programmers use butterflies
|
|
|
|
|
Embedded real time programming is a vastly different world from where most of us live and work.
|
|
|
|
|
... how come you can still buy Iceberg Lettuce?
"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!
|
|
|
|
|
I dunno, I'm kinda warming up to the idea.
|
|
|
|
|
It gives me chills just thinking about it.
"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!
|
|
|
|
|
They've kept it on ice?
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
We'll see an increase in hot sauce sales.
|
|
|
|
|
since it's called "iceberg", shouldn't 3/4 of it be underwater?
|
|
|
|
|
Quite frankly in the age of texting and acronyms you would think they would stick with the name "sun" vs "glow ball warming", feels a little neanderthally to me and so much slower to type in my phone.
|
|
|
|
|
This is a pretty hot topic. And easy too, no sweat.
|
|
|
|
|
As I've matriculated as a coder I've noticed several watershed moments in my development of the craft.
It has to do with what I typically swear at.
Over the years,
I've gone from primarily swearing at the languages for not having what I want
To primarily swearing at the compiler for not doing what I want
To primarily swearing at my IDE and toolchains for breaking
Real programmers use butterflies
|
|
|
|
|
So to borrow an interview question...
Where do you see yourself in 10 years?
|
|
|
|
|
I honestly hate that interview question.
I like to keep my options open. The best parts of life can be the parts I didn't expect. When I was 17 I was homeless and I didn't see myself at Microsoft at 18. There I was.
I don't plan out my life. Living is for closers.
Real programmers use butterflies
|
|
|
|
|
honey the codewitch wrote: When I was 17 I was homeless and I didn't see myself at Microsoft at 18. There I was.
I've always found it amusing how people imagine Microsoft employees in business suits. It's more like pink hair, blue hair, mowhawks, nose rings mixed with regular people from all over the world and from all walks of life.
Even have full size kegs of beer in some of the buildings.
|
|
|
|
|
Beer and pizza fridays. Nobody cared that I wasn't 21.
ETA: I totally identify with Cameron from Halt and Catch Fire. She was a woman after my own heart.
Real programmers use butterflies
|
|
|
|
|
I loved that TV series (Halt and Catch Fire). It seemed as if it was a biography of my life.
|
|
|
|
|
dandy72 wrote: Where What do you see yourself swearing at in 10 years?
FTFY
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
That's exactly what I meant. I think codewitch went a little too literal with her answer.
|
|
|
|
|
Don't say "doing your wife"[^].
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Heh, never got the 10 year question. At the first place I worked at out of college I got the 'what my career goal was' question. I told them to retire! They didn't really like that answer
|
|
|
|
|
Over the years?
..swearing at the PC.
Swearing at the wife.
Swearing at an empty fridge (shortly after the previous)
Bastard Programmer from Hell
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
0) Get Coffee
1) Start coding project A
2) Eat breakfast
3) Start design project B
4) Get coffee refill
5) Layout schematic for project C
6) Finish filling in Green drain field that was created over last 3 days. (Yay can washes dishes and laundry again) Old drain field lasted a year, was under designed so refacotred.
7) Eat lunch
8) Read chapter book A
9) Coffee refill
10) Read chapter book B
11) Try to remember where I was on project A and why it's not working...debug between swearing seasons.
12) Bang head repeatability
13_ Investigate proposed QUICK project for better half and decide it's going to be anything but quick but start it anyway.
14) Eat supper
15 Watch a little Netflix
16) Go to bed exhausted wondering why in the hell I didn't get anything accomplished.
The less you need, the more you have.
Even a blind squirrel gets a nut...occasionally.
JaxCoder.com
|
|
|
|
|
My list has expanded to:
Swearing at the .NET Framework
Swearing that 3rd party API's
Swearing at JavaScript
Swearing at TypeScript
The only reason that swearing at front-end "frameworks" is not on the list is because I was doing so much swearing I decided it's simpler, better, faster, easier and frankly safer to not use any.
Occasion swearing at jqWidgets, which is the only front-end UI library I use. It's awesome until it isn't, but even then it's better than the rest of the shyte out there (granted, I haven't worked much with Telerik or DevExpress, because I don't want to buy into ASP.NET, which would be more swearing.)
|
|
|
|
|
Soon you'll be swearing at old code (by some anonymous coder)...
|
|
|
|