[racket-dev] tool-names - drracket-tool-names ?

2011-02-04 Thread John Clements
It looks like the infotab/setup field named tool-names has been renamed drracket-tool-names. Is this correct? Should I make this change in all my PLaneT packages? John smime.p7s Description: S/MIME cryptographic signature _ For list-related

Re: [racket-dev] mac builds with 64-bit kernel

2011-02-08 Thread John Clements
On Feb 8, 2011, at 12:15 AM, Matthew Blakley wrote: I've been trying to duplicate the macintel builds from the meta/build system on mac 10.6 system with 64-bit kernel (uname -m = x86_64). So in a git plt tree... ../src/configure --enable-sdk=/Developer/SDKs/MacOSX10.4u.sdk make

[racket-dev] response/sxml ?

2011-02-08 Thread John Clements
I'm scrumbling through the web server source, and it looks to me like there's a response/xexpr but no response/sxml ... yet. Right? I'm guessing I could do a half-assed job of building it, but I want to make sure it doesn't already exist. John smime.p7s Description: S/MIME cryptographic

Re: [racket-dev] drafting the v5.1 release announcement

2011-02-09 Thread John Clements
On Feb 9, 2011, at 12:37 PM, Matthew Flatt wrote: Let's get the ball rolling on the release announcement. Here are draft bullets for the drawing and GUI libraries: I feel like we're missing the forest for the trees: there's a great big rewrite here, with many benefits. * PLT has completely

[racket-dev] tool transition leads to fragile middle-ground

2011-02-10 Thread John Clements
Updating tools from drscheme-drrracket involves two steps: 1) changing the tool to refer to drracket, and 2) changing the info.rkt file to refer to drracket-tools rather than tools. Unfortunately, if you do #2 before #1, you get a real head-scratcher of an error message: define-unit-binding:

[racket-dev] sxml package takeover/updates?

2011-02-15 Thread John Clements
Dimitry (cc:ed) seems to be unresponsive. Currently, the sxml package has a tiny little problem in its info.rkt file which results in a grotesquely inflated compile time; ryan reported this quite some time ago. Based on the license notices in some of the source files, it appears that this

[racket-dev] okay to add planet error check?

2011-02-15 Thread John Clements
Currently, raco planet does not signal an error on the removal of a nonexistent link: pcp070580pcs:~/sxml clements$ raco planet unlink frooty bogus.plt 3 4 pcp070580pcs:~/sxml clements$ Anyone mind if I change the code to signal an error in this case? John Clements smime.p7s Description: S

Re: [racket-dev] okay to add planet error check?

2011-02-15 Thread John Clements
On Feb 15, 2011, at 12:55 PM, Carl Eastlund wrote: I have a make unlink target in my Planet-development Makefile that removes all the development links I commonly use. I use it to start fresh, when some or all of the links are installed. I would rather keep the ability to use it regardless

[racket-dev] massive penalty for (except-in (planet ...) ...) require ?

2011-02-17 Thread John Clements
Running a particular file has been crushingly slow for me, and I finally traced it down (apparently) to the addition of an except-in wrapper around a planet require. Adding the wrapper changes a consistently sub-1-second compile-and run into a big thrashing memory-fest. Is there some kind of

Re: [racket-dev] massive penalty for (except-in (planet ...) ...) require ?

2011-02-17 Thread John Clements
as a separate #%require. So it seems plausible that except-in, rename-in, etc. might seriously impact compile time. Also, FWIW: this is a hard-link planet package, not a normally installed one. John Carl Eastlund On Thu, Feb 17, 2011 at 5:04 PM, John Clements cleme...@brinckerhoff.org

Re: [racket-dev] massive penalty for (except-in (planet ...) ...) require ?

2011-02-17 Thread John Clements
, especially since I have every reason to believe that sxml provides a *lot* more names. Thanks! John Carl Eastlund On Thu, Feb 17, 2011 at 5:18 PM, John Clements cleme...@brinckerhoff.org wrote: On Feb 17, 2011, at 2:12 PM, Carl Eastlund wrote: I don't know precisely what is going

Re: [racket-dev] overwrite

2011-02-27 Thread John Clements
adjusts the save times of recently-saved files? John Clements On 26 Feb 2011, at 5:23:56, Matthias Felleisen wrote: On Feb 26, 2011, at 12:12 PM, Robby Findler wrote: Are any of you, by any chance: - using a teaching language (via the language menu, not #lang 2htdp/bsl or similar

Re: [racket-dev] overwrite

2011-02-27 Thread John Clements
On Feb 27, 2011, at 11:42 AM, Robby Findler wrote: Yes, that's it. Also, put something into the after-save-file-method: diff --git a/collects/framework/private/editor.rkt b/collects/framework/private/editor.rkt index 0c8981b..cb5504a 100644 --- a/collects/framework/private/editor.rkt +++

[racket-dev] form:binding / request utilities

2011-03-04 Thread John Clements
I'm doing a web-server/insta example in class, and one of my students (Arlo White, cc:'ed) pointed out that the existing framework for extracting bindings seems to be missing a bunch of useful functions. In particular, he volunteered to implement a few of the functions from the Spring

[racket-dev] location of foldts?

2011-03-06 Thread John Clements
Currently, 'foldts' is provided by rackunit. Not surprisingly, the sxml stuff also provides foldts. I'd rather just have one copy--especially because 'except-in' requires seem to sometimes incur large performance penalties--but I'm not really sure where that right place is. Honestly, I don't

Re: [racket-dev] location of foldts?

2011-03-07 Thread John Clements
On Mar 7, 2011, at 12:24 PM, Noel Welsh wrote: Yes, something like that seems the right solution. N. Mind if I go ahead and do that? John On Mon, Mar 7, 2011 at 1:22 PM, Robby Findler ro...@eecs.northwestern.edu wrote: The rackunit foldts seems test-suite specific so perhaps it

Re: [racket-dev] overwrite

2011-03-08 Thread John Clements
On Fri, Mar 4, 2011 at 3:24 PM, Jakub Piotr Cłapa jpc...@zenburn.netwrote: On 27.02.11 23:33, Eli Barzilay wrote: Two hours ago, John Clements wrote: Add'l data point: I tried messing up the clock manually, by turning off NTP, but I was unable to duplicate the bug this way. NTP

[racket-dev] Wikipedia on macros... sigh

2011-03-10 Thread John Clements
Wikipedia's page on macros had really no history on it at all. I added some, including references to Kohlbecker and Clinger. If anyone wants to make it better (or correct the terrible guesses I made about FEXPRs), take a look at it:

Re: [racket-dev] Wikipedia on macros... sigh

2011-03-11 Thread John Clements
energy, though, I'd clean up the citation. John -Original Message- From: dev-boun...@racket-lang.org [mailto:dev-boun...@racket-lang.org] On Behalf Of John Clements Sent: 11 March 2011 08:24 To: Eli Barzilay Cc: PLT Developers Subject: [racket-dev] Wikipedia on macros... sigh

[racket-dev] randomly needing to re-run raco setup lazy?

2011-03-15 Thread John Clements
I find that frequently installing a planet package or recompiling some collection that contains a tool causes this startup message[*]: pcp070579pcs:/tmp clements$ link: reference (phase 0) to a variable in module /Users/clements/plt/collects/string-constants/string-constant.rkt that is

Re: [racket-dev] nice way to show a bitmap in a frame?

2011-03-19 Thread John Clements
On Mar 19, 2011, at 8:05 AM, Matthew Flatt wrote: You could use `message%' with the bitmap as its label: #lang racket/gui (define bitmap (read-bitmap /tmp/red-arrow.bmp)) (define f (new frame% [label Bitmap])) (new message% [parent f] [label bitmap]) (send f show #t) That's a lot

[racket-dev] change default binding of c:x; c:w to save definitions as... ?

2011-03-21 Thread John Clements
I've been bitten several times now by the mapping of c:x;c:w to save file as...; it looks to me like this isn't even available via menus any more[*], having been replaced by the (much more sensible) save definitions as... and save interactions as Moreover, AFAICT there's no default

Re: [racket-dev] change default binding of c:x; c:w to save definitions as... ?

2011-03-21 Thread John Clements
parameterize the keybindings by platform in a way that would make a platform-specific mapping straightforward. John Clements On Mar 21, 2011, at 12:10 PM, Robby Findler wrote: It looks like c:x;c:s is also doing the wrong thing by that measure. It feels a little bit strange to change

Re: [racket-dev] change default binding of c:x; c:w to save definitions as... ?

2011-03-21 Thread John Clements
On Mar 21, 2011, at 1:29 PM, Robby Findler wrote: We can do whatever is standard on whatever platform nowadays thanks to gr2. Well, that simplifies things; any objection to just adding shift-command-S for Save Definitions As... to the Mac platform? John smime.p7s Description: S/MIME

Re: [racket-dev] change default binding of c:x; c:w to save definitions as... ?

2011-03-22 Thread John Clements
other than the control key, so again, both sets of bindings work. John Clements smime.p7s Description: S/MIME cryptographic signature _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/dev

Re: [racket-dev] change default binding of c:x; c:w to save definitions as... ?

2011-03-22 Thread John Clements
On Mar 21, 2011, at 2:33 PM, Robby Findler wrote: Not from me. I just spent a few minutes fussing with my own private keymap, and I've hit a (minor?) roadblock. This code: (when (eq? (system-type) 'macosx) ;; first, let's try the one we think is there... (kb d:s:s Save

[racket-dev] handin-server web interface... non-functional? and docs don't appear?

2011-03-27 Thread John Clements
It looks to me like the handin server's web interface isn't currently working. I enabled the handin server with the https-server-port set to 7980, and got no response on that port. Perhaps the larger mystery here is why it is that I just can't find the documentation for the handin server...

[racket-dev] built-in syntax-parse syntax class for match patterns?

2011-03-31 Thread John Clements
If I want to use syntax-parse to define a syntactic form that expands into a use of 'match', is there a built-in syntax class that recognizes 'match' patterns? Unfortunately, searching for 'match' and 'pattern' in the syntax-parse docs isn't so helpful... :). John smime.p7s Description:

[racket-dev] Totally loving new warnings, how to make them more obvious in DrRacket?

2011-04-11 Thread John Clements
I've recently been running programs from the command-line with -W info, and I *totally love* the warnings I'm getting from the optimizer about arity errors etc. I know, I know, this is the same reason that you crank the optimization level up in gcc: to get errors about uninitialized variables.

[racket-dev] Top ICFP authors

2011-04-12 Thread John Clements
I recently saw microsoft's academic brag site, and I was pleased to see that Matthew is near the top of the list of most frequent ICFP publications. Look, it even has a picture of him... oh... uh... oops. http://academic.research.microsoft.com/Detail?entitytype=3searchtype=1id=28 ... wait...

Re: [racket-dev] Places -- on by default in v5.1.1.2. (git master)

2011-04-19 Thread John Clements
On Apr 19, 2011, at 8:27 AM, Kevin Tew wrote: The configure script has been changed to enable places by default. Note: places are NOT enabled by default for the upcoming V5.1.1 release. This means that parallel zo and doc builds will use places instead of processes. Should I expect to

Re: [racket-dev] Pre-Release Checklist for v5.1.1

2011-04-22 Thread John Clements
On Apr 20, 2011, at 8:41 PM, Ryan Culpepper wrote: * John Clements cleme...@brinckerhoff.org - Stepper Tests Done. Updates: - Stepper Updates: update HISTORY (updates should show v5.1.1 as the most current version; email me to pick the changes when they're done, or tell me

Re: [racket-dev] release blurb for 5.1.1

2011-04-26 Thread John Clements
On Apr 26, 2011, at 2:33 PM, Eli Barzilay wrote: More things: Casey: - Redex version of Jay's continuation mark transformation (3250ff84) - Other redex news? Vincent: - TR's numeric tower is now built from unions of non-overlapping base types. (d4c93cc1) Vincent/Sam: other

[racket-dev] An occasional newline in the PLaneT install Log?

2011-04-27 Thread John Clements
I'm paging through the PLaneT install log on my machine, and this would be simpler and easier to read and more friendly to various logging tools if different installs were on different lines. Would it be all right to add a newline before each new package entry? So, for instance, =

[racket-dev] thanks, drdr!

2011-04-28 Thread John Clements
DrDr is awesome. Many thanks. John smime.p7s Description: S/MIME cryptographic signature _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/dev

[racket-dev] racket vs. scheme vs. clojure (as it appears to others)

2011-04-29 Thread John Clements
that Racket isn't Scheme. – John Clements 20 hours ago I don't know if I'd like to turn to some fringe language. Also seems odd to me to call it a Scheme implementation if it's not meant to be Scheme at all. I really like standards and Scheme seems to suffer greatly in that area. I think I may

Re: [racket-dev] added function to srfi-19....

2011-05-03 Thread John Clements
On May 3, 2011, at 2:55 PM, Matthew Flatt wrote: I think it's a bad idea to extend the SRFI modules with new functions. Would it make sense to move functionality from SRFI-19 into `racket/date' and then add the new functions there (and maybe change the SRFI-19 implementation to re-export

[racket-dev] planet-version follies with old planet packages

2011-05-14 Thread John Clements
I've been having trouble with an older PLaneT package, and I've finally narrowed it down to a problem with the change in version-numberings. Specifically, I install Jens Soegaard's gzip.plt package (which installs all right), and then I can't use it. The problem turns out to be that planet

Re: [racket-dev] planet-version follies with old planet packages

2011-05-16 Thread John Clements
On May 15, 2011, at 6:24 AM, Robby Findler wrote: On Sun, May 15, 2011 at 7:50 AM, Matthew Flatt mfl...@cs.utah.edu wrote: At Sat, 14 May 2011 20:58:53 -0700, John Clements wrote: I've been having trouble with an older PLaneT package, and I've finally narrowed it down to a problem

Re: [racket-dev] planet-version follies with old planet packages

2011-05-16 Thread John Clements
On May 16, 2011, at 4:21 PM, Robby Findler wrote: It would be helpful if you supplied a little more information on how you're seeing the problem, at least. I guess there is a second package involved? No, it's entirely self-contained. One library, no references to other PLaneT packages.

Re: [racket-dev] Fancy application/automatic anonymous functions

2011-05-17 Thread John Clements
On May 17, 2011, at 12:14 PM, Sam Tobin-Hochstadt wrote: Scala has the nice feature that if you write something like this: lst.map(_ - 1) It automatically rewrites to a function like this: lst.map(x = x - 1) This makes writing some higher-order functions much easier. Of course, it's

Re: [racket-dev] Fancy application/automatic anonymous functions

2011-05-17 Thread John Clements
On May 17, 2011, at 12:21 PM, Robby Findler wrote: What is the rule for where the lambda goes? Looks to me like it goes at the outside. So the macro plows through the terms and when it gets to the bottom, it decides either to wrap the whole thing in a lambda or not. John Robby On

[racket-dev] docs not showing up on PLaneT for gzip.plt

2011-05-19 Thread John Clements
I just persuaded Jens Axel Soegaard to submit a new gzip library on my behalf; unfortunately, it shows up in PLaneT as having Docs: [none]: http://planet.racket-lang.org/display.ss?package=gzip.pltowner=soegaard ...despite this info.rkt file: #lang setup/infotab (define name gzip) (define

[racket-dev] breaking news nearly invisible

2011-05-24 Thread John Clements
I saw a commit go by that seemed to suggest that the racket-lang web page now included some kind of breaking news item regarding RacketCon. So I went to the web site but... nothing. ... Five minutes later I was looking at the browser window again, and... hey! There it is! My point? It's

[racket-dev] type-case + typed racket yet?

2011-05-25 Thread John Clements
missed? Apologies for a hastily written e-mail. John Clements smime.p7s Description: S/MIME cryptographic signature _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/dev

[racket-dev] goofy type hack (was: Re: type-case + typed racket yet?)

2011-05-25 Thread John Clements
On May 25, 2011, at 12:53 PM, Sam Tobin-Hochstadt wrote: On Wed, May 25, 2011 at 12:27 PM, John Clements cleme...@brinckerhoff.org wrote: Is there a best-practice model for type-case-like things in typed racket yet? Obvious choices: - tagged-list style, it's all a big cond but I have

Re: [racket-dev] Racket breaking and exiting

2011-06-01 Thread John Clements
with a REPL. That is, you set current-input-port to pull from the string a, then you drop into the REPL, which reads from stdin, producing the string a, which reads as a reference to the variable a. No? John Clements smime.p7s Description: S/MIME cryptographic signature

Re: [racket-dev] OSX problems

2011-06-02 Thread John Clements
On Jun 2, 2011, at 8:29 PM, Eli Barzilay wrote: Is there anyone awake now, with a current (git head) OSX build, and that sees the problem of not being able to choose *.rkt files in the open file dialog? More details, please. I'm on Welcome to DrRacket, version

Re: [racket-dev] more general typed/scheme bafflement...

2011-06-07 Thread John Clements
On Jun 7, 2011, at 4:26 PM, Carl Eastlund wrote: John, You had an easy time with + because it is monomorphic. You are having trouble applying one polymorphic function (map) to another (list or list2). Instantiate one or both functions explicitly, and Typed Racket won't get confused by

[racket-dev] RacketCon lodging

2011-06-26 Thread John Clements
Are there any group-ish plans for RacketCon lodging? A campsite, say... :) John smime.p7s Description: S/MIME cryptographic signature _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/dev

[racket-dev] Should BSL signal an error on (require ...) in an unsaved buffer?

2011-06-27 Thread John Clements
I'm fixing require in the stepper, and I want to make sure that the existing behavior is desirable before I try to simulate it. In particular, my experiments suggest that require in an unsaved buffer implicitly requires things from (current-directory). Is this the right behavior? It would seem

Re: [racket-dev] Should BSL signal an error on (require ...) in an unsaved buffer?

2011-06-27 Thread John Clements
, 2011, at 7:37 PM, John Clements wrote: I'm fixing require in the stepper, and I want to make sure that the existing behavior is desirable before I try to simulate it. In particular, my experiments suggest that require in an unsaved buffer implicitly requires things from (current

Re: [racket-dev] Should BSL signal an error on (require ...) in an unsaved buffer?

2011-06-27 Thread John Clements
On Jun 27, 2011, at 5:47 PM, Robby Findler wrote: On Tue, Jun 28, 2011 at 8:41 AM, John Clements cleme...@brinckerhoff.org wrote: On Jun 27, 2011, at 5:28 PM, Robby Findler wrote: On Tue, Jun 28, 2011 at 8:19 AM, John Clements cleme...@brinckerhoff.org wrote: On Jun 27, 2011, at 5:10

[racket-dev] okay to require rackunit in modules required at startup?

2011-06-28 Thread John Clements
In certain places, I know that we're trying to be careful to minimize 'require's that occur as part of DrRacket startup. Is 'rackunit' something we're trying to avoid? Specifically, I have old unit tests in collects/stepper/private/shared.rkt that I'd like to revive as rackunit tests. John

Re: [racket-dev] okay to require rackunit in modules required at startup?

2011-06-29 Thread John Clements
On Jun 28, 2011, at 11:19 PM, Robby Findler wrote: Yes, please do separate the stepper tests out into another file. Got it, done. John smime.p7s Description: S/MIME cryptographic signature _ For list-related administrative tasks:

Re: [racket-dev] varrefs in teaching languages are actually top-level?

2011-06-29 Thread John Clements
On Jun 29, 2011, at 11:53 AM, Stephen Chang wrote: I just observed something that gave me a bit of a start; it appears to me that bindings in the teaching languages are still parsed as top-level bindings, and not as module bindings. This is weird, because I'm pretty confident that the

[racket-dev] typo in message for 'begin0'? Or not?

2011-07-07 Thread John Clements
While patching up the stepper tests results for the Advanced language level, I noticed this strange error message: (begin0) = begin: expected at least one expression after begin0, but nothing's there Shouldn't that error message have begun with begin0, rather than begin? Or was that

[racket-dev] the stepper and changes to the expansion of letrec

2011-07-09 Thread John Clements
The expansion of letrec has changed substantially; for instance, a letrec such as (letrec ([a 3] [b (lambda () (b))] [c 4]) (+ a (b) c)) ... now expands into three nested forms. This is going to require some fairly interesting changes to the stepper. First, though, some questions: 1) are

Re: [racket-dev] foldl does a right fold?

2011-07-09 Thread John Clements
On Jul 9, 2011, at 5:38 PM, Clark Grubb wrote: This seems to be a bug. Here is the Racket behavior and Haskell behavior for comparison. I believe what you're actually observing here is a difference in the order in which arguments are presented to the given function. E.G., try cons. John

[racket-dev] slash-form + bug in PLaneT keybindings require?

2011-07-11 Thread John Clements
I tried to make some keybindings available using PLaneT today, and ran into two problems--I suspect that this mechanism is not frequently used. 1) I can't use the slash-form in this require. That is, I have to type (planet magic-paren.rkt (clements magic-paren.plt 1 0)) instead of (planet

Re: [racket-dev] slash-form + bug in PLaneT keybindings require?

2011-07-11 Thread John Clements
On Jul 11, 2011, at 11:32 AM, Robby Findler wrote: As to 3), yes. Where would I put it? It looks like this could be done as a tool, but it seems silly to have a new collection just for this. John Robby On Monday, July 11, 2011, John Clements cleme...@brinckerhoff.org wrote: I tried

[racket-dev] intro videos

2011-07-13 Thread John Clements
Frustrated by what I'm seeing on khanacademy.org, I've now recorded 8 *short* videos on getting started programming in DrRacket. http://www.youtube.com/playlist?list=PLD0EB7BC8D7CF739A It gets through about half of the first page of HtDP 2e. I'm trying to stress those things--interface

Re: [racket-dev] intro videos

2011-07-13 Thread John Clements
On Jul 13, 2011, at 5:22 PM, Ramakrishnan Muthukrishnan wrote: On Wed, Jul 13, 2011 at 9:46 PM, John Clements cleme...@brinckerhoff.org wrote: http://www.youtube.com/playlist?list=PLD0EB7BC8D7CF739A I just saw one video and liked it. Can you tell us how you are getting the emacs paredit

Re: [racket-dev] intro videos

2011-07-14 Thread John Clements
On Jul 13, 2011, at 11:04 PM, Guillaume Marceau wrote: On Thu, Jul 14, 2011 at 1:29 AM, John Clements cleme...@brinckerhoff.org wrote: As a result, I've now added a preference to DrRacket called enable automatic parentheses. On my machine, I get a pair when I press

Re: [racket-dev] intro videos

2011-07-15 Thread John Clements
On Jul 14, 2011, at 10:38 AM, Eli Barzilay wrote: 9 hours ago, John Clements wrote: No, that's an entirely reasonable question, with an answer that's in the process of changing. First thing: you can use ESC-(. That is: press and release ESC, type (. That works, but it's a big pain

Re: [racket-dev] Pre-Release Checklist for v5.1.2

2011-07-23 Thread John Clements
On Jul 19, 2011, at 5:16 PM, Ryan Culpepper wrote: Checklist items for the v5.1.2 release (using the v5.1.1.900 release candidate build) * John Clements cleme...@brinckerhoff.org - Stepper Tests I've just discovered a bug in the stepper (that was there in 5.1.1 as well). Let me see

[racket-dev] can we write these four lines of C in performant racket?

2011-07-23 Thread John Clements
This C code adds the content of one buffer to another one, with no checking. The corresponding racket code runs about 10x slower. Do you folks think that it should be possible to do better? (One salient fact: these are shorts--16-bit-ints--not 32-bit ints.) John void addOn(short *dst, int

Re: [racket-dev] can we write these four lines of C in performant racket?

2011-07-23 Thread John Clements
On Jul 23, 2011, at 2:46 PM, Robby Findler wrote: What is the data you're using to represent the shorts in Racket? #s16vectors. John Robby On Sat, Jul 23, 2011 at 1:42 PM, John Clements cleme...@brinckerhoff.org wrote: This C code adds the content of one buffer to another one

[racket-dev] mouse cursor changes cause frequent collections?

2011-07-25 Thread John Clements
I have the log showing right now, and I see that moving the mouse in a way that causes mouse cursor changes (for instance, back and forth between the definitions interactions windows) causes collections of about 32K on the order of every eight to ten mouse cursor changes, something like 2K of

Re: [racket-dev] Pre-Release Checklist for v5.1.2, Second Call

2011-07-27 Thread John Clements
On Jul 27, 2011, at 1:29 AM, Ryan Culpepper wrote: Checklist items for the v5.1.2 release (using the v5.1.1.900 release candidate build) Search for your name to find relevant items, reply when you finish an item (please indicate which item/s is/are done). Also, if you have any commits

[racket-dev] Better than roogle? (was: Re: Roogle?)

2011-08-05 Thread John Clements
... related idea I had about two years ago: don't search on types, search on inputs desired outputs. So: (? (list 3 4 5)) = (list 5 4 3) ... produces reverse. How does it get there? By simply trying them all. You could narrow the search by checking first for arity, and then perhaps by

[racket-dev] OS X 10.7 review/summary

2011-08-06 Thread John Clements
I don't know if you folks have already seen this, but for any of you considering or using OS X 10.7, the Ars Technica review appears to contain some fairly detailed developer information. I'm only on the second page, but table of contents entries such as Automatic Reference Counting vs.

Re: [racket-dev] OS X 10.7 review/summary

2011-08-06 Thread John Clements
go back' It also saves automatically when you forget. Good for kids, students, and old professors. Agreed; it'll probably take some work on our part, though (a.k.a.: work on Robby Matthew's part). John On Aug 6, 2011, at 6:29 AM, John Clements wrote: I don't know if you folks

[racket-dev] syntax-property guards? (was: Re: The Stepper strikes again)

2011-08-13 Thread John Clements
Adding dev to followups, hope that's okay with all three of you. On Aug 12, 2011, at 7:15 PM, Eli Barzilay wrote: A few seconds ago, Matthias Felleisen wrote: This sounds wrong. The only way there can be a dependency is via require. So how can it not be checkable, never mind copy or

Re: [racket-dev] syntax-property guards? (was: Re: The Stepper strikes again)

2011-08-13 Thread John Clements
On Aug 13, 2011, at 10:44 AM, John Clements wrote: Adding dev to followups, hope that's okay with all three of you. On Aug 12, 2011, at 7:15 PM, Eli Barzilay wrote: A few seconds ago, Matthias Felleisen wrote: This sounds wrong. The only way there can be a dependency is via require

Re: [racket-dev] syntax-property guards? (was: Re: The Stepper strikes again)

2011-08-13 Thread John Clements
On Aug 13, 2011, at 11:33 AM, Robby Findler wrote: FWIW, there is precedent for this kind of thing, namely the properties that get added to syntax objects to tell check syntax about bindings that aren't in the fully expanded program (and yeah, I know there is a pending question about this;

Re: [racket-dev] syntax-property guards? (was: Re: The Stepper strikes again)

2011-08-13 Thread John Clements
On Aug 13, 2011, at 1:34 PM, Carl Eastlund wrote: On Sat, Aug 13, 2011 at 1:26 PM, Matthias Felleisen matth...@ccs.neu.edu wrote: On Aug 13, 2011, at 12:58 PM, Sam Tobin-Hochstadt wrote: On Sat, Aug 13, 2011 at 12:51 PM, Eli Barzilay e...@barzilay.org wrote: 10 minutes ago, Sam

Re: [racket-dev] syntax-property guards? (was: Re: The Stepper strikes again)

2011-08-16 Thread John Clements
On Aug 16, 2011, at 5:10 PM, Eli Barzilay wrote: Three minutes ago, John Clements wrote: On Aug 16, 2011, at 4:41 PM, Eli Barzilay wrote: Earlier today, Stephen Chang wrote: It seems like most people agree that it's ok to add stepper syntax properties to lazy racket. I agree

[racket-dev] using 'sort' in typed/racket?

2011-08-20 Thread John Clements
I can't seem to make typed racket happy about using 'sort': #lang typed/racket ((ann sort ((Listof Integer) (Integer Integer - Boolean) - (Listof Integer))) '(3 5 4) (ann (Integer Integer - Boolean))) = Type Checker: Expected ((Listof Integer) (Integer Integer - Boolean) - (Listof

Re: [racket-dev] using 'sort' in typed/racket?

2011-08-20 Thread John Clements
On Aug 20, 2011, at 12:06 PM, Carl Eastlund wrote: Have you tried using inst instead of ann? Telling TR what to fill in for a and b will probably be more helpful to it. Yay! Many thanks. John smime.p7s Description: S/MIME cryptographic signature

Re: [racket-dev] JFYI: oops, seg fault

2011-08-20 Thread John Clements
On Aug 20, 2011, at 1:55 PM, John Clements wrote: I was editing a file, and this occurred. My reading of this suggests that this involves garbage collection inside of an FFI call, but perhaps *all* GC is inside an FFI call? Anyhow, there's no evidence to suggest that I can reproduce

Re: [racket-dev] syntax-property guards? (was: Re: The Stepper strikes again)

2011-08-21 Thread John Clements
On Aug 16, 2011, at 7:39 PM, Matthias Felleisen wrote: On Aug 16, 2011, at 5:42 PM, Sam Tobin-Hochstadt wrote: On Tue, Aug 16, 2011 at 5:31 PM, Matthias Felleisen matth...@ccs.neu.edu wrote: Eli is right in principle. I sense that we are facing the same kind of problems we faced when

[racket-dev] Accidentally discovered small undocumented function in FFI lib?

2011-08-31 Thread John Clements
I wanted to convert a cstruct to a list today, and couldn't find a way to do it, so defined my own my-cstruct-name-list function... only to discover that it was already defined for me! It seems to work as expected--should I add it to the documentation, in the list headed The resulting bindings

Re: [racket-dev] OT: ld static linking + linux version numbers - ??

2011-08-31 Thread John Clements
On Aug 31, 2011, at 5:06 PM, Jon Rafkind wrote: On 08/31/2011 05:53 PM, John Clements wrote: TOTALLY OFF-TOPIC, sorry: I have an autoconf script that's failing to detect a certain library, and I've tracked it down to a failure of ld -lasound foo.c ..which tells me that it can't find

Re: [racket-dev] OT: ld static linking + linux version numbers - ??

2011-08-31 Thread John Clements
On Aug 31, 2011, at 8:24 PM, Eli Barzilay wrote: Three hours ago, John Clements wrote: On Aug 31, 2011, at 5:06 PM, Jon Rafkind wrote: AFAIK to get the .so file you are supposed to install the development versions of the library. Ah! Okay, this makes sense. Uh, sort

Re: [racket-dev] online check syntax deadlock: can you help?

2011-09-01 Thread John Clements
no DrRacket menu bar, and no DrRacket icon in the cmd-tab list. 6) Go back to terminal window, use ctrl-\ to blow it away. Is that expected? It looks like the OS is preventing not-full-fledged-app-things from opening windows and handling input. This is OS 10.6,8. John Clements smime.p7s

Re: [racket-dev] online check syntax deadlock: can you help?

2011-09-01 Thread John Clements
On Sep 1, 2011, at 5:34 AM, Matthew Flatt wrote: At Wed, 31 Aug 2011 23:00:25 -0700, John Clements wrote: This doesn't work at all for me on the Mac, and highlights a problem that I've had at other times with racket GUI frames: none of the keyboard input goes to the window

Re: [racket-dev] online check syntax deadlock: can you help?

2011-09-02 Thread John Clements
On Sep 2, 2011, at 5:29 AM, Matthew Flatt wrote: At Thu, 1 Sep 2011 15:20:27 -0700, John Clements wrote: Note that the code ignores the result of `TransformProcessType', which is a bad idea. If you remove the `void' wrapper, what number result gets printed on your machine? Looks like

Re: [racket-dev] syntax property duplication

2011-09-06 Thread John Clements
On Aug 18, 2011, at 5:32 AM, Sam Tobin-Hochstadt wrote: Yes, I understand why this happens. As I see it, there are a few possibilities: 1. The expander should check for duplicates, in some fashion. 2. This idiom is problematic, in the case where `stx' is both the input and used for

Re: [racket-dev] syntax property duplication

2011-09-07 Thread John Clements
On Sep 6, 2011, at 8:12 PM, Sam Tobin-Hochstadt wrote: On Tue, Sep 6, 2011 at 8:05 PM, John Clements cleme...@brinckerhoff.org wrote: On Aug 18, 2011, at 5:32 AM, Sam Tobin-Hochstadt wrote: Yes, I understand why this happens. As I see it, there are a few possibilities: 1

Re: [racket-dev] syntax property duplication

2011-09-07 Thread John Clements
On Sep 7, 2011, at 10:40 AM, Carl Eastlund wrote: On Wed, Sep 7, 2011 at 1:37 PM, John Clements cleme...@brinckerhoff.org wrote: On Sep 6, 2011, at 8:12 PM, Sam Tobin-Hochstadt wrote: On Tue, Sep 6, 2011 at 8:05 PM, John Clements cleme...@brinckerhoff.org wrote: On Aug 18, 2011

[racket-dev] promising cal poly student seduced by math in Chicago

2011-09-08 Thread John Clements
Posting this on dev so he doesn't see it, though I suppose he might anyhow... Jeremy Kun is one of only two really really good students I've known at Cal Poly. He's now a math grad student at UIC (which he chose rather than go to work for Google), but apparently he's decided to use Racket as

[racket-dev] distributing native code

2011-09-09 Thread John Clements
As part of the PortAudio library, I want to be able to call this code: void bufferAdd(short *dst, short *src, int len) { int i; for (i = 0; ilen; i++) { dst[i] += src[i]; } } ... and I'm trying to figure out the most hassle-free way to distribute it, given that it may be installed on

[racket-dev] Fwd: [clipperz] Re: Marketing Ideas

2011-09-09 Thread John Clements
Yes, we hate facebook. But our facebook page has a GENUINELY EMBARRASSING number of likes (uh... 57?). Forwarded from an entirely unrelated list, could we consider putting those facebook/twitter/linkedin like buttons on the racket-lang.org page? Is this something we've already considered

Re: [racket-dev] Fwd: [clipperz] Re: Marketing Ideas

2011-09-09 Thread John Clements
On Sep 9, 2011, at 12:00 PM, Jon Rafkind wrote: Is there any correlation between number of likes and well.. anything? Everyone else is doing it. I know Matthias will go for that one. In the I read it on the internet category, this page

Re: [racket-dev] CPANTS

2011-09-09 Thread John Clements
On Sep 9, 2011, at 12:39 PM, Neil Van Dyke wrote: I'm not familiar with CPANTS, but automating real-world feedback something like that sounds useful. I think you should be conscientious about the tiny phoning back to the mothership with more info privacy problem, and how best to manage

[racket-dev] See, that's what I'm talking about

2011-09-09 Thread John Clements
Thanks, Jay! Uh... whoever you are? John Begin forwarded message: From: Facebook notification+mmgyw...@facebookmail.com Date: September 9, 2011 1:33:15 PM PDT To: John Clements aoeufaceb...@brinckerhoff.org Subject: Jay Kominek likes PLT Racket. Reply-To: Facebook notification+mmgyw

Re: [racket-dev] See, that's what I'm talking about

2011-09-10 Thread John Clements
On Sep 9, 2011, at 2:54 PM, Jay Kominek wrote: You're welcome? Well, I'm just glad to see that you were prompted by my message; given the timing, my other hypothesis was that Facebook was reading all of my e-mail. Not impossible, I suppose... John smime.p7s Description: S/MIME

[racket-dev] posting to semaphore from C causes seg fault

2011-09-14 Thread John Clements
I'm unable to pass a semaphore to C and post to it from there. In particular, it causes a seg fault. I'm testing the Scheme_Object * with SCHEME_SEMAP, so I'm pretty sure it's a semaphore. Also, I can see this happen in gdb, but the code is optimized, so it's hard to see exactly where it's

[racket-dev] unexpected SIGBUS!

2011-09-15 Thread John Clements
Well, I was just typing along, and got a bus error. Ignore this trace unless it looks interesting. Also, this is september 3rd, push e4da28e1c00027338eda58cc78885255b9285598, so it may be a fixed issue John Process: racket [2519] Path:/Users/clements/plt/bin/racket

<    1   2   3   4   >