@kas, i thought i tried that, but i might have gotten confused at the "spork ~ my_fun() @=> my_shred;" line
the online documentation says "spork ~ my_fun() => Shred @ my_shred;" without declaring my_shred first, and this gives syntax errors.
I think we may have a bug; the following compiles and the id is right but
the shred doesn't die when it should. Quite weird.
Kas.
----------------------------------
fun void foo()
{
.5::second => now;
<<<"yeah">>>;
minute => now;
}
spork ~foo() @=> Shred bar;
second => now;
<<
Was that supposed to print "yeah", short pause, "2", two seconds, then
finish? Because that's what it did here (chuck command line in an OS X
terminal). Maybe a Win32-only bug?
/Stefan
On Mon, Mar 17, 2008 at 7:39 PM, Kassen
@kas, i thought i tried that, but i might have gotten confused at the
"spork ~ my_fun() @=> my_shred;" line
the online documentation says "spork ~ my_fun() => Shred @ my_shred;" without declaring my_shred first, and this gives syntax errors.
I think we may have a bug; the following compiles and the id is right but the shred doesn't die when it should. Quite weird.
Kas. ---------------------------------- fun void foo() { .5::second => now; <<<"yeah">>>; minute => now; }
spork ~foo() @=> Shred bar;
second => now; <<
>>; second => now; bar.exit(); 2::second => now;
_______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
-- Release me, insect, or I will destroy the Cosmos!
mån 2008-03-17 klockan 20:59 +0100 skrev Stefan Blixt:
Was that supposed to print "yeah", short pause, "2", two seconds, then finish? Because that's what it did here (chuck command line in an OS X terminal). Maybe a Win32-only bug?
From reading the code, yeah. Does that for me too, on command line
linux. Gasten
On Mon, Mar 17, 2008 at 7:39 PM, Kassen
wrote: @kas, i thought i tried that, but i might have gotten confused at the "spork ~ my_fun() @=> my_shred;" line
the online documentation says "spork ~ my_fun() => Shred @ my_shred;" without declaring my_shred first, and this gives syntax errors.
I think we may have a bug; the following compiles and the id is right but the shred doesn't die when it should. Quite weird.
Kas. ---------------------------------- fun void foo() { .5::second => now; <<<"yeah">>>; minute => now; }
spork ~foo() @=> Shred bar;
second => now; <<
>>; second => now; bar.exit(); 2::second => now;
It did that in miniAudicle on OS X for me as well.
The syntax errors that were appearing before don't appear in this code
either.
-k
On Mon, Mar 17, 2008 at 12:59 PM, Stefan Blixt
Was that supposed to print "yeah", short pause, "2", two seconds, then finish? Because that's what it did here (chuck command line in an OS X terminal). Maybe a Win32-only bug? /Stefan
On Mon, Mar 17, 2008 at 7:39 PM, Kassen
wrote: @kas, i thought i tried that, but i might have gotten confused at the
"spork ~ my_fun() @=> my_shred;" line
the online documentation says "spork ~ my_fun() => Shred @ my_shred;" without declaring my_shred first, and this gives syntax errors.
I think we may have a bug; the following compiles and the id is right but the shred doesn't die when it should. Quite weird.
Kas. ---------------------------------- fun void foo() { .5::second => now; <<<"yeah">>>; minute => now; }
spork ~foo() @=> Shred bar;
second => now; <<
>>; second => now; bar.exit(); 2::second => now;
_______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
-- Release me, insect, or I will destroy the Cosmos!
_______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
all
@kassen:
i can reproduce it with the mini on win.
@kevin & stefan:
are both shreds finishing at the same moment, or does the sporked child
shred finishes 2 seconds before the parent one does?
when i try it on my environment, both shreds finish at the same moment, but
they shouldn't.
jassas
/moudi
_____
Von: chuck-users-bounces@lists.cs.princeton.edu
[mailto:chuck-users-bounces@lists.cs.princeton.edu] Im Auftrag von kevin
Gesendet: Montag, 17. März 2008 21:46
An: ChucK Users Mailing List
Betreff: Re: [chuck-users] unsporking [bug?]
It did that in miniAudicle on OS X for me as well.
The syntax errors that were appearing before don't appear in this code
either.
-k
On Mon, Mar 17, 2008 at 12:59 PM, Stefan Blixt
aha. you're right, both shreds are finishing when the parent shred finishes.
i changed the last line to 5::seconds => now, and it waits until 7 seconds
into the program before both shreds die.
bug indeed.
-k
On Mon, Mar 17, 2008 at 2:59 PM, Leuthold Dominik
all
@kassen: i can reproduce it with the mini on win.
@kevin & stefan: are both shreds finishing at the same moment, or does the sporked child shred finishes 2 seconds before the parent one does? when i try it on my environment, both shreds finish at the same moment, but they shouldn't.
jassas /moudi
------------------------------ *Von:* chuck-users-bounces@lists.cs.princeton.edu [mailto: chuck-users-bounces@lists.cs.princeton.edu] *Im Auftrag von *kevin *Gesendet:* Montag, 17. März 2008 21:46 *An:* ChucK Users Mailing List *Betreff:* Re: [chuck-users] unsporking [bug?]
It did that in miniAudicle on OS X for me as well.
The syntax errors that were appearing before don't appear in this code either.
-k
On Mon, Mar 17, 2008 at 12:59 PM, Stefan Blixt
wrote: Was that supposed to print "yeah", short pause, "2", two seconds, then finish? Because that's what it did here (chuck command line in an OS X terminal). Maybe a Win32-only bug? /Stefan
On Mon, Mar 17, 2008 at 7:39 PM, Kassen
wrote: @kas, i thought i tried that, but i might have gotten confused at the
"spork ~ my_fun() @=> my_shred;" line
the online documentation says "spork ~ my_fun() => Shred @ my_shred;" without declaring my_shred first, and this gives syntax errors.
I think we may have a bug; the following compiles and the id is right but the shred doesn't die when it should. Quite weird.
Kas. ---------------------------------- fun void foo() { .5::second => now; <<<"yeah">>>; minute => now; }
spork ~foo() @=> Shred bar;
second => now; <<
>>; second => now; bar.exit(); 2::second => now;
_______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
-- Release me, insect, or I will destroy the Cosmos!
_______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
_______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
On 17/03/2008, kevin
The syntax errors that were appearing before don't appear in this code either.
You are right; I do believe this is a area where the compiler and the doc's differ in opinion. Here I feel the compiler makes the most sense and the doc's may be out of date. More generally; I too am a bit surprised by this, not sure how long this bug has been there, Yours, Kas.
On 17/03/2008, Stefan Blixt
Was that supposed to print "yeah", short pause, "2", two seconds, then finish? Because that's what it did here (chuck command line in an OS X terminal). Maybe a Win32-only bug?
It was supposed to print "yeah" in confirmation that we sporked another shred, then the shred should exit before it's mother did (by 2 seconds). For me it didn't and the child lasted as long as the mother (MiniAudicle(alsa), Ubuntu).... It also should've printed "2" as the child's id, which it did for me. Hope that clarifies? Yours, Kas.
participants (5)
-
Kassen
-
kevin
-
Leuthold Dominik
-
Martin Ahnelöv
-
Stefan Blixt