This is the mail archive of the
guile@sources.redhat.com
mailing list for the Guile project.
Re: continuation and multi-threading
- To: djurfeldt at nada dot kth dot se
- Subject: Re: continuation and multi-threading
- From: Keisuke Nishida <kxn30 at po dot cwru dot edu>
- Date: 01 Aug 2000 19:20:46 -0400
- Cc: Miroslav Silovic <silovic at zesoi dot fer dot hr>, guile at sourceware dot cygnus dot com
- References: <m3g0oqnjrp.fsf_-_@indy.STUDENT.CWRU.Edu><m3d7jxa9gv.fsf@indy.STUDENT.CWRU.Edu><p2tpunx85vu.fsf@bohne.zrz.tu-berlin.de><m33dksvk8i.fsf@indy.STUDENT.CWRU.Edu><200007311359.NAA00736@ruebe.zrz.tu-berlin.de> <AD4WUXvScB@khim.sch57.msk.ru><m3wvi2m0pw.fsf@indy.STUDENT.CWRU.Edu> <87punux90c.fsf@piracy.red-bean.com><m3ya2h1vk4.fsf@indy.STUDENT.CWRU.Edu> <873dkpwmw5.fsf@piracy.red-bean.com><m3vgxlo5db.fsf@indy.STUDENT.CWRU.Edu> <xy73dkohlvy.fsf@mdj.nada.kth.se><m3ittkpxav.fsf@indy.STUDENT.CWRU.Edu> <xy7ya2geoc2.fsf@mdj.nada.kth.se><7e7la0ppzo.fsf@zesoi.fer.hr> <xy7u2d4d1y3.fsf@mdj.nada.kth.se>
Mikael Djurfeldt <mdj@mdj.nada.kth.se> writes:
> > Because that way you can get continuations to perform -fast-. :)
>
> I'm all for fast continuations and see their value. I said don't ask
> me only because I don't know anything about Keisuke's VM---*yet* ;-)
>
> As I said in a previous response to Keisuke, in some VM designs, it is
> possible to do something which is more efficient than stack copying.
>
> Do you understand Keisuke's VM well enough to say that breaking the
> stack into frames would be a viable solution? (I ask this because I'm
> interested, not because I want to put you on slippery ground.)
I understand my VM well :), and I guess fast continuation is feasible.
My VM uses its own stack and the VM itself is a big single C function.
That is, setjmp/longjmp no longer cost too much, since the C stack
won't increase so much after entering a VM.
So, reducing the time of stack copying will be significant, I guess.
I'm not going to implement fast continuations right now, but it is
possible to fix it later, I guess..