RE: [racket-users] garbage collection

2015-07-05 Thread Yuhao Dong
One thing to note, though, is that collectors like Boehm do support marking regions of memory as not containing pointers. IIRC, Boehm is actually quite performant, ignoring the fact that it might leak (and usually leaks for functional languages) - it's generational and incremental. The Unity gam

RE: [racket-users] DrRacket stubbornly indents code as if it were Racket

2015-06-16 Thread Yuhao Dong
oo many features. > > For example it disables also parens matching :( . > > And it also disables background syntax expansion, but you can still > use the "check syntax" button manually. > > (Perhaps you can create a "no-indent" mode, I didn't look at the c

[racket-users] DrRacket stubbornly indents code as if it were Racket

2015-06-15 Thread Yuhao Dong
-output-to-file line to see if the drracket:indentation branch is ever executed, but apparently it isn't. How does Scribble manage to get DrRacket to indent it in a non-sexp way? Thanks!Yuhao Dong -- You received this message because you are subscribe

Re: [racket] Installing DrRacket on Chromebook

2015-01-31 Thread Yuhao Dong
This sounds like her Ubuntu installation is horribly broken. Are there other problems with her computer? On 01/29/2015 07:52 PM, Peter Drake wrote: I've got a student trying to install DrRacket on a Chromebook. She has Ubuntu installed, but we can't tell what version because lsb_release -a G

Re: [racket] Saving memory by sharing a racket VM instance?

2014-03-29 Thread Yuhao Dong
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 1

Re: [racket] Tail recursive module cons

2014-03-29 Thread Yuhao Dong
timing numbers say so. Of course, the memory consumption may be larger with the non-tail version, as I suppose each continuation frame contains more information than a number. On Sat, 2014-03-29 at 08:06 -0400, Prabhakar Ragde wrote: > Yuhao Dong wrote: > > > The thing is, Racket's &qu

Re: [racket] Tail recursive module cons

2014-03-28 Thread Yuhao Dong
Using accumulator+reverse won't really improve the runtime at all. The thing is, Racket's "stack" is a list of continuations. I don't see how explicitly keeping the "stack" in an accumulator would help. Stack overflow won't be a problem since the "stack" is a list on the heap, and unless memory ru

[racket] Saving memory by sharing a racket VM instance?

2014-03-28 Thread Yuhao Dong
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 prog

Re: [racket] #lang racket vs. racket/base

2014-02-26 Thread Yuhao Dong
> My impression is that `raco exe` predates the rise of "scripting > languages" like Python and Ruby, in which it's common to tell users, > "Make sure you have version X of Python or Ruby, then install my app". I would say that "raco exe" is rather useless, and I don't see the point really. It st

Re: [racket] Is racket suitable for such a project?

2014-02-26 Thread Yuhao Dong
On Tue, 2014-02-11 at 10:11 -0500, Neil Van Dyke wrote: > I can't answer the question in the Subject header off-the-cuff, but I > can comment on some of the details... > For an onion router that has to handle lots of traffic at high speed, my > first guess would be C or maybe C++ (not Go or Java)

Re: [racket] Y combinator

2014-02-11 Thread Yuhao Dong
I can answer your last question: this operation (converting to CSP) is almost never done manually. Many compilers/interpreters do this operation before compiling/interpreting, including IIRC Racket; note that by converting to CSP you eliminate non-tail recursion altogether and replace it by an ad-h

[racket] Is racket suitable for such a project?

2014-02-11 Thread Yuhao Dong
mes even Python. Are there solutions to these problems? These aren't showstoppers by any means, but could finally end my endless dilemma between the two langs :) Thanks! Yuhao Dong signature.asc Description: This is a digitally signed message part Racket Users list: http://lists.racket-lang.org/users