Re: [racket] I've implemented a Scheme Interpreter. But it's too slow. Next step?

2011-03-28 Thread Danny Yoo
> A common trick is to embed type information into the pointers. > In the representation used in the 1996 Scheme Workshop pointers to cons > cells contains 010 in their lower 3 bits. A type check is thus compiled > to a very fast and instruction. > > http://www.cs.indiana.edu/eip/compile/back.html

Re: [racket] serializable structs and portability

2011-03-28 Thread Matthew Flatt
At Mon, 28 Mar 2011 18:28:02 -0400, Eric Tanter wrote: > I'm not sure I understand what you mean by "collection-based library". > > The structs are part of an app I'm building from scratch. > For now I have a couple of .rkt files, some of which define the structs in > question, and I import them

[racket] Solaris 10 on SPARC

2011-03-28 Thread Joe Python
Has anybody compiled Racket for Solaris 10 on SPARC platform? - jo _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

Re: [racket] Can raco exe assign a name other than "racket"?

2011-03-28 Thread Greg Hendershott
At least on my Linux, even ps -AFw truncates the command-line pretty quickly. Plus it would be helpful to see the exe name in plain ps or in top. Since I posted, I learned more about .pid files and such. So if I have 2 more Racket executables running, now I know how to ferret out which is which -

Re: [racket] serializable structs and portability

2011-03-28 Thread Eric Tanter
I'm not sure I understand what you mean by "collection-based library". The structs are part of an app I'm building from scratch. For now I have a couple of .rkt files, some of which define the structs in question, and I import them in the main module with (require "foo.rkt"), etc. Suggestions?

Re: [racket] serializable structs and portability

2011-03-28 Thread Matthew Flatt
At Mon, 28 Mar 2011 17:36:22 -0400, Eric Tanter wrote: > I'm playing with serializable structs and noticed that the absolute path of > the source rkt definition is inserted in the representation (I'm writing > structs out to a file). > The problem is that if I then move my application to a serve

Re: [racket] Racket on Centos 5

2011-03-28 Thread Matthew Flatt
Sorry, I'd lost track of this one. The cairo_clip_extents() function is used to implement the `is-empty? method of region%, for which I can find no uses anywhere in the Racket source tree. So, if you change "collects/draw/unsafe/cairo.rkt" around line 124 to (define-cairo cairo_clip_extents (_f

[racket] serializable structs and portability

2011-03-28 Thread Eric Tanter
Hi, I'm playing with serializable structs and noticed that the absolute path of the source rkt definition is inserted in the representation (I'm writing structs out to a file). The problem is that if I then move my application to a server for deployment, all serialized structs cannot be deseri

Re: [racket] Racket on Centos 5

2011-03-28 Thread keyd...@gmx.de
Hi, I've encountered the exactly same problem today, running on Oracle Linux (= Red Hat 5.5, approximately)... Would anyone know a workaround for this, or if any not-too-outdated racket version would run with the old libcairo version? Unfortunately I have no alternative to installing racket on

Re: [racket] drracket editor running too slow

2011-03-28 Thread Robby Findler
If you have a chance, can you try 5.1 under 10.10 just to see if the bug is happily already fixed? Robby On Mon, Mar 28, 2011 at 12:45 PM, Sam Tobin-Hochstadt wrote: > I have 10.10 on a machine at home, and I don't see the problem described > either. > > On Mon, Mar 28, 2011 at 2:41 PM, Robby F

Re: [racket] drracket editor running too slow

2011-03-28 Thread Sam Tobin-Hochstadt
I have 10.10 on a machine at home, and I don't see the problem described either. On Mon, Mar 28, 2011 at 2:41 PM, Robby Findler wrote: > I didn't see any problems with a 10.04 VM in the latest Racket either > and, sadly, my version of parallels doesn't run 10.10. I've got an > order in for the ne

Re: [racket] drracket editor running too slow

2011-03-28 Thread Robby Findler
I didn't see any problems with a 10.04 VM in the latest Racket either and, sadly, my version of parallels doesn't run 10.10. I've got an order in for the new version, but it may be a while before I get time to try more. Robby On Mon, Mar 28, 2011 at 4:20 AM, Erich Rast wrote: > Just for the reco

Re: [racket] Can raco exe assign a name other than "racket"?

2011-03-28 Thread Matthew Flatt
At Sat, 26 Mar 2011 16:13:02 -0400, Neil Van Dyke wrote: > Greg Hendershott wrote at 03/26/2011 12:14 PM: > > $ raco exe -o foo foo.rkt > > $ ./foo & > > $ ps #shows it as "racket" not as "foo". > > $ top #shows it as "racket" not as "foo". > > > > Is there way I can make it show up as "foo"? > >

Re: [racket] Automatically include external dynamic libraries into distribution

2011-03-28 Thread Matthew Flatt
At Mon, 28 Mar 2011 11:35:09 +0100, Erich Rast wrote: > Is there a way to automatically include all dynamic libraries used into > a distribution? -- i.e. some option to create a distribution that is > guaranteed to be self-contained? > > [...] > > Or does "create distribution" already do this for m

[racket] Automatically include external dynamic libraries into distribution

2011-03-28 Thread Erich Rast
Hi all, Is there a way to automatically include all dynamic libraries used into a distribution? -- i.e. some option to create a distribution that is guaranteed to be self-contained? I know that this conflicts with the idea of having dynamic libraries in the first place but sometimes it is needed.

Re: [racket] drracket editor running too slow

2011-03-28 Thread Erich Rast
Just for the record, I've been using a one-week old version nightly built of 5.1 on Ubuntu 10.04 daily during last week and didn't experience any slowdowns. (on a reasonably fast 2.6 GHz i7 920 with 6GB RAM, though) So the slowdown must be specific to Ubuntu 10.10 or your configuration. Best, Er

Re: [racket] using planet from embedded application

2011-03-28 Thread gabor papp
hi Imran, Could you elaborate a little? i used the mysql package, so it might be different in your case. i suggest that you go to the planet page of the module and download the source manually: http://planet.racket-lang.org/package-source/untyped/net-repl.plt/1/0/ save the files into a folder,