[racket] feedback on migrating to immutable pairs?

2010-06-12 Thread Neil Van Dyke
Two questions on the move to immutable pairs: 1. Does anyone have feedback on how that went? (The only problems I recall dealing with personally were pain for HtmlPrag, a minor change to the "csv" library, and a small headache supporting SICP.) 2. What was the rationale for not having "pair?

Re: [racket] feedback on migrating to immutable pairs?

2010-06-13 Thread Neil Van Dyke
Noel Welsh wrote at 06/13/2010 02:59 AM: Neither is a subtype of the other. So having "pair" be an abstract supertype was not considered a good idea? -- http://www.neilvandyke.org/ _ For list-related administrative tasks: http://lists.racket-la

[racket] iPhone (Was: [The Racket Blog] New comment on Racket.)

2010-06-18 Thread Neil Van Dyke
Apple has been brutal with iPhone developers, running the platform as a ruthless and fickle dictatorship. I believe that this is the general perception of iPhone developers. Even if one is willing to jump through Apple's hoops, and one accepts that, at any time and for any reason, Apple will

Re: [racket] iPhone (Was: [The Racket Blog] New comment on Racket.)

2010-06-18 Thread Neil Van Dyke
k that the ethics (collective, long-term) problem of supporting the iPhone iron-fisting is harder to resolve. Robby Findler wrote at 06/18/2010 10:33 AM: Why is this an ethical question and not an economic one? Robby On Friday, June 18, 2010, Neil Van Dyke wrote: Apple has been brutal w

Re: [racket] iPhone (Was: [The Racket Blog] New comment on Racket.)

2010-06-18 Thread Neil Van Dyke
o achieve this end (and I personally find their earlier PL-based restrictions to be very disappointing) I can't see how this could be considered an ethical issue. Robby On Friday, June 18, 2010, Neil Van Dyke wrote: I think it's both. I mentioned the ethical question because one coul

Re: [racket] iPhone

2010-06-18 Thread Neil Van Dyke
I think the only real confusion comes in when you look at the iPhone and think of it as a general-purpose computer The smartphone is a key ubiquitous computing device, and I believe that the app selection for iPhone/Android/etc. constitutes "general-purpose." I believe that keeping these pl

Re: [racket] Web Application Deployment

2010-06-22 Thread Neil Van Dyke
Racket comes with a CGI library. I recently ported a large legacy Racket (PLT Scheme) CGI-based application to SCGI using "http://www.neilvandyke.org/scgi-scheme/";. For new development, consider using the PLT Web Server instead of SCGI or old CGI. Nowadays, virtual servers like Amazon EC2 a

Re: [racket] Web Application Deployment

2010-06-23 Thread Neil Van Dyke
Jakub Piotr Cłapa wrote at 06/23/2010 02:35 PM: On 23.06.10 00:10, synx wrote: I looked over the FastCGI and SCGI protocols, and concluded that they weren't much more efficient than a protocol known as HTTP. Why not proxy your data to a webserver, using apache's proxy module? I recently looked

Re: [racket] View HTML source code in racket

2010-06-23 Thread Neil Van Dyke
(This message and Insik Cho's response didn't seem to make it to the list.) Neil Van Dyke wrote at 06/23/2010 03:06 PM: Insik Cho wrote at 06/23/2010 02:01 PM: I want to html source of an web page in racket. What module and functions shall I use? and How? Do you want Racket to

Re: [racket] tennis and programming, not completely off-topic

2010-06-24 Thread Neil Van Dyke
Barry Brown wrote at 06/24/2010 02:54 PM: My question is: why were there IBM programmers at the match? They might've been systems engineers. Or system operators. I would guess that standard operating procedure was that they be there, ostensibly to make sure the systems work for the big event

Re: [racket] segmentation fault while compiling mzscheme 4.2.5 on Xen environment

2010-06-25 Thread Neil Van Dyke
FWIW, it built and ran fine for me recently under (IIRC) CentOS 5.3 x86 32-bit under XenServer 5.5. BTW, this is not an endorsement of Xen, and I recommend KVM over Xen for most techie purposes. If you are able to switch to KVM, you might be able to do so with less effort than debugging this

Re: [racket] Loop in Racket

2010-06-27 Thread Neil Van Dyke
FWIW, I like to assert that the familiar "FOR A = 1 TO 10" is actually not often needed in idiomatic Scheme. More often, you're processing a sequence, or you're doing functional programming such that you need to recurse anyway to avoid mutation, or you need premature exits sometimes. One poss

[racket] current backtrace implications of JIT

2010-06-27 Thread Neil Van Dyke
What effect does the JIT currently have on debugging backtraces? Or, how can one get some or all of the benefit of the JIT, but still reliably get useful backtraces? I see that DrScheme now has an option for disabling some JIT optimizations. Should I just do whatever that checkbox is doing?

Re: [racket] current backtrace implications of JIT

2010-06-27 Thread Neil Van Dyke
Thanks, Matthew. Sounds like I should experiment with my application and try to break JIT backtraces with 4.2.5. Hopefully they just work for me (and in production), because the JIT would be a big win for us. Matthew Flatt wrote at 06/27/2010 11:23 PM: The difference between JIT and non-JIT

Re: [racket] current backtrace implications of JIT

2010-06-27 Thread Neil Van Dyke
I've been unable to break JIT backtraces in our large legacy application under PLT 4.2.5. This is great news, since the JIT should be a big win for us. Thanks, Matthew and the rest of PLT. Neil Van Dyke wrote at 06/27/2010 11:38 PM: Thanks, Matthew. Sounds like I should experiment wi

Re: [racket] Google doesn't know from DrRacket

2010-06-29 Thread Neil Van Dyke
Matthias Felleisen wrote at 06/29/2010 09:42 PM: Could we at least get drracket.org to do things for us? You might want the page there to say "DrRacket" on it, have a blurb (so it's not content-free), and have a prominent link to the "racket-lang.org" site. Someone who really wants to do th

Re: [racket] Eval on quasiquoted expression

2010-07-02 Thread Neil Van Dyke
Does setting the "current-namespace" parameter fix it for you? #lang scheme/base (define my-namespace (make-base-namespace)) (define (tree->proc tree symbol) (parameterize ((current-namespace my-namespace)) (eval `(lambda (,symbol) ,tree ((tree->proc '(+ x (* 3 (* x x))) 'x) 42) ;; ==

[racket] adding other objects to custodian

2010-07-03 Thread Neil Van Dyke
I want to be sure that a host OS subprocess created with "subprocess" is killed when thread of my program in which it was created terminates. Currently, I create a custodian for the thread and explicitly call "custodian-shutdown-all" at the end of the thread's lifetime (in a "dynamic-wind" cle

Re: [racket] adding other objects to custodian

2010-07-05 Thread Neil Van Dyke
Matthew Flatt wrote at 07/04/2010 11:43 AM: [...] With all that in mind, I don't think there's a good default behavior that tries to terminate a subprocess when a custodian is shut down. We could add a parameter that determines how `subprocess' interacts with the custodian: SIGINT, SIGKILL, o

Re: [racket] adding other objects to custodian

2010-07-05 Thread Neil Van Dyke
Jakub Piotr Cłapa wrote at 07/05/2010 07:26 PM: On 04.07.10 04:03, Neil Van Dyke wrote: I want to be sure that a host OS subprocess created with "subprocess" is killed when thread of my program in which it was created terminates. Currently, I create a custodian for the thread and

Re: [racket] Macro Problem

2010-07-08 Thread Neil Van Dyke
Eric Tanter wrote at 07/08/2010 06:59 PM: You need to circumvent hygiene to do what you're after; for this, you need to use syntax-case. Scheme, from which Racket has grown, very much wants macros to be hygienic. If you (Manu) are new to macros in Scheme, I'd encourage you to first find

Re: [racket] Compiling Racket on Maemo 5

2010-07-13 Thread Neil Van Dyke
Kevin Tew wrote at 07/13/2010 12:19 PM: the 3m variant still doesn't build do to more reliance on the ffi during xform. setup is also going to try to use the ffi. We have added additional dependencies on the ffi (foreign function interface) and need to decide if we are going to support build

Re: [racket] DrRacket custom color schemes?

2010-07-18 Thread Neil Van Dyke
> On Saturday, July 17, 2010, Byron Gibson > wrote: >> Hi all, is it possible to add custom syntax highlighting color schemes >> to DrRacket? For example, the popular zenburn theme? I played with this briefly last night. You can indeed implement something like zenburn

[racket] dumping or forking racket processes

2010-07-18 Thread Neil Van Dyke
Thinking about long-running servers... Has anyone looked into core-dumping a Racket process image so that it can be loaded as a new process quickly (a la Emacs)? Or looked into forking a pool of Racket processes (a la Apache) to use process isolation to be resilient in case of problems like me

Re: [racket] hash-ref

2010-07-18 Thread Neil Van Dyke
Jos Koot wrote at 07/18/2010 09:26 AM: (hash-ref a-hash a-key a-value) In the past a-value was required to be a procedure. Now it can be anything. [...] In short, I do not well understand the reason to relax the contract of hash-ref and hash-ref!. This behavior seems a little on the uncomfo

Re: [racket] Project Ideas

2010-07-20 Thread Neil Van Dyke
YC wrote at 07/20/2010 05:01 PM: > Parsers (exist in varying states) [...] > > * CSV > There is a CSV-parsing package, and if anyone needs a feature it doesn't have, I could probably find time to add that. http://www.neilvandyke.org/csv-scheme/

[racket] read of numbers with decimal point default to exact?

2010-07-22 Thread Neil Van Dyke
This is just a small idea, not something I'd argue for strongly... How about making numbers formatted with decimal points, like "12.34", read as exact rather than inexact? The rationale being: decimal point format is a commonplace and very useful format for writing exact rational numbers, and

Re: [racket] read of numbers with decimal point default to exact?

2010-07-23 Thread Neil Van Dyke
Robby Findler wrote at 07/23/2010 08:09 AM: The read-decimal-as-inexact parameter allows you to change read's behavior in this way. Is that what you're looking for? Yes (with the addition of a corresponding write parameter), but... * I was idly toying with the idea of that being the default.

Re: [racket] SXML->xexprs ?

2010-07-25 Thread Neil Van Dyke
Pedro Pinto wrote at 07/25/2010 11:04 AM: > I am using neil/htmlprag to generate sxml and lizorkin/sxml to manipulate it. I would like to mash together the resulting sxml with my own generated xexprs. Is there a recommended way to go about this? Ideally I would like to be able to use both xex

[racket] alarm from download.plt-scheme.org

2010-07-29 Thread Neil Van Dyke
I think that the few warnings on "http://download.plt-scheme.org/"; might alarm some people unnecessarily. Someone just saw that page and was concerned that we might be using in production something that is no longer maintained/supported. Which is considered very bad in some circles. I expl

Re: [racket] more liberal CSV parsing?

2010-07-31 Thread Neil Van Dyke
Shriram Krishnamurthi wrote at 07/30/2010 09:53 PM: wmic process get commandline /format:csv on Windows 7. You get lines like ROUBAIX,"C:\Program Files\Windows Sidebar\sidebar.exe" /autoRun,2940 ROUBAIX,"C:\Users\sk\Local Settings\Apps\F.lux\flux.exe" /noshow,3048 In this particular cas

Re: [racket] syntax, differently

2010-07-31 Thread Neil Van Dyke
Robby Findler wrote at 07/31/2010 11:19 AM: On Sat, Jul 31, 2010 at 10:00 AM, Matthias Felleisen wrote: 1. Could drracket limit the width of programs in the teaching language world to 80 columns? This one seems doable (I'd probably make the text turn red when it passes the 80th colu

Re: [racket] syntax, differently

2010-08-01 Thread Neil Van Dyke
Richard Cleis wrote at 08/01/2010 09:43 PM: Perhaps this is related to some of what you are saying: For years I put double spaces after every initial element that had more purpose than a basic function (define, cond, let, etc.) I wish I had time to make a formatter do that, because I still like

Re: [racket] bad syntax; literal data is not allowed, because no #%datum syntax transformer is bound

2011-08-30 Thread Neil Van Dyke
Thanks, Carl and Robby. I need to set up the lexical context to be that of the macro, while preserving the source position info. I will look into the pointers you gave me for how to do that. -- http://www.neilvandyke.org/ _ For list-related adm

Re: [racket] Racketizing Chrome

2011-08-30 Thread Neil Van Dyke
Ray Racine wrote at 08/30/2011 08:30 PM: Chrome has solidified their native app capability. Downside, only support is native apps in C or C++. Racket scheme is embeddable in a C program, hence, If they will let this embedded native app exec another process, or talk through a Unix domain soc

Re: [racket] bad syntax; literal data is not allowed, because no #%datum syntax transformer is bound

2011-08-31 Thread Neil Van Dyke
Matthew Flatt wrote at 08/30/2011 07:13 PM: At Tue, 30 Aug 2011 19:03:24 -0400, Neil Van Dyke wrote: Thanks, Carl and Robby. I need to set up the lexical context to be that of the macro, while preserving the source position info. I will look into the pointers you gave me for how to do

Re: [racket] Neophyte Alert

2011-08-31 Thread Neil Van Dyke
Josh Tilles wrote at 08/31/2011 01:03 PM: Dear Racketeers, I'm (comparatively) young, and so also not familiar with the social protocols of IRC & newsgroups in the world of software development. Just ask questions. That's what everyone does, as you'll see from skimming the email list archive

Re: [racket] Racket Badges

2011-08-31 Thread Neil Van Dyke
Danny Yoo wrote at 09/01/2011 12:20 AM: I wish you could earn Racket badges and levels for completing exercises, getting +1'ed on the mailing list, and contributing code and documentation. +1. Stack Overflow does this sort of achievement system. It feels very much like a game. When so

Re: [racket] Splicing format string?

2011-09-01 Thread Neil Van Dyke
J. Ian Johnson wrote at 09/01/2011 09:43 AM: I have a list of symbols '(a b c) that I want to be printed "a b c" as part of string I'm formatting. If you don't mind parentheses, you can do: (format "~s" syms) I think that "format" has conspicuously avoided getting like C "printf" or the supe

Re: [racket] which version of DrRacket to download

2011-09-02 Thread Neil Van Dyke
Stephen Bloch wrote at 09/02/2011 09:14 AM: Linux panther.adelphi.edu 2.6.9-89.0.23.ELsmp #1 SMP Fri Mar 5 17:56:21 EST 2010 i686 i686 i386 GNU/Linux cat /etc/redhat-release says Red Hat Enterprise Linux AS release 4 (Nahant Update 8) I think that's a pretty old version of RHEL. I haven't

Re: [racket] Locating substring with reserved characters

2011-09-03 Thread Neil Van Dyke
Jukka Tuominen wrote at 09/03/2011 03:56 AM: I'm trying to locate a substring that I want to be treated just as a string rather than regexpr notation. I think you want "regexp-quote". (regexp (regexp-quote "5 (+ 1 2 3)")) ;;==> #rx"5 \\(\\+ 1 2 3\\)" -- http://www.neilvandyke.org/ ___

Re: [racket] Scribble: escaping the semicolon

2011-09-04 Thread Neil Van Dyke
Mark Carter wrote at 09/04/2011 05:32 AM: I'm documenting my module in a scribble file, and I have a @racket segement in which I would like to include a semicolon. How do I escape a semicolon? Does "scribble/comment-reader" do what you need? -- http://www.neilvandyke.org/ __

Re: [racket] Scribble: escaping the semicolon

2011-09-04 Thread Neil Van Dyke
Mark Carter wrote at 09/04/2011 08:27 AM: Does "scribble/comment-reader" do what you need? Unfortunately, I can't really say, as the Racket documentation on my machine seems to be broken at the moment :( All I'm trying to do is put in a literal semi-colon. I've tried ;; and @; , but that's

Re: [racket] Using the profiler effectively?

2011-09-04 Thread Neil Van Dyke
What I did was read the section of the docs for "profile/render-text" carefully, while looking back at a real-world example I was interested in. The example you gave, I think you cut off the juicy stuff. Look for nodes with large percentages in Total or Self columns, and then follow the incomi

[racket] Texinfo-like Racket Evaluation Results in Scribble

2011-09-05 Thread Neil Van Dyke
For typesetting nit-pickers like me... [This is a paste of a blog post. Here, I've replaced the Unicode double-arrow character with ASCII "=>". The whitespace in code examples might get garbled a little. If you want to see the Unicode character and whitespace properly, "http://www.neilvand

[racket] adding stuff to info.rkt and relying on it for the long haul

2011-09-06 Thread Neil Van Dyke
o be comfortable relying on "info.rkt". McFly might be used in many different authors' PlaneT packages, and if McFly breaks, all the packages that use it break. (doc Package #:name "soundex" #:subtitle "Soundex Index Keying in Racket" #:homepage &

Re: [racket] Rackunit and test-case

2011-09-07 Thread Neil Van Dyke
I had problems like this with Testeez as well, which is part of why the Overeasy "test" form permits at most 2 non-keyword arguments. -- http://www.neilvandyke.org/ _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/us

Re: [racket] hosts with racket (or PLT-Scheme) support

2011-09-07 Thread Neil Van Dyke
Amazon AWS has a new "free tier" for EC2 ("http://aws.amazon.com/free/";), which I think gives you enough resources to run a low-traffic Racket server, if that 613 MB is usually RAM, not swap. (Even if that includes the memory for the base Linux platform, that can be made pretty small, leaving

Re: [racket] Call racket with long code from racket

2011-09-08 Thread Neil Van Dyke
Niitsuma Hirotaka wrote at 09/08/2011 04:35 PM: I am trying to call racket with long code from racket --- #lang racket (require racket/system) (display (port->string (car (process "racket -e ' [long-code] ' " --- But long-code contain " and ' . Thus (process "ra

[racket] planet/scribble and versions

2011-09-08 Thread Neil Van Dyke
Are the macros for PLaneT package specs in "planet/scribble" correct? I haven't traced the code thoroughly, but if the output of "syntax-source-planet-package-symbol" will be used as-is for actual "require" during Scribble formatting... won't the ":MAJOR:MINOR" (not ":MAJOR:=MINOR") version le

Re: [racket] Documenting a financial model in Racket?

2011-09-09 Thread Neil Van Dyke
Grant Rettke wrote at 09/09/2011 11:23 AM: At work I've inherited a financial application whose model that is too complicated to be documented. [...] What approaches, techniques, or features of Racket do you think might be interesting? If you want to use Racket, and not the systems ana

Re: [racket] planet/scribble and versions

2011-09-09 Thread Neil Van Dyke
I should give more context about where I'm coming from. It seems that Scribble does a "require" of the module being documented. PLaneT's notion of backward-compatible is a big simplification, and is not foolproof. The author can make a mistake, or there can be a difference of understanding on

Re: [racket] Parsing a string into a quoted expr

2011-09-12 Thread Neil Van Dyke
Look up "eval" and "read" in the Racket documentation. There are some related procedures as well. You'll probably need to define a namespace for whatever eval procedure you use, although the documentation is unclear. You might want to use Racket's facilities for sandboxing too, depending on

[racket] Check Syntax no longer works for SICP?

2011-09-14 Thread Neil Van Dyke
The small tweaks to Racket for SICP ("http://www.neilvandyke.org/racket-sicp/";) stopped working with Check Syntax at some point. Any pointers to how to quickly get it working again? * If using "#lang planet neil/sicp", then the "Check Syntax" button no longer appears. * If using "SICP (PLa

Re: [racket] Variable naming conventions

2011-09-14 Thread Neil Van Dyke
Pronounce the "/" as "with", and it usually makes sense. Sometimes it's for a variation of a behavior, or composition of behaviors, sometimes it's just as shorthand for the word "with", and sometimes it's something else. You might use "/" a little less often, now that you have keyword argumen

[racket] macros that expand to "provide/contract"

2011-09-15 Thread Neil Van Dyke
If I have a syntax extension that expands to include "define" and/or "provide/contract" (at top level, possibly within a "begin"), will that break any Racket tools? The "myprogram.rkt" below works, but I don't know whether this will break some tool now or in the future. #lang racket/base ;;

Re: [racket] Dr. Racket for FPGA development

2011-09-16 Thread Neil Van Dyke
David Blubaugh wrote at 09/16/2011 12:36 PM: > Has Dr. Racket ever been utilized for FPGA development ??? That would be interesting. Maybe one could put a Racket VM in FPGA. Maybe also a possibility is to use layers of Racket syntax transformers over a lower layer that simply writes out a conv

Re: [racket] Dr. Racket for FPGA development

2011-09-16 Thread Neil Van Dyke
Jay McCarthy wrote at 09/17/2011 12:23 AM: I'm currently in the process of doing this for the 65816 processor. This is a 16-bit processor most popularly used in the Super Nintendo Entertainment System. Neat stuff, Jay. I was not aware of this. p.s. Why the 65816? It's really simple to und

Re: [racket] Dr. Racket for FPGA development

2011-09-17 Thread Neil Van Dyke
If someone wanted to implement a somewhat Racket-like language for FPGAs, PreScheme is worth looking at. http://mumble.net/~kelsey/papers/prescheme.ps.gz -- http://www.neilvandyke.org/ _ For list-related administrative tasks: http://lists.racket-

Re: [racket] Dr. Racket for FPGA development

2011-09-17 Thread Neil Van Dyke
Matthias Felleisen wrote at 09/17/2011 12:27 PM: What we really need is a #lang pre. Would modules done in "#lang pre" provide an intermediate representation, so that different target architecture backends could require the module and emit FPGA HDL, JVM bytecode, some assembler, etc.? If

Re: [racket] list->values

2011-09-17 Thread Neil Van Dyke
Jeremy Kun wrote at 09/17/2011 01:43 PM: Is there a function that converts a list into a values expression which contains every element of the list? I've run into a bit of trouble trying to implement something like it myself, and it's probably because I don't understand exactly how values is us

Re: [racket] Offtopic: Learning SML

2011-09-18 Thread Neil Van Dyke
This is prompted by Shriram's mentioning ML and coyly not mentioning PLAI? If you want to learn more about interpreting programming languages, why not start with PLAI, then go from there. -- http://www.neilvandyke.org/ _ For list-related adminis

Re: [racket] Quoted expressions in #lang racket

2011-09-18 Thread Neil Van Dyke
Racket Noob wrote at 09/18/2011 04:41 PM: Ok, maybe this is not something that's important in other programming languages, but it *is* important in lisps. As a lisp educator, how can you *not* to teach this fundamental fact about lisp? To me, speaking of real use of the language, it seems a lo

Re: [racket] Offtopic: Learning SML

2011-09-19 Thread Neil Van Dyke
Thanks for the excellent travel guide, Ray. I'd also encourage people to spend a summer backpacking in Europe, and to see someplace new once a year, but not to *always* be a tourist. If one is looking for a place to call home and to explore in-depth for a good while, and hopefully contribute,

Re: [racket] Racket style guide (was Re: Argument order conventions (was: Variable naming conventions))

2011-09-20 Thread Neil Van Dyke
Tom McNulty wrote at 09/20/2011 01:42 AM: What is the Racket convention for named constants? There is no convention in Racket that I know of. Pi can be "pi". Max. packet payload byte count can be "max-packet-payload-byte-count". I don't see constants very often. There are many things,

Re: [racket] Racket style guide (was Re: Argument order conventions (was: Variable naming conventions))

2011-09-22 Thread Neil Van Dyke
Matthias Felleisen wrote at 09/22/2011 12:14 PM: Personally, I'd love to see even more of a separation between the header (data + provide) and the implementation. Perhaps I read too much Modula 2 code, perhaps I liked units too much. Modula-2 made me a better software engineer using C around

Re: [racket] Racket style guide (was Re: Argument order conventions (was: Variable naming conventions))

2011-09-22 Thread Neil Van Dyke
Hendrik Boom wrote at 09/22/2011 08:16 PM: Software Engineering is the art of getting things done with large numbers of relatively stupid programmers -- because there aren't enough really good programmers. That certainly seems to be the predominant Java school of thought. :) I'm going to q

[racket] DrRacket WM_CLASS on X

2011-09-25 Thread Neil Van Dyke
For DrRacket running with the X Window System, would it be possible to set the windows' "WM_CLASS" to "DrRacket"? "xprop" says that there is no "WM_CLASS": [...] WM_CLASS(STRING) = "", "" WM_ICON_NAME(STRING) = "Untitled - DrRacket" [...] WM_NAME(STRING) = "Untitled - DrRacket" [...] Setting "

Re: [racket] DrRacket WM_CLASS on X

2011-09-26 Thread Neil Van Dyke
Matthew Flatt wrote at 09/26/2011 07:36 AM: Which version did you try? I think WM_CLASS is set as of commit 941dacd966913ebbeca1 (August 4) in the git repo. That was 5.1.3. Thanks, I look forward to the next release. -- http://www.neilvandyke.org/

Re: [racket] DrRacket WM_CLASS on X

2011-09-26 Thread Neil Van Dyke
Matthew Flatt wrote at 09/26/2011 07:36 AM: Which version did you try? I think WM_CLASS is set as of commit 941dacd966913ebbeca1 (August 4) in the git repo. Will the class be "Drracket", or will that change to "DrRacket" before the release? WM_CLASS(STRING) = "drracket", "Drracket" Welc

Re: [racket] DrRacket WM_CLASS on X

2011-09-26 Thread Neil Van Dyke
Matthew Flatt wrote at 09/26/2011 09:05 PM: I've changed it to "DrRacket" and set up the configuration plumbing for executables/launcher in general. Thanks. That was going to be my next wishlist item. :) -- http://www.neilvandyke.org/ _ For

Re: [racket] Issue with Geiser and Racket 5.1.3 on Windows

2011-09-27 Thread Neil Van Dyke
"neil/sicp" might well be at fault, due to bit-rot from the kludgey way in which it was written, combined with changes in Racket. Check Syntax also broke for "neil/sicp". However, perhaps the Geiser people can look at this first, since it looks like it could be a bug Geiser? "neil/sicp" is

Re: [racket] splicing internal define?

2011-09-28 Thread Neil Van Dyke
Sam Tobin-Hochstadt wrote at 09/28/2011 10:42 AM: (require racket/mpair racket/splicing) I guess the advantage of "let-splicing" here is that you can put the names by the definitions, rather than like the following more traditional way of doing this: #lang racket/base (require racket/

Re: [racket] splicing internal define?

2011-09-29 Thread Neil Van Dyke
Marijn wrote at 09/29/2011 03:36 AM: DrRacket (yesterday's git) wants to indent it like so: I suspect that someone will change this in DrRacket, but in the interim, you can add "splicing-let" to: Preferences -> Editing -> Indenting -> Lambda-like Keywords -- http://www.neilvandyke.org/

Re: [racket] case form implemented with a hash

2011-09-29 Thread Neil Van Dyke
At Thu, 29 Sep 2011 12:25:16 +0200, "Jos Koot" wrote: > In my case I have a case form which dispatches on a character, 86 different > ones. Therefore I can dispatch by means of a vector. However, almost every > character has its own clause and therefore dispatching on the index of the > cha

Re: [racket] case form implemented with a hash

2011-09-29 Thread Neil Van Dyke
Jos Koot wrote at 09/29/2011 03:13 PM: > I should add that my timing was on an overall program, not the binary-case alone. I am more interested in the performance of whole programs than in parts that may not significantly add to the time. I'm guessing that you're using Racket's profiler ("htt

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

2011-09-30 Thread Neil Van Dyke
Robby Findler wrote at 09/30/2011 01:05 PM: On Fri, Sep 30, 2011 at 12:01 PM, John Clements wrote: In my world, a change will fall into the "yes, racket is a rapidly changing language" bin; it's not unusual for much of my old code to be broken. I realize this is a meta question,

Re: [racket] Racket Apology

2011-09-30 Thread Neil Van Dyke
John Clements wrote at 09/30/2011 03:07 PM: That's *also* the reason that you'll almost never see Racket used in industry. It's a language that doesn't compromise its ideals, and is constantly innovating, and if you're a business that's looking for a stable language with a broad supply of prog

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

2011-09-30 Thread Neil Van Dyke
If someone wouldn't mind a recap... are the questions the following? 1. When to retire the old implementation (not necessarily the interface) of old library called "plot". 2. Whether to call the new library "plot" (rather than, say, "plot2" or "newimprovedsuperplot2000"). 3. Whether the new

Re: [racket] Starting Racket?

2011-10-01 Thread Neil Van Dyke
Remove the "/drracket" from the end of your "PATH" variable. -- http://www.neilvandyke.org/ _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

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

2011-10-01 Thread Neil Van Dyke
Neil Toronto wrote at 10/01/2011 12:15 PM: 2. Whether to call the new library "plot" (rather than, say, "plot2" or "newimprovedsuperplot2000"). Yep. That's part of the main question. [...] If the answer to #2 is "the new library is called 'plot'", then the answer to #4 is "you have to change

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

2011-10-01 Thread Neil Van Dyke
Neil Toronto wrote at 10/01/2011 01:50 PM: On 10/01/2011 10:44 AM, Neil Van Dyke wrote: 1. Call the new library "plot2", and make "plot" be a compatibility layer for "plot2". Add pointers in strategic locations of "plot" parts of documentation, saying te

Re: [racket] Gathering GC statistics for Racket programs

2011-10-01 Thread Neil Van Dyke
This is excellent, Sam. Is a PLaneT package imminent? -- http://www.neilvandyke.org/ _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

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

2011-10-02 Thread Neil Van Dyke
On Oct 2, 2011, at 12:07 AM, Neil Toronto wrote: A tad more seriously, if we had a death date for the old one, I could put it in the library name. You'd have to put (require plot/supported-until-2013-01-01) I really like this one a lot. -- Matthias So long as nobody thi

Re: [racket] Is there some Web services and XML libraries ?

2011-10-09 Thread Neil Van Dyke
I have done a lot of this for different kinds of Web services created by different organizations. Usually, they are not using a standard HTTP-based RPC mechanism, but just sending ad-hoc XML over HTTP. Usually, I do normal HTTP requests, and then use SXML tools like SSAX, SXPath, and sxml-mat

[racket] DrRacket-onna-stick for students? (Was: frustrated with error message)

2011-10-13 Thread Neil Van Dyke
Erwin Hildebrandt wrote at 10/13/2011 09:01 PM: we are using dr Scheme v4.2 (I know its an old version but the tech guys at my school take months to test every upgrade that we ask for) and we are running windows 7. Tangential question: How many instructors have students stuck with old version

Re: [racket] Turning car/cdr into multi-methods

2011-10-16 Thread Neil Van Dyke
Patrick Li wrote at 10/16/2011 09:15 PM: Does anyone have some tips for wrapping their heads around recursive things like this? e.g. writing multi-methods using normal functions, and then somehow turning everything into multi-methods? I think that might be a simple module (or Racket #lang) pro

Re: [racket] Turning car/cdr into multi-methods

2011-10-16 Thread Neil Van Dyke
Patrick Li wrote at 10/16/2011 11:41 PM: Racket is nice to get started with, but eventually I will need to move this onto a different system, so I cannot rely upon Racket's utilities. Even though they are very nice! If you will be moving this onto an old Scheme implementation instead of Racke

Re: [racket] Reliably disable/redirect console output

2011-10-17 Thread Neil Van Dyke
You might be better off tracking down the source of these, because: (1) They might be symptomatic of some bug, such as a port not being specified in a write statement, rather than benign. (2) Someday you might have a bug get useful diagnostic information to one of the ports, and you don't wan

Re: [racket] Saving and restoring many parameters

2011-10-18 Thread Neil Van Dyke
It wouldn't work well to have a "plot context" object, perhaps stored in "current-plot-context" parameter? -- http://www.neilvandyke.org/ _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

Re: [racket] Escaping things in templates?

2011-10-23 Thread Neil Van Dyke
As an aside, useful HTML templates don't have to be in HTML syntax; Racket programmers can do this: #lang racket/base (require (planet neil/html-template:1:0)) (define (write-fastest-in-the-west-page-html thing) (html-template (html (head (title "Fastest " (% thing) " in the West!")

Re: [racket] Serving multiple, read-only Racket versions?

2011-10-24 Thread Neil Van Dyke
Jukka Tuominen wrote at 10/24/2011 12:06 PM: I wonder if it's possible to place multiple, read-only Racket versions on a server and have users executing them directly without needing to install them individually? I think this is possible, but I'd like to know for sure that it won't cause any unex

Re: [racket] Codify

2011-10-27 Thread Neil Van Dyke
It wasn't clear to me from the video how someone programs the behavior of the games. I wonder whether that is currently slick visual programming, or it's pretty much traditional programming (albeit with text editor features like a pop-up color chooser). The Self morphs world, for example, did

[racket] possible simple ranking improvement to documentation search

2011-10-27 Thread Neil Van Dyke
In the documentation search ranking, would it be a low-hanging-fruit improvement to simply add bonus factors to the most popular manuals, like the Guide and Reference? This is simpler than my early suggestion of using #lang info in ranking. Combining this with marking up sections on topical ke

Re: [racket] Just how to get and print a web page

2011-10-29 Thread Neil Van Dyke
Sam Tobin-Hochstadt wrote at 10/29/2011 07:15 AM: #lang racket (require net/url) (define (get url) (get-impure-port (string->url url))) (port->lines (get "http://www.google.com";)) Also, if you want to process the HTML of that page, you might wish to get the HTML into an SXML/xexp format li

Re: [racket] set! racket behaviour

2011-10-31 Thread Neil Van Dyke
jkaczo...@aol.pl wrote at 10/31/2011 12:58 PM: Of course, I realize, that redefinition of the variables is not good (functional) programming style but sometimes it's necessary. Is there a possibility of such modifications without changing language? You might wish to use a parameter, like in th

Re: [racket] set! racket behaviour

2011-10-31 Thread Neil Van Dyke
Parameters are very useful. See: http://docs.racket-lang.org/reference/parameters.html Neil Van Dyke wrote at 10/31/2011 01:06 PM: jkaczo...@aol.pl wrote at 10/31/2011 12:58 PM: Of course, I realize, that redefinition of the variables is not good (functional) programming style but sometimes

Re: [racket] Google Challenge

2011-11-01 Thread Neil Van Dyke
Paulo J. Matos wrote at 11/01/2011 10:57 AM: Anyone working on a Racket starter package for the Ants Google Challenge? http://aichallenge.org/ Here's the documentation they point one to for writing your their starter pack: https://github.com/aichallenge/aichallenge/wiki/Ants-Starter-Pack-Gui

Re: [racket] plot: HOLY MOLEY!

2011-11-02 Thread Neil Van Dyke
A more plausible explanation is that you *dreamt* that you reached out to a plot in the DrRacket REPL, and were able to rotate it and see it from different angles. It's pretty typical of dreams to let you violate the realities of physical world, and if you wake just then, there is a moment of

Re: [racket] Racket on Netbook (Windows 7 Starter)?

2011-11-05 Thread Neil Van Dyke
Asa Packer wrote at 11/05/2011 02:07 PM: Is anybody using Racket on a netbook running Windows 7 Starter? Does it work OK? I'm trying to figure out how much I need to spend on a machine for my son to use Racket on... In case no one has firsthand experience, I can extrapolate based my machin

  1   2   3   4   5   6   7   8   9   10   >