... FreeBSD's KSE (libpthread) combine the best of both worlds, and what I think you'll see more of in the future in other operating systems. They're...
7030
June Kim
junaftnoon
Sep 20, 2005 8:43 am
... I am interested in graph-based programming. I like G programming language(and labview). If you haven't seen it, it's definitely worth a look. So John, you...
7031
Jason Grossman
jas0ngr0ssman
Sep 21, 2005 7:30 am
Dear Ioers I've happened to have a few months without much Internet access, during which I wrote a wiki program in Io. It works nicely when accessed as ...
7032
Thomas Sutton
grimkor
Sep 21, 2005 7:38 am
... sutton@fraser:~$ host tumble.tk tumble.tk has address 69.61.62.215 lynx is using your proxy server (www-cache.usyd.edu.au) which is returning 503 (perhaps...
7033
Steve Dekorte
stevedekorte
Sep 21, 2005 8:29 am
... You might try setting the Server's IP to your machine's public IP instead of 127.0.0.1 before starting it. Example: Server socket setHost(myIP) -- Steve...
7034
Jason Grossman
jas0ngr0ssman
Sep 21, 2005 10:15 am
... Works a treat. Thanks. Months of misery are over. (Well, maybe "misery" is a bit strong.) Could you please add this to the example in the docs? ... I...
7035
Mike Austin
mike_ekim
Sep 23, 2005 9:01 am
I started writing a new game, so the pattern of iterating over pairs of unique items in a list comes up often. Here's the source for IoList_foreachPair(). ...
7036
Alwin Blok
alwinblok
Sep 23, 2005 3:25 pm
... Thanks! I can use that. Regards, -Alwin...
7037
June Kim
junaftnoon
Sep 23, 2005 7:43 pm
Have a look at the following code: m1:=Map clone m2:=m1 clone m1 atPut("1",111) assert(m1 at("1"),111) assert(m2 at("1"),Nil) #the key,value pair is not...
7038
June Kim
junaftnoon
Sep 24, 2005 3:46 am
Following is what I have done so far. doFile("Assert.io") EM:=Map clone do( at:=method(k, super(at(k)) or self proto at(k) ) ) e1:=EM clone e2:=e1 clone e1...
7039
Mike Austin
mike_ekim
Sep 24, 2005 11:33 pm
... It seems like a major hastle, and the SDK is huge. I'd rather get MinGW working, at least I've got it to compile most of IoDesktop in the past. Getting...
I've been working on a new game, and have decided to try using coroutines for each actor. This greatly simplifies the coding of states and timing. Brian H, I...
7043
Steve Dekorte
stevedekorte
Sep 27, 2005 5:20 am
... Do you mean this?: #elif defined(__CYGWIN__) /* Cygwin */ buf[7] = (int)((int)stack + stacksize - 100); -- Steve...
7044
Mike Austin
mike_ekim
Sep 27, 2005 7:11 pm
... Actually, it doesn't solve the problem but it helps. I tried running the code in the previous message with 100 coroutines and it will crash. With a few ...
7045
Kevin Edwards
edwakev
Sep 27, 2005 11:53 pm
... I played with your code a bit, using your IoDesktop-Cygwin-2005-08-18 binaries and noticed something strange. I created 200 actors and it soon terminated...
7046
June Kim
junaftnoon
Sep 28, 2005 3:58 am
My ioVM is 0910 version and I see the same behavior as you have described. However, It doesn't segfault when run in cygwin bash shell. The problem related to...
Ruby has a good many of useful collection closure methods : http://www.martinfowler.com/bliki/CollectionClosureMethod.html I tried to make inject method: ...
7049
June Kim
junaftnoon
Sep 28, 2005 7:43 pm
I am replying to myself: Importer turnOff doFile("Assert.io") List inject:=method(start, accu:=thisMessage argAt(1) name each:=thisMessage argAt(2) name ...
7050
Mike Austin
mike_ekim
Sep 28, 2005 7:59 pm
... I think you can chain a new object onto sender: context := sender clone self foreach(v, context updateSlot(eachName,v) context...
7051
Kevin Edwards
edwakev
Sep 28, 2005 8:40 pm
... I posted a lexical "do" implementation about a month ago that used the protos chain to connect the lexical scopes. You can do something ... List...
7052
Steve Dekorte
stevedekorte
Sep 29, 2005 12:14 am
... Io's List map() method is the same as Smalltalk/Ruby inject method. ... How about this?: List inject := method(aBlock, self foreach(i, v, self atPut(i, ...
7053
Mike Austin
mike_ekim
Sep 29, 2005 4:38 am
... I think you're confusing inject with collect. ... this is collect. a inject/fold/reduce example would be: list(1,2,3) reduce( a, b, a * b ) // 3...
7054
Steve Dekorte
stevedekorte
Sep 29, 2005 12:45 pm
... Oops, my mistake. ... Yes, the name "reduce" seems more appropriate. -- Steve...
7055
June Kim
junaftnoon
Sep 29, 2005 2:28 pm
Run the following code: XYZ:=Map clone do( at:=method(v, sc:=getSlot("slotContext") ac:=self ancestorWithSlot("at") writeln("ac:",ac uniqueId) writeln("ac...
7056
June Kim
junaftnoon
Sep 29, 2005 2:35 pm
Oh, sorry. I forgot to tell you that I tried the same tests with resend and super modified as I wrote(adding uniqueId to the ancestor and senderSlotContext...
7057
Kevin Edwards
edwakev
Sep 29, 2005 10:25 pm
... I agree. Presumably, "ancestor == senderSlotContext" is supposed to test for proto cycles, which should test for identity. Also, from your output, I'm...
7058
June Kim
junaftnoon
Sep 30, 2005 3:01 pm
Yes that is correct, but you'd still get the crash when running coroutines. I don't know why....