[racket] rho-contracts.js: Racket-style contracts for plain JavaScript

2013-05-20 Thread Guillaume Marceau
Hi all, In case this might interest some folks here. I now work for a start up in New York. We're doing physics-based analysis of green buildings. I just received permission to release our JavaScript implementation of Racket's contracts under an open source license, MPL to be precise. https://gi

Re: [racket] Teach yourself Racket in Fixnum Days?

2012-01-16 Thread Guillaume Marceau
On 1/6/2012 10:07 PM, Giuseppe Paleologo wrote: My applications are mostly in Statistics/Data Analysis. Rather than dealing with a single, massive data set, I often have many medium-sized ones. I find myself applying in R or Python large amounts of maps, reduces, filters and other list manipulati

Re: [racket] online check syntax error display tweak

2011-09-17 Thread Guillaume Marceau
On Sat, Sep 17, 2011 at 9:58 PM, Robby Findler wrote: > On Sat, Sep 17, 2011 at 8:40 PM, Guillaume Marceau wrote: >>>>> That would be great too. Emacs uses C-x ` for that. >>>> >>>> How about a keystroke to jump to the place plus it colors things in &g

Re: [racket] online check syntax error display tweak

2011-09-17 Thread Guillaume Marceau
That would be great too. Emacs uses C-x ` for that. How about a keystroke to jump to the place plus it colors things in when you mouse over the right thingy in the right margin? Eclipse uses C-. and C-, for next-error and previous-error. Emacs also binds M-n to next-error (in addition to C-x

Re: [racket] Code compiled for version ~a, not ~a

2011-09-17 Thread Guillaume Marceau
> Are these files in the collects tree or elsewhere? I have separate collects trees for each version. Occasionally, I do get the error in the collect tree for my git repo. Earlier today I did, git pull ./raco setup -D ./DrRacket and received the version error for collects/planet/priva

[racket] Code compiled for version ~a, not ~a

2011-09-17 Thread Guillaume Marceau
I test my code against the many different versions of DrRacket, which means I switch version several times a day. Each time I launch a different version of DrRacket, I inevitably forget to recompile some library that's in my PLTCOLLECTS, or in my raco link table, which means I get lots of "cod

Re: [racket] Sweet expressions; or making it easier to introduce Racket to me and my coworkers :-)

2011-07-26 Thread Guillaume Marceau
On 7/21/2011 9:25 AM, Matthias Felleisen wrote: On Jul 21, 2011, at 6:44 AM, Stephen Bloch wrote: Right. Nested conditionals and loops in Racket are no more syntactically painful than nested conditionals and loops in Java/C/C++, if you put braces around the bodies. ( if (> x y ) (+ x 3 ) (

[racket] Is there a name for: (lambda (x) (x)) ?

2010-09-28 Thread Guillaume Marceau
If you like symbol soup as much as I do: (require (rename-in srfi/26 [cut //])) (map (// <>) (list (lambda () 1) (lambda () 2) (lambda () 3))) _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/

Re: [racket] check-expect gui mode in Pretty Big language

2010-09-28 Thread Guillaume Marceau
> File a feature request. Kathy may respond but I need to warn you that 'pretty > big' is just a legacy language. #lang racket has the same problem. Running this program: #lang racket (require test-engine/scheme-gui) (check-expect 5 6) (test) shows the results of running the test in