[racket] Error in _bitmask

2013-06-08 Thread Клочков Роман
At  file:///usr/share/doc/racket/foreign/Enumerations_and_Masks.html?q=_enum#%28def._%28%28lib._ffi%2Funsafe..rkt%29.__enum%29%29 procedure ( _bitmask   symbols   [ basetype ] )   →   ctype?    symbols   :   ( or   symbol?   list? )   Trying:  (_bitmask '(a b)) _bitmask: bad spec in '(a b) 

[racket] parse-tools / lexer behavior

2013-06-08 Thread David Weinstein
Can anyone explain the behavior that is observed here with the parser-tools/lexer. I think I'm overlooking something but both precedence and trying to make the longest match should be creating the expected behavior (please see comments in the .rkt). Thanks for your help! David simple.rkt

[racket] Dowloading Files with the .rkt Extensions

2013-06-08 Thread Vashtie Ellis
Hello Racket Users;   I am learning to programme online using Racket but I a having problems opening / downloading the problems on my blackboard.   I then uninstall Rackett and right click to open in a new window. This it does.   Could you advice me what I did wrong and how to resolve this?   A

[racket] scratching an itch: how do I customize which words get colored as keywords in DrRacket?

2013-06-08 Thread Christopher
Greetings all! First post here. Just finished my first significant project in Racket: writing parser in Racket for my new Python/Racket fusion programming language (roughly 2000 lines of Racket for the parser). The next phase is the runtime classes, which seems less straightforward--wish me

Re: [racket] scratching an itch: how do I customize which words get colored as keywords in DrRacket?

2013-06-08 Thread Robby Findler
It is the ones that it has special indentation rules for. Not super heplful to you here, I know. The specific conditional that you might be looking (if you wish to do things differently) for is in framework/private/racket.rkt around line 1306 in the body of racket-lexer-wrapper. The first case of

Re: [racket] scratching an itch: how do I customize which words get colored as keywords in DrRacket?

2013-06-08 Thread Christopher
On Jun 8, 2013, at 1:31 PM, Robby Findler ro...@eecs.northwestern.edu wrote: It is the ones that it has special indentation rules for. Not super heplful to you here, I know. That sounds like this won't be super easy, but it's a start! Thank you Robby. Who knows how to add indentation rules

[racket] Size matters

2013-06-08 Thread Eli Barzilay
(Possible irrelevant rambling, but I generally am very aware of my code formatting, and this looked like a good point to highlight. It's still probably picking on something that not many people care about as much as I do...) The style guide has a section labeled size matters -- it also has

Re: [racket] Size matters

2013-06-08 Thread Sean Kanaley
I was coincidentally just thinking about this. I'm experimenting with terse names myself right now. I believe the general rule for consistent pain/gain is that the favoring of the short name is proportional to both how frequently it's used and how obvious it is. For-loops in C had better

Re: [racket] Size matters

2013-06-08 Thread Sean Kanaley
Sorry about the multiple posts, but an idea just occurred to me to save on name length in the case of name conflicts, like in the posted fill-sack example. Example code: (let ([n #1]) (let ([n-that-needs-new-name #2]) (+ n n-that...) The inner most n will overwrite the outer one if the

[racket] domain names available for racket-related sites

2013-06-08 Thread Neil Van Dyke
If anyone is developing a Racket-related Web site and needs a domain name, I have a few registrations that will expire soon... * racket-club.com racket-club.org * racket-rtfm.com racket-rtfm.org * rackout.org Any of these can be transferred for no charge from me, so long as it's for a

Re: [racket] Dowloading Files with the .rkt Extensions

2013-06-08 Thread Asumu Takikawa
On 2013-06-06 18:58:01 -0700, Vashtie Ellis wrote: I am learning to programme online using Racket but I a having problems opening / downloading the problems on my blackboard. Can you describe what problems you are having in more detail? Can you just right-click save the file to your desktop

Re: [racket] Size matters

2013-06-08 Thread Mark Engelberg
This tension between clarity and line length is precisely why I wish camelCase were more common in Lisp languages. When using clear multi-word names, those hyphens between words can really eat up a significant percentage of your line width. Racket Users list:

Re: [racket] parse-tools / lexer behavior

2013-06-08 Thread Jon Zeppieri
The results you're seeing are consistent with longest match; ILandroid is longer than I. The order of the [trigger action-expr] pairs won't affect that. The order only affects which action is chosen for an ambiguous match, but this case isn't ambiguous. I don't think you can do what you're trying

[racket] Beginner problem

2013-06-08 Thread Steve Lett
Hi I am a beginner programmer and just came across Racket this week when I was on the Coursera website. I found the course called Intro to Systematic Program Design. I am trying to use Stephen Bloch's Picturing Programs. But my first attempt was using Quick-An Introduction to Racket with Pictures.

Re: [racket] Beginner problem

2013-06-08 Thread Jon Zeppieri
Did you follow the instructions in the part labeled 2 Set...? You need to put #lang slideshow at the top of your definitions window (replacing any #lang line that might already be there), and you need to press Run after doing that. On Sat, Jun 8, 2013 at 10:26 PM, Steve Lett

Re: [racket] Beginner problem

2013-06-08 Thread Danny Yoo
Make sure that if you're using Picturing Programs, don't skip Section 0.3 in: http://picturingprograms.com/download/chap00.pdf It talks about how to set up the software for the rest of the book. You'll need to do it in order for things like circle to work. Racket

Re: [racket] Beginner problem

2013-06-08 Thread Jon Zeppieri
Ah, sorry. If you've already set up DrRacket to use the student languages, you need to undo that to do the Quick tutorial. You'll need to go back to the Language - Choose Language... menu and select the Racket language. On Sat, Jun 8, 2013 at 11:04 PM, Jon Zeppieri zeppi...@gmail.com wrote:

Re: [racket] Beginner problem

2013-06-08 Thread Jon Zeppieri
Or, to put it another way, your language settings need to be different for the Quick tutorial than for Picturing Programs. On Sat, Jun 8, 2013 at 11:07 PM, Jon Zeppieri zeppi...@gmail.com wrote: Ah, sorry. If you've already set up DrRacket to use the student languages, you need to undo that to

[racket] Fwd: Beginner problem

2013-06-08 Thread Danny Yoo
-- Forwarded message -- From: Steve Lett steve.lett...@gmail.com Date: Sat, Jun 8, 2013 at 8:25 PM Subject: Re: [racket] Beginner problem To: Danny Yoo d...@hashcollision.org Thanks, but how do I install a library when my only internet connection is on Android, Galaxy Tab? I have