[racket] question: how to profile allocation?

2011-01-26 Thread Danny Yoo
I'm a little stuck with a problem in one of my programs: some place is generating so much garbage that I'm triggering a garbage collection once every few seconds, and that's bad because the program is meant to be used interactively. I'm having some difficulty pinpointing what I should be looking a

Re: [racket] Question about Moby

2011-01-26 Thread Danny Yoo
Moby currently requires Racket 5.0.1. Unfortunately, the way it works makes it sensitive to the changes to bytecode structure introduced in new releases of Racket. (I'm in the middle of a rewrite that will work on the 5.0.2 bytecode.) On Jan 25, 2011 2:39 PM, "Mark Engelberg" wrote: > This prog

Re: [racket] Failing to compile PLT Scheme v372

2011-01-26 Thread João Ricardo Sares Teles de Matos
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 It worked :) The other function that needed it was scheme_eqv(), right below double_eqv() in bool.c. Adding the second #ifdef block after scheme_eqv() instead of after double_eqv() seems to suffice. With this, it finished compiling without furt

Re: [racket] Lazy take is the identity?

2011-01-26 Thread Caner Derici
On 5.0.99.6; #lang lazy (define ones (cons 1 ones)) (define ints (cons 1 (map + ints ones))) (+ (list-ref (take 15 ints) 1234)) 2) produces 1237 'take' doesn't produce a proper list (which has a 'null' in the end), instead it produces a list with an element and a promise. When another function

[racket] PLaneT source browser has wrong MIME type

2011-01-26 Thread Norman Gray
Greetings. The source browser on PLaneT appears to be giving out files with incorrect (well, non-useful) MIME types: % curl -i http://planet.racket-lang.org/package-source/jaymccarthy/sqlite.plt/5/0/sqlite-ffi.rkt Date: Wed, 26 Jan 2011 21:56:03 GMT Server: Apache/2.2.17 (Fedora) Last-Modified

Re: [racket] macros make my head hurt--can someone help?

2011-01-26 Thread Carl Eastlund
Todd, Have you read the Macros section of the Guide yet? http://docs.racket-lang.org/guide/macros.html The questions you're asking suggest that you want syntax-parse (or syntax-case) instead of syntax-rules; those are all still within define-syntax. The guide will take you through examples of b

[racket] macros make my head hurt--can someone help?

2011-01-26 Thread Todd O'Bryan
OK, I understand that the template language in (define-syntax ...) doesn't give you access to the full panoply of Racket-ness. But I really want to manipulate the template variables before passing them on to the next step in the expansion. I've tried (define-for-syntax ..) and a couple of other thi

Re: [racket] Installing on Ubuntu, "command not found"

2011-01-26 Thread Jon Rafkind
ftw. Apparently a 32/64 bit incompatibility is helpfully reported as > "command not found", which is impossible to search for, but once I had > the above details I found a few pages that gave more info; on their > recommendation I installed the following packages: > > lib32gcc1 lib32stdc++6 lib32

Re: [racket] Installing on Ubuntu, "command not found"

2011-01-26 Thread Don Blaheta
Quoth Todd O'Bryan: > You might try installing it from the PPA that Jon Rafkind set up: > > Information page: https://launchpad.net/~plt/+archive/racket Hmm, I'll file this for future reference, but this: > I saw something similar and the problem was that I was running 64-bit > Ubuntu and the sc

Re: [racket] Lazy take is the identity?

2011-01-26 Thread Casey Klein
On Wed, Jan 26, 2011 at 1:41 PM, John Clements wrote: > > On Jan 26, 2011, at 4:29 AM, Casey Klein wrote: > >> On Wed, Jan 26, 2011 at 1:27 AM, John Clements >> wrote: >>> I would expect this program to signal an error: >>> >>> #lang lazy >>> >>> (define zeros (cons 0 zeros)) >>> >>> (define shou

Re: [racket] Lazy take is the identity?

2011-01-26 Thread Stephen Chang
On Wed, Jan 26, 2011 at 2:41 PM, John Clements wrote: > Correct me if I'm wrong, but this appears to be a different issue.  The > question here is not laziness, but the length of the resulting list.  Here's > another example: > > #lang lazy > > (define zeros (cons 0 zeros)) > > (define lazy-list

Re: [racket] Lazy take is the identity?

2011-01-26 Thread John Clements
On Jan 26, 2011, at 4:29 AM, Casey Klein wrote: > On Wed, Jan 26, 2011 at 1:27 AM, John Clements > wrote: >> I would expect this program to signal an error: >> >> #lang lazy >> >> (define zeros (cons 0 zeros)) >> >> (define should-be-error (list-ref (take 15 zeros) 1324)) >> >> >> ... but i

Re: [racket] Installing on Ubuntu, "command not found"

2011-01-26 Thread Todd O'Bryan
You might try installing it from the PPA that Jon Rafkind set up: Information page: https://launchpad.net/~plt/+archive/racket I saw something similar and the problem was that I was running 64-bit Ubuntu and the script installs 32-bit binaries, so I needed to install the 32-bit compatibility libr

[racket] Installing on Ubuntu, "command not found"

2011-01-26 Thread Don Blaheta
I just tried running the Ubuntu installation script (is that new?) and while it seems to have put everything in the right places, I'm getting a "command not found" error when I actually go to run it: church /home/dblaheta -1-> which racket /usr/local/bin/racket church /home/dblaheta -2-> rac

Re: [racket] Lazy take is the identity?

2011-01-26 Thread Stephen Chang
I meant to say, I'm seeing that list-ref behaves the same in #lang lazy and #lang racket. On Wed, Jan 26, 2011 at 11:12 AM, Stephen Chang wrote: >> P.S. I was surprised to see that list-ref in #lang lazy takes the args in >> opposite order than in #lang racket (which takes the list first). > > I

Re: [racket] Lazy take is the identity?

2011-01-26 Thread Stephen Chang
> P.S. I was surprised to see that list-ref in #lang lazy takes the args in > opposite order than in #lang racket (which takes the list first). I'm seeing the same behavior: Welcome to DrRacket, version 5.0.99.6 [3m]. Language: Lazy Racket [custom]. > (list-ref '(1 2 3) 1) 2 > (list-ref 1 '(1 2 3

Re: [racket] recent server outage

2011-01-26 Thread Jos Koot
+1 Many thanks to the fabulous PLT team. The team offers us their great services for free. I think the team itself was more concerned than its users. It is very polite to offer apologies, but I don't think the team should choose such humble words. I remember older days when it would take half a yea

Re: [racket] recent server outage

2011-01-26 Thread Stefan Schmiedl
On Wed, 26 Jan 2011 07:12:32 -0600 Robby Findler wrote: > Most of the downtime was > dealing with little changes compared to the old version of the OS and > sorting out selinux permissions. As I went through these pains myself during the last 36 hours, I want to offer a big THANK YOU for doing

Re: [racket] Racket not supporting nono-European writing systems‏

2011-01-26 Thread Matthew Flatt
At Wed, 26 Jan 2011 14:29:11 +, J Smithfield wrote: > > > You were asked to try the current pre-release. Have you done so? > > > > N. > Yes indeed, I have. I have further sent back the screen dump of my > unsuccessful > attempt, using the Armenian keyboard system (the same is true for Mongo

Re: [racket] Racket not supporting nono-European writing systems‏

2011-01-26 Thread J Smithfield
> You were asked to try the current pre-release. Have you done so? > > N. Yes indeed, I have. I have further sent back the screen dump of my unsuccessful attempt, using the Armenian keyboard system (the same is true for Mongolian, ... you name it), which you can also verify easily on any Window

Re: [racket] Racket not supporting nono-European writing systems

2011-01-26 Thread Robby Findler
Dear J: You have been told that the built-in OS-level support for these languages under windows and mac os x has been a part of Racket for a long time and that the recent pre-release should support Keyman (which is, we suspect, what you are really asking about). You have been told that we have t

Re: [racket] Job asking for Scheme

2011-01-26 Thread Shriram Krishnamurthi
I post jobs brought to my notice at http://schemers.org/Positions/ Recently, I was contacted by Functional Jobs: http://functionaljobs.com/ There's a link to them at the top of the schemers.org page. Shriram _ For list-related administrative ta

[racket] recent server outage

2011-01-26 Thread Robby Findler
We recently had an outage of a bunch of Racket-related web services (notably planet). Our apologies. Things should be back to normal, but if you spot any problems, please let us know. The longer version of the story: Eli detected a possible break-in on one of our servers; someone or something ha

Re: [racket] Lazy take is the identity?

2011-01-26 Thread Casey Klein
On Wed, Jan 26, 2011 at 1:27 AM, John Clements wrote: > I would expect this program to signal an error: > > #lang lazy > > (define zeros (cons 0 zeros)) > > (define should-be-error (list-ref (take 15 zeros) 1324)) > > > ... but instead should-be-error is bound to zero.  How can I take the 1000th

Re: [racket] Racket not supporting nono-European writing systems

2011-01-26 Thread Noel Welsh
On Wed, Jan 26, 2011 at 12:13 PM, J Smithfield wrote: > Apart from Chinese Racket does not seem to support non-European languages. I > had reported this fact in a previous email. > This was acknowledged rather halfheartedly; but no further assurance as to > doing something about it has been forthc

[racket] Racket not supporting nono-European writing systems

2011-01-26 Thread J Smithfield
Apart from Chinese Racket does not seem to support non-European languages. I had reported this fact in a previous email. This was acknowledged rather halfheartedly; but no further assurance as to doing something about it has been forthcoming. Among the major programming languages and systems,

[racket] Job asking for Scheme

2011-01-26 Thread Noel Welsh
I saw the following today, and thought it might be of interest to some: GrammaTech is seeking a Software Engineer for a full-time position located in Ithaca, New York. ... Beneficial Experience We are especially interested in candidates with one or more of the following attributes: ... * Pro

Re: [racket] Lazy take is the identity?

2011-01-26 Thread Mark Engelberg
I get an error in 5.0.2, rather than 0. --Mark P.S. I was surprised to see that list-ref in #lang lazy takes the args in opposite order than in #lang racket (which takes the list first). On Tue, Jan 25, 2011 at 11:27 PM, John Clements wrote: > I would expect this program to signal an error: > >