#ruby-lang - Tue 20 Feb 2007 between 00:52 and 00:58

NY Lost Funds



manverucooperative multitasking in coroutines?
OlatheYes.
http://en.wikipedia.org/wiki/Coroutine
micahfso I'm guessing that DLN_LIBRARY_PATH might be what I'm looking for
but where would that be in siteruby?
manverumy brain changes its structure, but is not able to adapt to that concept
is that like... threads?
:)
OlatheNo, it's like defining an each method.
You return multiple times using yield. When the block is done, you start the coroutine again where you left off, rather than at the beginning.
Coroutines are a bit more general, though.
manveruhmm
like continuations?
OlatheYep.
manverui.e. you can just pop in and out of the state
OlatheThey say that continuations are a nice way to implement them, rather than stacks.
Well, you can pop into and out of their instruction sequence.
micahfthis is rough
OlatheBut the state goes with it.
micahfthat ming/mingc.so is totally in my site_ruby directory
manveruwell, the queue at least
Olathemicahf: Sorry, I've never really dealt with environment variables.
micahfbut I still get "LoadError: no such file to load -- ming/mingc
"
manveruor whatever you work on
micahfOlathe: it's OK
manverumicahf: where is your site_ruby ?
oh
a local one?
micahf~/local/lib/site_ruby
yea
manveruhmm
that could be tough
micahfyes, cause it's definitely in my environment
it finds ming/ming.rb
but not ming/ming.so
manverufor the time being, $LOAD_PATH << File.join(ENV['HOME'], 'site_ruby')
micahfer, ming/mingc.so
manveruuhm
or the path to ming

Page: 2 9 16 23 30 37 44 51 58 65 

IrcArchive

NY Lost Funds