Re: [racket] Initial environment

2015-02-28 Thread Jukka Tuominen
Just to clarify my previous message... Say, I want to include 2htdp/image and 2htdp/universe libraries so that once I start DrRacket, I can type "circle" in the interactions pane even before pressing the "run" button. The same libraries should be available directly for racket and gracket, as well

Re: [racket] xslt

2015-02-28 Thread Neil Van Dyke
Matthew Butterick wrote on 02/28/2015 11:19 PM: "Caught on with everyone else"? When I looked into SXML a couple years ago, it seemed like it was already somewhere between dying and dead. [1] No, SXML is alive and well. One paragraph... And I was speaking of when Scheme people went one wa

Re: [racket] xslt

2015-02-28 Thread Matthew Butterick
On Sat, Feb 28, 2015 at 4:45 PM, Neil Van Dyke wrote: > * X-expressions are in official Racket, perhaps because they were already > used for the old DrScheme documentation browser(?) before SXML caught on > with everyone else, so people looking now assume that X-expressions are the > way to go. >

[racket] xpath, txpath and accessors

2015-02-28 Thread Sanjeev K Sharma
on this page ~/.racket/6.1.1/pkgs/sxml/sxml/doc/sxml/sxpath.html I read this: "Like sxpath, but only accepts an XPath query in string form, using the standard XPath syntax. Deprecated; use sxpath instead." so I'd like to get the hang of sxpath but I'm somehow stuck on how to translate txpat

Re: [racket] xslt

2015-02-28 Thread Neil Van Dyke
Matthew Butterick wrote on 02/28/2015 06:49 PM: If the latter, then you may find that using native Racket data structures (esp. the X-expression) and native XML-friendly functions (like `match`) is more convenient. Either SXML or X-expressions are OK for most purposes. But, IMHO, SXML is som

Re: [racket] xslt

2015-02-28 Thread DJ
Thanks for the reply. I have a suite of xslt transforms already done, so it would be easiest to run them as is. That said, the xslt transforms are a small fraction of the total work that I have already done on the application in Common Lisp. It will of course be a substantial effort to conve

Re: [racket] xslt

2015-02-28 Thread Matthew Butterick
It's not clear whether you already have XSLT transforms that you want to use in Racket, or if you're mentioning XSLT just because it's a method of parsing & transforming XML. If the latter, then you may find that using native Racket data structures (esp. the X-expression) and native XML-friendly fu

[racket] Initial environment

2015-02-28 Thread Jukka Tuominen
If I want to ensure that certain libraries get automatically included (required) in the initial racket/gracket/drracket environments, where should I add them? I tried /racket/collects/init.rkt but that didn't seem to work. I didn't remove the .zo file though... br, jukka

Re: [racket] raco exe: unknown module

2015-02-28 Thread Alexander D. Knauth
I’m getting a similar error on Travis CI for my measures-with-dimensions package: https://travis-ci.org/AlexKnauth/measures-with-dimensions/jobs/52573161#L200 syntax-local-module-exports: unknown module module name: # compilation context...: /home/travis/build/AlexKnauth/measures-with-d

Re: [racket] racket-mode

2015-02-28 Thread Jay McCarthy
I don't like debugging with printf, although Medic does seem cool. I like to turn errors into test cases and then trace the execution of the program and turn one test case into more. This is a nice way to debug because it ensures the same error won't come up again. Jay On Sat, Feb 28, 2015 at 2:

Re: [racket] racket-mode

2015-02-28 Thread Sam Tobin-Hochstadt
Having spent a bunch of time writing Python over the last year (while building Pycket [1]), the debugger is the one thing I wish I had in Racket. This isn't because it interacts with C (I've not used any C extensions), but because it makes debugging much faster than when I have to use printf (my us

Re: [racket] racket-mode

2015-02-28 Thread Matthias Felleisen
I think we don't miss a conventional debugger in Racket (Emacs or Dr) because, unlike say Python, Racket is not a shallow layer over some unsafe amalgam of C and C++. Sure there is some of it left but our crashes don't leave core dumps because most of them are safe. I agree that on occasion it w

Re: [racket] xslt

2015-02-28 Thread Neil Van Dyke
DJ wrote on 02/28/2015 11:49 AM: I have spent a half hour searching for info on how to run xslt transforms in racket. All that I can find is a mention that sxml /used to have/ xslt but doesn't any more. I would prefer native racket rather than some kind of ffi solution if possible. I don't kn

Re: [racket] racket-mode

2015-02-28 Thread Konrad Hinsen
On 28/02/2015 16:33, Greg Hendershott wrote: Sure, I hardly ever want a debugger for Racket, in the way I used one heavily and religiously for C/C++ (to step through new code the first time instead of just hitting Run). After all we have the REPL, and functions. And TBH printfs usually suffice.

[racket] xslt

2015-02-28 Thread DJ
Ok - new to racket. I would like to use it because I know Common Lisp, but need something that provides good cross-platform gui capabilities. (I can't afford a commercial implementation of CL.) My software will harvest data from several web services that provide results in xml. I have spent

Re: [racket] Ping

2015-02-28 Thread meburke
Thank you folks. This is reassuring. And now, back to our regularly scheduled program Mike Quoting Leif Andersen : Hello, I've gotten one message from you in the past (requesting offline documentation in DrRacket), which got two replies. ~Leif Andersen On Fri, Feb 27, 2015 at 8:17 PM,

Re: [racket] racket-mode

2015-02-28 Thread Greg Hendershott
> Don't make me want to go back to programming Racket in Emacs :-) > But thanks for mapping Emacs back into the fold. -- Matthias The more I do with racket-mode, the deeper my appreciation for everything that DrRacket does. It's really quite amazing. Also the more I program in Emacs Lisp, the mo

Re: [racket] try-racket alternative

2015-02-28 Thread Greg Hendershott
Wow. I like the design. I like that the design is not similar to the circle in The Hudsucker Proxy: "You know. For kids!" Sidenote: Lately my Twitter feed says people like Phil Hagelberg (aka Technomancy) and John Carmack (makes some games?) are teaching their kids how to code using Rack

Re: [racket] DrRacket 6.1.1 stuck in a gc loop on Windows7x64

2015-02-28 Thread Matthew Flatt
Based on your description and the stack trace, I think this is probably a bug that I fixed in November (after the v6.1.1 release): https://github.com/plt/racket/commit/50a8863169 Thanks for the report! At Tue, 24 Feb 2015 23:06:22 -0500, Ben Lerner wrote: > I ran into an unfortunate situation

[racket] DrRacket 6.1.1 stuck in a gc loop on Windows7x64

2015-02-28 Thread Ben Lerner
I ran into an unfortunate situation last night with DrRacket, where I was editing a single scribble file, and DrRacket basically locked up in a gc loop (the recycle icon was flashing, syntax highlighting was glacially slow, and the entire UI was mostly frozen.) There were two threads which see

[racket] runiing racket 6.1.1 under valgrind

2015-02-28 Thread Sergey Pinaev
hi. i'm trying to run racket (v6.1.1.8) under valgrind. (valgrind --num-callers=24 --vex-iropt-register-updates=allregs-at-each-insn --tool=memcheck --trace-children=yes /var/tmp/racket/bin/racket) but racket segfaults when scheme_handle_stack_overflow calls scheme_longjmpup(&scheme_overflow_jmp-

[racket] ETAPS 2016 call for satellite events

2015-02-28 Thread Tarmo Uustalu
19th European Joint Conferences on Theory and Practice of Software ETAPS 2016 Eindhoven, The Netherlands, April 2-8, 2016 http://www.etaps.org/2016/ Call for Satellite Events -- ABOUT ETA

[racket] Smaller verbatim in pdf output?

2015-02-28 Thread Joe Gibbs Politz
Hi, I'm trying to do something that I think should be simple, and can't figure out a good way to do it. I want to get verbatim output (for code examples) in Scribbled PDF to be _smaller_ than the default. (nested #:style 'smaller ...) has no effect, and various other hacky things I've tried like