Hi!
Ok, I know this has been asked before.
What are the perspectives of Gambit supporting native threading?
I remember that Marc made some tests to see how much the code performance would be affected due to global variables access indirection. However, native threading, at least basic facilities, are a must for programming languagues nowadays. Termite, IPC or network can't be really used for things like games.
I think this is a hard problem, of course, and if I would be of any help I'd like to, although I don't have much experience implementing compilers myself.
Thanks,
Álvaro
Afficher les réponses par date
Alvaro,
There's two levels to this. There is the support to run several GVM instances - as in separate Gambits with completely separate heaps - within one OS process, since this spring.
The SMP support - as in, >=1 OS threads utilized by the same one GVM and heap, is the next step. This will be great when it comes out and I completely share your interest in knowing about the current plans for it.
Best regards, Mikael
2012/12/21 Álvaro Castro-Castilla alvaro.castro.castilla@gmail.com
Hi!
Ok, I know this has been asked before.
What are the perspectives of Gambit supporting native threading?
I remember that Marc made some tests to see how much the code performance would be affected due to global variables access indirection. However, native threading, at least basic facilities, are a must for programming languagues nowadays. Termite, IPC or network can't be really used for things like games.
I think this is a hard problem, of course, and if I would be of any help I'd like to, although I don't have much experience implementing compilers myself.
Thanks,
Álvaro
Gambit-list mailing list Gambit-list@iro.umontreal.ca https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list
Thanks Mikael.
Is that available in 4.6.6 or git HEAD? Is there any example code of this? Is it done with C base code spawning the different instances in different threads?
Yes, that next step is what would greatly improve the situation regarding multithreading :)
Best regards,
Álvaro
On Fri, Dec 21, 2012 at 12:54 PM, Mikael mikael.rcv@gmail.com wrote:
Alvaro,
There's two levels to this. There is the support to run several GVM instances - as in separate Gambits with completely separate heaps - within one OS process, since this spring.
The SMP support - as in, >=1 OS threads utilized by the same one GVM and heap, is the next step. This will be great when it comes out and I completely share your interest in knowing about the current plans for it.
Best regards, Mikael
2012/12/21 Álvaro Castro-Castilla alvaro.castro.castilla@gmail.com
Hi!
Ok, I know this has been asked before.
What are the perspectives of Gambit supporting native threading?
I remember that Marc made some tests to see how much the code performance would be affected due to global variables access indirection. However, native threading, at least basic facilities, are a must for programming languagues nowadays. Termite, IPC or network can't be really used for things like games.
I think this is a hard problem, of course, and if I would be of any help I'd like to, although I don't have much experience implementing compilers myself.
Thanks,
Álvaro
Gambit-list mailing list Gambit-list@iro.umontreal.ca https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list
2012/12/21 Álvaro Castro-Castilla alvaro.castro.castilla@gmail.com
Thanks Mikael.
Is that available in 4.6.6 or git HEAD? Is there any example code of this? Is it done with C base code spawning the different instances in different threads?
Search the ML. Maybe Marc posted it here as a patch.
Yes, that next step is what would greatly improve the situation regarding multithreading :)
Yes!
Best regards,
Álvaro
On Fri, Dec 21, 2012 at 12:54 PM, Mikael mikael.rcv@gmail.com wrote:
Alvaro,
There's two levels to this. There is the support to run several GVM instances - as in separate Gambits with completely separate heaps - within one OS process, since this spring.
The SMP support - as in, >=1 OS threads utilized by the same one GVM and heap, is the next step. This will be great when it comes out and I completely share your interest in knowing about the current plans for it.
Best regards, Mikael
2012/12/21 Álvaro Castro-Castilla alvaro.castro.castilla@gmail.com
Hi!
Ok, I know this has been asked before.
What are the perspectives of Gambit supporting native threading?
I remember that Marc made some tests to see how much the code performance would be affected due to global variables access indirection. However, native threading, at least basic facilities, are a must for programming languagues nowadays. Termite, IPC or network can't be really used for things like games.
I think this is a hard problem, of course, and if I would be of any help I'd like to, although I don't have much experience implementing compilers myself.
Thanks,
Álvaro
Gambit-list mailing list Gambit-list@iro.umontreal.ca https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list
I am working on multithreading support and hope to have it working by the end of the summer. A summer student will be helping out on this project.
Marc
On 2012-12-21, at 6:39 AM, Álvaro Castro-Castilla alvaro.castro.castilla@gmail.com wrote:
Hi!
Ok, I know this has been asked before.
What are the perspectives of Gambit supporting native threading?
I remember that Marc made some tests to see how much the code performance would be affected due to global variables access indirection. However, native threading, at least basic facilities, are a must for programming languagues nowadays. Termite, IPC or network can't be really used for things like games.
I think this is a hard problem, of course, and if I would be of any help I'd like to, although I don't have much experience implementing compilers myself.
Thanks,
Álvaro _______________________________________________ Gambit-list mailing list Gambit-list@iro.umontreal.ca https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list
Thanks a lot for your reply, and especially, for all the effort put into constantly improving Gambit.
On Thu, Jan 3, 2013 at 9:06 PM, Marc Feeley feeley@iro.umontreal.ca wrote:
I am working on multithreading support and hope to have it working by the end of the summer. A summer student will be helping out on this project.
Marc
On 2012-12-21, at 6:39 AM, Álvaro Castro-Castilla < alvaro.castro.castilla@gmail.com> wrote:
Hi!
Ok, I know this has been asked before.
What are the perspectives of Gambit supporting native threading?
I remember that Marc made some tests to see how much the code
performance would be affected due to global variables access indirection. However, native threading, at least basic facilities, are a must for programming languagues nowadays. Termite, IPC or network can't be really used for things like games.
I think this is a hard problem, of course, and if I would be of any help
I'd like to, although I don't have much experience implementing compilers myself.
Thanks,
Álvaro _______________________________________________ Gambit-list mailing list Gambit-list@iro.umontreal.ca https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list