Re: [racket-users] Time for draw-bitmap

2015-05-11 Thread Robby Findler
This definitely seems worth experimenting with. big-bang does (can, really) create bitmaps itself. It gets 2htdp/image images from the user's program and then it can create a bitmap to draw them into directly, if it wants to. It may already be creating a bitmap explicitly, I'm not sure. Robby

[racket-users] Instantiating a module in a meta-language

2015-05-11 Thread Alexis King
I’ve written a meta-language that adds function literal syntax to the reader, inspired by Clojure and Rackjure’s shorthand function literals. It uses curly braces for these literals, so #{+ 2 %} reads as (lambda (%) (+ 2 %)). This actually works great, but I also want to add a feature that the

[racket-users] type mismatch: given (Listof Error)

2015-05-11 Thread Benjamin Greenman
This program gives a confusing error message. Does anyone know why the xs in the body doesn't have type (List Foo)? The error message is much better if the return type is (Listof Integer). It only complains about Foo being unbound instead of Foo unbound and got a listof error. ;; --- #lang

Re: [racket-users] Instantiating a module in a meta-language

2015-05-11 Thread Sam Tobin-Hochstadt
One solution would be to use `local-require`: (((let () (local-require (only-in racket/function curry)) curry) + ) 2) Sam On Mon, May 11, 2015 at 3:24 PM, Alexis King lexi.lam...@gmail.com wrote: I’ve written a meta-language that adds function literal syntax to the reader, inspired by

Re: [racket-users] type mismatch: given (Listof Error)

2015-05-11 Thread Asumu Takikawa
On 2015-05-11 14:33:51 -0400, Benjamin Greenman wrote: This program gives a confusing error message. Does anyone know why the xs in the body doesn't have type (List Foo)?  It's because the type `Foo` is not defined, so it cannot have a sensible representation. Erroneous types like this

Re: [racket-users] Why doesn't my readtable extension work in the REPL?

2015-05-11 Thread Matthew Flatt
At Mon, 11 May 2015 13:22:31 -0700, Alexis King wrote: I’ve gotten my curly-fn meta-language https://github.com/lexi-lambda/racket-curly-fn working, and it works great within a module. However, evaluating #{+ 2} within the REPL just evaluates as a plain old vector, ignoring my readtable

Re: [racket-users] type mismatch: given (Listof Error)

2015-05-11 Thread Sam Tobin-Hochstadt
I think we should at least make `(Listof Error)` turn into `Error`. That would eliminate the error message than Ben reported. Sam On Mon, May 11, 2015 at 4:01 PM, Asumu Takikawa as...@ccs.neu.edu wrote: On 2015-05-11 14:33:51 -0400, Benjamin Greenman wrote: This program gives a confusing

Re: [racket-users] Why doesn't my readtable extension work in the REPL?

2015-05-11 Thread Alexander D. Knauth
On May 11, 2015, at 4:22 PM, Alexis King lexi.lam...@gmail.com wrote: I’ve gotten my curly-fn meta-language working, and it works great within a module. However, evaluating #{+ 2} within the REPL just evaluates as a plain old vector, ignoring my readtable extension. What gives? Using

Re: [racket-users] type mismatch: given (Listof Error)

2015-05-11 Thread Hendrik Boom
On Mon, May 11, 2015 at 04:01:15PM -0400, Asumu Takikawa wrote: On 2015-05-11 14:33:51 -0400, Benjamin Greenman wrote: This program gives a confusing error message. Does anyone know why the xs in the body doesn't have type (List Foo)?  It's because the type `Foo` is not defined, so

Re: [racket-users] Why doesn't my readtable extension work in the REPL?

2015-05-11 Thread Alexis King
Perfect, thanks to both of you for your help. I’ve pushed a fix based on the at-exp implementation. I actually didn’t know about afl, but I’m pleased to see that it works relatively similarly! I still like my syntax and auto-currying better, but I’m biased. ;) -- You received this message

[racket-users] Re: Use Parsack to parse a #language?

2015-05-11 Thread Stephen Chang
Glad you're having a good time! I think you should be able to use it to implement your language's reader but I don't have any actual experience doing so. I seem to recall that Racket used to come with a combinator parser library. It's been removed but I don't remember why but maybe that could be

Re: [racket-users] racket on openwrt

2015-05-11 Thread Neil Van Dyke
This needs a lot of testing and probably some more work, but looks like we can probably have an official OpenWRT package of Racket. I now have Racket at least partly running (pending testing) on Netgear WNDR3700v4 home WiFi router hardware, under the current official stable OpenWRT image, at