Re: [racket] Racket v5.3.2

2013-01-31 Thread Joe Gilray
Thanks Eli, Ran all my code under 5.3.2 - looking good. I'm definitely interested in looking into the math lib. BTW, ever since 5.3.1 (I think), the debugger acts a little different, in the variables pane it only shows the beginning of lists. How can I see the entire list? If I require planet

Re: [racket] Student having trouble running DrRacket -- suggestions?

2013-01-31 Thread Sharon Tuttle
I have a happy ending to report: > Ahhh. and Success! > > I had an issue they other night opening mathematica 9 once I > downloaded it as well, so I started to believe it may have been my > laptop. I did some general cleaning yesterday and tried downloading > the 64 bit which again did not work.

[racket] Racket v5.3.2

2013-01-31 Thread Eli Barzilay
Racket version 5.3.2 is now available from http://racket-lang.org/ Core Libraries: * The new `math' library provides functions and data structures for working with numbers and collections of numbers. Functions include non-elementary (such as gamma, zeta, Lambert's W), number-theoretic (

Re: [racket] How to invoke a blocking foreign function without blocking whole racket?

2013-01-31 Thread Haiwei Zhou
Also cool! It's a good idea to parse errno.h into racket defines. It can be extracted to a standard library such as C define reader. The new package system https://plt-etc.byu.edu:9004/search can make package search. Cheers, Haiwei On 1 February 2013 11:01, Sam Phillips wrote: > On Wed, Jan 3

Re: [racket] How to invoke a blocking foreign function without blocking whole racket?

2013-01-31 Thread Sam Phillips
On Wed, Jan 30, 2013 at 6:16 AM, Laurent wrote: > On Wed, Jan 30, 2013 at 3:06 PM, Haiwei Zhou wrote: >> >> Cool! The open-fd-input-port is a great function. > > > Yes, indeed. Maybe something like this would be a useful addition to Racket. > Yet another inotify wrapper for Racket that I worked

Re: [racket] Finding files

2013-01-31 Thread David Vanderson
Very interesting - thanks for explaining! On 01/31/2013 03:07 PM, Danny Yoo wrote: On Thu, Jan 31, 2013 at 3:30 PM, David Vanderson wrote: (enter! "C:\\indexing\\serve.rkt") Does that work? It looks like you just need to escape the backslashes - they are the escape character for Racket strin

Re: [racket] Finding files

2013-01-31 Thread Matthew Flatt
At Thu, 31 Jan 2013 16:07:01 -0700, Danny Yoo wrote: > But if we're already in DrRacket, why use the enter! stuff to begin > with, when we've got the Run button? Right --- I'll change the margin note in "More" to clarify. Racket Users list: http://lists.racket-lang.org/us

Re: [racket] Finding files

2013-01-31 Thread Danny Yoo
On Thu, Jan 31, 2013 at 3:30 PM, David Vanderson wrote: > (enter! "C:\\indexing\\serve.rkt") > > Does that work? It looks like you just need to escape the backslashes - > they are the escape character for Racket strings. This won't work, unfortunately. enter! takes in "module paths", and accor

Re: [racket] Finding files

2013-01-31 Thread Danny Yoo
> There are images in the conversation as i make guesses but I will paste it > from DrRacket's > interactions window to here (serve.rkt is in a directory "C:\indexing" which > is in the PATH environment > variable): Ah, wonderful! This helps enormously. Ok, so I see that you're on Windows, and

Re: [racket] scribbling newbie questions

2013-01-31 Thread Matthias Felleisen
We should be able to click the button for you (in some cases) and show the HTML continously (in a separate window). On Jan 31, 2013, at 5:15 PM, Jos Koot wrote: > > Thanks Matthew and Danny. > > Now my three questions have been answered with clear examples and enough > info to find the appr

Re: [racket] Finding files

2013-01-31 Thread David Vanderson
(enter! "C:\\indexing\\serve.rkt") Does that work? It looks like you just need to escape the backslashes - they are the escape character for Racket strings. Dave On 01/31/2013 02:01 PM, John Sampson wrote: > (enter! "C:\indexing\serve.rkt") . read: unknown escape sequence \i in string _

Re: [racket] scribbling newbie questions

2013-01-31 Thread Jos Koot
Thanks Matthew and Danny. Now my three questions have been answered with clear examples and enough info to find the appropriate docs of Scribble. Matthew, I enjoyed your talk very much. As I always have used MsWord for docs, I was accustomed immediately to see what I get and to make macros in t

[racket] Finding files

2013-01-31 Thread John Sampson
On 31/01/2013 21:38, Danny Yoo wrote: [First question ignored for the moment: the second question seems much more relevant to the problem you're encountering.] Also, I am looking at the document 'Systems Programming with Racket'. It has instructions for making a file "serve.rkt", which I have

Re: [racket] [Racket] Finding files

2013-01-31 Thread Danny Yoo
[First question ignored for the moment: the second question seems much more relevant to the problem you're encountering.] > Also, I am looking at the document 'Systems Programming with Racket'. It has > instructions for making a file "serve.rkt", which I have done, but Racket > cannot > find it,

[racket] [Racket] Finding files

2013-01-31 Thread John Sampson
Can Racket be made to detect the PATH environment variable in Windows 7? If not, is there a way of emulating it so that one does not have to write out the complete path of any file mentioned in Racket code? This includes data files the program might be writing to or reading from. Also, I am loo

Re: [racket] scribbling newbie questions

2013-01-31 Thread Matthew Flatt
At Thu, 31 Jan 2013 18:40:06 +0100, "Jos Koot" wrote: > Q1 > @racket[(string-length ((fmt "I") #e1e10))] > is expanded to > (string-length ((fmt "I") 1000000)) > with 10 zeros. How can I make scribble render #e1e10 as #e1e10? You could use `code' instead of `racket': @code{(

Re: [racket] scribbling newbie questions

2013-01-31 Thread Jos Koot
Thanks very much. I'll try your suggestions. Your pointer provides a lot of useful information. Jos -Original Message- From: danny@gmail.com [mailto:danny@gmail.com] On Behalf Of Danny Yoo Sent: jueves, 31 de enero de 2013 20:36 To: Jos Koot Cc: users@racket-lang.org Subject: Re: [

Re: [racket] scribbling newbie questions

2013-01-31 Thread Danny Yoo
> Q2 > I use verbatim to escape interpretation, but this function always produces a > separate line. Is there something like verbatim that I can use within a > paragraph? For example to include character @ and unbalanced parentheses and > brackets in plain text. Here's an example of how to escape

[racket] scribbling newbie questions

2013-01-31 Thread Jos Koot
Inspired by http://www.infoq.com/presentations/Racket and now that DrRacket shows the 'Scribble HTML' button, I do my first serious attempt to scribble. With this button I can easily see what I get. I use it very frequently. Marvelous! I use scribble/man

Re: [racket] Beginners request for code review.

2013-01-31 Thread Matthias Felleisen
A couple of detailed, somewhat random thoughts: -- preliminary style guide: http://www.ccs.neu.edu/home/matthias/Style/style/ -- equip modules and functions with purpose statements -- consider using (module+ test ...) -- use define-inline, try the optimization coach -- you might wis

[racket] Fwd: Beginners request for code review.

2013-01-31 Thread Laurent
(Piotr, sorry for the duplicate post, I meant to send it to the mailing list) Not being myself a particularly good programmer, take the following with a grain of salt. I agree with the others that this is some good piece of code. It's very readable code: good variable names, similar s-expr are wel

Re: [racket] Beginners request for code review.

2013-01-31 Thread Piotr Klibert
I tried this a bit (this is why all the constants in bezier-math are floats) but I didn't notice any improvement. May be that I was using flonums inconsistently, I'll try once again. Best regards, Piotr Klibert 2013/1/31 Jens Axel Søgaard : > 2013/1/31 Carl Eastlund : >> Piotr, >> >> This isn't g

Re: [racket] Beginners request for code review.

2013-01-31 Thread David Van Horn
On 1/31/13 5:40 AM, Piotr Klibert wrote: I have a problem with your suggestion, namely: 2) If you make this a github repository, then you could publish it as a 'raco pkg' package and everyone could try it out. Looks like fun! I use bzr and launchpad for personal things and github for work rel

Re: [racket] Beginners request for code review.

2013-01-31 Thread Jens Axel Søgaard
2013/1/31 Carl Eastlund : > Piotr, > > This isn't good Racket code, it's *gorgeous*. That was my impression at > first glance, and the more I look, the more I like it. Your Bezier library > absolutely does not read like the code of a novice Racketeer. Few enough > people regularly use a combinat

Re: [racket] Beginners request for code review.

2013-01-31 Thread Piotr Klibert
I have a problem with your suggestion, namely: > 2) If you make this a github repository, then you could publish > it as a 'raco pkg' package and everyone could try it out. > Looks like fun! I use bzr and launchpad for personal things and github for work related stuff, so that's why it was on lau