|
Check out this error that I just got in XCode when I attempted to preview the design layout[^].
It says, "Timed out waiting for a thunk to build..."
Thunk - Wikipedia[^]
I hadn't heard of thunk since old Windows API programming.
But now you can do your thunking on your Mac too. 
|
|
|
|
|
raddevus wrote: I hadn't heard of thunk since old Windows API programming.
Same-ish. Thunking is the technique MS used to make Win32s[^] work. However, the term made a comeback in the JavaScript ecosystem with libraries such as Redux Thunk[^].
True to JavaScript fashion though, we dumbed down the concept a bit. But, at one point in time it was useful for distributed web calls. These days there are better techniques though.
If you read the definition on the link for Redux Thunk, for instance, you'll notice some ambiguity between that and just using a callback. But hey, at least the term made a comeback-ish.
Jeremy Falcon
modified 6-Jan-23 12:14pm.
|
|
|
|
|
In my FreeRTOS thread pack library, I create a thunk for thread entry points to change the behavior of threads so they
A) start in the suspended state
B) kill themselves on exit rather than crashing
To err is human. Fortune favors the monsters.
|
|
|
|
|
back in the day routines called dally which stalled processes so they could sync with slower ones (like the line plotter).
all that went away with newer software and hardware for controlling parallel processes. VAX days.
"A little time, a little trouble, your better day"
Badfinger
|
|
|
|
|
That's cool to know.
Jeremy Falcon
|
|
|
|
|
My own name for those types of delay routines was "dally" so they may not be documented as such. But the concept is the same. Stall, delay, dally, they were not controlled by hardware syncs. They used shared memory space to software handshake with other processes. As pain.
"A little time, a little trouble, your better day"
Badfinger
|
|
|
|
|
Well, who'lda thunk it?
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
Never heard of thunking, but it reminds me of the motto:
Think (Or Thwim)
|
|
|
|
|
Or IBM's well known motto: Thibmk!
|
|
|
|
|
raddevus wrote: But now you can do your thunking on your Mac too
Thunk Different(tm).
|
|
|
|
|
Win16 did a lot of thunking.
I remember it as a little ASM code snippet mostly used to adjust the CPU DS (data segment register) so that when Windows called back into your code you had access to your “static” variables that lived in the DS.
Something similar happened when using DLLs. Each DLL entry point would adjust DS,
A bit foggy now! I do NOT miss it.
If Win16 was still in use today, ransom ware vendors would be billionaires!
|
|
|
|
|
The power went out. Then it came back, then it went out again. and stayed out.
So ... get the emergency light, dig out Herself's emergency O2 tank, lug it over to where she is, untangle the cannula, work out how to turn it on, get her comfortably breathing again ... and the power comes back on. And stays on.
To quote the "Haynes Book Of Lies": "Reassembly is the reverse of disassembly"
"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!
|
|
|
|
|
Sorry to hear this Paul hope she is ok
Life should not be a journey to the grave with the intention of arriving safely in a pretty and well-preserved body, but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming “Wow! What a Ride!" - Hunter S Thompson - RIP
|
|
|
|
|
She's as fine as she gets, but needs oxy most of the time. Covid strikes again ... she had no problem at all until she caught it. Now Emphysema is added to her little list of problems - partly why I changed the car, so she could put the O2 on the back seat and free up the footwell for her legs. (The previous car was a three door, and it was a PITA to get anything in the back!)
"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 feel for you both
Life should not be a journey to the grave with the intention of arriving safely in a pretty and well-preserved body, but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming “Wow! What a Ride!" - Hunter S Thompson - RIP
|
|
|
|
|
I will not address your situation in particular; my comments may not apply to you.
The most common case is that people are not prepared for exceptional events at all - they have no emergency light when power goes out, not even a flashlight or candles and matches. If they are snowed in so they can't get to the supermarket, they have very little of food supplies. If water supply fails, they have little or no water available. If fire breaks out, they do not have a fire hose or extinguisher. And so on. Some may have done a few preparations (e.g. here in Norway, you are by law required to have a fire extinguisher on every floor of your house), but the main rule is that people are completely unprepared.
The not-so-common case is that people have done some sort of preparation. You look at their emergency food store, noticing that the 'To be consumed before' date was five years ago. You see a gas mask still in its sealed package, and its owner tells that he has never ever tried to put a gas mask on and tried to make it fit his bearded face. The fire extinguisher has lost all pressure and the powder is clumped at the bottom. You have a fire hose, but have never felt the recoil when you open the nozzle, so it slips out of your hand when you need it. And so on.
Emergency aids are really valuable only when you use them, regularly. Sometimes, you need to drill it, like a fire drill - for that sake: Make a fire drill! Escape through the window. Lit a fire in your backyard, and put it out using your to-be-refilled fire extinguisher before refilling it, so you know how it feels to operate it. Try out your fire hose, and let your kids try it, too, to feel the thrust.
Close the main water valve to your house and see how long you can manage before you have to open it again. Switch off the main power fuses, to see how long you can manage without electricity. Keep power off for at least long enough for your smartphone batteries to go flat; next time around you add one day to that time. Pretend that you cannot get to the grocery store (or any other way of obtaining groceries) and see for how long you can manage with what you have got in your basement and pantry. In an ice cold winter: If your house is heated by oil, propane or wood: Imagine that you cannot obtain new supplies to burn. How long does it take before you are out of burning material? How will you then heat your home? If you are on electricity, and it goes out: How will you prepare your hot food? and keep your house warm? If you have an electric water heater: How will you get hot water for your daily shower (or its replacement, such as a basin and a washcloth)? Pretend that there is a fuel shortage; se how long you can manage without a car. Pretend that an excavator grabbed your internet cable connection, and the cable company tells you that they can't come to repair it for at least five days. (Maybe the cable was not for your house only, but uplink from a line concentrator, so your neighbors can't help you out.)
And so on. Do it for real; don't stop at a theoretical estimate of how long you can live on that long outdated emergency storage of canned food - eat it. (Or if you don't dare to, replace it with new stuff.) Don't just look at the window, judging how high up it is - climb out of it. Don't do it once, and for the next ten years say "I have done that!" - do it at least once a year. Make it routine.
One natural consequence is that next year, you have a larger stock of food that is not outdated. Flashlights have reasonably fresh batteries. Matches and candles are in place. Your oil/propane/wood store is more filled up. In your basement you have a filled up 25 liter water tank. Regarding food: You have learned to move the (not yet outdated) emergency food to your pantry, for everyday use, and filled up the emergency store with new, not-outdated foodstuff, so next year, it is not something tasteless, yucky stuff that you have to force down your throat.
Make water, electricity, fuel, food and internet outages a commonplace, everyday affair. If there is no real outage, pretend that there is, to force yourself to learn to handle it as an everyday affair. That is the only way to be truly prepared for it the day it is real.
|
|
|
|
|
we live in hurricane land so all that you mentioned more/less applies. I regularly keep a small cache of lithium bricks fully charged. We regularly (once a year) check food expiration dates. Stocked with toilet paper, etc. as well as at least a week of drinking water. Last year we had a cold spell without power for several days. Bricks came in handy. Had a pile of firewood in garage for heat in house during the day. Fortunately we had wireless internet connection. So folks, trønderen speaks wisely.
"A little time, a little trouble, your better day"
Badfinger
|
|
|
|
|
I live at 7000 ft in the mountains of Arizona we have an electric coop for electricity
Very reliable company but every few years we get hit with 2 to 3 ft of snow and the
power will disappear for a few days
My neighbor has an $5000.00 backup propane electric generator
One BIG issue he did not connect the garage door opener to the line that feeds the opener
for a double wooden door
Wanted to know if I could help lift the door
The darn thing did not have a handle to grab hold of it
I screwed in a hunk of 2 by 4 with battery powered drill
We push too many buttons to make things work
|
|
|
|
|
This could be an emergency preparedness article!
|
|
|
|
|
OriginalGriff wrote: To quote the "Haynes Book Of Lies": "Reassembly is the reverse of disassembly"
You're quite right! I think the chances of retangling the cannula properly are vanishingly small. I hope that the new tanglement is fully functional. (Or better - you never need it again.)
Phil
The opinions expressed in this post are not necessarily those of the author, especially if you find them impolite, inaccurate or inflammatory.
|
|
|
|
|
I am guessing the primary device is a concentrator?
Would a UPS be able to run it for a while?
You would still need to break out the tanks, but it would be less urgent.
|
|
|
|
|
It could, but ... it pulls about 4 amps, so it'd have to be a pretty heavy UPS.
It doesn't take that long to get it out and set up most of the time, and we don't get that many power cuts so it's just another thing to trip over / the cat to attack.
She has portable cylinders she can use, just they hold only 1/10th of the "main tank" - and it's kept in my tool storage room behind a closed door to minimize the risk of becoming and oxidizing agent and starting a big fire.
That and I don't trust the concentrator - I think it's a "noisy" device, as it blacks out the TV from time to time and the noise would hit the UPS from the "clean" side. Plus the last time I bought a UPS it took three deliveries before I got one that worked at all - they are heavy little buggers and couriers drop them a lot!
"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!
|
|
|
|
|
Overkill:
Time for a Tesla charging wall!
|
|
|
|
|
|
Bob-sey twins?
PartsBin an Electronics Part Organizer - An updated version available!
JaxCoder.com
|
|
|
|
|