robkuz
2017-9-10 13:02:13

Hey, I read somewhere (I think I did) that the racket compiler backend is being rewritten to allow for other execution environments. a) is this true b) and if so what is the status c) and if b) true is there a chance to test this?



robkuz
2017-9-10 13:40:59

thanks for the link


robkuz
2017-9-10 13:45:04

is there a specific reason on why to reimplement Racket on top of Chez Scheme? Also the post doesn’t talk about compiler backends - or I have missed that. Another question - is this purely an experiment or is this suppossed to become Racket7?


mflatt
2017-9-10 13:47:50

I should have included the original message: https://groups.google.com/d/msg/racket-dev/2BV3ElyfF8Y/4RSd3XbECAAJ


mflatt
2017-9-10 13:49:22

The Racket backend itself is not being rewritten, since the idea is to replace it entirely with Chez Scheme in the near term. Longer term, we hope to be able to run Racket on other platforms/VMs/languages.


robkuz
2017-9-10 14:10:30

wow. double wow ++ this looks really promising. different racket langs running on a JVM or in the browser. extremely cool


leif
2017-9-10 16:52:20

If I have multiple threads, and I press Ctr+C, does anyone know which thread the signal is going to go to?


leif
2017-9-10 16:52:50

(The docs seem a little vague on this. Just saying that you register a thread with thread-break.)


leif
2017-9-10 16:53:15

Or maybe it’ll go to all of them (that are registered and have breaks currently enabled.)


leif
2017-9-10 16:59:50

Running some tests also seems to indicate the main thread.


mflatt
2017-9-10 17:29:10

Yes, Ctl+C sends a break to the main thread


leif
2017-9-10 17:31:00

Okay, thanks.


leif
2017-9-10 17:37:18

@mflatt In that case, is there any good way to have the signal be sent to another thread?


leif
2017-9-10 17:37:34

(About all I have at the moment is sending it through a channel or some shared state.)


mflatt
2017-9-10 17:44:17

The call-in-nested-thread function sets up a redirect, but otherwise the main thread has to specifically resend it


leif
2017-9-10 17:49:34

Mmm…okay. thanks.


leif
2017-9-10 17:50:03

Ya, as far as I can tell, call-in-nexted-thread is very similar to jus thread followed by a thread-wait


leif
2017-9-10 17:50:13

(kind of anyway.)


leif
2017-9-10 17:50:18

So ya, thanks.