[racket] Saving memory by sharing a racket VM instance?
This doesn't work unless program.rkt is written in #lang racket/load
which is unsuitable for large applications.
On Sat, 2014-03-29 at 15:17 +0400, Roman Klochkov wrote:
> I think, something like (thread (load "path/to/program.rkt"))
>
>
> Fri, 28 Mar 2014 19:12:03 -0400 от Yuhao Dong <yd2dong at uwaterloo.ca>:
> So, I have a really, really cheap VPS. I need to run several
> racket
> programs on it; however, just the memory usage of the standard
> library,
> jit, etc of each racket instance means that I can't
> concurrently run
> more than one racket process without running out of memory.
>
> Is there any way I could program some sort of daemon that
> listens on a
> TCP port for racket filenames, loads them, and runs them in a
> new
> sandboxed green thread? How does DrRacket concurrently
> run .rkt files
> within one Racket instance? Is there a simple function like
> (eval-file
> "path/to/program.rkt")?
>
> ____________________
> Racket Users list:
> http://lists.racket-lang.org/users
>
>
>
> --
> Roman Klochkov