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
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
(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
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.
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
threads... you may find it
interesting :)
Jay
Insightful! Much appreciated!
[]'s
Rodolfo Carvalho
Racket Users list:
http://lists.racket-lang.org/users
(*(+(*)(*(+(*)(*)(*)(*)(*))(+(*)(*)(*)(*)(*))(+(*)(*)(*)(*(+(*)(*)(*)(*
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
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
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
,
Rodolfo Carvalho
Racket Users list:
http://lists.racket-lang.org/users
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
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
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
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
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
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
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
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
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
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
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)
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
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
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
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
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
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
Rodolfo Carvalho
Racket Users list:
http://lists.racket-lang.org/users
and not
understanding what was wrong...
Thanks,
Rodolfo Carvalho
Racket Users list:
http://lists.racket-lang.org/users
, 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
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)
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
-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
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
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
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
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
from `mysterx' to `ffi/com' (the new implementation) will be
encouraged.
[]'s
Rodolfo Carvalho
Racket Users list:
http://lists.racket-lang.org/users
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
Rodolfo Carvalho
_
For list-related administrative tasks:
http://lists.racket-lang.org/listinfo/users
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
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.
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
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
! (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
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
...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:
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
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
'(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
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
?
Thanks,
Rodolfo Carvalho
_
For list-related administrative tasks:
http://lists.racket-lang.org/listinfo/users
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
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
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
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
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
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,
(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
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
, 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
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
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
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
.
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
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
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
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
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
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
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
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
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
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
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
Windows.)
Thanks,
Rodolfo Carvalho
_
For list-related administrative tasks:
http://lists.racket-lang.org/listinfo/users
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
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
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
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.
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
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
Rodolfo Carvalho
_
For list-related administrative tasks:
http://lists.racket-lang.org/listinfo/users
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
)))*)
[]'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
/ 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
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
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
#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
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
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
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
.
[]'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
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
, 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
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
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
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
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
-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 - 100 of 121 matches
Mail list logo