I really love coroutines, especially for handling functions that have wait states or delays. But is it possible to have implicit coroutines, that only appear...
11049
Jeremy Tregunna
jeremy.tregunna@...
Dec 3, 2008 8:03 pm
In developing my own language Caribou, I decided to model behaviour instead of state as I was going to implement the Id object model used in Pepsi (google it,...
11050
Jeremy Tregunna
jeremy.tregunna@...
Dec 3, 2008 8:03 pm
It would be interesting to see actually how the IoBlock primitive could be replaced by coroutines directly. Whether or not this would impact efficiency and...
11051
Mike Austin
mike_ekim
Dec 4, 2008 4:16 am
... 404 Not Found ... Can you give some examples? Do you mean like Smalltalk for example, where you can't access anything inside, and must go through a...
11052
Jeremy Tregunna
jeremy.tregunna@...
Dec 4, 2008 4:20 am
... I was working on the bug tracker which involved killing the web app a couple of times, you must have caught it just as I was doing it. I'm done for the...
11053
Inash Zubair
inash_zubair
Dec 11, 2008 2:00 pm
hi. reposting to the mailing list on request from jer_. i got the following build error: IoFile.c:235: undefined reference to `WEXITSTATUS`. this was with...
11054
Rich Collins
richwcollins
Dec 11, 2008 6:46 pm
I pushed a fix for this: git://github.com/richcollins/io.git...
11055
Jeremy Tregunna
jeremy.tregunna@...
Dec 11, 2008 7:55 pm
I've pushed out a patch to IoNumber.c which checks for log2 at compile time, and if not defined, defines it. I ran into this problem with HEAD on FreeBSD 7.0...
11056
James Costlow
anthem2063124
Dec 12, 2008 3:11 am
It seems like these days I have to fix a bug before I can actually code any Io... 'make test' is now failing in ListTest.io when testing 'sortInPlaceBy' on an...
11057
Steve Dekorte
stevedekorte
Dec 12, 2008 11:17 pm
... Thanks Rich - I've push this fix and Jer's log2-on-BSD fix....
11058
Jeremy Tregunna
jeremy.tregunna@...
Dec 13, 2008 4:21 pm
I've added a new addon for language localization. It's very primitive at the moment, but it works. As an example of how to use it: o := Object clone do( en_CA...
11059
winkerbeam
Dec 16, 2008 8:33 am
I was just trying out some example code from the Io guide, and I tried the minimal HTTP server. Code here: http://www.iolanguage.com/paste/p/cd4c8f097.html ...
11060
Steve Dekorte
stevedekorte
Dec 16, 2008 9:07 am
Do you have the latest release of libevent installed?...
11061
winkerbeam
Dec 16, 2008 11:50 am
I just installed libevent-1.4.8, and now it works. It at first was complaining that it couldn't find libevent-1.4.so.2, but after I moved the .so from...
11062
Jeremy Tregunna
jeremy.tregunna@...
Dec 16, 2008 6:27 pm
Move it back. Io will look for libraries wherever your system linker knows where to find them. My guess is that you're running Linux, and you do not have...
11063
Jakob Vidmar
jakob.vidmar@...
Dec 17, 2008 7:22 pm
Hello all! I've just pulled source from the git repository and ran the make commands without errors. However, when I try to use Regex module the script stops...
11064
Samuel A. Falvo II
falvosa
Dec 17, 2008 7:53 pm
... What kind of computer and OS are you using? The phrase "bus error" can mean different things depending on who wrote your OS and what hardware it's running...
11065
Jakob Vidmar
jakob.vidmar@...
Dec 17, 2008 7:59 pm
Oh, yes! I'm terribly sorry. It seems, that I have forgotten to write that in the orignal mail. Anyhow - I'm using Mac OSX 10.5.5, and compiling with gcc...
11066
Jakob Vidmar
jakob.vidmar@...
Dec 17, 2008 8:00 pm
Again, I sent the mail bit too soon. It's an Intel processor based mac. 2008/12/17 Jakob Vidmar <jakob.vidmar@...>...
11067
Steve Dekorte
stevedekorte
Dec 17, 2008 10:00 pm
... Hi Jakob, Thanks for the bug report. Can you provide the script so we can repeat the error? - Steve...
11068
Jakob Vidmar
jakob.vidmar@...
Dec 17, 2008 10:23 pm
Hi! Thanks for the speedy response! The script itself is nothing more than a test, but still: Regex testString := "Test test test test" matchString :=...
11069
Steve Dekorte
stevedekorte
Dec 17, 2008 10:49 pm
... It works for me on OSX 10.5 Intel. If you weren't doing a fresh checkout and compile, then doing a "make clean" before running "make" might solve the...
11070
Jakob Vidmar
jakob.vidmar@...
Dec 18, 2008 12:36 am
Hum, I thought I had done a "make clean", but I obviously hadn't since it's working now - after I recompiled and reinstalled it. Thanks for your help though. ...
11071
Friedrich
friedrichdom...
Dec 18, 2008 5:22 am
I found this very astonishing and disapointing: x := list (1,2,3,4) ==> list(1, 2, 3, 4) Io> x foreach(x, x print) 1234==> 4 Io> x ==> 4 So foreach does not...
11072
Steve Dekorte
stevedekorte
Dec 18, 2008 8:00 am
... Scopes are expensive. You can implement a foreachBlock() or mapBlock() and pass a block if you need a scope and don't mind the overhead. Btw, most...
11073
Steve Dekorte
stevedekorte
Dec 21, 2008 8:13 am
Io> addX := method(nx, x = x + nx) ==> method(nx, x = x + nx ) Io> addY := getSlot("a") asString replaceSeq("x", "y") ==> method(ny, y = y + ny ) In this case,...
11074
Jeremy Tregunna
jeremy.tregunna@...
Dec 21, 2008 3:19 pm
But then addY is a Sequence not a method. ... Regards, Jeremy Tregunna jeremy.tregunna@......
11075
Steve Dekorte
stevedekorte
Dec 21, 2008 9:37 pm
... Sorry, I forgot to add the doString(): addY := doString(getSlot("a") asString replaceSeq("x", "y"))...
11076
Mike Austin
mike_ekim
Dec 21, 2008 11:58 pm
... Aha, very meta-program like :) Not sure if you're looking for more of a macro for speed, or currying for genericity, but I can see where it would be...
11077
Jeremy Tregunna
jeremy.tregunna@...
Dec 22, 2008 12:58 am
Or just use inline methods (messages that activate) -- they're remarkably quick ... Regards, Jeremy Tregunna jeremy.tregunna@......