Re: [racket-users] performance with freeze from 2htdp/image on very complex images

2015-05-04 Thread Alexander D. Knauth
On May 4, 2015, at 6:02 PM, Robby Findler wrote: > Another approach here would be to help me do performance debugging of > 2htdp/image :). You could write the code directly as imperative calls > to the dc<%> interface and see how that compares. If there's a > significant difference, that suggest

Re: [racket-users] performance with freeze from 2htdp/image on very complex images

2015-05-04 Thread Alexander D. Knauth
On May 4, 2015, at 6:02 PM, Robby Findler wrote: > It certainly can lose sharpness if you scale (as the freezing process > is basically just rendering them into bitmaps and then drawing the > bitmaps and scaling the bitmaps looses quality because the scaling for > process of bitmaps doesn't have

[racket-users] Re: scribble namespace landgrab & embedded package documentation

2015-05-04 Thread Neil Van Dyke
Clarification: This is not a proposed official documentation format; this is an optional thing, for package authors who choose to use my forthcoming unofficial tool. I'm just making sure that these Scribble names will be OK. Neil Van Dyke wrote on 05/04/2015 07:39 PM: For purposes of embeddin

[racket-users] scribble namespace landgrab & embedded package documentation

2015-05-04 Thread Neil Van Dyke
For purposes of embedding docs for a package in its Racket source file(s), anyone care whether I landgrab some names in the Scribble namespace (for package metadata)? I'm thinking the names will generally one-word generic terms, but with capitalization. Example package source file with said

Re: [racket-users] performance with freeze from 2htdp/image on very complex images

2015-05-04 Thread Robby Findler
It certainly can lose sharpness if you scale (as the freezing process is basically just rendering them into bitmaps and then drawing the bitmaps and scaling the bitmaps looses quality because the scaling for process of bitmaps doesn't have the geometric information to work with). It seems like, wi

Re: [racket-users] performance with freeze from 2htdp/image on very complex images

2015-05-04 Thread Alexander D. Knauth
On May 4, 2015, at 12:49 AM, gfb wrote: > Those are beautiful. Thanks! > First, make sure in Choose Language / Show Details that it's set to "No > debugging or profiling", and that "Preserve stacktrace" not set. Already have that, but thanks for checking. > The 2htdp/image library has immut

[racket-users] Call to arms: Typed Racket performance costs

2015-05-04 Thread Benjamin Greenman
Dear Racket Community, For the past few weeks, we've been studying the performance costs of Typed Racket. Our procedure is essentially: 1. Find an interesting Racket project 2. Configure the project to run all combinations of typed and untyped modules 3. Experiment with the results Friday's disc

Re: [racket-users] Rosetta Code: Level 1st (that's FIRST) with TCL

2015-05-04 Thread Gustavo Massaccesi
Too early. Tcl is (apparently) first again :( (I'm not sure how is the correct method to count them.) http://timb.net/popular-languages.html # Count Name 1 855 Tcl 2 852 Racket 3 842 Python 4 776 J In the Rosetta webpage # Count Name 1 851 Tcl 2 850 Racket 3 826 Python (???) 4 773 J Gustavo On

Re: [racket-users] Another typed/racket puzzle: module+ and scope

2015-05-04 Thread Norman Gray
Alexis, hello. > On 2015 May 4, at 16:37, Alexis King wrote: > > Yes, it’s a known bug that submodules are broken within Typed Racket. I’m not > entirely clear on the details, but I believe it is suspected that the reason > is actually due to a bug in the macro expander, which should be fixed

[racket-users] Fully-expanding a define form in its definition context

2015-05-04 Thread Scott Moore
Hi, I'm trying to write a macro that fully-expands define forms with the goal of doing some static checking (and thus want the code in racket core so that I know what I'm looking at). Ideally, this macro would work in any context where a define form works. Unfortunately, I'm having a great deal of

Re: [racket-users] Another typed/racket puzzle: module+ and scope

2015-05-04 Thread Alexis King
Yes, it’s a known bug that submodules are broken within Typed Racket. I’m not entirely clear on the details, but I believe it is suspected that the reason is actually due to a bug in the macro expander, which should be fixed with Matthew Flatt’s new scope-sets model. Otherwise, I don’t think th

Re: [racket-users] performance with freeze from 2htdp/image on very complex images

2015-05-04 Thread Robby Findler
Just in case: freezing an image requires actually rendering it but constructing the image doesn't (it just builds a tree/dag matching fairly closely to the image operations you used). So the time for constructing the images can be pretty different than freezing them. Drawing a frozen image is a bi

[racket-users] Another typed/racket puzzle: module+ and scope

2015-05-04 Thread Norman Gray
Greetings. I have come across another occasion where TR appears to behave in an unexpected way. Consider: % cat add1.rkt #lang typed/racket/base (provide add1) (: add1 (-> Integer Integer)) (define (add1 x) (+ x 1)) % cat call-add1.rkt #lang typed/racket/base (require "add1.rkt") (modul

Re: [racket-users] Rosetta Code: Level 1st (that's FIRST) with TCL

2015-05-04 Thread Jens Axel Søgaard
2015-04-29 14:07 GMT+02:00 Tim Brown : > On 29/04/15 11:44, Stephen De Gabrielle wrote: > >> Are there any tasks suitable for Rosetta Code that are difficult or >> impossible in other languages like Python or TCL? (or Lisp, >> JavaScript, Self/Smalltalk, Forth ...) >> > > Something specifically tu