Re: [racket] Racket v5.3

2012-08-07 Thread Rodolfo Carvalho
Hi, On Tue, Aug 7, 2012 at 7:03 PM, Ray Racine ray.rac...@gmail.com wrote: Looks like I'm still missing something. Built off of GIT master. About Racket shows. Welcome to DrRacket, version 5.3.0.17--2012-08-07(c03daba7/d/list) #lang typed/racket (module zoo typed/racket (provide

Re: [racket] Racket v5.3

2012-08-07 Thread Rodolfo Carvalho
The following code works and prints Tony. Notice changing from #lang typed/racket to #lang racket/base. #lang racket/base (module zoo typed/racket (provide tiger) (: tiger String) (define tiger Tony)) (require 'zoo) tiger []'s Rodolfo Racket Users

[racket] futures-enabled?

2012-08-07 Thread Rodolfo Carvalho
(futures-enabled?) it returns #f. I tried from DrRacket (both on the definitions and interactions panels) and racket interpreter. I have an Intel Core 2 Duo CPU and Racket sees the 2 cores: (processor-count) 2 Does it really mean I didn't get parallel futures enabled? Regards, Rodolfo Carvalho

Re: [racket] Racket v5.3

2012-08-07 Thread Rodolfo Carvalho
On Tue, Aug 7, 2012 at 9:31 PM, Ray Racine ray.rac...@gmail.com wrote: But then I don't have a typed submodule in a typed module. I think the original should work as well. Yes, you are right. It works using two separate files, but not with submodules on the same file.

Re: [racket] First RacketCon 2011 video now available

2012-08-04 Thread Rodolfo Carvalho
I'm super happy with the videos! And I sure I'm not alone ;) Thanks! Rodolfo Carvalho On Fri, Aug 3, 2012 at 10:03 PM, Greg Hendershott greghendersh...@gmail.com wrote: This is really awesome to have. Big thanks to everyone who helped make it happen. p.s. Off the cuff idea: For future

Re: [racket] My new Racket blog....

2012-08-01 Thread Rodolfo Carvalho
threads... you may find it interesting :) Jay Insightful! Much appreciated! []'s Rodolfo Carvalho Racket Users list: http://lists.racket-lang.org/users

Re: [racket] long-term urls for parts of manuals

2012-07-10 Thread Rodolfo Carvalho
(*(+(*)(*(+(*)(*)(*)(*)(*))(+(*)(*)(*)(*)(*))(+(*)(*)(*)(*(+(*)(*)(*)(* uncaught exception: 404 Is it the 404 page template or really an uncaught exception? []'s Rodolfo Carvalho On Sat, Jun 9, 2012 at 6:24 PM, Matthew Flatt mfl...@cs.utah.edu wrote: At Sat, 09 Jun 2012 16:32:03 -0400, Neil Van Dyke wrote

Re: [racket] long-term urls for parts of manuals

2012-07-10 Thread Rodolfo Carvalho
On Tue, Jul 10, 2012 at 10:43 PM, Eli Barzilay e...@barzilay.org wrote: 6 hours ago, Rodolfo Carvalho wrote: Page not found (uncaught-exception-handler (*(+(*)(*(+(*)(*)(*)(*)(*))(+(*)(*)(*)(*)(*))(+(*)(*)(*)(*(+(*)(*)(*) (* uncaught

[racket] Serializable continuations

2012-06-07 Thread Rodolfo Carvalho
the internal state of the counter explicitly instead of the continuation, however that misses the point) Thanks, Rodolfo Carvalho Racket Users list: http://lists.racket-lang.org/users

Re: [racket] Serializable continuations

2012-06-07 Thread Rodolfo Carvalho
, Rodolfo Carvalho Racket Users list: http://lists.racket-lang.org/users

Re: [racket] programmatic file editing

2012-06-06 Thread Rodolfo Carvalho
it without adding more stuff to your language that I just didn't think of for the moment. []'s Rodolfo Carvalho Racket Users list: http://lists.racket-lang.org/users

Re: [racket] Scribble your blogs!

2012-04-04 Thread Rodolfo Carvalho
Very nifty tool! Thanks, Ryan. []'s Rodolfo Carvalho On Mon, Apr 2, 2012 at 20:01, Ryan Culpepper r...@cs.utah.edu wrote: I've just released Scriblogify, a tool that lets you write blog posts in Scribble and automatically upload them to Blogger-hosted blogs (such as The Racket Blog

Re: [racket] Slideshow's current-font-size 1-255

2012-04-03 Thread Rodolfo Carvalho
On Mon, Apr 2, 2012 at 21:07, Matthew Flatt mfl...@cs.utah.edu wrote: I've changed the limit to 1024, which brings it back in sync with `font%'. [...] I'll continue investigating. Thank you Matthew. Racket Users list: http://lists.racket-lang.org/users

[racket] srfi usage within Racket

2012-03-27 Thread Rodolfo Carvalho
On Tue, Mar 27, 2012 at 13:55, Joe Gilray jgil...@gmail.com wrote: Thanks (again) Rodolfo, Do people use the srfi/25 arrays much? [-snip] -Joe I do not know. Actually, I wonder if people use any srfi much? Sometimes they seem to me to don't fit well within Racket. Possibily it has

Re: [racket] do loops in racket, also srfi/25 query

2012-03-26 Thread Rodolfo Carvalho
Hi Joe, On Mon, Mar 26, 2012 at 21:22, Joe Gilray jgil...@gmail.com wrote: Hi Pierpaolo, Yes, I could read the data into a list and then create an array from it: (array-ref (apply array (shape 0 3 0 3) '(1 2 3 4 5 6 7 8 9)) 2 2) 9 But, I don't seem to be able to do the same from a

Re: [racket] Racket style question

2012-03-21 Thread Rodolfo Carvalho
On Wed, Mar 21, 2012 at 17:21, Joe Gilray jgil...@gmail.com wrote: Hi Tim, Thanks for sharing your code. Quick, newby question: why do you use and instead of begin in your progress function? If you are used to run commands from bash you may do things like command1 command2 command3

Re: [racket] Racket style question

2012-03-21 Thread Rodolfo Carvalho
On Wed, Mar 21, 2012 at 18:37, Joe Gilray jgil...@gmail.com wrote: Hi Rodolfo, In this case though, printf will never return #f so and is equivalent to begin, right? The docs says it returns void, and that is not #f. So (and (printf ...) (something-else)) is equivalent to (begin (printf

Re: [racket] Racket style question

2012-03-19 Thread Rodolfo Carvalho
Hi Joe, On Mon, Mar 19, 2012 at 01:44, Joe Gilray jgil...@gmail.com wrote: Hi, I created the following code from some scheme I found on ProjectEuler.net (problem #9): (define (right-triangle? a b c) (= (+ (* a a) (* b b)) (* c c))) -snip- Thoughts? When I saw your code it made me

Re: [racket] Racket style question

2012-03-19 Thread Rodolfo Carvalho
wrote this: ; by Rodolfo Carvalho (define (pythagorean-triple/alt n) (for*/first ([a (in-range 1 (ceiling (/ n 3)))] [b (in-range (add1 a) (ceiling (/ (- n a) 2)))] [c (in-value (- n a b))] #:when (and ( b c) (right-triangle

[racket] Slideshow's current-font-size 1-255

2012-03-15 Thread Rodolfo Carvalho
to get a large pict by scaling (though, then, with rough edges): (slide (scale/improve-new-text (t \u2623) 20)) []'s Rodolfo Carvalho Racket Users list: http://lists.racket-lang.org/users

Re: [racket] streams, recursion and running out of memory

2012-02-22 Thread Rodolfo Carvalho
Hello Joe, 2012/2/22 Joe Gilray jgil...@gmail.com Hi Matthew, Thanks for your help. I really can't even pretend to understand the make-coroutine code but this is what I'm seeing: Original make-coroutine, without stream-ref pre-call = out of memory (1GB) when running (prime-pi 50)

Re: [racket] Style mistakes (was: static variables question)

2012-02-21 Thread Rodolfo Carvalho
On Mon, Feb 20, 2012 at 00:10, Eli Barzilay e...@barzilay.org wrote: 20 minutes ago, Rodolfo Carvalho wrote: It is possible to replace a pattern like this: (cond [..a..] [else (cond [..b..] ...)]) With this simpler: (cond

Re: [racket] why here a endless loop

2012-02-21 Thread Rodolfo Carvalho
Hi, On Tue, Feb 21, 2012 at 12:49, Roelof Wobben r.wob...@home.nl wrote: I have this script : (define (nettoloon h) ( - (brutoloon h) (belasting h))) (define (belasting h) (cond [( (brutoloon h) 240) (* 0 (brutoloon h))] [(and ( (brutoloon h) 480) ( (brutoloon h) 240)) ( * 0.15

Re: [racket] static variables question

2012-02-20 Thread Rodolfo Carvalho
On Mon, Feb 20, 2012 at 05:21, Joe Gilray jgil...@gmail.com wrote: Hi Rodolfo, Thanks for the suggestion. I ended up reading quite a bit about generators and found this very appropriate and interesting page: http://matthias.benkard.de/journal/116. Very interesting implementation! Thanks

Re: [racket] Space safety in lazy

2012-02-19 Thread Rodolfo Carvalho
Thanks, Matthew. On Sun, Feb 19, 2012 at 11:50, Matthew Flatt mfl...@cs.utah.edu wrote: Oops --- I should have tried that program more carefully. The problem seems to be with `or'. If I change to `if', then the example runs as intended: (define (has-negative? l) (if (negative? (car

Re: [racket] Boolean expressions [Was: static variables question]

2012-02-19 Thread Rodolfo Carvalho
On Sun, Feb 19, 2012 at 17:03, Hendrik Boom hend...@topoi.pooq.com wrote: The trouble is, I can never remember which of 'nand' and 'nor' is which. Either of them could mean 'neither'. But I do know what 'neither' means. Think of them as composed boolean functions: - nand is not and - nor

[racket] (Maybe) misleading error message

2012-02-19 Thread Rodolfo Carvalho
makes sense. However, wouldn't it be more helpful if it would first complain about `generator' being undefined? []'s Rodolfo Carvalho Racket Users list: http://lists.racket-lang.org/users

Re: [racket] static variables question

2012-02-19 Thread Rodolfo Carvalho
Rodolfo Carvalho Racket Users list: http://lists.racket-lang.org/users

Re: [racket] (Maybe) misleading error message

2012-02-19 Thread Rodolfo Carvalho
and not understanding what was wrong... Thanks, Rodolfo Carvalho Racket Users list: http://lists.racket-lang.org/users

[racket] Space safety in lazy

2012-02-18 Thread Rodolfo Carvalho
, eventually I get: The evaluation thread is no longer running, so no evaluation can take place until the next execution. The program ran out of memory. Is it expected to happen? Why? Thanks, Rodolfo Carvalho [1] http://www.eng.utah.edu/~cs6510/space.pdf Racket Users list

Re: [racket] Bouncing default value

2012-02-11 Thread Rodolfo Carvalho
Hello, On Sat, Feb 11, 2012 at 14:55, Laurent laurent.ors...@gmail.com wrote: ... (define (bar [arg2 (get-default-value foo arg2)]) (foo 5 arg2)) Maybe someone will have a better idea (or a brighter implementation), but if not, here's my contribution: #lang racket (require rackunit)

Re: [racket] Bouncing default value

2012-02-11 Thread Rodolfo Carvalho
On Sat, Feb 11, 2012 at 15:07, Rodolfo Carvalho rhcarva...@gmail.comwrote: Hello, On Sat, Feb 11, 2012 at 14:55, Laurent laurent.ors...@gmail.com wrote: ... (define (bar [arg2 (get-default-value foo arg2)]) (foo 5 arg2)) Maybe someone will have a better idea (or a brighter

Re: [racket] Browser module for OAuth use?

2012-02-02 Thread Rodolfo Carvalho
-browser.pltowner=oesterholt), but that only takes care of starting a browser, not tracking it. Thoughts? There is a Browser module: http://docs.racket-lang.org/browser/index.html I just don't know whether it fulfills your needs... maybe. []'s Rodolfo Carvalho Racket Users list

Re: [racket] fonts missing with latest .deb from PPA

2012-01-28 Thread Rodolfo Carvalho
On Fri, Jan 27, 2012 at 01:13, Todd O'Bryan toddobr...@gmail.com wrote: I can help with the Applications thing. I can also help with getting .rkt files to open with DrRacket if you double-click them. Grab the zip file here: http://dl.dropbox.com/u/1037/usr.zip Thanks! Rodolfo

Re: [racket] fonts missing with latest .deb from PPA

2012-01-26 Thread Rodolfo Carvalho
5.2.1. Unfortunatelly we had to interrupt our dojo in the middle because of a building that fell down right next to us... To the audience, that was more scaring than programming in Racket... []'s Rodolfo Carvalho On Thu, Jan 26, 2012 at 21:41, Todd O'Bryan toddobr...@gmail.com wrote: Yeah

[racket] Redex on Windows - problem with GraphViz / find-executable-path

2012-01-17 Thread Rodolfo Carvalho
to the name of the executable (eg: .exe, .bat, ...). Or maybe there is a better way to patch this part of Redex to support Windows? []'s Rodolfo Carvalho Racket Users list: http://lists.racket-lang.org/users

Re: [racket] Redex on Windows - problem with GraphViz /find-executable-path

2012-01-17 Thread Rodolfo Carvalho
it would rearrange the graph... but even after manually moving things around, clicking the button has no visible effect. It was also strange to me that the boxes with reductions were not read-only, so I could freely edit (remove/change/add) the contents. []'s Rodolfo Carvalho

Re: [racket] MysterX poll

2012-01-06 Thread Rodolfo Carvalho
from `mysterx' to `ffi/com' (the new implementation) will be encouraged. []'s Rodolfo Carvalho Racket Users list: http://lists.racket-lang.org/users

Re: [racket] Documentation enhancement suggestions

2012-01-03 Thread Rodolfo Carvalho
in the Racket website to link to those contributions, or else it gets more difficult to remember that they exist, and where they are. Maybe something in the already existent community page? []'s Rodolfo Carvalho Racket Users list: http://lists.racket-lang.org/users

[racket] Feature request: Ability to drag-drop text in DrRacket

2011-11-15 Thread Rodolfo Carvalho
Rodolfo Carvalho _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

[racket] Module Browser on 5.2

2011-11-13 Thread Rodolfo Carvalho
in DrRacket and try to run Module Browser on it, it fails. Am I doing something wrong? Rodolfo Carvalho _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

Re: [racket] DrRacket needs work

2011-11-13 Thread Rodolfo Carvalho
Hello, On Sun, Nov 13, 2011 at 08:50, Tomi Neste tomi.ne...@gmail.com wrote: - Send expression to the REPL functionality. I know that this kind of functionality is limited for a reason but since the REPL is still there it would be nice if it could be interacted with more comfortably.

Re: [racket] article about Racket

2011-11-13 Thread Rodolfo Carvalho
for the next few days and display it in a dialog for you. []'s Rodolfo Carvalho _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

Re: [racket] Module Browser on 5.2

2011-11-13 Thread Rodolfo Carvalho
Oh, yes, possible. I was playing with a #lang htdp/bsl program, and I even reported a bug about the toolbar buttons... Maybe at that time DrRacket was left on BSL when I was trying to run the Module Browser. It works fine when I have Determine language from source. Thanks, Rodolfo Carvalho

[racket] XREPL on Windows

2011-11-12 Thread Rodolfo Carvalho
! (before crashing) I get: - ,install! file-size: file not found: C:\Users\Rodolfo\racketrc.rktl Any pointers on what could be wrong, or how could I examine why it is crashing? (I suppose something to do with the GNU readline dll...) Thanks, Rodolfo Carvalho

Re: [racket] XREPL on Windows

2011-11-12 Thread Rodolfo Carvalho
Hi Eli, On Sat, Nov 12, 2011 at 19:51, Eli Barzilay e...@barzilay.org wrote: There is no need to use readline on Windows, since cmd does its own thing anyway. What if using Git Bash instead of plain cmd? Should I expect XREPL to work normally under Windows? It should not try to

Re: [racket] XREPL on Windows

2011-11-12 Thread Rodolfo Carvalho
...but it looks like it does try to load it for you. Did you play with the TERM environment variable by any chance? I don't have a TERM variable set, but I do have MINGW (Git Bash) installed. racket -il xrepl crashes both when run from plain CMD and from Git bash. Maybe this helps:

Re: [racket] greek letters/Windows

2011-10-14 Thread Rodolfo Carvalho
You can you the backslash shortcuts. \alpha [alt+\] = α \beta [alt+\] = β For more symbols see the docs at: http://docs.racket-lang.org/drracket/Keyboard_Shortcuts.html#(part._.La.Te.X_and_.Te.X_inspired_keybindings) []'s Rodolfo Carvalho On Fri, Oct 14, 2011 at 13:27, Adam Shaw adams

Re: [racket] frustrated with error message

2011-10-14 Thread Rodolfo Carvalho
the enhacements of the newer versions. []'s Rodolfo Carvalho On Thu, Oct 13, 2011 at 22:01, Erwin Hildebrandt ehil...@shaw.ca wrote: With regards to the error below, we are using dr Scheme v4.2 (I know its an old version but the tech guys at my school take months to test every upgrade that we

[racket] for/fold indentation in DrRacket

2011-10-14 Thread Rodolfo Carvalho
'(1 2 3 4)]) (values (+ sum i) (cons (sqrt i) rev-roots))) Thanks! Rodolfo Carvalho _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

Re: [racket] DrRacket-onna-stick for students? (Was: frustrated with error message)

2011-10-13 Thread Rodolfo Carvalho
On Thu, Oct 13, 2011 at 22:28, Neil Van Dyke n...@neilvandyke.org wrote: I'm wondering, if the students need to use lab computers rather than their own computers, whether there's a real need for a bootable version of DrRacket on little USB flash drives. So, if the lab PCs permitted USB

[racket] \triangleleft and \triangleright in DrRacket

2011-10-12 Thread Rodolfo Carvalho
? Thanks, Rodolfo Carvalho _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

[racket] Origin of ~a, ~s, ~v

2011-09-24 Thread Rodolfo Carvalho
Hello, I'm a bit curious about those letters. Where did they come from? Do they have a meaning? ~a = display ~s = write ~v = print Apparently there's no correlation between the functionality and the letters :( Thanks, Rodolfo Carvalho

Re: [racket] recent updates to Whalesong development: web-world

2011-09-12 Thread Rodolfo Carvalho
It works normally on Firefox 3.6.22 / Red Hat 5.7 []'s Rodolfo Carvalho On Fri, Sep 9, 2011 at 18:35, Danny Yoo d...@cs.wpi.edu wrote: 2. Unfortunately Internet Explorer 8 on Windows 7 gives a page with red text saying: 'Error: unable to focus to add-button: JScript object expected

Re: [racket] fruit flies

2011-09-12 Thread Rodolfo Carvalho
Very cool example! I tested on Chrome (13.0.782.220) and Firefox (6.0.2) on Ubuntu 10.10. On Chrome the fruit-flies dance nicely, and, on Firefox, Firebug shows me the body is empty (and indeed nothing is seen, white screen). []'s Rodolfo Carvalho On Mon, Sep 12, 2011 at 18:47, Danny Yoo d

Re: [racket] Call racket with long code from racket

2011-09-08 Thread Rodolfo Carvalho
Hello, You could try something like this: #lang racket (require racket/system) (display (port-string (car (process *(format racket -e '~a' '(+ 2 3))* That is, quote your long code (in the case above (+ 2 3)) and pass it through format. HTH! []'s Rodolfo Carvalho On Thu, Sep 8, 2011

Re: [racket] Take an element from a set

2011-09-08 Thread Rodolfo Carvalho
Thanks for the answer! For now I can go with just having first, and if needed go for a one/rest approach. I couldn't find more efficient ways to take one though, and with your comment I'm confident to use it as it is now. []'s Rodolfo Carvalho On Thu, Sep 8, 2011 at 00:36, Shriram

Re: [racket] hosts with racket (or PLT-Scheme) support

2011-09-07 Thread Rodolfo Carvalho
I was able to install Racket on WebFaction but my basic plan offers only 80MB of RAM... and AFAICT a simple Hello World is eagerly taking more than that :( (I wish I am seriously wrong and then I will be profoundly happy!) On Wed, Sep 7, 2011 at 13:44, Danny Yoo d...@cs.wpi.edu wrote: On Wed,

[racket] Take an element from a set

2011-09-07 Thread Rodolfo Carvalho
(define (set-item s) (for/first ([item (in-set s)]) item)) Would anyone recommend better ways? Thanks, Rodolfo Carvalho _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

[racket] Links to the main documentation site

2011-09-06 Thread Rodolfo Carvalho
to limbo, although it may have been a good link for a previous version of the docs. What do you think? Would it be practical to include in the URL the Racket version being used? E.g.: http://docs.racket-lang.org/5.1.3/continue/ []'s Rodolfo Carvalho

Re: [racket] Installing

2011-09-06 Thread Rodolfo Carvalho
, not a Racket issue. Maybe AptUrl would help? https://wiki.ubuntu.com/AptUrl []'s Rodolfo Carvalho _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

Re: [racket] Failed to build Racket Textual 5.1.2 (CentOS)

2011-09-05 Thread Rodolfo Carvalho
to do :) []'s Rodolfo Carvalho On Fri, Aug 12, 2011 at 19:19, Matthew Flatt mfl...@cs.utah.edu wrote: The problem seems to be that __sync_bool_compare_and_swap() is available only when the compiler knows that its generating code for i486 or up, and it's not available when compiling for i386

[racket] Regular expression documentation

2011-09-03 Thread Rodolfo Carvalho
Hello, I found out that the documentation for regexp-matchhttp://docs.racket-lang.org/reference/regexp.html#(def._((quote._~23~25kernel)._regexp-match)) talk about an output-prefix, but apparently there's no such thing. What does that refers too? Thanks, Rodolfo Carvalho

[racket] Failed to build Racket Textual 5.1.2 (CentOS)

2011-08-12 Thread Rodolfo Carvalho
it be the case that something is wrong with racket-textual-5.1.2-src-unix.tgz? (the /mzrt.h:132: undefined reference to `__sync_bool_compare_and_swap_4' part) []'s Rodolfo Carvalho _ For list-related administrative tasks: http://lists.racket-lang.org

Re: [racket] Failed to build Racket Textual 5.1.2 (CentOS)

2011-08-12 Thread Rodolfo Carvalho
. Thanks, Rodolfo Carvalho On Fri, Aug 12, 2011 at 12:15, Rodolfo Carvalho rhcarva...@gmail.comwrote: On Fri, Aug 12, 2011 at 11:06, Matthew Flatt mfl...@cs.utah.edu wrote: We've made some repairs in that area since 5.1.2, but I don't know if we've solved the problem that you're seeing. Which

Re: [racket] What happened to the RacketCon link?

2011-08-03 Thread Rodolfo Carvalho
I couldn't find a link to that URL. Maybe it could be linked from the Community page or somewhere else? []'s Rodolfo Carvalho On Wed, Aug 3, 2011 at 18:39, Sam Tobin-Hochstadt sa...@ccs.neu.edu wrote: The permanent URL is http://con.racket-lang.org/2011 . Sam

Re: [racket] FW: External connection to Finndesign Liitin

2011-08-03 Thread Rodolfo Carvalho
I was able to run the examples successfully after manually setting the language to Pretty Big. It went reasonably fast, I enjoyed :D Question: is it possible today to find out what other users and/or definitions are available within Liitin? []'s Rodolfo Carvalho On Wed, Aug 3, 2011 at 19:37

[racket] eli-tester (was Using Racket to solve Professor Layton puzzles)

2011-07-28 Thread Rodolfo Carvalho
and undocumented? []'s Rodolfo Carvalho On Tue, Jul 26, 2011 at 14:34, Jay McCarthy jay.mccar...@gmail.com wrote: In the Cute Uses of Racket department, every morning I do a puzzle from the popular Professor Layton game series: http://professorlaytonds.com/ http://en.wikipedia.org/wiki

Re: [racket] eli-tester (was Using Racket to solve Professor Layton puzzles)

2011-07-28 Thread Rodolfo Carvalho
So far with the small exposure I had to it, I liked it a lot. +1 to have it as an alternative to RackUnit :) []'s Rodolfo Carvalho On Thu, Jul 28, 2011 at 12:20, Eli Barzilay e...@barzilay.org wrote: It started as soemthing small (yes, hacky) that I intended to play with and therefore

Re: [racket] A question about code-style (and memory usage)

2011-07-25 Thread Rodolfo Carvalho
Neil, Thanks for taking the time to comment. On Sun, Jul 24, 2011 at 09:34, Neil Van Dyke n...@neilvandyke.org wrote: Rodolfo Carvalho wrote at 07/24/2011 12:25 AM: For me solution 1 is compact, however it allocates the list without need (which gives out of memory error for large N

[racket] A question about code-style (and memory usage)

2011-07-23 Thread Rodolfo Carvalho
to check per-function memory usage? There's an unanswered question about memory profilinghttp://groups.google.com/group/racket-users/browse_thread/thread/d48ce09209a5aea4in the mailing list, and I could find my way out searching PLaneT, the docs and the mailing list archive. []'s Rodolfo Carvalho

[racket] Collapsing S-expressions (was what kind of Racket editor operations would you like to see?)

2011-07-19 Thread Rodolfo Carvalho
with version control). (At least that's what I observe in Racket 5.1.1) Is there a way to force saving in text-only format? (And keep the (...) forms in the editor) []'s Rodolfo Carvalho _ For list-related administrative tasks: http://lists.racket

Re: [racket] Slideshow on secondary monitor

2011-07-18 Thread Rodolfo Carvalho
On Mon, Jul 18, 2011 at 14:18, Stephen Chang stch...@ccs.neu.edu wrote: Does anybody know of a way to tell Slideshow to run fullscreen on a secondary monitor? shift-right/leftarrow or alt-right/leftarrow moves the presentation window. Is that insufficient? AFAICT that doesn't move across

Re: [racket] Slideshow on secondary monitor

2011-07-18 Thread Rodolfo Carvalho
On Mon, Jul 18, 2011 at 18:09, Stephen Chang stch...@ccs.neu.edu wrote: Does anybody know of a way to tell Slideshow to run fullscreen on a secondary monitor? shift-right/leftarrow or alt-right/leftarrow moves the presentation window. Is that insufficient? AFAICT that doesn't move

Re: [racket] Slideshow on secondary monitor

2011-07-18 Thread Rodolfo Carvalho
On Mon, Jul 18, 2011 at 23:29, Matthew Flatt mfl...@cs.utah.edu wrote: At Mon, 18 Jul 2011 13:38:42 -0600, Matthew Flatt wrote: At Mon, 18 Jul 2011 02:54:12 -0300, Rodolfo Carvalho wrote: Does anybody know of a way to tell Slideshow to run fullscreen on a secondary monitor? Slideshow

[racket] Slideshow on secondary monitor

2011-07-17 Thread Rodolfo Carvalho
Windows.) Thanks, Rodolfo Carvalho _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

Re: [racket] How to verify prime numbers.

2011-07-14 Thread Rodolfo Carvalho
Hello, Well, no one here is gonna do your homework! You could start showing what you've done so far and asking more specific doubts. We are not code translation robots... []'s Rodolfo Carvalho 2011/7/14 飞刀 fly...@qq.com Hello everyone, I want a program to verify prime numbers which can

Re: [racket] Price of RackUnit

2011-07-06 Thread Rodolfo Carvalho
Every time your code is required by someone else, all of your tests end up being executed. As well as side-effects your code may have. []'s Rodolfo Carvalho On Wed, Jul 6, 2011 at 20:40, Patrick King slowthou...@gmail.com wrote: I find myself doing stuff like... #lang racket (require

Re: [racket] RacketCon -- July 23 24 -- Second Call for Participation

2011-07-06 Thread Rodolfo Carvalho
I would sure be tuned if there would be online broadcasting! But in case that's not possible, at least a low-quality video or audio from a cellphone would be nice. []'s Rodolfo Carvalho On Wed, Jul 6, 2011 at 11:06, Eric Tanter etan...@dcc.uchile.cl wrote: From the FAQ: Will the talks

Re: [racket] sexp highlighting

2011-06-19 Thread Rodolfo Carvalho
On Sun, Jun 19, 2011 at 09:51, Nikita Zuev nikit...@gmail.com wrote: Other problem is: ctrl+f is not highlighting matches with pink ellipse. Here I have Ubuntu 10.10, Racket 5.1.1 from source and the ellipse appears just fine. The same on Windows with the pre-compiled version.

Re: [racket] sexp highlighting

2011-06-19 Thread Rodolfo Carvalho
8600M GT, proprietary driver version 260.19.06. On Windows I tested with a netbook with Intel integrated graphics, don't remember the details ;D BTW, my Ubuntu is x86_64. []'s Rodolfo Carvalho _ For list-related administrative tasks: http

Re: [racket] Racket is ...

2011-06-15 Thread Rodolfo Carvalho
in the last part. []'s Rodolfo Carvalho On Wed, Jun 15, 2011 at 16:26, Matthias Felleisen matth...@ccs.neu.eduwrote: No, I don't have a new slogan for us Racketeers, but I wrote down what I think Racket is and how we can explain Racket to people who don't know it. Here is the link: http

[racket] Strange contracts in the tutorial

2011-06-13 Thread Rodolfo Carvalho
Rodolfo Carvalho _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

Re: [racket] Strange contracts in the tutorial

2011-06-13 Thread Rodolfo Carvalho
Ok, now I get what it means. Still, it feels confusing in the way that it's written. []'s Rodolfo Carvalho On Mon, Jun 13, 2011 at 20:55, Matthias Felleisen matth...@ccs.neu.eduwrote: The author tried to say it doesn't return. In a Racket-like context, the author could have specified

Re: [racket] Embedding a GUI editor into Slideshows

2011-06-11 Thread Rodolfo Carvalho
)))*) []'s Rodolfo Carvalho On Sat, Jun 11, 2011 at 15:57, Robby Findler ro...@eecs.northwestern.eduwrote: That does work for me, in the latest pre-release under mac os x. I have a vague recollection that there was a linux bug related to this that has been fixed, but I'm not sure. One thing

[racket] Embedding a GUI editor into Slideshows

2011-06-10 Thread Rodolfo Carvalho
/ show to the audience. Of course this could be done alt-tabbing out of the presentation, but it would be cool to have something that follow along the presentation. Was it just a crazy dream? []'s Rodolfo Carvalho _ For list-related administrative

Re: [racket] Embedding a GUI editor into Slideshows

2011-06-10 Thread Rodolfo Carvalho
Ok, thanks. Alt + G brings up a Go to slide window. Isn't there a way to do something similar for let's say Alt + V to bring something else like a video player or code editor?! []'s Rodolfo Carvalho On Fri, Jun 10, 2011 at 18:03, Robby Findler ro...@eecs.northwestern.eduwrote: At the moment

Re: [racket] Some design whys of regexps in Racket

2011-06-04 Thread Rodolfo Carvalho
as string: ' ' This time the internal representation of the string uses instead of '. []'s Rodolfo Carvalho _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

Re: [racket] Some design whys of regexps in Racket

2011-06-04 Thread Rodolfo Carvalho
#BYE Hello, On Sat, Jun 4, 2011 at 11:27, Jens Axel Søgaard jensa...@soegaard.netwrote: 2011/6/4 Rodolfo Carvalho rhcarva...@gmail.com: Hello, I'm curious about 2 design decisions made: 1) Why do I have to escape things like \d{2} - \\d{2}? You can actually avoid escaping if you use

[racket] Programatically loading bitmaps with 2htdp/image

2011-06-04 Thread Rodolfo Carvalho
Is there a way to do something like this: (define (make-frame t) (bitmap (format ~a.png (add1 (modulo t 13) (animate make-frame) This code gives me: bitmap: expected the argument to specify a local path (via a string) or a module path (e.g. `icons/b-run.png') []'s Rodolfo Carvalho

Re: [racket] Use regexps or something else?

2011-06-04 Thread Rodolfo Carvalho
On Sat, Jun 4, 2011 at 12:50, Eli Barzilay e...@barzilay.org wrote: 11 hours ago, Rodolfo Carvalho wrote: Imagine an scenario that instead of 2 (as above) we had 20 columns of a table, and we wanted to return a table of the squares of the values for all columns, except for columns 12

Re: [racket] How to prevent code from running when `required`?

2011-06-03 Thread Rodolfo Carvalho
Thank you all for the ideas. []'s Rodolfo Carvalho On Thu, Jun 2, 2011 at 20:44, Neil Van Dyke n...@neilvandyke.org wrote: Rodolfo Carvalho wrote at 06/02/2011 05:42 PM: I would like a have a file that when run standalone executes some code, and when required by another module just

Re: [racket] How to prevent code from running when `required`?

2011-06-03 Thread Rodolfo Carvalho
. []'s Rodolfo Carvalho On Thu, Jun 2, 2011 at 19:51, Robby Findler ro...@eecs.northwestern.eduwrote: You can get close if you use 'racket' to run the file; define a main function that has the code that should only run in standalone and then use the -m flag on the commandline. Robby On Thu

Re: [racket] Fwd: ICFP Programming Contest 2011

2011-06-03 Thread Rodolfo Carvalho
Could anybody tell whether the plt-scheme package available for Debian Squeeze is good enough to compete? Version 4.2.1. http://packages.debian.org/pt/squeeze/plt-scheme []'s Rodolfo Carvalho On Fri, Jun 3, 2011 at 09:03, Robby Findler ro...@eecs.northwestern.eduwrote: Racket has yet to win

[racket] Mailing list in portuguese

2011-06-03 Thread Rodolfo Carvalho
, the new list doesn't mean to replace anything, it is just that if you speak Portuguese and is afraid of asking in English, do so in your mother tongue and you'll be heard! In case it's necessary, someone can always help translating and redirecting the question to the main list. []'s Rodolfo

Re: [racket] two question about DrRacket

2011-06-03 Thread Rodolfo Carvalho
The other option is to use values: (define (p x) (values (+ x 10) (* x 10))) That will return 2 values. However, if you want to actually display the answers, you can: (define (p x) (displayln (+ x 10)) (displayln (* x 10))) []'s Rodolfo Carvalho On Thu, Jun 2, 2011

[racket] Some design whys of regexps in Racket

2011-06-03 Thread Rodolfo Carvalho
Hello, I'm curious about 2 design decisions made: 1) Why do I have to escape things like \d{2} - \\d{2}? 2) Why there are two kinds of regexps, #rx and #px? #rx\\d{2} doesn't work because the curly braces are part of just pregexps grammar... []'s Rodolfo Carvalho

Re: [racket] Some design whys of regexps in Racket

2011-06-03 Thread Rodolfo Carvalho
On Fri, Jun 3, 2011 at 23:36, Jay McCarthy jay.mccar...@gmail.com wrote: 2011/6/3 Rodolfo Carvalho rhcarva...@gmail.com: Hello, I'm curious about 2 design decisions made: 1) Why do I have to escape things like \d{2} - \\d{2}? Because \d is the same as d, because you're escaping

Re: [racket] Some design whys of regexps in Racket

2011-06-03 Thread Rodolfo Carvalho
Thank you very much!! On Fri, Jun 3, 2011 at 23:47, Carl Eastlund c...@ccs.neu.edu wrote: I'm curious about 2 design decisions made: 1) Why do I have to escape things like \d{2} - \\d{2}? [...] To clarify this, Racket reuses the syntax of strings for regexps. A regexp is first read as

Re: [racket] Some design whys of regexps in Racket

2011-06-03 Thread Rodolfo Carvalho
-quote some-var) $)) #rx^\\d+ As a programmer, getting escaping right is hard enough as it is. You wouldn't want to do escaping one way for string literals and a different way for #rx -- that would be begging for hard-to-find bugs. []'s Rodolfo Carvalho

  1   2   >