Re: [racket] Racket v5.3

2012-08-07 Thread Rodolfo Carvalho
On Tue, Aug 7, 2012 at 9:31 PM, Ray Racine 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. Racket Users l

[racket] futures-enabled?

2012-08-07 Thread Rodolfo Carvalho
hen I run (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,

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 Use

Re: [racket] Racket v5.3

2012-08-07 Thread Rodolfo Carvalho
Hi, On Tue, Aug 7, 2012 at 7:03 PM, Ray Racine 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 tiger) > >

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 wrote: > This is really awesome to have. Big thanks to everyone who helped make > it happen. > > > p.s. Off the cuff idea: For

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

2012-08-01 Thread Rodolfo Carvalho
o implement 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
On Tue, Jul 10, 2012 at 10:43 PM, Eli Barzilay wrote: > 6 hours ago, Rodolfo Carvalho wrote: > > Page not found > > > > > (uncaught-exception-handler > > > (*(+(*)(*(+(*)(*)(*)(*)(*))(+(*)(*)(*)(*)(*))(+(*)(*)(*)(*(+

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

2012-07-10 Thread Rodolfo Carvalho
ler (*(+(*)(*(+(*)(*)(*)(*)(*))(+(*)(*)(*)(*)(*))(+(*)(*)(*)(*(+(*)(*)(*)(* 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 wrote: > At Sat, 09 Jun 2012 16:32:03 -0400, Neil Van Dyke wrote: >

Re: [racket] Serializable continuations

2012-06-07 Thread Rodolfo Carvalho
corresponding prompt in the continuation: # I tried introducing uses of "call-with-continuation-prompt" and "(make-continuation-prompt-tag 'web)" out of luck. I don't really understand what the error means. Can I use "serialize" from "racket/ser

[racket] Serializable continuations

2012-06-07 Thread Rodolfo Carvalho
simple example, I sure could store 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] programmatic file editing

2012-06-06 Thread Rodolfo Carvalho
there isn't one already. Maybe there are other ways to accomplish 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 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 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 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 something to do wi

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 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 vector: > > (arr

Re: [racket] Racket style question

2012-03-21 Thread Rodolfo Carvalho
On Wed, Mar 21, 2012 at 18:37, Joe Gilray 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 ...) (som

Re: [racket] Racket style question

2012-03-21 Thread Rodolfo Carvalho
On Wed, Mar 21, 2012 at 17:21, Joe Gilray 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 e.g.

Re: [racket] Racket style question

2012-03-19 Thread Rodolfo Carvalho
above probably because they don't short-cut on (<= c b), is there > an elegant way to speed them up? > > Before you asked I wrote this: ; by Rodolfo Carvalho (define (pythagorean-triple/alt n) (for*/first ([a (in-range 1 (ceiling (/ n 3)))] [b (i

Re: [racket] Racket style question

2012-03-18 Thread Rodolfo Carvalho
Hi Joe, On Mon, Mar 19, 2012 at 01:44, Joe Gilray 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 think of

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

2012-03-15 Thread Rodolfo Carvalho
han 255? BTW, I am able 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 > 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) > I tried

Re: [racket] why here a endless loop

2012-02-21 Thread Rodolfo Carvalho
Hi, On Tue, Feb 21, 2012 at 12:49, Roelof Wobben 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 (bru

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

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

Re: [racket] static variables question

2012-02-20 Thread Rodolfo Carvalho
On Mon, Feb 20, 2012 at 05:21, Joe Gilray 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 for sharing.

Re: [racket] (Maybe) misleading error message

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

Re: [racket] static variables question

2012-02-19 Thread Rodolfo Carvalho
time, up to n (the number to be factored). []'s Rodolfo Carvalho Racket Users list: http://lists.racket-lang.org/users

[racket] (Maybe) misleading error message

2012-02-19 Thread Rodolfo Carvalho
tion in: (#%app) Which 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
(loop-factors (append facts (list (first candidate-primes))) (quotient x (first candidate-primes)) start end candidate-primes)] [else (loop-factors facts x

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

2012-02-19 Thread Rodolfo Carvalho
On Sun, Feb 19, 2012 at 17:03, Hendrik Boom 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 is "not or" `a

Re: [racket] Space safety in lazy

2012-02-19 Thread Rodolfo Carvalho
Thanks, Matthew. On Sun, Feb 19, 2012 at 11:50, Matthew Flatt 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 l)) > #t

[racket] Space safety in lazy

2012-02-18 Thread Rodolfo Carvalho
limit to 512 MB, 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 ___

Re: [racket] Bouncing default value

2012-02-11 Thread Rodolfo Carvalho
On Sat, Feb 11, 2012 at 15:07, Rodolfo Carvalho wrote: > Hello, > > On Sat, Feb 11, 2012 at 14:55, Laurent wrote: > >> ... >> >> (define (bar [arg2 (get-default-value foo arg2)]) >> (foo 5 arg2)) >> >> >> > Maybe someone will have a

Re: [racket] Bouncing default value

2012-02-11 Thread Rodolfo Carvalho
Hello, On Sat, Feb 11, 2012 at 14:55, Laurent 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) (define (foo arg1 [

Re: [racket] Browser module for OAuth use?

2012-02-02 Thread Rodolfo Carvalho
.plt-scheme.org/display.ss?package=launch-browser.plt&owner=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.

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 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 > >

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 wrote: > Yeah, I

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

2012-01-17 Thread Rodolfo Carvalho
yout produces no visible outcome. I thought 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. []&#x

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

2012-01-17 Thread Rodolfo Carvalho
XT on Windows. Would that represent a penalty on performance or something else? []'s Rodolfo Carvalho Racket Users list: http://lists.racket-lang.org/users

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

2012-01-17 Thread Rodolfo Carvalho
le that maybe could be used in find-executable-path to try appending an extension 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] MysterX poll

2012-01-06 Thread Rodolfo Carvalho
understood, shouldn't the above sentence read the opposite? "... porting 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
n somehow 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

Re: [racket] raco command naming convention

2011-12-25 Thread Rodolfo Carvalho
mands that start "raco mcfly > update-". > > If there would be fuzzy-matching instead of unambiguous preffix matching, you could write "raco mcf u-d", and "raco mcf u-x"... I'm thinking of something like Emacs' ido.el, but well, j

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

2011-11-15 Thread Rodolfo Carvalho
[]'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, Rodolf

Re: [racket] article about Racket

2011-11-13 Thread Rodolfo Carvalho
weather forecast 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] DrRacket needs work

2011-11-13 Thread Rodolfo Carvalho
Hello, On Sun, Nov 13, 2011 at 08:50, Tomi Neste 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. > > There is an examp

[racket] Module Browser on 5.2

2011-11-13 Thread Rodolfo Carvalho
t\collects\lang\imageeq.rkt 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] 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

Re: [racket] XREPL on Windows

2011-11-12 Thread Rodolfo Carvalho
Hi Eli, On Sat, Nov 12, 2011 at 19:51, Eli Barzilay 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 load readlin

[racket] XREPL on Windows

2011-11-12 Thread Rodolfo Carvalho
message "Seg fault (internal error) at 0". If I try to run ,install! (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?

Re: [racket] Racket on Netbook (Windows 7 Starter)?

2011-11-09 Thread Rodolfo Carvalho
how much I need to spend on a machine for my son > to use Racket on... > > I even run Slideshow presentations on my netbook! I believe it can work well for your son! []'s Rodolfo Carvalho _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

[racket] for/fold indentation in DrRacket

2011-10-14 Thread Rodolfo Carvalho
([i '(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] frustrated with error message

2011-10-14 Thread Rodolfo Carvalho
bring the enhacements of the newer versions. []'s Rodolfo Carvalho On Thu, Oct 13, 2011 at 22:01, Erwin Hildebrandt 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 > t

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

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 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 > booting, I though

[racket] \triangleleft and \triangleright in DrRacket

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

Re: [racket] CRLF vs LF & windows

2011-10-01 Thread Rodolfo Carvalho
Good news! I happen to use DrRacket in Windows and Linux and every time I switch systems version control will mark every line as changed because of line endings. I didn't try the pre-release yet. Is there a way to explicitly choose between CRLF and LF? []'s Rodolfo Carvalho On F

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

2011-09-24 Thread Rodolfo Carvalho
it as "value" at the time. (The others we > > inherited and I don't know about.) > > > > Robby > > > > On Sat, Sep 24, 2011 at 3:49 PM, Rodolfo Carvalho > wrote: > >> Hello, > >> I'm a bit curious about those letters. Where di

[racket] uri-decode and non-UTF-8 percent-encoded links

2011-09-24 Thread Rodolfo Carvalho
nce that the second appears as "http://www.ufrj.br/editais.php?tp=Acadêmicos&no=Cursos&idtp=4"; (but when copied->pasted is still *%C3%AA* instead of *ê*). How could I make uri-decode understand an encoding other than UTF-8? 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

[racket] Argument order conventions (was: Variable naming conventions)

2011-09-14 Thread Rodolfo Carvalho
Are there any general "thoughts" written somewhere about the order of arguments? I find myself often calling functions and getting the order of the arguments wrong. (Maybe I just need to be more familiarized with them...) []'s Rodolfo Carvalho On Wed, Sep 14, 2011 at 19:00, Nor

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

2011-09-14 Thread Rodolfo Carvalho
oblem of having ` and ' and instead use quasiquote and quote. []'s Rodolfo Carvalho #lang racket (define external-code (format "/opt/racket/bin/racket -e \" ~a \"" '(begin

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 is empty (and indeed nothing is seen, white screen). []'s Rodolfo Carvalho On Mon, Sep 12, 2011 at 18:47, D

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 wrote: > > > 2. Unfortunately Internet Explorer 8 on Windows 7 gives a page with > > red text saying: > > > > 'Error: unable to focus to &

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

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!

Re: [racket] Choose no language

2011-09-08 Thread Rodolfo Carvalho
Use the language declared in the source". []'s Rodolfo Carvalho On Thu, Sep 8, 2011 at 11:11, David Van Horn wrote: > Is it possible to get DrRacket back to its initial state where no language > is chosen? > > David > __**___

[racket] Take an element from a set

2011-09-07 Thread Rodolfo Carvalho
t ; ; set -> any/c (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

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 wrote: > On Wed, Sep 7, 2011

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

[racket] Links to the main documentation site

2011-09-06 Thread Rodolfo Carvalho
hich currently links 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/ []

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

2011-09-05 Thread Rodolfo Carvalho
t now I know what to do :) []'s Rodolfo Carvalho On Fri, Aug 12, 2011 at 19:19, Matthew Flatt 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

[racket] Regular expression documentation

2011-09-03 Thread Rodolfo Carvalho
Hello, I found out that the documentation for regexp-match<http://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? Than

Re: [racket] About modes (was: match in Advanced Student?)

2011-08-18 Thread Rodolfo Carvalho
Still, I don't feel Racket's student languages (*SL) suffer from modes (as the examples described in the post above). []'s Rodolfo Carvalho On Thu, Aug 18, 2011 at 22:11, Jukka Tuominen wrote: > > Hi, > > About language/UI modes. Since my contribution to CS is thin

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

2011-08-12 Thread Rodolfo Carvalho
"mzrt.h" at line 89 to `#if 1'. I confirm that both workarounds work. I compiled and installed in-place twice, once with each workaround, just to check. Thanks a lot! Now I have racket running at Webfaction :D []'s Rodolfo Carvalho _

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

2011-08-12 Thread Rodolfo Carvalho
Webfaction with newer GCC. Thanks, Rodolfo Carvalho On Fri, Aug 12, 2011 at 12:15, Rodolfo Carvalho wrote: > On Fri, Aug 12, 2011 at 11:06, Matthew Flatt wrote: > >> We've made some repairs in that area since 5.1.2, but I don't know if >> we've solved the problem

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

2011-08-12 Thread Rodolfo Carvalho
On Fri, Aug 12, 2011 at 11:06, Matthew Flatt 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 version of gcc are > you using? > > $ gcc --version gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-50)

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

2011-08-11 Thread Rodolfo Carvalho
compile with no errors. Could 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-

Re: [racket] another mini-tutorial: a racket slice: munging IRC logs

2011-08-06 Thread Rodolfo Carvalho
On Sat, Aug 6, 2011 at 03:08, Danny Yoo wrote: > I'm thinking of writing a series called "Racket Slices", which does a > cookbook-style approach to learning about Racket. I think there's a > need for documentation that takes a "slice", a cross section of Racket > to do some simple (but real-worl

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

2011-08-04 Thread Rodolfo Carvalho
ositories from the console, as well as use a GUI like Synaptic to perform a similar task. > (take 2 (liitin:search "calculator")) ... > (length (liitin:category "games")) 42 []'s Rodolfo Carvalho _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

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

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 wrote: > The permanent URL is http://con.racket-lang.org/2

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 wrote: > It started as soemthing small (yes, "hacky") that I intended to play > with and th

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

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

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

2011-07-25 Thread Rodolfo Carvalho
oks neat and runs reasonably fast (and I imagine the memory usage is on pair with the other solutions, except for #1). I've added this to my script, now with 6 different implementations, line after line more messy :| (that's throw-away code anyway...) For now it&

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

2011-07-24 Thread Rodolfo Carvalho
Neil, Thanks for taking the time to comment. On Sun, Jul 24, 2011 at 09:34, Neil Van Dyke 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). Sol

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

2011-07-23 Thread Rodolfo Carvalho
ore verbose. BTW what's the recommended way to check "per-function" memory usage? There's an unanswered question about memory profiling<http://groups.google.com/group/racket-users/browse_thread/thread/d48ce09209a5aea4>in the mailing list, and I could find my way out searc

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

2011-07-19 Thread Rodolfo Carvalho
ases (for me) (for instance it doesn't play that nice 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 _

Re: [racket] Slideshow on secondary monitor

2011-07-18 Thread Rodolfo Carvalho
On Mon, Jul 18, 2011 at 23:29, Matthew Flatt 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

Re: [racket] Slideshow on secondary monitor

2011-07-18 Thread Rodolfo Carvalho
On Mon, Jul 18, 2011 at 18:09, Stephen Chang 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 mov

Re: [racket] Slideshow on secondary monitor

2011-07-18 Thread Rodolfo Carvalho
On Mon, Jul 18, 2011 at 14:18, Stephen Chang 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 monitors. I

[racket] Slideshow on secondary monitor

2011-07-17 Thread Rodolfo Carvalho
or. (Using 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-13 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 飞刀 > Hello everyone, > > I want a program to verify prime numbers

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 wrote: > From the FAQ: > > "Will the t

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 wrote: > I find myself doing stuff like... > > #lang ra

Re: [racket] sexp highlighting

2011-06-19 Thread Rodolfo Carvalho
Here's a Nvidia GeForce 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-rel

Re: [racket] sexp highlighting

2011-06-19 Thread Rodolfo Carvalho
On Sun, Jun 19, 2011 at 09:51, Nikita Zuev 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] Racket is ...

2011-06-15 Thread Rodolfo Carvalho
sertations cited in the last part. []'s Rodolfo Carvalho On Wed, Jun 15, 2011 at 16:26, Matthias Felleisen wrote: > > 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

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 wrote: > > The author tried to say it doesn't return. > > In a Racket-like context, the author could have sp

[racket] Strange contracts in the tutorial

2011-06-13 Thread Rodolfo Carvalho
ean that it "produces an doesn't"? []'s Rodolfo Carvalho _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

  1   2   >