Re: [racket-users] DrRacket blue info box for unfinished forms?

2015-04-07 Thread Alexander D. Knauth
Now I’m wondering: would you be able to extend this to the repl in the interactions panel? On Apr 6, 2015, at 6:46 PM, Robby Findler wrote: > I've just pushed a change to DrRacket to do that. Thanks for the > prompting; it helped me realize a better approach than what was there > before. > > T

Re: [racket-users] internal definition problem

2015-04-07 Thread Neil Van Dyke
sam wrote on 04/07/2015 07:06 PM: version of racket i use does not allow me to use internal definitions using (R5RS) language It seems like you keep trying to use various `#lang racket` language features with `#lang r5rs`. They are two different languages, and Racket is orders of magnitude

[racket-users] internal definition problem

2015-04-07 Thread sam
version of racket i use does not allow me to use internal definitions using (R5RS) language like this for example (define (read-command) (set! com '( '() )) (set! wl (read-as-list)) (define ret1 (list->string wl)) (commRead) ret1 ) says not allowed in rxpression context: (define ret1

Re: [racket-users] i am getting an undefined identifier error

2015-04-07 Thread sam
On Tuesday, April 7, 2015 at 3:35:49 PM UTC-6, neil wrote: > R5RS doesn't have a `read-line`. > > I think most people use `#lang racket` or `#lang racket/base` now. If > you need to use R5RS for some reason, you'll want to work from the R5RS > document, not from the Racket documentation. > > ht

Re: [racket-users] i am getting an undefined identifier error

2015-04-07 Thread Neil Van Dyke
R5RS doesn't have a `read-line`. I think most people use `#lang racket` or `#lang racket/base` now. If you need to use R5RS for some reason, you'll want to work from the R5RS document, not from the Racket documentation. http://www.schemers.org/Documents/Standards/R5RS/HTML/ Neil V. -- You r

[racket-users] i am getting an undefined identifier error

2015-04-07 Thread sam
keep getting this error, (using R5RS standard language) read-line: undefined; cannot reference undefined identifier (define repl (lambda() (display "\nUofL>") (let ((inp (read-line))) (set! lista (append (string-split inp) lista)) (set! lengtha (length

[racket-users] Re: undefined identifier error

2015-04-07 Thread sam
language used is R5RS -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.co

[racket-users] undefined identifier error

2015-04-07 Thread sam
getting "read-line: undefined; cannot reference undefined identifier" error for this code segment (define repl (lambda() (display "\nUofL>") (let ((inp (read-line))) <--- this specific line (set! lista (append (string-split inp) lista)) (set! le

RE: [racket-users] How to find most efficient constructs/instructions beside benchmarking?

2015-04-07 Thread Jos Koot
Quite right, I think. 3 things are important (in my experience): Most important: the algorithm. For example I once made a fully vectorized program for shortest paths that was much slower than a simpler non-vectorized program, simply because my algorithm was not efficient. Second: appropiate use

Re: [racket-users] DrRacket blue info box for unfinished forms?

2015-04-07 Thread Alexander D. Knauth
I downloaded the new snapshot as soon as I could to try it out. Thank you! This is my new favorite thing about DrRacket! On Apr 7, 2015, at 7:55 AM, Robby Findler wrote: > If you have a recent snapshot build then you can say "raco pkg update > drracket". It should also be in today's snapshot

[racket-users] ANN: cookies library for clients and servers

2015-04-07 Thread Jordan Johnson
Hi all, This weekend I added to the package catalog a set of libraries (named net-cookies) for managing cookies as per RFC6265, the most recent cookie RFC. Documentation: http://pkg-build.racket-lang.org/doc/cookies/index.html Source: https://github.com/RenaissanceBug/racket-cookies Examples

Re: [racket-users] sequence/c turns streams into non-stream sequences?

2015-04-07 Thread Robby Findler
I've pushed a fix for this, but I see that many other things don't work right along these lines. For example, vectorness is not preserved and probably none of the things except listness is preserved (from the list of things here http://docs.racket-lang.org/reference/sequences.html). It's not too h

[racket-users] 64bits DrRacket crash on FFI dlls packaged in Cygwin

2015-04-07 Thread roy
Hi, I have issues on this and not sure what is behind: My OS: Win7 64 bits Cygwin installed: 64 bits Racket: 64 bits FFI library: 64 bits cygusb-1.0.dll ( it has Cygwin1.dll dependency) The racket code is very simple, just like below: #lang racket/base (require ffi/unsafe ffi/unsafe/de

Re: [racket-users] free-vars

2015-04-07 Thread Sam Tobin-Hochstadt
The `free-vars` function relies on the binding information added by the macro expander during the expansion process. More precisely, only identifiers whose `identifier-binding` information is `'lexical` are included. All the identifiers you expected to see instead have no binding information -- the

Re: [racket-users] DrRacket blue info box for unfinished forms?

2015-04-07 Thread Joshua Grams
On Tuesday, April 7, 2015 at 7:55:38 AM UTC-4, Robby Findler wrote: > If you have a recent snapshot build then you can say "raco pkg update > drracket". It should also be in today's snapshots (I think it made the > deadline). Ah, OK. I'll try that. Before reading this, I got so far as "raco pkg

Re: [racket-users] DrRacket blue info box for unfinished forms?

2015-04-07 Thread Robby Findler
If you have a recent snapshot build then you can say "raco pkg update drracket". It should also be in today's snapshots (I think it made the deadline). Robby On Tuesday, April 7, 2015, Joshua Grams wrote: > On Monday, April 6, 2015 at 6:46:35 PM UTC-4, Robby Findler wrote: > > I've just pushed

Re: [racket-users] DrRacket blue info box for unfinished forms?

2015-04-07 Thread Joshua Grams
On Monday, April 6, 2015 at 6:46:35 PM UTC-4, Robby Findler wrote: > I've just pushed a change to DrRacket to do that. Thanks for the > prompting; it helped me realize a better approach than what was there > before. > > The way it now works is less accurate than it was before but I think a > win o

[racket-users] free-vars

2015-04-07 Thread Byron Davies
I don't understand the free-vars function http://docs.racket-lang.org/syntax/syntax-helpers.html#%28def._%28%28lib._syntax%2Ffree-vars..rkt%29._free-vars%29%29 For example, I would expect (free-vars #'foo) to be (list #'foo), and (free-vars #'(#%plain-lambda (foo) bar)) to be (list #'bar), but bot