what's a callback?
CASTalk.com Forum Index CASTalk.com
Discussion of DSP, FPGA, storage and embedded system.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web castalk.com
what's a callback?
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9, 10  Next
 
Post new topic   Reply to topic    CASTalk.com Forum Index -> Embedded System
Author Message
john jardine
Guest





Posted: Mon Dec 20, 2004 7:56 am    Post subject: Re: what's a callback? Reply with quote

"John Larkin" <john@spamless.usa> wrote in message
news:vuecs0hn0cr1im5d4tq240c1eu8ldqc378@4ax.com...
Quote:
On Sun, 19 Dec 2004 20:36:53 -0500, Spehro Pefhany
speffSNIP@interlogDOTyou.knowwhat> wrote:

On Mon, 20 Dec 2004 01:26:41 GMT, the renowned "Genome"
ilike_spam@yahoo.co.uk> wrote:


"john jardine" <john@jjdesigns.fsnet.co.uk> wrote in message
news:cq58nu$v5j$1@newsg2.svr.pol.co.uk...

describe it.
regards
john




Cunt... what is the recipe for haggis?
Aye?
Aye?
Aye?

DNA

Don't forget to prick your haggis.

Traditional Haggis (from Evelyn Hlabse, esh2@po.CWRU.Edu)

1 sheep's pluck (stomach bag)
2 lb.. dry oatmeal
1 lb. suet
1 lb. lamb's liver
2 1/2 cups stock
1 large chopped onion
1/2 tsp. cayenne pepper, Jamaica pepper and salt

Boil liver and parboil the onion, then mince them together. Lightly
brown the oatmeal. Mix all ingredients together. Fill the sheep's
pluck with the mixture pressing it down to remove all the air, and sew
up securely. Prick the haggis in several places so that it does not
burst. Place haggis in boiling water and boil slowly for 4-5 hours.
Serves approximately 12.


Serves approximately 11, if you invite me.

John


Yuuuuuck. You guys will eat anything.

At one time it was traditional round these parts to eat offal called Tripe
and Elder. Bought wrapped in newspaper, from a Tripe stall at the local
market and boiled in milk or served raw with vinegar to taste. Sourced from
some unmentionable parts of a cows body and utterly loathsome to look at or
handle.
As a kid my parents tried to get me eat some and I still vividly remember
wretching after forcing some of this obscenity in my mouth.
It stuck with me. On business in other countries it was always a trial
dealing with whatever nighmare foodstuffs (delicacies!) the hosts could
come up with. Stuffed Goose throat, animal head parts, sea animals not out
of place in a science fiction film. Ugh!. Eventually figured that a
countries food directly relates to how close the population are to their
poor peasant roots. Gimme a lump of beef any day.
regards
john
Back to top
Paul Hovnanian P.E.
Guest





Posted: Mon Dec 20, 2004 7:56 am    Post subject: Re: what's a callback? Reply with quote

John Larkin wrote:
Quote:

A few programmers I've known have used the term "callback", which
somehow related to executing a deferred subroutine or something. Does
anybody know anything about this term or its conventions? If I google
it, I just get a lot of telephone-type references.

A callback is a function you register (store a pointer in a table, for
example) with some sort of scheduling routine that you want run when
some event occurs.

Quote:
I'm doing a thing now where, in an interrupt service routine, if I
think I'm out of time I set a flag to remind me to finish some chores
next time or so. I'm not sure if that qualifies as a "callback."

In the purest sense of things, ISRs are pieces of code that are called
when some (physical) event occurs and are run 'outside' of the scheduled
tasks. In many OSs, ISRs are actually split into two parts, the 'bottom'
and 'top' halfs. The bottom half is the code that must be run at
interrupt time to save I/O data, reset h/w for the next event and set a
flag or schedule a task to do further processing for the event. The 'top
half' is the scheduled task that completes the processing necessary to
handle the event. This might be referred to as a 'callback' in some
systems.

--
Paul Hovnanian mailto:Paul@Hovnanian.com
------------------------------------------------------------------
You can discover what your enemy fears most by observing the
means he uses to frighten you. -- Eric Hoffer
Back to top
Rich Grise
Guest





Posted: Mon Dec 20, 2004 7:56 am    Post subject: Re: what's a callback? Reply with quote

On Sun, 19 Dec 2004 20:36:53 -0500, Spehro Pefhany wrote:
....
Quote:
Don't forget to prick your haggis.

Traditional Haggis (from Evelyn Hlabse, esh2@po.CWRU.Edu)
[abomination snipped]
http://www.tulsascots.com/photos/haggis.jpg
http://haradakun.cool.ne.jp/shashin/haggis.jpg


Gagg! Looks kinda like The Maggot That Destroyed Cleveland.

Thanks!
Rich
Back to top
Kryten
Guest





Posted: Mon Dec 20, 2004 7:56 am    Post subject: Re: what's a callback? Reply with quote

"I have a theory that all Scottish food is based on a dare"
(Mike Meyers)

I've tried haggis and it doesn't taste as disgusting as the ingredients
suggest.
The sheep's stomach is as thin and inoffensive as a sausage skin, and does
the same job of holding it all together. Sausage skins were traditionally
pigs intestines, but few people think sausages are disgusting.

As for the rest, only lamb's liver sounds bad but even that is okay if
cooked well (e.g. as a small part of a grilled lamb chop)

IMHO it just looks like a poor but canny Scots lass faced with a Spartan
pantry had a good go at stretching a small cheap cut of offal into
flavouring the largest portion of sausage-substitute.

I found it a bit dry. Needs a good gravy, or dampening with a splash of
whisky (oh yes, it's not just for cornflakes).


Quote:
Tripe

That is made of cow stomach, and is about 7 mm thick.
I hear it can be edible if cooked properly and even made to look okay (fried
in breadcrumbs like plaice).

But as you may know, we English are famous for boiling food to leach out the
flavour and vitamins into the water, then throwing the water away and eating
what is left.

Quote:
As a kid my parents tried to get me eat some

That counts as child abuse IMHO.

Along with school dinners. The people responsible should have their livers
boiled for hours until grey and rubbery, then made to eat them. Dr. Lecter,
we have a job for you!

Quote:
On business in other countries it was always a trial
dealing with whatever nightmare foodstuffs (delicacies!)

My mate has to go to Taiwan. He hates the endless kimchi.
I advised him not to ask for hot dog.


Quote:
sea animals not out of place in a science fiction film.

Sea cucumber is much the same as squid.

The guy who first looked at a squid/octopus/oyster and thought "I'll try
eating that". I bet he was bloody hungry.

And what is the deal with oysters?
It's a fish built like a nut...
Back to top
Richard Henry
Guest





Posted: Mon Dec 20, 2004 7:56 am    Post subject: Re: what's a callback? Reply with quote

"Kryten" <kryten_droid_obfusticator@ntlworld.com> wrote in message
news:6Jsxd.101$iz.11@newsfe1-win.ntli.net...
Quote:
And what is the deal with oysters?
It's a fish built like a nut...

Actually, I've heard it compared to something else altogether.
Back to top
CBFalconer
Guest





Posted: Mon Dec 20, 2004 7:56 am    Post subject: Re: what's a callback? Reply with quote

Genome wrote:
Quote:
"Hans-Bernhard Broeker" <broeker@physik.rwth-aachen.de> wrote in message
--
Hans-Bernhard Broeker (broeker@physik.rwth-aachen.de)
Even if all the snow were burnt, ashes would remain.

You haven't got a fucking clue.......

Interesting that you provide this brilliant reply to the only
response to the original that actually was intelligent. PLONK.

--
Chuck F (cbfalconer@yahoo.com) (cbfalconer@worldnet.att.net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home.att.net> USE worldnet address!
Back to top
Mike Monett
Guest





Posted: Mon Dec 20, 2004 7:57 am    Post subject: Re: what's a callback? Reply with quote

John Larkin wrote:
Quote:

A few programmers I've known have used the term "callback", which
somehow related to executing a deferred subroutine or something. Does
anybody know anything about this term or its conventions? If I google
it, I just get a lot of telephone-type references.

I'm doing a thing now where, in an interrupt service routine, if I
think I'm out of time I set a flag to remind me to finish some chores
next time or so. I'm not sure if that qualifies as a "callback."

John

That's a flag. Here's a good explanation of callbacks:

http://www.tutok.sk/fastgl/callback.html

Best,

Mike Monett
Back to top
Frank Bemelman
Guest





Posted: Mon Dec 20, 2004 12:58 pm    Post subject: Re: what's a callback? Reply with quote

"CBFalconer" <cbfalconer@yahoo.com> schreef in bericht
news:41C6545E.3C87017@yahoo.com...
Quote:
Genome wrote:
"Hans-Bernhard Broeker" <broeker@physik.rwth-aachen.de> wrote in message
--
Hans-Bernhard Broeker (broeker@physik.rwth-aachen.de)
Even if all the snow were burnt, ashes would remain.

You haven't got a fucking clue.......

Interesting that you provide this brilliant reply to the only
response to the original that actually was intelligent. PLONK.

Which reminds me that you never posted *never* anything brilliant
or intelligent. Stuff your hot potatoe. PLONK.

--
Thanks, Frank.
(remove 'q' and 'invalid' when replying by email)
Back to top
Anthony Fremont
Guest





Posted: Mon Dec 20, 2004 3:12 pm    Post subject: Re: what's a callback? Reply with quote

John Larkin wrote:
Quote:
On Sun, 19 Dec 2004 21:50:21 GMT, "Anthony Fremont"
spam@anywhere.com> wrote:


"Fred Bloggs" <nospam@nospam.com> wrote in message

No- that is called "setting a flag to remind you to finish some
chores" and is an example of *re-entrant code*:-) Why in the world
would that be called "callback" unless you collect useless jargon?

That's certainly the most unique definition of re-entrancy that I've
seen.

When I think of re-entrant code, I think of code that has no local
variable storage associated to it. I also think of code that can
call itself recursively or be executed in several threads across
multiple processors concurrently with only one copy in memory.


AKA "pure" code.

Well.....I guess if it were to be really pure code, all addresses would
have to be relative to the instruction counter. ;-) We used to call
this floatable code as it could be just plunked into memory anywhere and
executed.
Back to top
Craig Bergren
Guest





Posted: Mon Dec 20, 2004 4:30 pm    Post subject: Re: what's a callback? Reply with quote

On Mon, 20 Dec 2004 04:40:34 +0000, Kryten wrote:

Quote:
"I have a theory that all Scottish food is based on a dare" (Mike Meyers)



I found it a bit dry. Needs a good gravy, or dampening with a splash of
whisky (oh yes, it's not just for cornflakes).


I would think all the beef fat (suet) would keep it moist.

Quote:

Tripe

That is made of cow stomach, and is about 7 mm thick. I hear it can be

Menudo, a traditional Mexican tripe soup and miraculous hangover cure.
Quote:


sea animals not out of place in a science fiction film.

Sea cucumber is much the same as squid.

I don't think they are anything like squid. Squid are like tubes
with tentacles and if no prepared correctly can be quite rubbery. Sea
cucumbers are more like really stiff gelatin in texture and have no taste
of their own and take on the taste of whatever sauce they are cooked in.
Back to top
John Larkin
Guest





Posted: Mon Dec 20, 2004 9:17 pm    Post subject: Re: what's a callback? Reply with quote

On Mon, 20 Dec 2004 10:12:58 GMT, "Anthony Fremont"
<spam@anywhere.com> wrote:

Quote:
John Larkin wrote:
On Sun, 19 Dec 2004 21:50:21 GMT, "Anthony Fremont"
spam@anywhere.com> wrote:


"Fred Bloggs" <nospam@nospam.com> wrote in message

No- that is called "setting a flag to remind you to finish some
chores" and is an example of *re-entrant code*:-) Why in the world
would that be called "callback" unless you collect useless jargon?

That's certainly the most unique definition of re-entrancy that I've
seen.

When I think of re-entrant code, I think of code that has no local
variable storage associated to it. I also think of code that can
call itself recursively or be executed in several threads across
multiple processors concurrently with only one copy in memory.


AKA "pure" code.

Well.....I guess if it were to be really pure code, all addresses would
have to be relative to the instruction counter. ;-) We used to call
this floatable code as it could be just plunked into memory anywhere and
executed.

My (perhaps non-professional-programmer) definition of that is
"relocatable" or "PIC" (position independent) code.

"Pure" code is code that has no associated statics and if of course
not self-modifying, so that it can be executed by multiple threads
without hassle.

John
Back to top
Rufus V. Smith
Guest





Posted: Mon Dec 20, 2004 9:46 pm    Post subject: Re: what's a callback? Reply with quote

"John Larkin" <john@spamless.usa> wrote in message
news:2onbs01b2vcbsmls7bd7qqdlo8kvafuolk@4ax.com...
Quote:
A few programmers I've known have used the term "callback", which
somehow related to executing a deferred subroutine or something. Does
anybody know anything about this term or its conventions? If I google
it, I just get a lot of telephone-type references.

I'm doing a thing now where, in an interrupt service routine, if I
think I'm out of time I set a flag to remind me to finish some chores
next time or so. I'm not sure if that qualifies as a "callback."

John



A simple flag does not constitute a callback, what you are
describing is simply persistent memory.

Callbacks are used when a routine (typically event driven),
doesn't know what else needs to be done for an event. All it
knows is when the event occurs, if there is a procedure address
defined, to call it (back).

If you look at publish/subscribe, you have a multiple
call back situation. Every client subscribes to the
event by passing an execution address which the
publisher (server) keeps in a list. When the event
occurs, the server "calls back" all the functions passed
by the subscribing clients.

Of course, publish/subscribe can also be done with
messages or signals, too. The end result is pretty
much the same. (Though nigglers will tell you the
direct call back has threading and context issues...)

Rufus
Back to top
John Woodgate
Guest





Posted: Mon Dec 20, 2004 9:52 pm    Post subject: Re: what's a callback? Reply with quote

I read in sci.electronics.design that John Larkin <john@spamless.usa>
wrote (in <thuds05o27kn180mjet5m7pad3331rthi6@4ax.com>) about 'what's a
callback?', on Mon, 20 Dec 2004:

Quote:
and if of course not
self-modifying, so that it can be executed by multiple threads without
hassle.

A veritable model of recidivism!
--
Regards, John Woodgate, OOO - Own Opinions Only.
The good news is that nothing is compulsory.
The bad news is that everything is prohibited.
http://www.jmwa.demon.co.uk Also see http://www.isce.org.uk
Back to top
Boris Mohar
Guest





Posted: Mon Dec 20, 2004 10:16 pm    Post subject: Re: what's a callback? Reply with quote

On Sun, 19 Dec 2004 20:36:53 -0500, Spehro Pefhany
<speffSNIP@interlogDOTyou.knowwhat> wrote:


Quote:

Don't forget to prick your haggis.

Traditional Haggis (from Evelyn Hlabse, esh2@po.CWRU.Edu)

1 sheep's pluck (stomach bag)
2 lb.. dry oatmeal
1 lb. suet
1 lb. lamb's liver
2 1/2 cups stock
1 large chopped onion
1/2 tsp. cayenne pepper, Jamaica pepper and salt

Boil liver and parboil the onion, then mince them together. Lightly
brown the oatmeal. Mix all ingredients together. Fill the sheep's
pluck with the mixture pressing it down to remove all the air, and sew
up securely. Prick the haggis in several places so that it does not
burst. Place haggis in boiling water and boil slowly for 4-5 hours.
Serves approximately 12.

http://www.tulsascots.com/photos/haggis.jpg
http://haradakun.cool.ne.jp/shashin/haggis.jpg



Looks like a giant maggot.. Fancy some geoduck?

http://www.quitbuddies.org/Qb/geoduck.jpg



Regards,

Boris Mohar

Got Knock? - see:
Viatrack Printed Circuit Designs http://www3.sympatico.ca/borism/
Back to top
John Woodgate
Guest





Posted: Mon Dec 20, 2004 11:46 pm    Post subject: Re: what's a callback? Reply with quote

I read in sci.electronics.design that Boris Mohar <borism_-void-
_@sympatico.ca> wrote (in <u62es05or1funpn48pp79m00s1b4n6uq4e@4ax.com>)
about 'what's a callback?', on Mon, 20 Dec 2004:
Quote:
Looks like a giant maggot.. Fancy some geoduck?
I can't even pronounce it.

--
Regards, John Woodgate, OOO - Own Opinions Only.
The good news is that nothing is compulsory.
The bad news is that everything is prohibited.
http://www.jmwa.demon.co.uk Also see http://www.isce.org.uk
Back to top
 
Post new topic   Reply to topic    CASTalk.com Forum Index -> Embedded System All times are GMT
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9, 10  Next
Page 3 of 10

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




VoIP Electronics Powered by phpBB