Re: [racket] Redex: re-writing ...?

2012-10-11 Thread Robby Findler
I don't think that's currently possible. You might try adding it as an option in the lw->pict function (or something it calls). Beware, tho, that an ellipsis can have anything at all inside it, so some care will have to be taken to get it to look reasonable (I think it doesn't have to look great i

Re: [racket] Re-inventing dataflow languages

2012-10-11 Thread Gregory Cooper
On Thu, Oct 11, 2012 at 4:26 PM, John Clements wrote: > As part of the rsound package, I find myself reinventing data flow languages; > or, at least, the parts that I need. I've come to a design question that I > don't know how to answer, and I'm hoping that those with more experience can > mak

Re: [racket] keyboard cancel shortcut in mac dialogs: thanks!

2012-10-11 Thread Robby Findler
Not me! Robby On Thursday, October 11, 2012, John Clements wrote: > I was just using DrRacket, and without thinking, used cmd-period to cancel > a modal dialog… and it worked! I did a double-take, and then tried it out > in other places, too. Nice! > > I took a quick look through the recent comm

[racket] Re-inventing dataflow languages

2012-10-11 Thread John Clements
As part of the rsound package, I find myself reinventing data flow languages; or, at least, the parts that I need. I've come to a design question that I don't know how to answer, and I'm hoping that those with more experience can make suggestions. First: I'm re-inventing dataflow languages beca

[racket] Redex: re-writing ...?

2012-10-11 Thread Asumu Takikawa
Hi all, Is there any easy way to globally re-write the ellipsis pattern in Redex to some other representation of a sequence? (for typesetting) For example, re-writing (e ...) to the equivalent of \overline{e} I couldn't think of a way to do this with lw-rewriters since those always seem to dis

Re: [racket] wffi (a "literate" web service "FFI" using a markdown file with parameterized HTTP messages)

2012-10-11 Thread Eli Barzilay
Two days ago, Greg Hendershott wrote: > 2. A markdown -> API JSON format tool, to make quick work of other >web services. In the Racket context this should be almost trivial, since you don't need markdown -- just have text with @scribble things that have the json stuff as-is instead of parsing

[racket] keyboard cancel shortcut in mac dialogs: thanks!

2012-10-11 Thread John Clements
I was just using DrRacket, and without thinking, used cmd-period to cancel a modal dialog… and it worked! I did a double-take, and then tried it out in other places, too. Nice! I took a quick look through the recent commits, then realized that since my DrR hasn't been updated recently, this pro

[racket] Problem loading a bitmap% to use for a cursor%

2012-10-11 Thread Kieron Hardy
Hi all, I'm having trouble loading a 16x16 monochrome image such that it can be used as a cursor%. The documentation states that using load-file with a kind of 'bmp always loads as colour, but it would be nice to have a new kind (perhaps 'monochrome-bmp) that loads monochrome images to monochrome

Re: [racket] Considering taking the plunge

2012-10-11 Thread Greg Hendershott
Another consideration is that the db library doesn't support Microsoft SQL Server directly. It may work fine via ODBC (I don't know first-hand because I haven't used SQL Service since `db' was added to Racket). In a previous life I did use FreeTDS with Racket on Linux to talk to a SQL Server. A du

Re: [racket] polymorphic functions

2012-10-11 Thread Greg Hendershott
> I realized recently that one thing I miss in Racket are polymorphic core > functions (car, cdr, map, etc.). So I was wondering what it would take to > make them polymorphic. What is the best way to implement a polymorphic > function in Racket? Any ideas, suggestions and critics are mighty welcome

Re: [racket] Considering taking the plunge

2012-10-11 Thread Eli Barzilay
Four hours ago, Matthias Felleisen wrote: > > It is a perfectly normal idea. Racket comes with a DB library, and I > think you will be able to extract the data from your SQL db. As for > generating Excel spreadsheets, I don't know how often you will need > to do this. I had to take this step in th

Re: [racket] Considering taking the plunge

2012-10-11 Thread Greg Graham
Thanks to everyone for all of the encouragement and tips. I'll go for it and let you know how it goes. -Greg Racket Users list: http://lists.racket-lang.org/users

[racket] with-handlers very slow?

2012-10-11 Thread Tomás Coiro
This test isn't the best but it somehow shows, (define test (build-list 50 (lambda (x) (cons (+ 1 x) 0 (define (handlers-example lst) (display "Using \"with-handlers\" to handle possible errors") (newline) (time (for-each (lambda (x) (with-handlers

Re: [racket] Considering taking the plunge

2012-10-11 Thread Galler
Greg Graham writes: >>do you think this is a crazy idea or not? I won't call it crazy. Can I call it overengineered? I would write the following in T-SQL to achieve what you want: sp_configure 'Ad Hoc Distributed Queries', 1 reconfigure USE [your-database] GO insert into OPENROWSET('Micros

Re: [racket] Considering taking the plunge

2012-10-11 Thread Matthias Felleisen
On Oct 11, 2012, at 11:04 AM, Greg Graham wrote: > I am the one full-time technology person at a small college prep school. My > background before taking this job five years ago was 22 years of commercial > software development and a bachelor computer science degree. I have been > interested i

[racket] Considering taking the plunge

2012-10-11 Thread Greg Graham
I am the one full-time technology person at a small college prep school. My background before taking this job five years ago was 22 years of commercial software development and a bachelor computer science degree. I have been interested in Lisp since I first heard about it in college, but have ne

Re: [racket] polymorphic functions

2012-10-11 Thread Matthias Felleisen
What do you mean by polymorphic? parametric polymorphism: this is a type-level concept with no true material counterpart on the dynamic level. Since Racket is untyped, you can't ask for this. Naturally Typed Racket comes with first-class polymorphic functions. ad hoc polymorphism, aka generi

[racket] polymorphic functions

2012-10-11 Thread Răzvan Rotaru
Hi, I realized recently that one thing I miss in Racket are polymorphic core functions (car, cdr, map, etc.). So I was wondering what it would take to make them polymorphic. What is the best way to implement a polymorphic function in Racket? Any ideas, suggestions and critics are mighty welcome. T

Re: [racket] Com Service with ffi

2012-10-11 Thread heraklea
So far so good: (define _ULONG _ulong) (define _CATID _GUID) (define _REFCATID _GUID-pointer) (define-cstruct _CATEGORYINFO ( [catid _CATID] [lcid _LCID] [szDescription (_array _short 128)])) (define IID_ICustomList (strin