[racket] #lang sicp

2013-05-07 Thread Neil Van Dyke
If I want the SICP package in PLaneT to be usable via #lang sicp, is the right way to have the package's installer create a *collection link*? And it should be (links #:user? #true ...)? Neil V. Racket Users list: http://lists.racket-lang.org/users

Re: [racket] #lang sicp

2013-05-07 Thread Matthew Flatt
At Tue, 07 May 2013 05:33:06 -0400, Neil Van Dyke wrote: If I want the SICP package in PLaneT to be usable via #lang sicp, is the right way to have the package's installer create a *collection link*? I don't think there's a right way to do that with PLaneT. A package with the new package

Re: [racket] snips in redex traces

2013-05-07 Thread Robby Findler
Yes, sure: #lang racket (require redex 2htdp/image) (define-language L (t ::= RED YELLOW GREEN)) (define RED(circle 14 solid red)) (define YELLOW (circle 14 solid yellow)) (define GREEN (circle 14 solid green)) (define R (reduction-relation L (-- RED GREEN) (-- YELLOW RED)

[racket] Lisp In Summer Projects

2013-05-07 Thread Sean McBeth
Have you folks seen this? http://lispinsummerprojects.org/ Looks like fun. Racket Users list: http://lists.racket-lang.org/users

[racket] Lisp Summer of Coding

2013-05-07 Thread Ray Racine
Code in Racket, win prizes. http://lispinsummerprojects.org/ Not sure if this has already been made known on the Racket user's list. Racket Users list: http://lists.racket-lang.org/users

Re: [racket] Racket newbie questions

2013-05-07 Thread Jens Axel Søgaard
Hi John, 2013/5/7 John Gateley rac...@jfoo.org Here's a summary of the responses. Thanks to everyone who replied. My comments are in [ and ]. Not much new though. 5) Is there an implementation of vectors that can change in size? Like C++'s std::vector?

Re: [racket] snips in redex traces

2013-05-07 Thread Robby Findler
I've added a sentence to the docs pointing out the use of write-special and a silly example at the end too. I tried to make a silly example using 'plot', something like this, but it isn't that great. If others have suggestions, I think it would be nice to show plot here ... #lang racket (require

Re: [racket] Racket newbie questions

2013-05-07 Thread John Gateley
2013/5/7 John Gateley rac...@jfoo.org 5) Is there an implementation of vectors that can change in size? Like C++'s std::vector? http://docs.racket-lang.org/**data/gvector.htmlhttp://docs.racket-lang.org/data/gvector.html [This is close, but I don't see an operation to explicitly grow the

Re: [racket] ATTN: Neil T. Racket/Math digamma (psi) function implementation

2013-05-07 Thread Neil Toronto
On 05/06/2013 01:25 PM, Ray Racine wrote: Neil, Here in is an implementation of the digamma function. Cool! Welcome to the High Priesthood of the... crazy people who do floating-point implementations. :) BTW, I'm not clear on what you're requesting from me. Nearest I can come up with is

[racket] [books] HtDP and Realm of Racket

2013-05-07 Thread Da Gamer
I came across a link for Realm of Racket. And it's seems to have the same goal as HtDP, but more game-based. I was wondering what other differences RoR had vs. HtDP. Should one use both or is that redundant? If both, is there a reading order? Racket Users list:

[racket] Matrix Row/Col Ops

2013-05-07 Thread Ray Racine
First of all I've started using some of the new math and prob stuff for real and it's all fantastic work. Thank you. Was looking for a routine for sums of a matrix along the either the rows or cols axis. See http://docs.scipy.org/doc/numpy/reference/generated/numpy.sum.html I didn't notice

[racket] Redex: ASL Implementation?

2013-05-07 Thread Justin Pombrio
Hi all, Does anyone know if there is an implementation of Advanced Student Language in Redex? I'm looking for a relatively clean language with if, cond, lambda, and set!. The Redex/examples directory has only Beginner Student (which doesn't have a store) and R6RS (which is overkill). Justin

Re: [racket] ATTN: Neil T. Racket/Math digamma (psi) function implementation

2013-05-07 Thread Ray Racine
Well crap ... I think I searched the Racket doc for digamma found nada, tried psi and blew it as I never progressed beyond implements a polygamma function and failed to recognize it for what it was.In other words, I flat missed it. So I was sort of asking about the process of voir dire'ing

[racket] ~r: formatting 0.0 with 'exponential and #:precision

2013-05-07 Thread Dmitry Pavlov
Hello, I just came across the following oddness with formatting of real numbers: (~r 1.0 #:notation 'exponential #:precision '(= 4)) 1.e+00 OK (~r 0.0 #:notation 'exponential #:precision '(= 4)) 0.e+04 ??? Is there a rational explanation of why did the requested precision go into the

Re: [racket] ATTN: Neil T. Racket/Math digamma (psi) function implementation

2013-05-07 Thread Ray Racine
And thanks for the overview on FP implementation and evaluation, very instructive. Saving this email for reference down the road. On Tue, May 7, 2013 at 11:39 AM, Neil Toronto neil.toro...@gmail.comwrote: On 05/06/2013 01:25 PM, Ray Racine wrote: Neil, Here in is an implementation of the

Re: [racket] Matrix Row/Col Ops

2013-05-07 Thread Jens Axel Søgaard
2013/5/7 Ray Racine ray.rac...@gmail.com First of all I've started using some of the new math and prob stuff for real and it's all fantastic work. Thank you. Was looking for a routine for sums of a matrix along the either the rows or cols axis. See

Re: [racket] ATTN: Neil T. Racket/Math digamma (psi) function implementation

2013-05-07 Thread Ray Racine
Well since I gone this far, I took the unusual step of implementing the algorithm (more?) correctly this time. On the Toronto scale, we are mostly accurate for most of the domain x 0. For x0 the use of psi(1 - x) - psi (x) = pi * cot(pi * x), not so good. For x 0, outside the subdomain

[racket] regexp-match to return a line containing a specified string...

2013-05-07 Thread Don Green
Trying to use regexp-match to return a line containing a specified string... ;Create fn: find-string.ss. ;Given a file and a find-string. ;Returns a line-string with first find. ;The input file has a lot of lines. ;I am thinking it would be good to filter all but the line of interest,

[racket] What do these symbols mean in Racket regexp documentation?

2013-05-07 Thread Don Green
Can you apply the verbage that must be represented by the symbols in Racket regexp documentation shown below: ;;= means what? | means what? pces means what? --- ‹*regexp*› ::= ‹*pces*› Match ‹*pces*› |

Re: [racket] What do these symbols mean in Racket regexp documentation?

2013-05-07 Thread Matthias Felleisen
On May 7, 2013, at 5:14 PM, Don Green infodeveloper...@gmail.com wrote: Can you apply the verbage that must be represented by the symbols in Racket regexp documentation shown below: ;;= means what? is one of | means what? or pces means what? a phrase described by the definition of

Re: [racket] What do these symbols mean in Racket regexp documentation?

2013-05-07 Thread Danny Yoo
On Tue, May 7, 2013 at 3:14 PM, Don Green infodeveloper...@gmail.comwrote: Can you apply the verbage that must be represented by the symbols in Racket regexp documentation shown below: ;;= means what? | means what? pces means what? Hi Don, You are seeing instances of Backus-Naur Form

Re: [racket] regexp-match to return a line containing a specified string...

2013-05-07 Thread Danny Yoo
On Tue, May 7, 2013 at 3:08 PM, Don Green infodeveloper...@gmail.com wrote: Trying to use regexp-match to return a line containing a specified string... ;Create fn: find-string.ss. ;Given a file and a find-string. ;Returns a line-string with first find. ;The input file has a lot of

[racket] unicode properties package

2013-05-07 Thread John Clements
Per the suggestions of several folks (eli, robby) I've released a unicode-properties package that provides definitions for a few of the most commonly-used unicode properties (XID_Start, XID_Continue, and Bidi_Mirrored). Perhaps more interesting, it also contains code to automatically download

[racket] Z3 + Racket

2013-05-07 Thread John Clements
I musta missed this; Siddarth Agarwal and Amey Karkare wrote a set of Racket bindings for Z3. Maybe they would consider uploading this as a not-planet-2 package? Racket Users list: http://lists.racket-lang.org/users

Re: [racket] ATTN: Neil T. Racket/Math digamma (psi) function implementation

2013-05-07 Thread Neil Toronto
On 05/07/2013 02:58 PM, Ray Racine wrote: Well since I gone this far, I took the unusual step of implementing the algorithm (more?) correctly this time. On the Toronto scale, we are mostly accurate for most of the domain x 0. I noticed. Cool! For x0 the use of psi(1 - x) - psi (x) = pi *