Re: [racket] Where to hook into handin-server for sandbox-network-guard

2012-12-03 Thread Jordan Johnson
Hi all, My immediate need for a response to the message below has passed, but I'd still like to know for next time, at least if my idea of a solution was accurate. Anybody? Thanks, jmj -- Sent from my Android phone with K-9 Mail. Jordan Johnson wrote: >Hi all, > >I have my students handin

Re: [racket] minimum spanning tree

2012-12-03 Thread Sam Phillips
I always thought that an implementation of FGL would be nice. http://web.engr.oregonstate.edu/~erwig/fgl/ Cheers, Sam On Mon, Dec 3, 2012 at 11:34 AM, Stephen Chang wrote: > I have a half-finished graph library based on the C++ boost library > and racket generics to support different representa

Re: [racket] [racket-dev] DrRacket automatic parentheses mode update

2012-12-03 Thread Robby Findler
Thanks, Nadeem! Robby On Mon, Dec 3, 2012 at 9:30 PM, Nadeem Abdul Hamid wrote: > Some improvements to DrRacket's "automatic parentheses" mode are now > available in the nightly build version and git repository. If you have > previous tried auto-parens and abandoned it, or if you have never trie

[racket] DrRacket automatic parentheses mode update

2012-12-03 Thread Nadeem Abdul Hamid
Some improvements to DrRacket's "automatic parentheses" mode are now available in the nightly build version and git repository. If you have previous tried auto-parens and abandoned it, or if you have never tried it, please do try it now! In auto-parens mode, typing a closing parenthesis will skip

[racket] circular lists are not lists or sequences

2012-12-03 Thread David Van Horn
I have some code that's been broken somewhere between 5.1.1 and git HEAD. The issue seems to be either that circular lists no longer are considered lists by `list?', or `in-list' has added a `list?' check (and circular lists were never `list?'). In any case, these are the kinds of things I wo

[racket] Create executable for "Pretty Big" legacy program

2012-12-03 Thread Bas Steunebrink
Ciao a tutti, I have a program, written for the Pretty Big legacy language, and I'm trying to create an executable for it. I tried the menu option Racket -> Create Executable, which does indeed create an executable. However, the executable appears to be dependent on the (single) original sourc

Re: [racket] How to make the syntax color things like #:default the same as #lang?

2012-12-03 Thread Danny Yoo
On Fri, Nov 30, 2012 at 3:28 PM, Grant Rettke wrote: > Hi, > > I would like thinks like #:default to be colored the same as #lang. > This is "other" in the color settings. > > Is there a setting I may change to achieve this? > > I believe it might involve modifying the color lexer; it'd be somewh

Re: [racket] WebServer not finding param in POST but does so in GET???

2012-12-03 Thread J G Cho
Thanks. Will upgrade. On Mon, Dec 3, 2012 at 3:14 PM, Jay McCarthy wrote: > Yes, this was fixed very recently. > > Jay > > On Mon, Dec 3, 2012 at 1:14 PM, J G Cho wrote: >> 5.3 Is it too old? >> >> On Mon, Dec 3, 2012 at 2:34 PM, Jay McCarthy wrote: >>> What version of Racket are you using? >>>

Re: [racket] WebServer not finding param in POST but does so in GET???

2012-12-03 Thread Jay McCarthy
Yes, this was fixed very recently. Jay On Mon, Dec 3, 2012 at 1:14 PM, J G Cho wrote: > 5.3 Is it too old? > > On Mon, Dec 3, 2012 at 2:34 PM, Jay McCarthy wrote: >> What version of Racket are you using? >> >> In particular, you should read the documentation for request-bindings. >> In the past

Re: [racket] WebServer not finding param in POST but does so in GET???

2012-12-03 Thread J G Cho
5.3 Is it too old? On Mon, Dec 3, 2012 at 2:34 PM, Jay McCarthy wrote: > What version of Racket are you using? > > In particular, you should read the documentation for request-bindings. > In the past, it only read GET queries, but then it started to read > POST queries too. > > If you are on 5.3.

Re: [racket] Goldilocks: install too big, install-plain too slow

2012-12-03 Thread Jay McCarthy
Ah, yes, that's right. We don't have a documented programmatic interface. demod will be more useful shortly, at which point we'll do that too. Jay On Mon, Dec 3, 2012 at 12:40 PM, Matthew Flatt wrote: > At Mon, 3 Dec 2012 12:36:54 -0700, Jay McCarthy wrote: >> On Mon, Dec 3, 2012 at 10:17 AM, M

Re: [racket] Goldilocks: install too big, install-plain too slow

2012-12-03 Thread Matthew Flatt
At Mon, 3 Dec 2012 12:36:54 -0700, Jay McCarthy wrote: > On Mon, Dec 3, 2012 at 10:17 AM, Matthew Flatt wrote: > > The `raco demod' tool is even more aggressive --- it flattens a module > > graph into one module --- but it doesn't seem to have a documented API. > > You just do: > > "raco demod f

Re: [racket] Goldilocks: install too big, install-plain too slow

2012-12-03 Thread Jay McCarthy
On Mon, Dec 3, 2012 at 10:17 AM, Matthew Flatt wrote: > The `raco demod' tool is even more aggressive --- it flattens a module > graph into one module --- but it doesn't seem to have a documented API. You just do: "raco demod file.rkt" and get back "file_rkt_merged.zo" which you can run with

Re: [racket] WebServer not finding param in POST but does so in GET???

2012-12-03 Thread Jay McCarthy
What version of Racket are you using? In particular, you should read the documentation for request-bindings. In the past, it only read GET queries, but then it started to read POST queries too. If you are on 5.3.1, then it is an error with that change and you should let me know (perhaps with a PR

Re: [racket] minimum spanning tree

2012-12-03 Thread Stephen Chang
I have a half-finished graph library based on the C++ boost library and racket generics to support different representations. I've been meaning to write documentation and upload to planet but just never got around to it. This may give me the motivation I need. On Mon, Dec 3, 2012 at 11:07 AM, J

Re: [racket] slow FFI?

2012-12-03 Thread Matthew Flatt
Your test looks right, and I get similar results in Mac OS X in 64-bit mode. I haven't particularly tried to make foreign calls go faster, so I expect there's room for improvement. A quick profile suggested an easy way to trim 1/3 of the time, so I've done that (pushed to the git repo). In my pro

Re: [racket] Goldilocks: install too big, install-plain too slow

2012-12-03 Thread Matthew Flatt
At Wed, 28 Nov 2012 14:23:07 -0800, Daniel Farina wrote: > I'm working on a racket buildpack for use on Heroku (again -- I tried > and aborted it about a year ago) but have noticed that the size of > Racket and startup time in racket applications suffers quite a bit > because 'make install' install

Re: [racket] Compatibility

2012-12-03 Thread Matthias Felleisen
Yes, there are 64bit builds for Mac and Windows. See the download option for DrRacket, formerly known as DrScheme: http://www.racket-lang.org/download/ -- Matthias On Nov 30, 2012, at 9:44 AM, Wlodyka, Monica wrote: > Good morning > > I currently have the old version of this software (

[racket] slow FFI?

2012-12-03 Thread Denys Rtveliashvili
Hello,I am new to Racket. Currently I am evaluating it to find out if it works good enough for my work.One of important aspects for me is efficiency of Foreign Function Interface.Unfortunately, it seems that FFI is quite slow.Please can you tell me if this is a bug in my code or FFI itself is slow?

[racket] Goldilocks: install too big, install-plain too slow

2012-12-03 Thread Daniel Farina
Hello, I'm working on a racket buildpack for use on Heroku (again -- I tried and aborted it about a year ago) but have noticed that the size of Racket and startup time in racket applications suffers quite a bit because 'make install' installs all kind of stuff: mzscheme compatibility libs, gui lib

[racket] Compatibility

2012-12-03 Thread Wlodyka, Monica
Good morning I currently have the old version of this software (Dr. Scheme) downloaded in my computer classroom. I am getting a new lab and I want to install the new version on those machines. My tech department has asked me to find out whether the software is 64 bit compatible. I will look

[racket] WebServer not finding param in POST but does so in GET???

2012-12-03 Thread J G Cho
(define bs (request-bindings req)) ... [(exists-binding? 'stat bs) (handle-post-stat (extract-binding/single 'stat bs))] The above cond clause evaluates when Browser invokes $.ajax({ type: "GET", url: "/abc/xyz", data: {stat: JSON.stringify( data )}, But not when P

Re: [racket] How to write a unit test for syntax-parse expectation failure error message?

2012-12-03 Thread Eli Barzilay
Three hours ago, Matthias Felleisen wrote: > > Can this be abstracted into a linguistic construct and supplied via > rackunit? or syntax/rackunit? As a side note, it's something that my testing library has been doing with the plain `=>': #lang racket (require tests/eli-tester) (test (λ) =e

Re: [racket] minimum spanning tree

2012-12-03 Thread J. Ian Johnson
Graph algorithms are often meant to be very fast, and different algorithms necessitate different representations. Two popular representations are adjacency lists and shared structures. It also isn't right to call them lists unless you're talking about multigraphs. Indeed successor nodes should b

Re: [racket] minimum spanning tree

2012-12-03 Thread Tony Garnock-Jones
On 12/03/2012 06:24 AM, Pierpaolo Bernardi wrote: If nobody precedes me, I'll submit a proposal. It's probably not suitable as a proposal itself, but about a year ago I built https://github.com/tonyg/mixfix/blob/master/graph.rkt, inspired by the Erlang standard graph library https://github.c

Re: [racket] minimum spanning tree

2012-12-03 Thread Jay McCarthy
On Sun, Dec 2, 2012 at 10:05 PM, Joe Gilray wrote: > I searched the mailing list archives and didn't find any references to an > implementation of a minimum spanning tree algorithm. I've implemented > Prim's algorithm years ago in C#, but I was surprised not to find anything > on Planet or the ar

Re: [racket] How to write a unit test for syntax-parse expectation failure error message?

2012-12-03 Thread Matthias Felleisen
Can this be abstracted into a linguistic construct and supplied via rackunit? or syntax/rackunit? On Dec 2, 2012, at 1:34 PM, Ryan Culpepper wrote: > On 12/02/2012 12:14 PM, Greg Hendershott wrote: >> I'd like to write a unit test that a syntax-parse expectation failure >> elicits a certain

Re: [racket] minimum spanning tree

2012-12-03 Thread Pierpaolo Bernardi
On Mon, Dec 3, 2012 at 6:05 AM, Joe Gilray wrote: > an implementation of a minimum spanning tree algorithm. I've implemented > Prim's algorithm years ago in C#, but I was surprised not to find anything > on Planet or the archive. It would be nice if PLT would bless a graph representation. Such