Re: [racket] PLAI WP page scheduled to be deleted

2014-11-24 Thread Todd O'Bryan
Actually, the bar for Academic and technical books seems to be covered if it's used as a textbook by several reputable institutions. On Mon, Nov 24, 2014 at 9:59 AM, Robby Findler ro...@eecs.northwestern.edu wrote: Bullet 4 seems achievable:

Re: [racket] Matthias said something about types -- was: Re: Python creep

2014-07-02 Thread Todd O'Bryan
On Wed, Jul 2, 2014 at 3:05 PM, Matthias Felleisen matth...@ccs.neu.edu wrote: While I make provocative statements to launch discussions of what many people accept as 'givens', my actual stances are nuanced. You can't do this. If we cannot rely on your statements as gospel truth, we have to

Re: [racket] Python creep

2014-06-27 Thread Todd O'Bryan
I used Scala for our intro course last year, mostly because I wanted types. I know Matthias thinks types are a horrible thing to make students deal with first semester, but I found that students made different kinds of mistakes than they did in Racket. When you're writing containsDoll and the

Re: [racket] ANN: 2048 game - Racket edition

2014-04-20 Thread Todd O'Bryan
On Sun, Apr 20, 2014 at 9:06 PM, Matthias Felleisen matth...@ccs.neu.eduwrote: ... I will create a slimed down version of big-bang, little-poof? I couldn't let this go by. It's probably because I'm brain-dead, but first I wondered why Matthias was going to create a version of big-bang

Re: [racket] Racket v5.92

2014-01-28 Thread Todd O'Bryan
I use the Racket ppa. Hopefully, the new version will appear there shortly. To use: $ sudo add-apt-repository ppa:plt/racket $ sudo apt-get update $ sudo apt-get install racket You have to wait a bit for the maintainer to put together the .deb file, but I think it's worth it. Todd On Tue, Jan

Re: [racket] Installation issues on Ubuntu

2014-01-02 Thread Todd O'Bryan
Use the PPA. It makes everything happy: $ sudo add-apt-repository ppa:plt/racket $ sudo apt-get update $ sudo apt-get install racket If that doesn't work for you, let me know and I'll try reinstalling to see if I do anything special that I don't recall at the moment. Todd On Thu, Jan 2, 2014

Re: [racket] Implementation of Simpson's Rule (SICP Exercise 1.29)

2013-11-07 Thread Todd O'Bryan
I just found a lovely Java expression to emphasize the inexactness of doubles to my AP students. The problem--which I think is from HtDP/1e--is to find the value of a bag of coins given the number of pennies, nickels, dimes, and quarters. In BlueJ's code pad (or similar in DrJava, jGrasp, etc.)

Re: [racket] Racket/Bootstrap used for K-12 government sanctioned education?

2013-10-12 Thread Todd O'Bryan
One thing that I think math education does horribly at is having students work from the specific to the general. When we teach functions, we say f(x) = x^2, now tell me what f(1), f(3), f(7) are. What we don't do nearly often enough is work in the other direction. I think a great activity with

Re: [racket] Racket/Bootstrap used for K-12 government sanctioned education?

2013-10-07 Thread Todd O'Bryan
I've taught programming using Racket for several years as the Intro course in a public high school. In most states, the powers-that-be have so little awareness of, or concern about, high school computer science that as long as you cover the general topics listed in the course descriptions, you're

Re: [racket] Offtopic: Favorite resources for mastering SML?

2013-07-04 Thread Todd O'Bryan
I have to put in a plug for Learn You a Haskell for Great Good. It's quite entertaining and several of my high school students have managed to work their way through most of it. http://www.learnyouahaskell.com Todd On Thu, Jul 4, 2013 at 11:44 AM, Sean Kanaley skana...@gmail.com wrote: I can't

Re: [racket] DSLs and complexity

2013-06-21 Thread Todd O'Bryan
In my opinion, there are two kinds of DSLs: good ones and bad ones. Good ones feel like you're using the programming language, but it has been tailored to the problem domain. Your intuitions about using the language still work in the DSL, and the DSL manages to fill in the boilerplate that would

Re: [racket] Code Reuse, Object Oriented vs Functional

2013-06-21 Thread Todd O'Bryan
Whoa! I had no idea that Shriram and the rest of the Rice group were the impetus for the distillation/clarification and naming of The Expression Problem. I'm continually amazed that I've had a chance to interact with people who've had such a fundamental impact on the field. And because I came to

Re: [racket] Racket v5.3.5

2013-06-19 Thread Todd O'Bryan
You can also use the PPA. It builds the 32-bit and 64-bit packages. $ sudo add-apt-repository ppa:plt/racket $ sudo apt-get update $ sudo apt-get install racket and you get notified of updates automagically! On Wed, Jun 19, 2013 at 10:30 PM, Eli Barzilay e...@barzilay.org wrote: 50 minutes

Re: [racket] printf: this function is not defined

2012-12-09 Thread Todd O'Bryan
Make sure you're using #lang racket declared at the top of your source code and have chosen the appropriate radio button from the Choose Language... menu. It sounds like you're stuck in one of the teaching languages. On Sun, Dec 9, 2012 at 4:40 PM, Geoffrey Boom geoff.the.b...@gmail.comwrote:

Re: [racket] record? option doesn't save animated gif

2012-11-08 Thread Todd O'Bryan
of world events and replaying for the creation of an animated gif is one of the standard tests I run. It passed on my machine a couple of weeks ago -- Matthias On Nov 8, 2012, at 9:47 AM, Todd O'Bryan wrote: In the universe, if I use the record? option for big-bang, I get a bunch of png

Re: [racket] details on hackathon after racketcon?

2012-10-04 Thread Todd O'Bryan
Maybe signatures for the teaching languages? Maybe? On Wed, Oct 3, 2012 at 9:37 PM, Asumu Takikawa as...@ccs.neu.edu wrote: On 2012-10-03 16:21:10 -0600, Danny Yoo wrote: Any details on what we'll be hacking on after Racketcon? The plan is to hack on small, self-contained improvements such as

Re: [racket] Find nth term of a List

2012-09-25 Thread Todd O'Bryan
Well, I know how I'd do it, but I don't think your professor is teaching you the design recipe or templates, so I'm not sure how to help you without giving away the answer. Here's a hint. Most numbers involving natural numbers (0, 1, 2, 3, ...) have the following form: (define f (lambda (n)

Re: [racket] weirdness with complex numbers

2012-08-08 Thread Todd O'Bryan
Wolfram Alpha parses 1/2+2/3i as 1/2 + 2/(3i) and 1/2+(2/3)i as the complex number with real part 1/2 and imaginary part 2/3. On Wed, Aug 8, 2012 at 3:47 AM, Jens Axel Søgaard jensa...@soegaard.net wrote: 2012/8/8 Matthias Felleisen matth...@ccs.neu.edu: If it weren't against math conventions,

[racket] weirdness with complex numbers

2012-08-06 Thread Todd O'Bryan
I just discovered that the way you enter (and display) a number like 1/2 + (2/3)i in Racket (and Scheme, presumably) is 1/2+2/3i. I understand why that is, and can't think of what else to do, but has anyone had students get confused because the form looks like the i is in the denominator of the

Re: [racket] weirdness with complex numbers

2012-08-06 Thread Todd O'Bryan
- From: Todd O'Bryan toddobr...@gmail.com To: PLT-Scheme Mailing List us...@lists.racket-lang.org Sent: Monday, August 6, 2012 6:05:31 PM GMT -05:00 US/Canada Eastern Subject: [racket] weirdness with complex numbers I just discovered that the way you enter (and display) a number like 1/2

Re: [racket] What math do you want to do in Racket?

2012-06-30 Thread Todd O'Bryan
Hey, now. Some of us haven't had that extra second, yet. Don't ruin it for us. :-) On Sat, Jun 30, 2012 at 8:44 PM, Pierpaolo Bernardi olopie...@gmail.com wrote: I want in racket all that my hp50g can do. And since you are at it, you could also port the combinatorica library to racket. I

Re: [racket] release date for RacketCon videos?

2012-05-15 Thread Todd O'Bryan
This is clearly a problem with you academic types not knowing how things work in the real world. San Francisco is *full* of people who, for the right price, will be happy to rifle through Mr. Dlouhy's things until they find the videos or determine that he doesn't have them. They might even throw

Re: [racket] Clarification on licensing of Racket code?...

2012-04-07 Thread Todd O'Bryan
Alternatively, draw up a contract with the authors of the parts of Racket that you really want, which guarantees a level of service you'd be comfortable with. You could probably get by with Eli, Matthew, and Robby, and they could probably guarantee quick service for sufficient amounts of money.

Re: [racket] Dr. Racket goes Google?...

2012-02-14 Thread Todd O'Bryan
One of my favorites is the Halloween logo you get on October 31. On Tue, Feb 14, 2012 at 2:10 AM, Ashok Baktha lifebala...@gmail.com wrote: No you are not hallucinating. I got the same heart based logo when using Dr Racket. That is pretty cool! Thanks! On 14-Feb-2012, at 12:33, Rüdiger

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

2012-01-26 Thread Todd O'Bryan
be an issue. On Thu, Jan 26, 2012 at 6:29 PM, Paul Leger ple...@gmail.com wrote: On 01/26/2012 08:05 PM, Todd O'Bryan wrote: I installed Racket from Jon Rafkind's Ubuntu PPA and the only font I have listed in the Preferences is Monospace. I suspect there's probably a missing library or something

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

2012-01-26 Thread Todd O'Bryan
, 2012 at 21:41, Todd O'Bryan toddobr...@gmail.com wrote: Yeah, I'm using the same one. I know it's worked before, so I suspect I'm missing a necessary library or some other widget that lets DrRacket know where to look for the fonts. The one difference is that I've started using Kubuntu

Re: [racket] Racket documentation for web development is just awful!

2011-12-19 Thread Todd O'Bryan
I think Racket Noob is actually somebody from another language just messing with people. The hotmail address, the erudite vocabulary couched in slightly broken English, the clearly antagonistic tone...it all adds up to a plant. The question is who? Is it Guido? Matz? Martin Odersky? I somehow

Re: [racket] file will not read into the program

2011-11-21 Thread Todd O'Bryan
This is just a guess, but perhaps Windows has helpfully added a .txt extension (or some other nonsense) to the end of your filename? You might try looking at the file's properties, just to make sure something weird isn't going on. On another note, as long as your Fahrenheit-Celsius function

[racket] Feature request: requires make it into Interactions even if Definitions have an error

2011-11-14 Thread Todd O'Bryan
One thing that annoys me about DrRacket is that, if you have an error in the Definitions pane, none of your required modules are loaded, so if you try to fiddle in the Interactions window, you get undefined errors. It may be that (require ...) can appear pretty much anywhere, so I don't know if

[racket] Feature request: requires make it into Interactions even if Definitions have an error

2011-11-14 Thread Todd O'Bryan
the require in the REPL directly? (The error could be in a require line, so there is no way of saying 'load this even if hell breaks loose'). On Nov 14, 2011, at 3:12 PM, Todd O'Bryan wrote: One thing that annoys me about DrRacket is that, if you have an error in the Definitions pane, none

Re: [racket] Feature request: requires make it into Interactions even if Definitions have an error

2011-11-14 Thread Todd O'Bryan
I should have been clearer. It is compile-time errors. Runtime work fine. On Mon, Nov 14, 2011 at 3:34 PM, Danny Yoo d...@cs.wpi.edu wrote: On Mon, Nov 14, 2011 at 3:12 PM, Todd O'Bryan toddobr...@gmail.com wrote: One thing that annoys me about DrRacket is that, if you have an error

[racket] OT: John McCarthy dead at 84

2011-10-24 Thread Todd O'Bryan
http://news.cnet.com/8301-1001_3-20125026-92/john-mccarthy-creator-of-lisp-programming-language-dies/ Just found this out on someone's Facebook status, of all places. _ For list-related administrative tasks:

Re: [racket] Racket Games

2011-10-17 Thread Todd O'Bryan
On Ubuntu 11.04, you need to install libgtkglext1, which I just got around to doing. Todd On Fri, Sep 30, 2011 at 11:02 AM, Matthew Flatt mfl...@cs.utah.edu wrote: At Thu, 29 Sep 2011 17:40:29 -0700 (PDT), Richard Ervin wrote: I have a question. Whenever I try to use certain games in the PLT

Re: [racket] Graphics Issues in Ubuntu 11.10

2011-10-17 Thread Todd O'Bryan
Jon Rafkind, Any chance that you might put a version with Matthew's fix on the PPA site? Also, could you make libgtkglext1 a dependency of the install so that the OpenGL-dependent games in plt-games work? (I wish I knew how .debs work so I could help with this instead of just asking for stuff.

Re: [racket] Graphics Issues in Ubuntu 11.10

2011-10-17 Thread Todd O'Bryan
On Mon, Oct 17, 2011 at 9:46 PM, Eli Barzilay e...@barzilay.org wrote: 30 minutes ago, Todd O'Bryan wrote: The PPA makes things much nicer. I always have to install on:  - my desktop  - my laptop  - my teacher machine  - both servers at school, and  - in the client image for the lab

Re: [racket] Installer vs PPA (was: Graphics Issues in Ubuntu 11.10)

2011-10-17 Thread Todd O'Bryan
On Mon, Oct 17, 2011 at 10:14 PM, Eli Barzilay e...@barzilay.org wrote: A few minutes ago, Todd O'Bryan wrote: On Mon, Oct 17, 2011 at 9:46 PM, Eli Barzilay e...@barzilay.org wrote: There's also our own installers, which are very easy to set up.  It's true that it won't get added as a known

Re: [racket] list in Beginning Student

2011-10-01 Thread Todd O'Bryan
I actually wish it weren't in there. One student discovers it, and lots of students start using list instead of cons ... empty. That wouldn't be a problem except that most of them don't have the conceptual chops yet and I have to fix their confusion. Todd On Fri, Sep 30, 2011 at 6:05 PM, Stephen

Re: [racket] Poll: Does anybody besides Doug use 'plot'?

2011-09-30 Thread Todd O'Bryan
I think he's saying you could change that to (require plot/compat) and it would still work. On Fri, Sep 30, 2011 at 12:06 PM, Robby Findler ro...@eecs.northwestern.edu wrote: I have some old scripts that I used to build a paper (or maybe just play with some data related to the paper I'm not

Re: [racket] Fwd: drracket language (in the spoken language sense)

2011-09-28 Thread Todd O'Bryan
I think that is, strangely enough, possible. Look under the Help Desk and choose Interact with DrRacket in English. I can set DrRacket to Spanish even though my system is in English. You have to restart DrRacket, but hopefully it works the same in Mac OS. Todd On Wed, Sep 28, 2011 at 5:19 PM,

[racket] When did we start using the default Linux print dialog?

2011-09-10 Thread Todd O'Bryan
Kudos on managing this. It makes printing so much easier in my lab, and I hadn't realized it had happened until I was going to show my students the convoluted way we used to get 2-up printing. Thanks!!! Todd _ For list-related administrative

[racket] Best wishes for Irene

2011-08-28 Thread Todd O'Bryan
Given how much of the Racket community--Adelphi, Brown, and Northeastern all come to mind--has or is going to feel the effects of Hurricane Irene, I just wanted to send best wishes and let people know that we're thinking of you! Todd _ For

Re: [racket] Dr Racket error OS X Lion

2011-08-06 Thread Todd O'Bryan
I realize there's huge reluctance to muck with a release before having time to check everything, but if it's possible to fix this with a single small change that everyone agrees is unlikely to break anything else, might you consider releasing a 5.1.3 or 5.1.2b or 5.1.2+ or some new version number?

Re: [racket] What are the roles for teachpacks these days?

2011-07-12 Thread Todd O'Bryan
Yeah. Could we just have the Language menu and Teachpacks fade away? I've been bitten so many times by the hidden stuff that I think it's easier to have students explicitly write #lang htdp/bsl (require 2htdp/image) at the top of files. I'd prefer something like #lang beginner, but I don't

Re: [racket] Wescheme

2011-07-08 Thread Todd O'Bryan
I'm sure people have seen this before, but... http://blog.whatitslikeontheinside.com/2007/11/send-in-clones.html Who's your Mordac? Todd On Fri, Jul 8, 2011 at 7:07 AM, Sam Tobin-Hochstadt sa...@ccs.neu.edu wrote: On Jul 8, 2011 6:13 AM, Stephen De Gabrielle stephen.degabrie...@acm.org

[racket] conditional includes in a Scribble file

2011-06-29 Thread Todd O'Bryan
Hey all, I'm trying to use Scribble to create multiple forms of the same document--for example, teacher and student editions of the same text. Both documents share a lot of content, but also have differences. I created a parameter and function: (define edition (make-parameter default)) (define

Re: [racket] conditional includes in a Scribble file

2011-06-29 Thread Todd O'Bryan
:27:52 -0400, Todd O'Bryan wrote: Hey all, I'm trying to use Scribble to create multiple forms of the same document--for example, teacher and student editions of the same text. Both documents share a lot of content, but also have differences. I created a parameter and function: (define

Re: [racket] conditional includes in a Scribble file

2011-06-29 Thread Todd O'Bryan
: At Wed, 29 Jun 2011 09:47:16 -0400, Todd O'Bryan wrote: Any thoughts on the second problem--how to unwrap a (list el1 el2 el3 ...) so that Scribble interprets it as el1 el2 el3 ... ? I'm not sure I understand. Can you give me an example of the problem

Re: [racket] conditional includes in a Scribble file

2011-06-29 Thread Todd O'Bryan
? (edition) v)       text       '( At Wed, 29 Jun 2011 10:54:50 -0400, Todd O'Bryan wrote: Here's a non-working example: - #lang scribble/base @(define edition (make-parameter default)) @(edition teacher) @(define (itemlist* . args)   (apply itemlist (filter item? args

Re: [racket] Integrating scribble and LaTeX

2011-06-22 Thread Todd O'Bryan
And in contrast to clay tablets and, oh laptops, you can read things written on paper at the beach without worrying about getting sand in them. And sitting at the barber shop without worrying that you'll run out of power. And in the tub without worrying that they'll get the water muddy. Or

Re: [racket] comment colors in DrRacket

2011-06-21 Thread Todd O'Bryan
When my students print files on a black and white printer without turning off syntax coloring, the comments are really hard to read. Maybe a slate gray or something? You want comments to be easily readable and easily ignorable--that's a hard sweet spot to hit. Todd On Mon, Jun 20, 2011 at 11:20

[racket] Check for #undefined

2011-05-31 Thread Todd O'Bryan
I have a structure with a guard function. It works well. However, I want to use it in a (shared ...) construct, and when the guard runs, a value is #undefined. I'm fine with letting the guard accept #undefined as a legal value, but I can't figure out any way to test for it. Is there such a

Re: [racket] scheme programming

2011-05-21 Thread Todd O'Bryan
This looks shockingly like a homework problem that a teacher might have assigned. If you'd send us that teacher's email address, we can send the answer directly there. But seriously, people here are very careful not to do assignments for people. If you get stuck, they're more than willing to

Re: [racket] Code Error Creating List

2011-05-17 Thread Todd O'Bryan
I apologize in advance for not actually reading through your code beyond the point where it began using constructs that I'm not familiar with, but I will give some advice that may or may not be helpful. You're trying to return '(x). What you're actually returning is (x)--an application of the

[racket] sandbox upset about libcrypto access for comment box

2011-03-19 Thread Todd O'Bryan
In my on-again, off-again flirtations with the sandbox, I have hit an error that I don't think I've seen before. I created a sample student file with a comment box in it. When I try to load it into a sandbox evaluator, I get the error file-exists?: `exists' access denied for

Re: [racket] code to HTML

2011-03-18 Thread Todd O'Bryan
Søgaard Den 18/03/2011 kl. 20.42 skrev Robby Findler ro...@eecs.northwestern.edu: Isn't that some code you wrote?! Robby On Fri, Mar 18, 2011 at 2:28 PM, Jens Axel Søgaard jensa...@soegaard.net wrote: 2011/3/18 Todd O'Bryan toddobr...@gmail.com: Given that Scribble does it, I imagine

Re: [racket] code to HTML

2011-03-18 Thread Todd O'Bryan
? If not, I guess you could put together a script that stuck (racketblock ...) around everything or the module-enhanced variant, which makes it into a scribble file and then run scribble --html on that. Robby On Fri, Mar 18, 2011 at 1:22 PM, Todd O'Bryan toddobr...@gmail.com wrote: Given

Re: [racket] racket ppa for ubuntu

2011-02-19 Thread Todd O'Bryan
I don't think they do. I've created a compressed /usr/share directory that, if unpacked and merged with what's already there, should register a mime type for application-x-racket, create a menu item in Applications/Programming, and create icons for both .rkt files and DrRacket itself. Here's a

Re: [racket] Opening

2011-02-12 Thread Todd O'Bryan
And now I have unresolved tension... On Fri, Feb 11, 2011 at 1:20 AM, Paul Steckler st...@stecksoft.com wrote: In case you haven't seen it:  http://xkcd.com/859/ -- Paul _  For list-related administrative tasks:  

Re: [racket] Opening

2011-02-12 Thread Todd O'Bryan
Thank you. I feel better. :-) On Sat, Feb 12, 2011 at 8:13 AM, Robby Findler ro...@eecs.northwestern.edu wrote: ) On Sat, Feb 12, 2011 at 6:43 AM, Todd O'Bryan toddobr...@gmail.com wrote: And now I have unresolved tension... On Fri, Feb 11, 2011 at 1:20 AM, Paul Steckler st...@stecksoft.com

[racket] shared requires define-struct?

2011-02-08 Thread Todd O'Bryan
I think this is a bug... #lang racket (struct lyst (kar kdr) #:mutable #:transparent) (define-struct liist (kar kdr) #:mutable #:transparent) (shared ([a (lyst 7 a)]) a) (shared ([b (make-liist 7 b)]) b) produces (lyst 7 #undefined) #0=(liist 7 #0#) In other words, you have to

[racket] image-color?

2011-02-01 Thread Todd O'Bryan
It appears that image-color? from 2htdp/image returns true no matter what string you give it. Is there some other function that actually checks to see if a color is defined? Todd _ For list-related administrative tasks:

Re: [racket] Installing on Ubuntu, command not found

2011-01-26 Thread Todd O'Bryan
You might try installing it from the PPA that Jon Rafkind set up: Information page: https://launchpad.net/~plt/+archive/racket I saw something similar and the problem was that I was running 64-bit Ubuntu and the script installs 32-bit binaries, so I needed to install the 32-bit compatibility

[racket] macros make my head hurt--can someone help?

2011-01-26 Thread Todd O'Bryan
OK, I understand that the template language in (define-syntax ...) doesn't give you access to the full panoply of Racket-ness. But I really want to manipulate the template variables before passing them on to the next step in the expansion. I've tried (define-for-syntax ..) and a couple of other

Re: [racket] redefining primitives?

2011-01-18 Thread Todd O'Bryan
Thanks, all! It was figuring out how to rename things on the way out that I was having trouble with. :-) On Tue, Jan 18, 2011 at 11:06 AM, Noel Welsh noelwe...@gmail.com wrote: On Tue, Jan 18, 2011 at 3:57 PM, Todd O'Bryan toddobr...@gmail.com wrote: Is it possible to redefine primitives, like

Re: [racket] racket ppa for ubuntu

2011-01-16 Thread Todd O'Bryan
Thanks so much for doing this! I have ppa's for several other programs and they're so much more convenient than having to handle upgrades and installations manually. On Fri, Jan 14, 2011 at 5:15 PM, Jon Rafkind rafk...@cs.utah.edu wrote: There was a convenient button on the launchpad website

Re: [racket] How to keep comments when reading a file?

2011-01-11 Thread Todd O'Bryan
!), but there are no examples, and the things I've tried at random haven't been at all successful. Todd On Mon, Jan 10, 2011 at 8:51 PM, John Clements cleme...@brinckerhoff.org wrote: On Jan 10, 2011, at 10:51 AM, Todd O'Bryan wrote: Thanks for the pointer. I had hoped to avoid making two passes

Re: [racket] racket http server, major GC: -216 bytes collected

2011-01-11 Thread Todd O'Bryan
On Tue, Jan 11, 2011 at 5:28 AM, Noel Welsh noelwe...@gmail.com wrote: On Mon, Jan 10, 2011 at 9:53 PM, Greg Hendershott greghendersh...@gmail.com wrote: What does it mean for the GC to collect a negative number of bytes? I'm ducking this one... Clearly it means that the garbage collector

Re: [racket] How to keep comments when reading a file?

2011-01-10 Thread Todd O'Bryan
parsers (not necessarily for scribble). Hope this helps, Laurent P.S. : I know Lazy-doc is probably not really suited to document packages, especially for a Scheme community, but I was young... ;) On Sat, Jan 8, 2011 at 16:36, Todd O'Bryan toddobr...@gmail.com wrote: I'm trying to do

[racket] How to keep comments when reading a file?

2011-01-08 Thread Todd O'Bryan
I'm trying to do some analysis of my student's source files. Trying to grade 90 assignments per week by brute force with no TAs just doesn't work. I want to pull out things like data definitions, contracts, templates, etc., so I can auto-grade the ones that are what I expect them to be, and

Re: [racket] Can't resize DrRacket window in Ubuntu 10.10

2010-12-27 Thread Todd O'Bryan
on all edges in the usual way. At Sun, 26 Dec 2010 10:03:38 -0500, Todd O'Bryan wrote: Actually, I lied. It turns out that you can get a resize control in the bottom left corner of the window, but that's the only place I've found that works. On Sun, Dec 26, 2010 at 10:01 AM, Todd O'Bryan

[racket] Can't resize DrRacket window in Ubuntu 10.10

2010-12-26 Thread Todd O'Bryan
I just installed DrRacket on Ubuntu 10.10, both from the binary and compiled from source to be sure the problem existed in both, and I can't resize the window. The target area for the resize controls has always been very small (maybe a pixel or two), but I think it just went to non-existent. Todd

Re: [racket] Order of Operations - Getting the brackets.

2010-12-22 Thread Todd O'Bryan
Here's an algorithm for converting from normal math to Racket. Write your expression: people * ticket-price - (number-of-shows * 20 + people * ticket-price) Notice that I didn't put parentheses anywhere that order of operations didn't require them. Now, add exactly one pair of parentheses for

Re: [racket] Order of Operations - Getting the brackets.

2010-12-22 Thread Todd O'Bryan
in a row and are just there to make visual parsing easier.) Hope that helps, Todd On Wed, Dec 22, 2010 at 10:22 AM, Todd O'Bryan toddobr...@gmail.com wrote: Here's an algorithm for converting from normal math to Racket. Write your expression: people * ticket-price - (number-of-shows * 20

Re: [racket] regexp-match* that returns clusters?

2010-12-19 Thread Todd O'Bryan
On Sat, Dec 18, 2010 at 10:03 PM, Todd O'Bryan toddobr...@gmail.com wrote: Is there some equivalent of regexp-match* that returns a list of all the (non-overlapping) matches in a string. I want something like: (regexp-match*-clusters #px(?:^|\\s+)([A-Z]) This gets Initial CAPS, I hope) '((T T

[racket] regexp-match* that returns clusters?

2010-12-18 Thread Todd O'Bryan
Is there some equivalent of regexp-match* that returns a list of all the (non-overlapping) matches in a string. I want something like: (regexp-match*-clusters #px(?:^|\\s+)([A-Z]) This gets Initial CAPS, I hope) '((T T) ( I I) ( C C) ( I I)) Any luck? Thanks! Todd

[racket] Any way to force line breaks when printing s-exprs?

2010-12-11 Thread Todd O'Bryan
Is there some way, short of rewriting pretty-print myself, to signal where I want line-breaks when printing an s-expr? For example, suppose I have '(a b c d), and I'd like it displayed as: (a b c d) Is there a clever way to do that, or am I in for some work? Todd

Re: [racket] DrRacket languages definition

2010-11-03 Thread Todd O'Bryan
Note that #lang htdp/bsl is not quite the same as choosing the Beginning Student language from the menu. In particular, the #lang version (which is newer and toward which DrRacket seems to be moving, so that choosing languages and adding teachpacks will actually be in the code, rather than some

[racket] wxme-port - string error

2010-10-22 Thread Todd O'Bryan
I'm trying to read a student program (which might include images or not) as text, just so I can look at it. I tried this: #lang racket (require wxme) (define/contract (read-assignment-file path) (- (or/c string? path-string?) bytes?) (let* ([the-path (if (path-string? path)

Re: [racket] wxme-port - string error

2010-10-22 Thread Todd O'Bryan
I should mention, this is using the latest nightly build and I got the error when I did (read-assignment-file /path/to/valid/racket/file.rkt) Todd On Fri, Oct 22, 2010 at 10:57 AM, Todd O'Bryan toddobr...@gmail.com wrote: I'm trying to read a student program (which might include images

[racket] testing student programs

2010-10-16 Thread Todd O'Bryan
I know this has come up on the list before, and I've reread those threads but am little confused. Here's a sample student program file: -- ; volume-of-solid: number number number - number ; given the length,

Re: [racket] [plt-edu] SIGCSE AWARDS

2010-10-05 Thread Todd O'Bryan
Now I have to figure out how to get to Dallas to hear Matthias's address... On Tue, Oct 5, 2010 at 6:57 PM, geb a ge...@yahoo.com wrote: Congratulations!  It is well deserved. Dan --- On Tue, 10/5/10, Marco Morazan moraz...@gmail.com wrote: From: Marco Morazan moraz...@gmail.com Subject:

Re: [racket] mp3 or ogg play in scheme?

2010-10-03 Thread Todd O'Bryan
I think sound is still something that we don't have a good solution for, yet. (Any college students on the list who need a little independent study project to work on? I think there are free sound libraries that work on Mac/Windows/Linux, but how to wire them up is a little problematic, at least

Re: [racket] keyboard input from user

2010-10-03 Thread Todd O'Bryan
universe uses strings instead of symbols, now. Try (key=? x up), etc. Also, you'll need to be in Advanced language for print (or whatever print is in Advanced Language), I think. Todd On Sun, Oct 3, 2010 at 9:26 PM, Shriram Krishnamurthi s...@cs.brown.edu wrote: Are you using big-bang?

Re: [racket] P4P

2010-09-19 Thread Todd O'Bryan
On Sun, Sep 19, 2010 at 8:57 PM, Shriram Krishnamurthi s...@cs.brown.edu wrote: In replying to the below, I'm not ignoring the rest of your message. By, the way, why'd you decide on numeq instead of number=?. I don't think there's a good verbal choice here (though numeq is especially

Re: [racket] users Digest, Vol 61, Issue 13

2010-09-04 Thread Todd O'Bryan
The Jaunty version does work. I've created a script that downloads and installs the Ubuntu version in the /opt directory, in a folder called /opt/plt-version# with a symbolic link at /opt/plt. It also installs a desktop file so that DrRacket appears in the Applications menu, and adds a MIME type

Re: [racket] SIGSEGV MAPERR si_code 1 fault on addr 0x4

2010-09-03 Thread Todd O'Bryan
I run DrRacket on Ubuntu 10.04 with the build for Ubuntu Jaunty. If you're using 64-bit Ubuntu, you have to install the 32-bit support libraries since the binary is built for 32-bit, but that shouldn't have affected your compiled version. I have successfully run the most recent DrRacket on a

[racket] A (probably premature) concern about signatures

2010-08-29 Thread Todd O'Bryan
I was playing with the signatures that Matthias mentioned as being in the pipeline for future inclusion, and just wanted to start a discussion before they get locked in. In full Racket, there's a form called define/contract that works like this: #lang racket (define/contract (distance x1 y1 x2

Re: [racket] Using Racket

2010-08-17 Thread Todd O'Bryan
You downloaded the Windows installer to your Windows 7 machine and double-clicked it, I assume. What happened then? On Sun, Aug 15, 2010 at 12:26 PM, Michael Holford michaelholf...@gmail.com wrote: To whom it may concern, I am new to Racket.  Have done Basic and Visual Basic.  I downloaded

[racket] Functional mutators (was: syntax, differently)

2010-08-03 Thread Todd O'Bryan
looks like this:  (cond   [(mouse-in? 248 x 424 570 y 649) (set-world-background blah)] ... Matthew will be happy? On Aug 1, 2010, at 6:14 PM, Todd O'Bryan wrote: You'd create the new world and set field values using mutators. So if (x 248 x 424 y 570 y 649) {    SState

[racket] unhygienic macro on purpose?

2010-08-03 Thread Todd O'Bryan
I'm trying to write a macro to provide functional mutators for the teaching languages. Here's the main construct: (define-syntax (define-struct-with-setters stx) (syntax-case stx () [(_ id fields) (let ([field-names (syntax-list #'fields)]) #`(begin (define-struct id

Re: [racket] unhygienic macro on purpose?

2010-08-03 Thread Todd O'Bryan
the teaching language instead of breaking hygiene? Robby On Tue, Aug 3, 2010 at 7:02 AM, Todd O'Bryan toddobr...@gmail.com wrote: I'm trying to write a macro to provide functional mutators for the teaching languages. Here's the main construct: (define-syntax (define-struct-with-setters stx

Re: [racket] Functional mutators (was: syntax, differently)

2010-08-03 Thread Todd O'Bryan
On Tue, Aug 3, 2010 at 9:17 AM, Matthias Felleisen matth...@ccs.neu.edu wrote: You are entitled to as many peeves as you'd like. The neat thing is that Racket's identifier syntax is liberal and allows you to use dots. I have been doing so for years :-) and I didn't complain to the mailing

Re: [racket] problem in working out (contents card)

2010-08-03 Thread Todd O'Bryan
Two questions: 1. Is this homework? People occasionally get help with homework here, but if you try to get help without making clear that that's the situation, people have also been known to track down the teacher who gave the assignment and send him/her a copy of your message. 2. What are

[racket] Windows image bug (again, sorry)

2010-08-02 Thread Todd O'Bryan
So, Windows seems to be able to open files with modified bitmaps, but it's not happy about saving or pasting them. Try this: Insert an image. Crop it in the Interactions window. Try to copy and paste that image back up to the top. This is on the latest nightly build. What's worse, it tries to

Re: [racket] syntax, differently

2010-08-01 Thread Todd O'Bryan
in the student languages? Todd On Sun, Aug 1, 2010 at 5:11 PM, Richard Cobbe co...@ccs.neu.edu wrote: On Sun, Aug 01, 2010 at 03:11:43PM -0400, Todd O'Bryan wrote: There are a couple of things we could do to help with the underlying cause. I've been looking at OCaml recently, and the construct

Re: [racket] syntax, differently

2010-08-01 Thread Todd O'Bryan
You'd create the new world and set field values using mutators. So if (x 248 x 424 y 570 y 649) { SState newState = new SState(); newState.setBackground(blah); newState.setButton(blah2); ... } On Sun, Aug 1, 2010 at 5:22 PM, Richard Cleis rcl...@mac.com wrote: [snip] I

Re: [racket] syntax, differently

2010-08-01 Thread Todd O'Bryan
, and this program looks like this:  (cond   [(mouse-in? 248 x 424 570 y 649) (set-world-background blah)] ... Matthew will be happy? On Aug 1, 2010, at 6:14 PM, Todd O'Bryan wrote: You'd create the new world and set field values using mutators. So if (x 248 x 424 y 570 y 649

Re: [racket] syntax, differently

2010-08-01 Thread Todd O'Bryan
On Sun, Aug 1, 2010 at 7:45 PM, Marco Morazan moraz...@gmail.com wrote: I'd also like to push for earlier introduction of (local ...) in HtDP/2e. We all know that code duplication is a bad thing and that giving complex constructs names is one of the easiest forms of abstraction, but we can't

Re: [racket] syntax, differently

2010-08-01 Thread Todd O'Bryan
Right. But we don't let students do that! We don't even let them use . rest arguments for gosh sake! :-) Todd On Sun, Aug 1, 2010 at 10:46 PM, Matthias Felleisen matth...@ccs.neu.edu wrote: On Aug 1, 2010, at 8:05 PM, Todd O'Bryan wrote: In a language with typing and overloading, you could

Re: [racket] writing a define-world macro

2010-07-25 Thread Todd O'Bryan
Actually, this macro doesn't quite work, because it uses the #lang racket version of define-struct instead of the version appropriate to whichever language the student is in: Beginning SL, Intermediate SL, or Advanced SL. How would I fix that? Todd On Sun, Jul 25, 2010 at 4:16 PM, Todd O'Bryan

  1   2   >