Re: [racket] How to reduce my Racket web server's memory usage?

2015-02-02 Thread Jay McCarthy
On Mon, Feb 2, 2015 at 5:06 PM, George Neuner wrote: > On 2/2/2015 12:58 PM, Jay McCarthy wrote: > > I think 80MB is pretty typical. If you convert to "#lang web-server", > you should be able to trade RAM for disk space, but I doubt you could > get less than 40MB and 80MB out of 512M is pretty dec

Re: [racket] How to reduce my Racket web server's memory usage?

2015-02-02 Thread George Neuner
On 2/2/2015 12:58 PM, Jay McCarthy wrote: I think 80MB is pretty typical. If you convert to "#lang web-server", you should be able to trade RAM for disk space, but I doubt you could get less than 40MB and 80MB out of 512M is pretty decent. Jay Would that difference all be from not caching cont

Re: [racket] users Digest, Vol 114, Issue 3

2015-02-02 Thread galapagos
hment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 181 bytes Desc: OpenPGP digital signature URL: <http://lists.racket-lang.org/users/archive/attachments/20150202/f5494983/attachment-0001.sig> -- Message: 2 Date: Mon, 02 Feb 2015 14:

Re: [racket] SRFI 19 string->date: Error reading dates

2015-02-02 Thread Alexis King
FWIW, I can reproduce that bug in DrRacket 6.1.1, but I can’t reproduce it in a snapshot build (currently 6.1.1.8), so it might have already been fixed. > On Feb 2, 2015, at 11:31, Gustavo Massaccesi wrote: > > The crashes are unrelated to the srfi/19, you should fill another bug > report for t

Re: [racket] SRFI 19 string->date: Error reading dates

2015-02-02 Thread Gustavo Massaccesi
The crashes are unrelated to the srfi/19, you should fill another bug report for that :). A simpler example (inspired by the reply of Alexis King) is: #lang racket (+ (values) 777) -- Error: result arity mismatch; expected number of values not received expected: 1 received: 0 values..

Re: [racket] How to reduce my Racket web server's memory usage?

2015-02-02 Thread Jay McCarthy
I think 80MB is pretty typical. If you convert to "#lang web-server", you should be able to trade RAM for disk space, but I doubt you could get less than 40MB and 80MB out of 512M is pretty decent. Jay On Mon, Feb 2, 2015 at 3:35 AM, fyooo wrote: > I just bought a DigitalOcean 5$/month VPS with

Re: [racket] forward pointer declarations

2015-02-02 Thread Anthony Carrico
Along these lines, I also am a little foggy on unions. This: http://docs.racket-lang.org/foreign/C_Union_Types.html says, "Unions are always treated like structs." But I have no idea what that phrase means. I don't get the impression that unions have tags like structs can have. Or can they? Mayb

Re: [racket] forward pointer declarations

2015-02-02 Thread Sam Tobin-Hochstadt
Maybe a ctype which is a delay node, along the lines of 'recursive-contract', is the right thing here. Sam On Mon, Feb 2, 2015, 8:05 AM Anthony Carrico wrote: > On 02/02/2015 01:17 AM, Matthew Flatt wrote: > > It's also valid to reference `wl_interface-pointer` directly: > ... > > > > I don't h

Re: [racket] forward pointer declarations

2015-02-02 Thread Anthony Carrico
On 02/02/2015 01:17 AM, Matthew Flatt wrote: > It's also valid to reference `wl_interface-pointer` directly: ... > > I don't have a nicer solution if you want to refer to > `_wl_message-pointer`, though. > The forward reference is actually in wl_message, like this: (define-cstruct _wl_message

[racket] How to reduce my Racket web server's memory usage?

2015-02-02 Thread fyooo
I just bought a DigitalOcean 5$/month VPS with only 512M memory. I started 3 different Racket webserver on different port, and using Nginx as reverse proxy. But I found that each process uses 80M average. I know that it's not a big deal in a machine with 16G memory, but in my VPS I have to merg