[racket-users] I'm back... and looking for CSP resources

2024-10-07 Thread Todd O'Bryan
o the Create Performance Task in Racket? The tricky bit will be the fact that students have to able to mutate variables (or at least understand mutating variables) and understand/use an iterative loop construct. Thought I would ask what others have done before I try to reinvent the wheel. Thanks!

[racket-users] Online courses/self-study

2016-05-17 Thread Todd O'Bryan
Hey all, Since leaving the classroom to work in industry (I'm currently part of the Music Metrics team at Amazon. There are some PLT alums on the team by way of Cal Poly-San Luis Obispo.), I've lost track of what's available in terms of online/self-study courses. I sing in a church choir and a ri

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 wrote: > Bullet 4 seems achievable: > > https://en.wikipedia.org/wiki/Wikipedia:Notability_(books) > > It's liste

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 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 think about wha

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 syste

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 wrote: > > ... 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 specifically for the "sl

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 2

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 at

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 kid

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 f

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 wrote: > I can't speak to ML vs. H

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

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 wrote: > 50 minutes ago, Joe Python wro

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 wrote: > I'm having trouble with

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

2012-11-08 Thread Todd O'Bryan
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

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

2012-11-08 Thread Todd O'Bryan
In the universe, if I use the record? option for big-bang, I get a bunch of png files, but no animated gif as suggested by the documentation. Am I doing something wrong or have I found a bug? Thanks, Todd Racket Users list: http://lists.racket-lang.org/users

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

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 wrote: > 2012/8/8 Matthias Felleisen : >> >> If it weren't against math conventions, I wouldn't mind seeing 1-i1 or >> 1

Re: [racket] weirdness with complex numbers

2012-08-06 Thread Todd O'Bryan
mag]. > -Ian > - Original Message - > From: "Todd O'Bryan" > To: "PLT-Scheme Mailing List" > 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 th

[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] 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 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 hope all of you

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 in

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

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 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 Asche wrote:

Re: [racket] Neils

2012-02-12 Thread Todd O'Bryan
Before this goes too far, I just want to let everyone know that I will never kneel to the Neils, nor go to the mat for the Matthews. Now if Shriram announced his candidacy for supreme dictator in the post-apocalyptic society... :-) Todd On Sun, Feb 12, 2012 at 2:49 AM, Erik Dominikus wrote: > R

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

2012-01-26 Thread Todd O'Bryan
ng than programming in Racket... > > > []'s > > Rodolfo Carvalho > > > > On Thu, Jan 26, 2012 at 21:41, Todd O'Bryan wrote: >> >> Yeah, I'm using the same one. I know it's worked before, so I suspect >> I'm missing a necessary li

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

2012-01-26 Thread Todd O'Bryan
hat could also be an issue. On Thu, Jan 26, 2012 at 6:29 PM, Paul Leger 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." >>

[racket] fonts missing with latest .deb from PPA

2012-01-26 Thread Todd O'Bryan
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 that will give me access to all kinds of pretty fonts, but I'm not sure what it might be. Anybody have a suggestion to try?

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 thin

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 wor

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 wrote: > On Mon, 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 Definition

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

2011-11-14 Thread Todd O'Bryan
gt; Why don't you evaluate 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 annoy

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

[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: http://lists.racket-lang.org/listinfo/

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 wrote: > A few minutes ago, Todd O'Bryan wrote: >> On Mon, Oct 17, 2011 at 9:46 PM, Eli Barzilay wrote: >> > There's also our own installers, which are very easy to set >> > up.  It's true that it

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

Re: [racket] Graphics Issues in Ubuntu 11.10

2011-10-17 Thread Todd O'Bryan
7;m not sure what it would be called. There is > a 'racket nightly' thing I think but I don't have a system set up to actually > build and upload a new .deb each night. > > Do you need this fix to be installed on a bunch of different computers (and > thus need the PPA to

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. I'

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

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 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 sure) that contain > >  (re

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,

Re: [racket] Where is "2htdp/web-io.rkt" ?

2011-09-18 Thread Todd O'Bryan
Whoops. Looks like it's not there. As Matthias notes, the Second Edition is a work in progress and that module either isn't finished or didn't make it into the latest build. You might try one of the nightly builds, as I think the latest edition of the book was a little behind the latest build of Dr

Re: [racket] I don't understand structural recursion.

2011-09-17 Thread Todd O'Bryan
Something else to think about is how you get from one answer to the next. For example, it looks like (distinct-trees 2) is just (distinct-trees 1) with a new tree added as both a left and right child. Ask yourself how (distinct-trees 3) is related to (distinct-trees 2), how (distinct-trees 4) is r

[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 tasks:

[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 list-rel

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 reall

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 wrote: > > On Jul 8, 2011 6:13 AM, "Stephen De Gabrielle" > wrote: >> >> >> http://computinged.wordpress

Re: [racket] conditional includes in a Scribble file

2011-06-29 Thread Todd O'Bryan
  (if (equal? (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-paramet

Re: [racket] conditional includes in a Scribble file

2011-06-29 Thread Todd O'Bryan
9:54 AM, Matthew Flatt wrote: > 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 ... ? &g

Re: [racket] conditional includes in a Scribble file

2011-06-29 Thread Todd O'Bryan
) > > At Wed, 29 Jun 2011 09: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 docum

[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")) (defin

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 electroc

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 #

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 #. I'm fine with letting the guard accept # as a legal value, but I can't figure out any way to test for it. Is there such a beast, or is # untouchab

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 offer

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 valu

[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 /usr/lib/racket/libcr

Re: [racket] code to HTML

2011-03-19 Thread Todd O'Bryan
code is currently only in the planet server sources, I believe. > > Robby > > On Sat, Mar 19, 2011 at 6:46 AM, Jens Axel Søgaard > wrote: >> 2011/3/18 Todd O'Bryan : >>> Anybody have any idea where I should look for that? >> >> In hindsight it might be be

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 wrote: &

Re: [racket] code to HTML

2011-03-18 Thread Todd O'Bryan
rd > > > Den 18/03/2011 kl. 20.42 skrev Robby Findler : > >> Isn't that some code you wrote?! >> >> Robby >> >> On Fri, Mar 18, 2011 at 2:28 PM, Jens Axel Søgaard >> wrote: >>> 2011/3/18 Todd O'Bryan : >>>> Given that

[racket] code to HTML

2011-03-18 Thread Todd O'Bryan
Given that Scribble does it, I imagine that there's a way to convert a .rkt file into something that would look similar in a web browser. Is there a (not-too-complicated) way to convert a file in WXME format into something I could inline in an HTML document so that it would look reasonable. Related

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 li

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 wrote: > ) > > On Sat, Feb 12, 2011 at 6:43 AM, Todd O'Bryan wrote: >> And now I have unresolved tension... >> >> On Fri, Feb 11, 2011 at 1:20 AM, Paul Steckler wrote: >>> I

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 wrote: > In case you haven't seen it: > >  http://xkcd.com/859/ > > -- Paul > _ >  For list-related administrative tasks: >  http://lists.racket-lang.org/listinfo/us

[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 #) #0=(liist 7 #0#) In other words, you have to use define-

[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: http://lists.racket-lang.

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

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 libr

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 wrote: > On Tue, Jan 18, 2011 at 3:57 PM, Todd O'Bryan wrote: >> Is it possible to redefine primitives, like +, and then prov

[racket] redefining primitives?

2011-01-18 Thread Todd O'Bryan
Is it possible to redefine primitives, like +, and then provide them to another module? If so, can you also undefine primitives? Like if I wanted to make a student language where + only accepted two arguments and the list function was unavailable, how could I do that? Todd ___

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 wrote: > There was a convenient button on the launchpad website (where the ppa > lives

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 wrote: > On Mon, Jan 10, 2011 at 9:53 PM, Greg Hendershott > 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 thought it could throw something out,

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

2011-01-11 Thread Todd O'Bryan
ere 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 wrote: > > On Jan 10, 2011, at 10:51 AM, Todd O'Bryan wrote: > >> Thanks for the pointer. I had hoped to avoid making two

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

2011-01-10 Thread Todd O'Bryan
t; It makes it easy to define moderately complex 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, Ja

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

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

2010-12-27 Thread Todd O'Bryan
t 5.0.2 window 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'

Re: [racket] Building racket from source

2010-12-27 Thread Todd O'Bryan
I made a list of which libs you need. Unfortunately, it was a long time ago, so I'm not going to point you to it, until I update it. (It still talks about DrScheme.) Here's the list of libs: gcc g++ libcairo2-dev libgl1-mesa-dev libglu1-mesa-dev libxaw7-dev libxext-dev libxft-dev libxmu-dev libxt

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

2010-12-26 Thread Todd O'Bryan
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 wrote: > I just installed DrRacket on Ubuntu 10.10, both from the binary a

[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
ntheses 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 wrote: > Here's an algorithm for converting from "normal math" to Racket. > > Write your expression: > > people * ticket-pr

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] regexp-match* that returns clusters?

2010-12-19 Thread Todd O'Bryan
Todd On Sat, Dec 18, 2010 at 10:03 PM, Todd O'Bryan 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])" "

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

[racket] Happy Thanksgiving!

2010-11-25 Thread Todd O'Bryan
Shouldn't this be the icon for the fourth Thursday in November? :-) http://www.cs.brown.edu/courses/cs173/2007/ Happy Thanksgiving to all the US subscribers! Happy very late Thanksgiving to the Canadian subscribers! Happy last week of November to everyone else. Todd _

[racket] How to create Linux AMD64 installer from source?

2010-11-23 Thread Todd O'Bryan
This is probably mostly addressed to Eli, but sent through the list for posterity's sake. I have a few 64-bit servers that I need to install Racket on when new versions come out. I've been using the i386 installer, but would like to avoid installing the 32-bit compatibility packages, if I can. Bu

Re: [racket] Generative recursion

2010-11-05 Thread Todd O'Bryan
There are really two ways of doing this problem. The way I'd probably use is to make a list of all the *possible* divisors and then use the filter function to pull out the actual divisors. The way you're probably thinking of requires a helper function for the recursion, because you need to keep tr

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 n

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 wrote: > I'm trying to read a student program (which might include images

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

[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, w

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 wrote: > Congratulations!  It is well deserved. > > Dan > > --- On Tue, 10/5/10, Marco Morazan wrote: > >> From: Marco Morazan >> Subject: Re: [plt-edu] SIGCSE AWARDS >> To: "Viera

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 wrote: > Are you using big-bang? > ___

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 in

Re: [racket] P4P

2010-09-19 Thread Todd O'Bryan
On Sun, Sep 19, 2010 at 8:57 PM, Shriram Krishnamurthi 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 ugly).  Yo

  1   2   >