Re: [racket-dev] Is anybody else getting this error?

2012-02-07 Thread Neil Toronto
On 02/07/2012 01:59 PM, Eli Barzilay wrote: Two hours ago, Neil Toronto wrote: This is from the latest release. On Redex errors and some Typed Racket errors (so far), I get something like exception raised by error display handler: normalize-path: # (within the input path) is not a directory

Re: [racket-dev] Is anybody else getting this error?

2012-02-07 Thread Neil Toronto
Nope. On 02/07/2012 12:08 PM, Robby Findler wrote: Do you get a stacktrace? Robby On Tue, Feb 7, 2012 at 1:01 PM, Neil Toronto wrote: This is from the latest release. On Redex errors and some Typed Racket errors (so far), I get something like exception raised by error display handler

[racket-dev] Is anybody else getting this error?

2012-02-07 Thread Neil Toronto
This is from the latest release. On Redex errors and some Typed Racket errors (so far), I get something like exception raised by error display handler: normalize-path: # (within the input path) is not a directory or does not exist; original exception raised: reduction-relation: before undersc

Re: [racket-dev] redex metafunction contract for two separate languages?

2012-02-05 Thread Neil Toronto
language is not problematic. But if you have some more context in the example that suggests my reasoning is flawed, I'd love to hear it. Robby On Sun, Feb 5, 2012 at 4:46 PM, Neil Toronto wrote: On 02/05/2012 03:11 PM, Stephen Chang wrote: I want to write a redex metafunction contract that goe

Re: [racket-dev] redex metafunction contract for two separate languages?

2012-02-05 Thread Neil Toronto
On 02/05/2012 03:11 PM, Stephen Chang wrote: I want to write a redex metafunction contract that goes between two languages. Is there currently a way to do this? For example, #lang racket (require redex) (define-language L1 (e 1)) (define-language L2 (f 2)) (define-metafunction L1 L1->

Re: [racket-dev] floor-log/base, ceiling-log/base, from Neil Toronto's recent commit

2012-02-01 Thread Neil Toronto
On 02/01/2012 05:58 PM, John Boyle wrote: I happened to observe this commit from today by Neil Toronto: http://git.racket-lang.org/plt/commitdiff/47fcdd4916a2d33ee5c28eb833397ce1d2a515e2 I may have some useful input on this, having dealt with similar problems myself. The problem: Given b and

Re: [racket-dev] [plt] Push #24227: master branch updated

2012-02-01 Thread Neil Toronto
On 02/01/2012 10:10 AM, Ryan Culpepper wrote: On 02/01/2012 09:55 AM, ntoro...@racket-lang.org wrote: collects/unstable/contract.rkt ~~ --- OLD/collects/unstable/contract.rkt +++ NEW/collects/unstable/contract.rkt @@ -171,6 +171,14 @@ (lambda (idx . elems) #t))) s

Re: [racket-dev] [plt] Push #24227: master branch updated

2012-02-01 Thread Neil Toronto
On 02/01/2012 09:55 AM, ntoro...@racket-lang.org wrote: ntoronto has updated `master' from e4b1ef1b6e to 950f034936. ~~ | Pushing unfinished but stable flomap transforms so Matthew can debug a segfault : M collects/images/icons/misc.rkt | 123 ++-

Re: [racket-dev] Release Announcement for v5.2.1, second draft

2012-01-25 Thread Neil Toronto
* Plots look nicer, render up to 4 times faster, and are more correct at very small and very large scales. New features include customizable dual axis ticks and transforms (e.g. log axes, date and currency ticks, axis interval collapse and stretch), stacked histograms, and 3D vec

Re: [racket-dev] Release Announcement for v5.2.1

2012-01-23 Thread Neil Toronto
On 01/23/2012 05:27 PM, Ryan Culpepper wrote: Below is a rough list of additions and changes for v5.2.1. If you are responsible for a change, please either elaborate it into an announcement item or tell me if it shouldn't be included in the announcement. Let me know if I've missed something. ---

Re: [racket-dev] Release Announcement for v5.2.1

2012-01-23 Thread Neil Toronto
On 01/23/2012 08:04 PM, Ryan Culpepper wrote: On 01/23/2012 06:30 PM, Robby Findler wrote: * DrRacket now has a new slate of icons The other seem too minor (and the second one is questionable; I think everyone will appreciate them, but few will download because of that, I guess). I expect Ne

Re: [racket-dev] Can't get for-label to work in Scribble docs

2012-01-23 Thread Neil Toronto
On 01/23/2012 01:36 PM, Ryan Culpepper wrote: On 01/23/2012 01:31 PM, Neil Toronto wrote: On 01/23/2012 01:18 PM, Neil Toronto wrote: For some reason, when I require (for-label db/base), I still get warnings about `sql-timestamp?', `sql-time?' and `sql-date?', and red underl

Re: [racket-dev] Can't get for-label to work in Scribble docs

2012-01-23 Thread Neil Toronto
On 01/23/2012 01:18 PM, Neil Toronto wrote: For some reason, when I require (for-label db/base), I still get warnings about `sql-timestamp?', `sql-time?' and `sql-date?', and red underlines under them. Okay, I figured out what I need to do, but not why it works. I have to re

[racket-dev] Can't get for-label to work in Scribble docs

2012-01-23 Thread Neil Toronto
For some reason, when I require (for-label db/base), I still get warnings about `sql-timestamp?', `sql-time?' and `sql-date?', and red underlines under them. I'm also requiring (for-label slideshow/pict), but I get no warnings or underlines for `pict?'. Is there something special I need to do

Re: [racket-dev] Pre-Release Checklist for v5.2.1

2012-01-19 Thread Neil Toronto
* Neil Toronto - Plot Tests All passed. _ Racket Developers list: http://lists.racket-lang.org/dev

Re: [racket-dev] GIF files cannot be included in PDFs

2012-01-15 Thread Neil Toronto
I admit to being a chronic limit-pusher. I'll take the GIF out or make it HTML-only. Neil T On 01/15/2012 06:46 PM, Eli Barzilay wrote: The recent addition of GIF files doesn't work with PDFs, which breaks the nightly build. _ Racket Developers list: http://lists.ra

Re: [racket-dev] Caching rendered icons

2012-01-13 Thread Neil Toronto
On 01/13/2012 06:16 PM, Robby Findler wrote: On Fri, Jan 13, 2012 at 7:09 PM, Neil Toronto wrote: I agree with everybody, especially Sam. :) We're supposed to have a rich compiler extension API, in which programs evaluated at expansion time are just as capable as runtime programs. Fu

Re: [racket-dev] Caching rendered icons

2012-01-13 Thread Neil Toronto
1-13, Sam Tobin-Hochstadt wrote: On Fri, Jan 13, 2012 at 4:46 PM, Eli Barzilay wrote: Yesterday, Neil Toronto wrote: On 01/12/2012 12:22 PM, Eli Barzilay wrote: Is there a way to reliably get the "compiled" directory path during expansion, and then load files from it at runtime? Can I ensure

Re: [racket-dev] Caching rendered icons

2012-01-12 Thread Neil Toronto
Sure! BTW, having been inspired by Jay's latest elegant macro, I've shrunk the implementation to 21 lines of code. (That's good for a tutorial.) It works a little differently now, too. I think it's better. Here's an example that bakes a list of stickman animation frames into a compiled modul

Re: [racket-dev] Caching rendered icons

2012-01-12 Thread Neil Toronto
On 01/12/2012 02:25 PM, Eli Barzilay wrote: 20 minutes ago, Neil Toronto wrote: This is friggin' awesome. The expression (compiled-left-arrow-icon '(255 95 78) 24) Why is there a `compiled-' in the name? There's also a "left-arrow-icon" function, whi

Re: [racket-dev] Caching rendered icons

2012-01-12 Thread Neil Toronto
On 01/12/2012 11:52 AM, Matthew Flatt wrote: At Thu, 12 Jan 2012 11:19:55 -0700, Neil Toronto wrote: 2. Compile time: Provide macros that render icons during expansion and try to store them in the "compiled" directory. Do you need icons to be in separate files? A macro could expand

Re: [racket-dev] Caching rendered icons

2012-01-12 Thread Neil Toronto
On 01/12/2012 12:22 PM, Eli Barzilay wrote: Is there a way to reliably get the "compiled" directory path during expansion, and then load files from it at runtime? Can I ensure that .PNG files are distributed automatically? Putting other stuff in compiled directories would probably complicate di

Re: [racket-dev] Caching rendered icons

2012-01-12 Thread Neil Toronto
On 01/12/2012 12:22 PM, Eli Barzilay wrote: Neither of these is relevant now, but still: An hour ago, Neil Toronto wrote: Which directory would I put them in? Would I make a subdirectory of 'pref-dir? (Not 'temp-dir, because that might be the current directory.) The temp director

Re: [racket-dev] Caching rendered icons

2012-01-12 Thread Neil Toronto
On 01/12/2012 11:52 AM, Matthew Flatt wrote: At Thu, 12 Jan 2012 11:19:55 -0700, Neil Toronto wrote: 2. Compile time: Provide macros that render icons during expansion and try to store them in the "compiled" directory. Do you need icons to be in separate files? A macro could expand

[racket-dev] Caching rendered icons

2012-01-12 Thread Neil Toronto
The time taken to render icons is becoming noticeable when DrRacket starts up. I estimate ~300ms on my beefy laptop, and it will probably double. 20ms per icon is fine until there are 50 icons and icon parts. (This also would have happened if the icons were rendered from SVG in Racket. The omi

Re: [racket-dev] drracket buttons

2012-01-11 Thread Neil Toronto
Does "Debug Syntax" not work for the macro stepper? I'd call it that and switch it with the debugger. Then we'd have (left to right): Check Syntax Debug Syntax Debug [Program] Run [Program] Stop [Program] My 10th-grade English teacher wouldn't complain about a lack of parallelism anymore, eith

Re: [racket-dev] .1 evaluates to 0.0 [was Re: plot doesn't plot (inexact->exact: no exact representation for +nan.0)]

2012-01-11 Thread Neil Toronto
On 01/11/2012 06:32 AM, Marijn wrote: It looks like there is still a residual bug though, that causes the stairs function when zoomed in to have non-vertical parts as you can see in the screenshot, though I can reproduce it also with the C locale, so looks like a genuine plot library bug this tim

Re: [racket-dev] [plt] Push #24121: master branch updated

2012-01-10 Thread Neil Toronto
mmits ]== Directory summary: 16.1% collects/images/icons/ 76.1% collects/images/private/ 6.0% collects/images/ ~~ 6ec7813 Neil Toronto 2012-01-08 23:13 : | Caching with weak boxes, cleanup, planet download icon : M collects/drracket/private/debug.rkt |4 +- M col

Re: [racket-dev] Icon issues resolved (almost)

2012-01-08 Thread Neil Toronto
On 01/08/2012 08:10 PM, Eli Barzilay wrote: Yesterday, Neil Toronto wrote: I've pushed a change that removes DrRacket's dependence on `slideshow/pict' (via `icons'), removes the `icons' module, and adds a new `images' collection. Instead of precompiling SVGs, th

[racket-dev] Icon issues resolved (almost)

2012-01-07 Thread Neil Toronto
I've pushed a change that removes DrRacket's dependence on `slideshow/pict' (via `icons'), removes the `icons' module, and adds a new `images' collection. Instead of precompiling SVGs, the new code ray-traces floating-point ARGB+Z bitmaps; instead of composing icons from picts, it composites fl

Re: [racket-dev] Internal definitions in `define'

2011-12-30 Thread Neil Toronto
Now that I'm a whiny junior dev, does that mean I can do the +/-1 thing? Because after reading Eli's argument - particularly the symmetry arguments - I'm totally +1-ing his proposal. This is one of the last places I find myself using the (let () ...) idiom. (The others are `define-syntax-rule'

Re: [racket-dev] .1 evaluates to 0.0 [was Re: plot doesn't plot (inexact->exact: no exact representation for +nan.0)]

2011-12-28 Thread Neil Toronto
On 12/28/2011 05:18 AM, Matthew Flatt wrote: Thanks for all the new info! I don't think that it's a bytcode problem. I start to wonder if it's in number parsing... On line 1102 of "src/racket/src/numstr.c", there's a call to STRTOD(). Does it change anything if you wrap that call with calls to s

Re: [racket-dev] Icons issues

2011-12-08 Thread Neil Toronto
Thanks, Ryan. Now everybody's not angry with me. Well, Eli still is, but that's nothing new. Neil T (I'm just kidding, Eli.) On 12/07/2011 11:52 PM, Ryan Culpepper wrote: I've pushed a temporary fix to the dist-specs, and meta/check-dists now runs without errors. Hopefully the nightly builds

Re: [racket-dev] plot doesn't plot (inexact->exact: no exact representation for +nan.0)

2011-12-07 Thread Neil Toronto
I just pushed a change that should keep it from raising an error. Can you get the latest and try it? If there's no error, will you please send me (personally, not the list) a screenshot of the result? Could you also try this? #lang racket (require plot racket/flonum unstable/flonum) (plot (fun

Re: [racket-dev] Icons issues

2011-12-05 Thread Neil Toronto
On 12/05/2011 02:49 PM, Robby Findler wrote: Matthew, Neil, and I have been talking about how to resolve the dependency problem. I think that the our thinking was that the best plan is to break out a "pict" library that both slideshow and drracket can safely depend on, and have the icons library

[racket-dev] PLaneT logo

2011-12-01 Thread Neil Toronto
The new PLaneT logo I just pushed is in the "logo" icon category, so it gets pre-rendered up to 512x512. (In case anybody wants it in the future for the web site or something.) If you want to see what it looks like, do this: #lang racket (require icons) (for*/list ([color icon-colors]

Re: [racket-dev] Responding to old bug reports

2011-12-01 Thread Neil Toronto
On 12/01/2011 09:29 AM, Neil Van Dyke wrote: Resolving piles of bug reports tends to be a major headache. You are to be commended for your service. Can I second this? It gives me a warm feeling every time I see one of these closed. You're, like, the bestest bug czar ever. Neil T

Re: [racket-dev] Subnormal numbers?

2011-11-29 Thread Neil Toronto
I can't answer the question about underflow. But if you don't mind installing a nightly build of Racket, you get the (currently undocumented) module `unstable/flonum', which exports these: flonum->bit-field bit-field->flonum flonum->ordinal; number of flonums away from 0 (+ or -

Re: [racket-dev] [racket] DrRacket needs work

2011-11-27 Thread Neil Toronto
On 11/27/2011 01:28 PM, Robby Findler wrote: On Sun, Nov 27, 2011 at 2:02 PM, Neil Toronto wrote: Thanks for taking this on, Neil! :) No no, that's just from back before we had alpha bitmaps. Please get rid of it! Roger roger. Just loading them with 'png/alpha seems to work

Re: [racket-dev] [racket] DrRacket needs work

2011-11-27 Thread Neil Toronto
checkmark and the right size in collects/icons/syncheck.png. Robby On Sat, Nov 26, 2011 at 2:07 PM, Neil Toronto wrote: I had some hours to kill today, and I figured I could come up with replacements for the toolbar icons at least. Neil T <>_ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/dev

Re: [racket-dev] nan?, infinite? and regular-real? [Was: Latest Plot Package]

2011-11-18 Thread Neil Toronto
On 11/18/2011 01:35 PM, Stephen Bloch wrote: On Nov 18, 2011, at 2:34 PM, "Neil Toronto" wrote: ... I'd like to add exact-round, exact-floor, exact-truncate and exact-ceiling. I rarely need to chop off fractional parts without also making the result exact. That might be

Re: [racket-dev] nan?, infinite? and regular-real? [Was: Latest Plot Package]

2011-11-18 Thread Neil Toronto
On 11/18/2011 12:22 PM, Ryan Culpepper wrote: On 11/18/2011 12:13 PM, Neil Toronto wrote: I've moved this to dev from a private discussion with Doug, who has just tried the nightly build. On 11/18/2011 11:43 AM, Williams, Doug wrote: 2) The plot/utils has nan? and infinite?, which are

[racket-dev] nan?, infinite? and regular-real? [Was: Latest Plot Package]

2011-11-18 Thread Neil Toronto
I've moved this to dev from a private discussion with Doug, who has just tried the nightly build. On 11/18/2011 11:43 AM, Williams, Doug wrote: 2) The plot/utils has nan? and infinite?, which are also exported from the science collection and I had to explicitly exclude them in the require. Can

[racket-dev] Push #23836

2011-11-10 Thread Neil Toronto
I'd quote the commit email but Thunderbird inexplicably freezes in various spots when editing multi-megabyte emails... Anyway, one commit erroneously says "Merge into 5.2". Please ignore that. Also, for those interested, I've added `unstable/parameter-group'. Neil T ___

Re: [racket-dev] Release Announcement for v5.2, second call

2011-11-02 Thread Neil Toronto
On 11/02/2011 03:31 PM, Eli Barzilay wrote: Just now, Sam Tobin-Hochstadt wrote: On Wed, Nov 2, 2011 at 5:24 PM, Eli Barzilay wrote: * The `plot' collection has been reimplemented in Racket. It now offers PDF output, log axes, histograms, and more. Some code that uses `plot' will still

Re: [racket-dev] Release Announcement for v5.2

2011-11-02 Thread Neil Toronto
On 11/02/2011 09:06 AM, Eli Barzilay wrote: The release announcement sketch is finally ready, apologies for the delay. It should be close to being a final version, and I'll probably proceed with the release tonight -- so if there are any issues with it, please reply soon. ---

Re: [racket-dev] Pre-Release Checklist for v5.2

2011-10-18 Thread Neil Toronto
On 10/17/2011 07:02 PM, Ryan Culpepper wrote: * Neil Toronto - Plot Tests All passed. Neil T _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/dev

Re: [racket-dev] New plot library pushed

2011-10-09 Thread Neil Toronto
That was quick! On 10/09/2011 01:10 PM, Doug Williams wrote: I ported all of the science collection graphics to use the new plot package. It was relatively painless. Most of the effort was actually in improving my graphics using some of the new options - like adding labels for legends. Also, the

Re: [racket-dev] Preserving source location in macro-generating macros, in collects

2011-10-07 Thread Neil Toronto
On 10/07/2011 10:24 AM, Robby Findler wrote: On Fri, Oct 7, 2011 at 11:15 AM, Neil Toronto wrote: Here's the thing. When I first looked into it, I wasn't making a collection; 'plot' was just a directory on my hard drive. I tried using 'scribble/srcloc', and it kep

Re: [racket-dev] Preserving source location in macro-generating macros, in collects

2011-10-07 Thread Neil Toronto
On 10/07/2011 09:56 AM, Robby Findler wrote: On Fri, Oct 7, 2011 at 10:35 AM, Neil Toronto wrote: Why I care: I wrote a macro that both defines a contracted function and defines a macro that expands to a Scribble 'defproc' with the same contract. With the source locations gone (r

[racket-dev] Preserving source location in macro-generating macros, in collects

2011-10-07 Thread Neil Toronto
Why I care: I wrote a macro that both defines a contracted function and defines a macro that expands to a Scribble 'defproc' with the same contract. With the source locations gone (recursively), Scribble can't format the contracts, and I end up with things like (real-in01) instead of (real-in 0

Re: [racket-dev] racket/match is broken

2011-10-06 Thread Neil Toronto
On 10/06/2011 01:20 PM, Eli Barzilay wrote: Just now, Neil Toronto wrote: On 10/06/2011 12:28 PM, Prabhakar Ragde wrote: On 10/6/11 2:12 PM, Eli Barzilay wrote: Sam is talking about building the ASTs *while* matching, which is what Jay was trying to do with uses of `app'. I think t

Re: [racket-dev] racket/match is broken

2011-10-06 Thread Neil Toronto
On 10/06/2011 12:28 PM, Prabhakar Ragde wrote: On 10/6/11 2:12 PM, Eli Barzilay wrote: Sam is talking about building the ASTs *while* matching, which is what Jay was trying to do with uses of `app'. I think that a teaching context is in particular one where such a thing doesn't fit -- it obscur

Re: [racket-dev] Distributing C libraries

2011-10-05 Thread Neil Toronto
On 10/05/2011 03:25 PM, John Clements wrote: On Oct 5, 2011, at 9:45 AM, Neil Toronto wrote: I've just pushed the new 'plot' library. Eli and I both forgot that the new 'plot' still needs the old libfit, and removed it along with libplplot. I just added libfit back

Re: [racket-dev] New plot library pushed

2011-10-05 Thread Neil Toronto
this mean it will it be in the next 'nightly' build? On Wed, Oct 5, 2011 at 10:45 AM, Neil Toronto mailto:neil.toro...@gmail.com>> wrote: I've just pushed the new 'plot' library. Eli and I both forgot that the new 'plot' still needs the old lib

Re: [racket-dev] New plot library pushed

2011-10-05 Thread Neil Toronto
On 10/05/2011 02:07 PM, Robby Findler wrote: Looks like I spoke too quickly. I think I'm actually not going to be much help with this. In particular, I don't know what mix does and I can't figure out from the docs, so I don't know what it means to replace 'mix' with 'list'. I can try again if yo

Re: [racket-dev] [plt] Push #23663: master branch updated

2011-10-05 Thread Neil Toronto
On 10/05/2011 01:44 PM, Ryan Culpepper wrote: On 10/05/2011 01:13 PM, ntoro...@racket-lang.org wrote: ntoronto has updated `master' from e1a82481d1 to 32d789d4f8. http://git.racket-lang.org/plt/e1a82481d1..32d789d4f8 [...] ; fit-int : (number* -> number) (list-of (symbol number)) (list-of (vecto

Re: [racket-dev] New plot library pushed

2011-10-05 Thread Neil Toronto
e some docs to help people port? If not, would it be helpful for me to read over the plot and plot/compat library and try to put such docs together? Robby On Wed, Oct 5, 2011 at 11:45 AM, Neil Toronto wrote: I've just pushed the new 'plot' library. Eli and I both forgot that the

[racket-dev] New plot library pushed

2011-10-05 Thread Neil Toronto
I've just pushed the new 'plot' library. Eli and I both forgot that the new 'plot' still needs the old libfit, and removed it along with libplplot. I just added libfit back (the sources are in "src/fit" now instead of "src/plot/fit") along with the proper configure, Makefile.in, and get-libs.r

Re: [racket-dev] Adding the new plot library [was: Re: Plot?]

2011-09-29 Thread Neil Toronto
On 09/29/2011 12:27 PM, Sam Tobin-Hochstadt wrote: You're referring to the code that implements `fit', right? Shouldn't we just keep that until someone does the same thing that Neil has done for that code too? Yes. I'll likely convert that one as well, but not right now. I've got quite a bit

Re: [racket-dev] Adding the new plot library [was: Re: Plot?]

2011-09-29 Thread Neil Toronto
On 09/29/2011 12:28 PM, Eli Barzilay wrote: Just now, Robby Findler wrote: On Thu, Sep 29, 2011 at 1:25 PM, Eli Barzilay wrote: The issue is not pixel placements, it's keeping the C code that was ripped out of gnuplot. So I guess I don't understand. Why would we want to keep that? (I can see

Re: [racket-dev] Adding the new plot library [was: Re: Plot?]

2011-09-29 Thread Neil Toronto
On 09/29/2011 05:51 AM, Sam Tobin-Hochstadt wrote: On Thu, Sep 29, 2011 at 7:47 AM, Robby Findler wrote: On Thu, Sep 29, 2011 at 3:33 AM, Eli Barzilay wrote: Yesterday, Neil Toronto wrote: 1. Obviously, Module 2's path should be 'plot'. Right? And its documentation needs a

[racket-dev] Adding the new plot library [was: Re: Plot?]

2011-09-28 Thread Neil Toronto
Eli, I'm moving part of our discussion to the dev list for others' input. On 09/25/2011 04:39 PM, Eli Barzilay wrote: Three hours ago, Neil Toronto wrote: It's going well. We could put it in the repo later today if you want. I just have to consolidate a bunch of parameters first

Re: [racket-dev] New plot library [Was: (to Jay) Re: What I'm working on]

2011-08-27 Thread Neil Toronto
On 08/27/2011 11:26 AM, Aaron Turon wrote: Hi Neil, I've been using the new plot library for visualizing some benchmark results in three dimensions (# threads, amount of work, throughput). It's very easy to use, and the interactive 3d plots are great. I also plan to use the PDF export for my ne

Re: [racket-dev] Plot testing and feedback

2011-08-13 Thread Neil Toronto
On 08/13/2011 05:58 AM, Matthew Flatt wrote: The Mac's drawing layer equates drawing units and font point sizes, while the drawing layers for Windows and Unix try to adapt the to the screen resolution for the conversion of point-sizes to drawing-unit. For drawing pictures, it usually works bette

Re: [racket-dev] Plot testing and feedback

2011-08-12 Thread Neil Toronto
On 08/12/2011 07:04 PM, Shriram Krishnamurthi wrote: Windows done; specs below in case someone w/ a significantly different machine wants to try it out too: Windows 7 Home Premium 1.2 GHz ULV Intel Core i5-430UM 4 GB DDR3 RAM SATA hard drive (5400 RPM) Output is here: http://www.cs.brown.edu/~

Re: [racket-dev] Plot testing and feedback

2011-08-12 Thread Neil Toronto
can use get-text-extent with a representative tick label string like "000.0". Neil T On 08/12/2011 07:18 PM, Jay McCarthy wrote: OS X 10.7 Racket v5.1.2.3. http://faculty.cs.byu.edu/~jay/tmp/201108122018-osx.zip On Fri, Aug 12, 2011 at 6:33 PM, Neil Toronto wrote: I've pushed

[racket-dev] Plot testing and feedback

2011-08-12 Thread Neil Toronto
I've pushed the latest plot2d and plot3d to my github account. I want to know whether there are any critical differences in output or execution time among platforms. There shouldn't be any, but it's possible. Can I get a few volunteers, at least one on Windows and one on Mac, to clone it and r

Re: [racket-dev] New plot library [Was: (to Jay) Re: What I'm working on]

2011-08-05 Thread Neil Toronto
e a simple line graph I need to generate and would like to give your 2d plot a try. Kevin On 08/02/2011 11:33 AM, Neil Toronto wrote: Re-routing this email exchange to [racket-dev] for comments. Long story short: Jay roped me into replacing the current `plot' module by wrapping a plot lib

Re: [racket-dev] New plot library [Was: (to Jay) Re: What I'm working on]

2011-08-02 Thread Neil Toronto
On 08/02/2011 01:28 PM, Eli Barzilay wrote: About a minute ago, Matthew Flatt wrote: At Tue, 2 Aug 2011 16:20:43 -0400, Eli Barzilay wrote: This replacement would be great -- it's pretty bad now that it goes out to a(n outdated) C library with inferior graphic capabilities, draws the graph into

Re: [racket-dev] New plot library [Was: (to Jay) Re: What I'm working on]

2011-08-02 Thread Neil Toronto
011, at 1:33 PM, Neil Toronto wrote: Re-routing this email exchange to [racket-dev] for comments. Long story short: Jay roped me into replacing the current `plot' module by wrapping a plot library I was working on for my own use. (FWIW, I'm happy to finally contribute something!) Inten

[racket-dev] New plot library [Was: (to Jay) Re: What I'm working on]

2011-08-02 Thread Neil Toronto
Yup, so that old programs will keep working. Will you support the line fitting? Jay On Sat, Jul 30, 2011 at 1:56 PM, Neil Toronto wrote: Sure can! Does "compatible source library" mean a bunch of wrappers for the functions "plot" currently exports? Neil On 07/30/2011 05:4

Re: [racket-dev] Fancy application/automatic anonymous functions

2011-05-17 Thread Neil Toronto
Robby Findler wrote: On Tue, May 17, 2011 at 9:52 PM, Matthias Felleisen wrote: For a while I decided to try point-free programming. You can do it in Racket as well as in Haskell. Then I ran across someone's rules for writing Scheme and he had written (lambda (n) (+ x n)) is just as readable

Re: [racket-dev] Out-of-range error from vector-copy

2011-01-26 Thread Neil Toronto
Matthew Flatt wrote: At Fri, 21 Jan 2011 19:13:21 -0700, Neil Toronto wrote: > (vector-copy #(1 2 3) 3) vector-copy: start index 3 out of range [0, 3] for vector: '#(1 2 3) Fixed. I win, but I don't get to be a tiger. Shucks. Thanks, Matthew. I'll remember to file a bu

[racket-dev] Out-of-range error from vector-copy

2011-01-21 Thread Neil Toronto
One of these things is not like the others: > (list-tail '(1 2 3) 3) '() > (substring "123" 3) "" > (subbytes #"123" 3) #"" > (flvector-copy (flvector 1.0 2.0 3.0) 3) # > (flvector-length (flvector-copy (flvector 1.0 2.0 3.0) 3)) 0 > (vector-copy #(1 2 3) 3) vector-copy: start index 3 out of rang

Re: [racket-dev] Large preferences file and performance

2010-12-03 Thread Neil Toronto
Eli Barzilay wrote: 20 minutes ago, Casey Klein wrote: I just pushed a fix for a bug that made DrRacket extremely sluggish on my laptop. Most everything was slow, but typing in the find and replace fields was particularly bad -- each character would take about a second to appear on screen. The

Re: [racket-dev] How about adding this simple list-shuffling procedure to racket?

2010-11-12 Thread Neil Toronto
Jon Rafkind wrote: On 11/12/2010 02:25 PM, Eli Barzilay wrote: Any objections to `shuffle' in `racket/list'? No objections here. I will almost surely use this function in the future. Dumb question but is this different from `shuffle-list' from games/cards ? Yes. The one in games/cards take

Re: [racket-dev] set operations

2010-11-11 Thread Neil Toronto
I've written a version of `set-choose', and also `set-first' and `set-rest' (with the obvious meanings) a few times. They can be useful. (I always waffled about whether to use just `set-choose', or `set-first' along with `set-rest'. Mathematically, `set-first' and `set-rest' don't make sense,

Re: [racket-dev] How about adding this simple list-shuffling procedure to racket?

2010-11-11 Thread Neil Toronto
Carl Eastlund wrote: On Thu, Nov 11, 2010 at 12:40 PM, Neil Toronto wrote: I don't know. I know that the "run through the list and swap with another random element" algorithms are usually non-uniform, and so are a lot of other things that seem like they'd work. I wouldn&

Re: [racket-dev] How about adding this simple list-shuffling procedure to racket?

2010-11-11 Thread Neil Toronto
Carl Eastlund wrote: On Thu, Nov 11, 2010 at 12:18 PM, Neil Toronto wrote: Eric Hanchrow wrote: I find myself using this all the time; it seems it'd be handy to have built in. (define (shuffled list) (sort list < #:key (lambda (_) (random)) #:cache-keys? #t)) Is the distrib

Re: [racket-dev] How about adding this simple list-shuffling procedure to racket?

2010-11-11 Thread Neil Toronto
Eric Hanchrow wrote: I find myself using this all the time; it seems it'd be handy to have built in. (define (shuffled list) (sort list < #:key (lambda (_) (random)) #:cache-keys? #t)) Is the distribution of shuffled lists uniform? That'd be hard to analyze, since it would depend on the sor

Re: [racket-dev] Release for v5.0.2 has begun

2010-10-20 Thread Neil Toronto
Noel Welsh wrote: On Wed, Oct 20, 2010 at 3:39 PM, Doug Williams wrote: I downloaded the pre-release version this morning - 10/20 (I believe it was a build from 10/16). The plot package and plot extensions in the science collection all work as expected. But, I am getting different numeric answe

Re: [racket-dev] another status report on the new `racket/gui'

2010-10-11 Thread Neil Toronto
Matthew Flatt wrote: The new implementation of `racket/gui' is about as usable as my last report a month ago, at least for Gtk and Cocoa. Bug reports are still welcome. Editor performance has improved (thanks to Robby and Sam for testing and feedback), but not much else changed for Gtk and Cocoa,

Re: [racket-dev] `cond' / `when' / `unless' / etc bodies

2010-10-11 Thread Neil Toronto
If I get a vote, +1/2 from me. My vote isn't +1 because I'd rather see a syntactic restriction removed: make the inside of a `begin' an internal definition context. Then the change would happen in every similar macro at once. Also, I could do (if (begin (define ...) ...)

Re: [racket-dev] flonum vs. inexact-real

2010-10-02 Thread Neil Toronto
Robby Findler wrote: Is there any value to, on a 64 bit machine, having 32 bit floats be immediate values to avoid boxing? It would certainly be faster than 64-bit boxed floats. You could get better precision with 62-bit unboxed floats, stealing a couple of bits from the exponent, doing 64-bi

Re: [racket-dev] "Getting git" instructions

2010-10-01 Thread Neil Toronto
Eli Barzilay wrote: 20 minutes ago, Neil Toronto wrote: The Ubuntu instructions should have a "sudo apt-get update" after adding the ppa repository. Is this about the git instructions at git.racket-lang.org, and if so, do you mean that it should be: sudo add-apt-reposito

[racket-dev] "Getting git" instructions

2010-10-01 Thread Neil Toronto
The Ubuntu instructions should have a "sudo apt-get update" after adding the ppa repository. Neil T _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/dev

Re: [racket-dev] Racket documentation

2010-09-21 Thread Neil Toronto
Jay McCarthy wrote: What do you think is missing from these tutorials: http://docs.racket-lang.org/quick/index.html http://docs.racket-lang.org/continue/index.html http://docs.racket-lang.org/more/index.html In particular, Quick tries to present the essence of the languages. Maybe the problem

Re: [racket-dev] gc vs assignment

2010-08-25 Thread Neil Toronto
Matthias Felleisen wrote: Catching up with some mail. Neil wrote: Avoiding allocation reduces GC collects, which reduces stutters and hitches. My (possibly old) understanding of GC and mutation tell me that this is one of those prejudices that programmers should get rid of. Every mutation g

<    1   2   3   4