Re: [racket] Error when pasting code

2015-03-17 Thread George Neuner
Hi Steve, On Tue, 17 Mar 2015 22:27:38 + (UTC), Steve Graham wrote: >George, >   Your unicode comment made me wonder.  So I wrote out some code to >the repl and it "compiled" and ran fine.  Next I copied that code to >Notepad and then copied and pasted it back to the repl and it "compiled"

Re: [racket] Considering backward-incompatible change to Plot

2015-03-17 Thread Brian Mastenbrook
On Mar 17, 2015, at 11:33, Neil Toronto wrote: > How many programs of yours would this change break? > > Any objections? Any suggestions? add1 to the interface change. This won't break any of my programs; I either use plot interactively or plot-file. -- Brian Mastenbrook br...@mastenbrook.net

Re: [racket] Error when pasting code

2015-03-17 Thread Steve Graham
George,    Your unicode comment made me wonder.  So I wrote out some code to the repl and it "compiled" and ran fine.  Next I copied that code to Notepad and then copied and pasted it back to the repl and it "compiled" and ran fine.  Finally I google "scheme factorial" and copied what I found to

Re: [racket] Error when pasting code

2015-03-17 Thread George Neuner
On Tue, 17 Mar 2015 19:06:50 + (UTC), Steve Graham wrote: >When running the following code, when manually typed in, there is no >error.  However, when the same is pasted from the keyboard buffer, >the error indicated appears. >Comments? >Thanks, Steve Likely there are hidden control characte

Re: [racket] bug with TR type tooltips showing up where they shouldn't?

2015-03-17 Thread Robby Findler
I have noticed strange tooltips showing up today too. If you figure out to make it happen in some smaller context that would be very helpful. Robby On Tuesday, March 17, 2015, Alexander D. Knauth wrote: > I’m not sure how to reliably reproduce it, but right now I have > my-unpossible/main.rkt o

[racket] bug with TR type tooltips showing up where they shouldn't?

2015-03-17 Thread Alexander D. Knauth
I’m not sure how to reliably reproduce it, but right now I have my-unpossible/main.rkt open in DrRacket, and strange type tooltips are appearing. my-unpossible/main.rkt is an untyped module, though it requires some typed modules. For example if I hover over line 8, column 1 (blank space) it sh

[racket] Error when pasting code

2015-03-17 Thread Steve Graham
When running the following code, when manually typed in, there is no error.  However, when the same is pasted from the keyboard buffer, the error indicated appears. Comments? Thanks, Steve === C:\Users\Steve>racket Welcome to Racket v6.0.1.;; Typed in > (define (tarai x y z)   (if (<= x y)  

Re: [racket] Considering backward-incompatible change to Plot

2015-03-17 Thread Spencer Florence
Unfortunately the algorithms only work in 2D, and probably aren't actually efficient. I have been meaning to generalize some of them now that Pict3D exists :) And they would probably serve as reference implementations. On Tue, Mar 17, 2015 at 1:56 PM Neil Toronto wrote: > That looks like an awes

[racket] TFP 2014 Deadline TODAY

2015-03-17 Thread Marco Morazan
Dear All, Do you have an idea you believe would make for an interesting talk to a FP audience? Please consider submitting an abstract to TFP 2014 ( https://tfp2015.inria.fr/? ). The deadline is today. TFP welcomes submissions from students. TFP uses a post-symposium review process. Among other t

Re: [racket] Considering backward-incompatible change to Plot

2015-03-17 Thread Neil Toronto
That looks like an awesome project. I could probably even use the convex hull implementations in Pict3D. You could use `plot-bitmap` or `plot/dc` as well, FWIW. I'll count this as a +1, then. :) Neil ⊥ On 03/17/2015 01:51 PM, Spencer Florence wrote: I've been using plot heavily for https://g

Re: [racket] Considering backward-incompatible change to Plot

2015-03-17 Thread Spencer Florence
I've been using plot heavily for https://github.com/florence/convex-hulls, which pulls a bitmap% from the snip% to render it as a gif. As long at the Plot object can get me a bitmap% or its underlying vector, I would love the new interface. or maybe I should just be using `plot-pict`... On Tue, M

Re: [racket] Considering backward-incompatible change to Plot

2015-03-17 Thread Vincent St-Amour
I use Plot a lot, but pretty much only use `plot-pict` and `plot-file`, so this change wouldn't affect me. Not sure how useful that information is to you, but here it is anyway. :) Vincent At Tue, 17 Mar 2015 12:33:47 -0400, Neil Toronto wrote: > > Plot has been converted to Typed Racket in t

Re: [racket] Can I get some feedback / a code review for some simple game code?

2015-03-17 Thread Matthias Felleisen
http://en.wikipedia.org/wiki/Zipper_(data_structure) On Mar 17, 2015, at 1:14 PM, Alexis King wrote: > That’s probably a good idea. I’m not quite sure what you’re referring to by > “zippers”, though—could you elaborate? > >> On Mar 17, 2015, at 06:44, Matthias Felleisen wrote: >> >> >> Th

Re: [racket] Can I get some feedback / a code review for some simple game code?

2015-03-17 Thread Alexis King
That’s probably a good idea. I’m not quite sure what you’re referring to by “zippers”, though—could you elaborate? > On Mar 17, 2015, at 06:44, Matthias Felleisen wrote: > > > This is indeed exemplary. One thing I'd like to request in the README file is > a description of the "game's" idea. A

Re: [racket] Submodule tests vs separate-file tests

2015-03-17 Thread Alexis King
Neat, thanks. > On Mar 17, 2015, at 04:58, Matthew Flatt wrote: > > Using a submodule does increase the ".zo" file size, but the submodule > portion of the ".zo" file is not loaded when the main module is loaded, > so it's as good as a separate bytecode file. > > At Tue, 17 Mar 2015 01:38:25 -0

[racket] Considering backward-incompatible change to Plot

2015-03-17 Thread Neil Toronto
Plot has been converted to Typed Racket in the upcoming Racket 6.2. I'm strongly considering taking this opportunity to improve the API. The change is backward-incompatible, however, so I need input from those of you who use Plot a lot. In particular, recent experience with Pict3D makes it cl

Re: [racket] Can I get some feedback / a code review for some simple game code?

2015-03-17 Thread Matthias Felleisen
This is indeed exemplary. One thing I'd like to request in the README file is a description of the "game's" idea. As for inefficiencies, consider using zippers to lower the syntactic overhead; it may also help with allocation. -- Matthias On Mar 17, 2015, at 12:17 AM, Benjamin Greenman wro

Re: [racket] Submodule tests vs separate-file tests

2015-03-17 Thread Matthew Flatt
Using a submodule does increase the ".zo" file size, but the submodule portion of the ".zo" file is not loaded when the main module is loaded, so it's as good as a separate bytecode file. At Tue, 17 Mar 2015 01:38:25 -0700, Alexis King wrote: > Is there any preferred convention for location of tes

[racket] Submodule tests vs separate-file tests

2015-03-17 Thread Alexis King
Is there any preferred convention for location of tests in libraries? Using a test submodule is convenient, but does keeping all the tests in separate files reduce loading costs? Does using submodules bloat the .zo size, or are they compiled separately a la Java inner classes? Alexis___