Re: [racket-users] Re: HTTP Server and CPU usage

2016-02-21 Thread Jay McCarthy
Indeed, it is exactly node.js without callbacks... that's what user-level threading systems are. The callback you construct manually in node.js is equivalent to the continuation that the threading system constructs automatically (and that you can too with call/cc.) -- It is definitely not as effi

[racket-users] Re: HTTP Server and CPU usage

2016-02-21 Thread Piyush Katariya
Thanks for reply Jay. So its sound like node.js without callbacks, thats pretty sweet ! I am wondering how efficient it is compared to libuv ? Thanks, Piyush Katariya -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this gro

Re: [racket-users] Re: HTTP Server and CPU usage

2016-02-21 Thread Jay McCarthy
It does not block IO calls by default. Internally it is use asynchronous polling APIs to cause Racket threads to wait until the file descriptors they block on are ready. Jay On Sun, Feb 21, 2016 at 8:28 AM, Piyush Katariya wrote: > BTW if it has Single system thread does it block IO calls by def

[racket-users] Re: HTTP Server and CPU usage

2016-02-21 Thread Piyush Katariya
BTW if it has Single system thread does it block IO calls by default ? -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com.

[racket-users] Re: HTTP Server and CPU usage

2016-02-21 Thread Piyush Katariya
State will be in database. So Racket server will be stateless. Is there any library to support and manage different process in bakground. Just like we have "cluster" module in node.js -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscri