Re: [racket] Best Way to Really Understand the Compilation and Execution Model?

2013-08-05 Thread Noel Welsh
Does defmacro do what you want? http://docs.racket-lang.org/compatibility/defmacro.html?q=defmacro#%28form._%28%28lib._compatibility%2Fdefmacro..rkt%29._defmacro%29%29 In terms of grokking the macro system you probably want to read some of the research papers, which you can find from links here:

[racket] HtDP mention on Hacker News

2013-08-03 Thread Noel Welsh
HtDP2e made it to the front page on Hacker News. Some interesting comments: https://news.ycombinator.com/item?id=6150967 N. Racket Users list: http://lists.racket-lang.org/users

Re: [racket] Math library ready for testing

2012-12-08 Thread Noel Welsh
On Fri, Dec 7, 2012 at 8:33 PM, Neil Toronto neil.toro...@gmail.com wrote: I've just pushed the last commits that make the new math library ready for wider testing. Almost everything ready for use is documented, the tests keep passing, and everything *seems* to work. We (the Racket

[racket] CUFP BOF Sessions

2012-09-05 Thread Noel Welsh
Hi all, If anyone's going to be at CUFP this could be cool: N. = Birds of a Feather sessions (BOFs) Commercial Users of Functional Programming Workshop (CUFP 2012)

Re: [racket] for Wikipedia: is rackunit an XUnit?

2012-01-11 Thread Noel Welsh
Yeah, it started out that way and has still has enough in common IMHO. N. On Tue, Jan 10, 2012 at 11:37 PM, John Clements cleme...@brinckerhoff.org wrote: For wikipedia, Is rackunit an XUnit? I said yes. Change if necessary: http://en.wikipedia.org/wiki/List_of_unit_testing_frameworks#Racket

Re: [racket] Numerical integration

2012-01-04 Thread Noel Welsh
2012/1/4 Doug Williams m.douglas.willi...@gmail.com: Someone - I believe Noel Welsh, but it might be someone else on the mailing list - Yes, it's on github: https://github.com/noelwelsh/mzgsl has an FFI based  interface to the GNU Scientific library. That might already have the routines

Re: [racket] input requested on tools for Racket library developers

2012-01-03 Thread Noel Welsh
Sounds like you're making a build tool, which is great! The basic commands I want, in addition to what you've mentioned are: init -- Initialise an empty project with default files and directory structure test -- Run my tests If you're writing a build tool, there should probably be some Makefile

Re: [racket] racket w/octave

2011-12-29 Thread Noel Welsh
If your use is a minimal as matrices, linear/logistic regression, and gradient descent, my GSL bindings might do the trick, assuming they still work: https://github.com/noelwelsh/mzgsl In particular, if you're doing the ml-class, you should find everything apart from L-BFGS. HTH, N. On Wed,

[racket] Codify

2011-10-27 Thread Noel Welsh
I saw this and thought of DrRacket / Whalesong: http://twolivesleft.com/Codify/ Watch the video -- it's super slick. N. _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

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

2011-09-30 Thread Noel Welsh
On Fri, Sep 30, 2011 at 4:34 PM, Neil Toronto neil.toro...@gmail.com wrote: At Eli's suggestion, I'm conducting a poll. Does anybody on this list use the 'plot' module, or know of someone who does? I've used it. Nothing I can't live without. I'm happy for it to break in the name of progress.

Re: [racket] [rackunit] analyzing results of a test-suite

2011-09-21 Thread Noel Welsh
On Wed, Sep 21, 2011 at 8:29 AM, Chris c.bow...@gmail.com wrote: My first approach hasn't worked very well. I wrapped each module's test-cases in a define/provide-test-suite and imported these into a main testing module with a single suite containing all these test-suites. However if I

Re: [racket] fruit flies

2011-09-13 Thread Noel Welsh
On Mon, Sep 12, 2011 at 10:47 PM, Danny Yoo d...@cs.wpi.edu wrote: I should probably call this program fruit-flies.  In any event, this works on Chrome, but I haven't been able to successfully make it run under other browsers.  I've heard that it works in Safari 5.1 as well. It's not smooth

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

2011-09-13 Thread Noel Welsh
That is not one expression, but several. Wrap it in a (begin ...) and it should work. I.e.  (display (port-string (car (process    (format  racket -e \ ~a \                                                 (begin                                  

Re: [racket] Thoughts on Overeasy

2011-08-29 Thread Noel Welsh
On Sun, Aug 28, 2011 at 6:02 AM, Eli Barzilay e...@barzilay.org wrote: This is exactly what I have in the future of my tester (have not in a complete vaporware sense, but as stuff that's already working and committed in my repo).  You basically get a macro that defines new arrow types  

Re: [racket] Thoughts on Overeasy

2011-08-29 Thread Noel Welsh
On Mon, Aug 29, 2011 at 9:33 AM, Neil Van Dyke n...@neilvandyke.org wrote: However, in response to Noel's suggestion, I'm thinking that there might be a place for some dumbed-down syntactic sugar for simple forms of setup and teardown. Specifically, #:setup and #:teardown keyword arguments that

Re: [racket] future

2011-08-29 Thread Noel Welsh
On Mon, Aug 29, 2011 at 8:05 PM, Eli Barzilay e...@barzilay.org wrote: There's also the semi-popular syntax extension change, like {E ...} expanding to (λ () E ...), but that looks very confusing with something like (thread {(printf foo\n)}) -- so maybe do that with the outer form: {thread

Re: [racket] Bite-Size Racket Projects

2011-08-28 Thread Noel Welsh
On Sun, Aug 28, 2011 at 11:23 AM, Neil Van Dyke n...@neilvandyke.org wrote: I've been releasing packages as LGPL, so that people can use them, and so that they can be forked it I get hit by a bus.  But I'd strongly prefer that people not fork any of the stuff I've released unless I've declared

Re: [racket] Bite-Size Racket Projects

2011-08-28 Thread Noel Welsh
On Sun, Aug 28, 2011 at 1:34 AM, Ray Racine ray.rac...@gmail.com wrote: I have a number of odds and ends that I've been un-mothballing and moving to typed/racket which are currently in various states of entropy: crypto sha1, md5, sha256, hmac-xxx, AWS, S3, Amazon Product API,  HTTP client

[racket] (Not really) a book on Racket

2011-08-27 Thread Noel Welsh
Hi all, From time to time I've taken a crack at writing a book on Racket. I had big plans for it, but I've realised I don't have the time to fulfil them. I've put the text on here: https://github.com/noelwelsh/making-a-racket There isn't a lot of content but it might be of interest to some.

[racket] Thoughts on Overeasy

2011-08-27 Thread Noel Welsh
Some quick notes: Generally good. Certainly cuts down on some of the crap that Rackunit / Schemeunit requires while being more comprehensible than eli-tester. --- I think the keyword argument method is a mistake. It seems you'd have to do a lot of checking in the test macro to make sure the

Re: [racket] (Not really) a book on Racket

2011-08-27 Thread Noel Welsh
On Sat, Aug 27, 2011 at 6:20 PM, Grant Rettke gret...@acm.org wrote: Writing books is hard from what I hear. Indeed. Lot of Racketeers individually want to do it. Perhaps there is an opportunity for collaboration? We'll see. I've set out my stall, more or less. There is a reasonably

Re: [racket] I Write Like was rewritten in Racket

2011-08-23 Thread Noel Welsh
Cool bananas. It will make interesting reading. N. On Tue, Aug 23, 2011 at 8:22 PM, Doug Orleans dougorle...@gmail.com wrote: I just noticed that the creator of the website I Write Like (which compares your writing sample to famous authors) open-sourced his code last month:

Re: [racket] db independence [was: something else]

2011-08-22 Thread Noel Welsh
On Mon, Aug 22, 2011 at 8:57 PM, keyd...@gmx.de keyd...@gmx.de wrote: , I start to think I was not too far off perhaps? Because ORMs,  and relational-algebra-to-SQL compilers (one thing I find fascinating personally, but ...) would be fine examples of software that'd run into the kind of

Re: [racket] are people using untyped/snooze?

2011-08-13 Thread Noel Welsh
Hi Danny, Sorry about the late response. I've been heads down for the last few days. Snooze in Github (https://github.com/untyped/snooze) is way ahead of Snooze on Planet. It lacks docs, which is the lame excuse for not releasing it, but it has plenty of tests to guide the intrepid. We haven't

Re: [racket] racketcon podcasts proceedings?

2011-07-27 Thread Noel Welsh
It's probably too soon to have processed video. I haven't seen any conference reports, so if anyone wants to put up a blog post that would be great! N. On Wed, Jul 27, 2011 at 1:41 PM, Stephen De Gabrielle stephen.degabrie...@acm.org wrote: Hi, I remember somone mentioning recording racketcon

Re: [racket] Sweet expressions; or making it easier to introduce Racket to me and my coworkers :-)

2011-07-20 Thread Noel Welsh
On Wed, Jul 20, 2011 at 3:18 AM, Hendrik Boom hend...@topoi.pooq.com wrote: I asked him for the executive summary, soo to speak, and he told me that the problem ws that Racket was more demanding on a virtual machine (which is potentially shared) than on a real machine (where you actually have

Re: [racket] Emacs, racket and OS X issues

2011-07-14 Thread Noel Welsh
Are you using Aquamacs? N. On Thu, Jul 14, 2011 at 4:19 AM, Lavoie Francis lav.fran...@gmail.com wrote: First, it looks like emacs for OS X does not use the users' own $PATH, but the one of the system. I tried some hack I found on google

Re: [racket] help: how to make eval see local bindings?

2011-07-11 Thread Noel Welsh
On Mon, Jul 11, 2011 at 1:26 PM, Maurizio Giordano GMAIL maurizio.gio...@gmail.com wrote: PS. my lambda is generated by a macro (define-syntax) ... this is why I use eval to generate the corresponding procedure. If this is the case I don't think you need to use eval. You either need to write

Re: [racket] Amazon Linux update causes `require' in 5.1.1 to hang indefinitely?

2011-07-11 Thread Noel Welsh
No idea here, but why not try compiling Racket from source? All you need is ./configure ; make ; make install HTH, N. On Mon, Jul 11, 2011 at 4:45 PM, Greg Hendershott greghendersh...@gmail.com wrote: Yesterday I ran `yum update' on an Amazon Linux 32-bit instance. It updated quite a bit more

Re: [racket] Price of RackUnit

2011-07-07 Thread Noel Welsh
On Thu, Jul 7, 2011 at 12:40 AM, Patrick King slowthou...@gmail.com wrote: ... so that I never evade testing my code. Alternatively, change your process. My coding cycle w/ Racket is to write code then run the tests (writing code includes writing tests). This way I just run the tests by default

Re: [racket] rackunit (success)

2011-06-22 Thread Noel Welsh
On Mon, Jun 20, 2011 at 5:56 PM, Anthony Carrico acarr...@memebeam.org wrote: On 06/20/2011 12:50 PM, Anthony Carrico wrote: Sorry the thanks didn't go to the list, but actually there is more. I think I'm reaching for a way to make sure it took that (success) code path. That would be necessary

Re: [racket] Unit testing of contracts

2011-06-21 Thread Noel Welsh
Contracts raise exceptions when they fail, so check that the raise an exn (use check-exn) when you expect them to raise an exception, and that they don't raise an exn (check-not-exn) when you don't expect them to. HTH, N. On Tue, Jun 21, 2011 at 12:19 AM, Eduardo Bellani ebell...@gmail.com

Re: [racket] Gambit Scheme for the iPhone and iPad

2011-06-05 Thread Noel Welsh
On Sun, Jun 5, 2011 at 6:21 AM, Richard Cleis rcl...@mac.com wrote: ... I don't know how extensively; I just now downloaded it at this party. This is nerdcore. I stand in awe. N. _ For list-related administrative tasks:

Re: [racket] Reacquainting myself

2011-06-04 Thread Noel Welsh
In addition to Eli's suggestions... Parsing: http://planet.racket-lang.org/display.ss?package=htmlprag.pltowner=neil Pattern matching (don't know if this still works): http://planet.racket-lang.org/display.ss?package=sxml-match.pltowner=jim N. On Sat, Jun 4, 2011 at 9:18 PM, Hendrik Boom

Re: [racket] in praise of if's mandatory else clause

2011-05-29 Thread Noel Welsh
On Sun, May 29, 2011 at 7:17 AM, Neil Van Dyke n...@neilvandyke.org wrote: Also, I doubt the programmers would have made these oopses, had they been using recent DrRacket, which does paren-matching that's hard to ignore.  I'm probably going to make Quack force more prominent paren-matching

Re: [racket] Racket/gui : How to rotate a bitmap% ?

2011-05-10 Thread Noel Welsh
Ok, I don't understand what you want then. I tried the code below and it did what I expect. N. racket@ (define (display-bitmap bitmap) (define f (new frame% [label Bitmap] [width (send bitmap get-width)] [height (send bitmap get-height)])) (define c (new

Re: [racket] Racket/gui : How to rotate a bitmap% ?

2011-05-09 Thread Noel Welsh
2011/5/9 Jyu 。 julien-0...@hotmail.fr: I can rotate a bitmap% around the (0,0) coordinate point, but I cannot do the same for any other point.. You probably need to call translate and then rotate. There is a transformation matrix maintained by the dc% which allows for rotation, translation, and

Re: [racket] Racket/gui : How to rotate a bitmap% ?

2011-05-09 Thread Noel Welsh
On Mon, May 9, 2011 at 3:21 PM, Jay McCarthy jay.mccar...@gmail.com wrote: https://github.com/get-bonus/get-bonus/blob/master/exp/gl.rkt Look at the contracts at the bottom. (This package, btw, can very easily get very high frame rates with very naive rendering, because it automatically

Re: [racket] Some newbie trouble on running Web Server on EC 2

2011-04-20 Thread Noel Welsh
On Wed, Apr 20, 2011 at 6:03 PM, J G Cho g...@fundingmatters.com wrote: 1. Following along the system (aka '/more') tutorial: When evaluating (require readline), REPL sometimes hangs but not all the time. Dunno. 2. Following along the blog webapp: When running model-3.rkt (sqlite3) fails due

Re: [racket] processing images...

2011-04-11 Thread Noel Welsh
This code does everything but save the image: https://github.com/noelwelsh/dct/blob/master/functional-test.rkt HTH, N. On Mon, Apr 11, 2011 at 7:09 PM, Robby Findler ro...@eecs.northwestern.edu wrote: On Mon, Apr 11, 2011 at 12:16 PM, geb a ge...@yahoo.com wrote: Hello all, I'm having

Re: [racket] require url?

2011-04-08 Thread Noel Welsh
It has been talked about a lot, but no-one has implemented this feature AFAIK. Should be possible, as require is extensible. Go for it, tiger ;-) N. On Thu, Apr 7, 2011 at 4:01 PM, Eric Tanter etan...@dcc.uchile.cl wrote: Hi all, In the same way that it is possible to require a file given a

Re: [racket] Module docs - still a problem

2011-04-07 Thread Noel Welsh
On Thu, Apr 7, 2011 at 8:58 PM, Mark Carter mcturra2...@yahoo.co.uk wrote: A previous poster said that the #lang directive created an implicit module. However, this doesn't seem to be strictly true, as my function http-get is automatically provided without explicit mention; which is not the

Re: [racket] Module docs - still a problem

2011-04-07 Thread Noel Welsh
Try this: tar zxvf carali.tar.gz cd carali raco planet link schematics carali.plt 1 0 . raco planet create . HTH, N. On Thu, Apr 7, 2011 at 9:11 PM, Noel Welsh noelwe...@gmail.com wrote: On Thu, Apr 7, 2011 at 8:58 PM, Mark Carter mcturra2...@yahoo.co.uk wrote: A previous poster said

Re: [racket] Solumns: evil version of columns

2011-04-04 Thread Noel Welsh
Interesting program. You blog that it is too slow, so I took a look at your code. I expect you could speed it up substantially with a few changes to the data structures and so on. Some hints: - Classes are going to be slower than functions and structures - Use fxvector for a vector of integers

Re: [racket] Racket on Centos 5

2011-03-29 Thread Noel Welsh
On Tue, Mar 29, 2011 at 10:22 AM, keyd...@gmx.de keyd...@gmx.de wrote: The one executable I got to start without errors (that is to say, I tried mred too, it started but with errors) was mred-text - would it be possible to work with this one (I didn't even know it existed before...) if one

Re: [racket] SIGSEGV MAPERR si_code 1 fault on addr 0xb7600000

2011-03-26 Thread Noel Welsh
On Sat, Mar 26, 2011 at 5:16 PM, Greg Hendershott greghendersh...@gmail.com wrote: So in parallel to enabling core dumps and so on, I think I'll want to have some other process check every to see if it's still running. If not, launch it again. We use monit for this. There is a ruby system

Re: [racket] data mining business information on web sites w/Racket

2011-03-18 Thread Noel Welsh
It should be fine. Hundreds of sites is not really that many. You just need to have backoffs etc. to avoid getting blacklisted. Using sync and friends would make implementing this easy. If you want to extract unstructured data, there is some good reading here:

Re: [racket] Setting web server root

2011-03-14 Thread Noel Welsh
You want to provide a servlet-regexp argument to serve/servlet. .* should do. HTH, N On Mon, Mar 14, 2011 at 12:38 PM, Mark Carter mcturra2...@yahoo.co.uk wrote: Suppose I just create a simple web server: ... ;;; Start the server (define (go)  (define log-to (build-path (find-system-path

Re: [racket] preference: 32-bit or 64-bit racket?

2011-03-09 Thread Noel Welsh
Increased memory bandwidth and more registers are the main benefits I'm aware of. I'm not sure if Racket exploits the later, but it should benefit from the former. N. On Wed, Mar 9, 2011 at 2:35 PM, John Clements cleme...@brinckerhoff.org wrote: ... In any case, I thought I'd just ask: how

Re: [racket] tests/eli-tester feedback (Was: Racket unit testing)

2011-03-04 Thread Noel Welsh
On Fri, Mar 4, 2011 at 10:11 AM, Neil Van Dyke n...@neilvandyke.org wrote: Could someone explain the advantages of having, say, the test-suite form produce a data structure to be supplied to test-runner code... rather than having evaluation of the test-suite form result in the tests actually

Re: [racket] Racket looking for older versions of libcrypto and libssl than what Amazon Linux has

2011-03-02 Thread Noel Welsh
What AMI are you using? I've deployed Racket onto Alestic's Ubuntu images without this problem. HTH, N. On Wed, Mar 2, 2011 at 4:55 PM, Greg Hendershott greghendersh...@gmail.com wrote: Want to ask a question that displays my spectacular nub-ness re Linux: ...

Re: [racket] thank you for typed racket

2011-02-22 Thread Noel Welsh
I want to second this. It is interesting that an argument for untyped languages often goes along the lines of what is Danny saying here is a benefit of a typed language. N. On Tue, Feb 22, 2011 at 8:45 AM, Danny Yoo d...@cs.wpi.edu wrote: I do want to say that, despite some troubles I've been

Re: [racket] [ANN] Racket Gtk+ WebKit Binding

2011-02-16 Thread Noel Welsh
This could be very useful for testing web applications. How tied to GTK is it? (I.e. what would it take to run on other platforms?) N. On Sun, Feb 13, 2011 at 6:58 PM, Thomas Chust ch...@web.de wrote: Hello, over the past few days I have hacked together a small Racket binding for the Gtk+

Re: [racket] tests/eli-tester feedback (Was: Racket unit testing)

2011-02-15 Thread Noel Welsh
Working, and all basic infrastructure in place. No changes to merge. How shocking. N. On Mon, Feb 14, 2011 at 5:02 PM, Noel Welsh noelwe...@gmail.com wrote: Here's a start, based on discussions w/ Eli, Robby, et al way back when:  https://github.com/noelwelsh/racktest I gotta go now. I'll

Re: [racket] Ad-hoc polymorphism in Typed Racket

2011-02-15 Thread Noel Welsh
So this isn't really ad-hoc, is it? I can't extend the type in another module (typically done with structure properties in Racket). Anyway, a union type will do for me, for now. Cheers, N. On Mon, Feb 14, 2011 at 9:57 PM, Vincent St-Amour stamo...@ccs.neu.edu wrote: For the built-in functions

Re: [racket] tests/eli-tester feedback (Was: Racket unit testing)

2011-02-15 Thread Noel Welsh
What I have built is the foundations more or less as you described them 2009. N. On Tue, Feb 15, 2011 at 12:07 PM, Eli Barzilay e...@barzilay.org wrote: Four minutes ago, Noel Welsh wrote: Working, and all basic infrastructure in place. I'd really hate to see this turn into yet another

Re: [racket] Help require and provide

2011-02-14 Thread Noel Welsh
Use except-in or rename-in N. 2011/2/14 José Lopes jose.lo...@ist.utl.pt: Hello, can you help me with this problem? Suppose I have files A, B and C. Files A and B provide several functions, including function foo. File C wants to require both A and B. How can I choose which function foo I

[racket] Ad-hoc polymorphism in Typed Racket

2011-02-14 Thread Noel Welsh
What's the story for ad-hoc polymorphism in Racket? In particular, I'd like to use the dict library. Cheers, N. _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

Re: [racket] tests/eli-tester feedback (Was: Racket unit testing)

2011-02-14 Thread Noel Welsh
Here's a start, based on discussions w/ Eli, Robby, et al way back when: https://github.com/noelwelsh/racktest I gotta go now. I'll merge changes when I get back online. ;-) N. On Mon, Feb 14, 2011 at 4:28 PM, Matthias Felleisen matth...@ccs.neu.edu wrote: On Feb 13, 2011, at 10:15 PM,

Re: [racket] regexp

2011-02-12 Thread Noel Welsh
You can use the primitive require, which is #%require IIRC. HTH, N. On Sat, Feb 12, 2011 at 1:34 AM, geb a ge...@yahoo.com wrote: How do I use regexp with r5rs?  I had some difficulty using outside of racket. Sincerely, Dan _  For

Re: [racket] PLaneT package for global error logging and suggestions (a la stackoverflow)

2011-02-07 Thread Noel Welsh
Great idea! The grouping seems a bit coarse -- it might be interesting to play with this. Check out the LDA implementation in Vowpal Wabbit -- it is very easy to use and might give some useful results. HTH, N. On Fri, Feb 4, 2011 at 10:03 PM, John Clements cleme...@brinckerhoff.org wrote: I've

Re: [racket] simple sandboxing

2011-02-07 Thread Noel Welsh
Maybe this will help: beginner.rkt #lang racket (define foo o hai) eval.rkt #lang racket (require racket/sandbox) (define beginner-file-path (build-path (current-directory) beginner.rkt)) (sandbox-path-permissions (list (list 'read (current-directory (define

[racket] Job asking for Scheme

2011-01-26 Thread Noel Welsh
I saw the following today, and thought it might be of interest to some: GrammaTech is seeking a Software Engineer for a full-time position located in Ithaca, New York. ... Beneficial Experience We are especially interested in candidates with one or more of the following attributes: ... *

Re: [racket] Racket not supporting nono-European writing systems

2011-01-26 Thread Noel Welsh
On Wed, Jan 26, 2011 at 12:13 PM, J Smithfield jsmithfi...@hotmail.co.uk wrote: Apart from Chinese Racket does not seem to support non-European languages. I had reported this fact in a previous email. This was acknowledged rather halfheartedly; but no further assurance as to doing something

Re: [racket] Sending a cvector to foreign functions.

2011-01-25 Thread Noel Welsh
Your code looks correct to me. Things you might try: - Check tiles are constructed correctly - Replace _cvector with (_cvector i _tile) for increased error checking Sorry I can't be more helpful. These problems are really hard to debug as the errors could be in so many places. N. On Tue, Jan

Re: [racket] Sending a cvector to foreign functions.

2011-01-25 Thread Noel Welsh
This is an error in Racket that has to do with syntax certificates -- basically protecting certain variables. I think it is used to implement the (unsafe!) call you have to do to use the FFI. If you don't have (unsafe!) in your code try adding it. If you do I'll have to defer to one of the people

Re: [racket] First meaningful experiment.

2011-01-24 Thread Noel Welsh
I had a brief look. I would define a maze datastructure and then a bunch of functions that create instances of this datastructure. Then write a function that, given a dc renders a maze instance. This is much more in the functional style. HTH, N. On Sat, Jan 22, 2011 at 1:32 AM, Alexandre Moreira

Re: [racket] cp-write: error writing (Socket is not connected; errno=57)

2011-01-24 Thread Noel Welsh
Sorry, I don't have anymore ideas. I guess you have to reuse sockets. N. On Fri, Jan 21, 2011 at 6:45 AM, Niitsuma Hirotaka hirotaka.niits...@gmail.com wrote: Try adding a delay to the loop. I added (sleep 5) after http-get But same err was caused

[racket] Notes from HN on Racket nee MzScheme

2011-01-19 Thread Noel Welsh
Since Hacker News is probably the busiest site running on PLT Scheme, the following might be interesting to those interested on how MzScheme handles load: http://ycombinator.com/newsnews.html#19jan Note that this applies to MzScheme, and not necessarily Racket. Arc (which runs HN) runs on the

Re: [racket] Plot to png

2011-01-17 Thread Noel Welsh
If you specify out-file as an initialisation parameter I think it will be saved to the named file. #lang scheme (require plot) (plot (line sin) #:out-file foo.png) HTH, N. On Mon, Jan 17, 2011 at 12:18 PM, Milan Markovic zivoti...@gmail.com wrote: Hello everybody, I looked several times

Re: [racket] Snooze and set operations.

2011-01-17 Thread Noel Welsh
Hi, I don't really understand the question. IIRC Snooze doesn't support union and intersect as operators. If you want to add them you can fork Snooze on Github. Does that help? Cheers, N. On Thu, Jan 13, 2011 at 6:33 PM, Eduardo Bellani ebell...@gmail.com wrote: Hello there. I am trying to

Re: [racket] Expanding frozen Racket core - limitations of universal touring machine

2011-01-17 Thread Noel Welsh
On Sat, Jan 15, 2011 at 12:16 PM, Jukka Tuominen jukka.tuomi...@finndesign.fi wrote: Now, imagine the read-only OS was a snapshot of Racket+Linux+stuff, a few years ago. - Given the above, I wonder if there are any theoretical limits preventing to achieve all the same functionality that are

Re: [racket] What controls the web-server continuation URL?

2011-01-17 Thread Noel Welsh
I should have a better answer, but all I can think of right now is adding a dispatcher that captures all requests to /podcasting, and adding a simple dispatcher + servlet to redirect / to /podcasting. The web server documents dispatchers. HTH, N. On Mon, Jan 17, 2011 at 12:22 AM, Norman Gray

Re: [racket] What controls the web-server continuation URL?

2011-01-17 Thread Noel Welsh
I should have a better answer, but all I can think of right now is adding a dispatcher that captures all requests to /podcasting, and adding a simple dispatcher + servlet to redirect / to /podcasting. The web server documents dispatchers. HTH, N. On Mon, Jan 17, 2011 at 12:22 AM, Norman Gray

Re: [racket] cp-write: error writing (Socket is not connected; errno=57)

2011-01-17 Thread Noel Welsh
I don't know for sure, but it could be you are running out of sockets on your local machine. In my experience it seems to take some time for the OS to recycle a socket. Try adding a delay to the loop. HTH, N. On Sun, Jan 16, 2011 at 11:44 AM, Niitsuma Hirotaka hirotaka.niits...@gmail.com wrote:

Re: [racket] Efficiency of tight loops in Racket

2011-01-17 Thread Noel Welsh
I've seen lots of recent commits dealing w/ Windows 7 / 64-bit support, so I expect it is simply time. Windows is not as developer friendly as Unix so likely to receive new features last (as a guess). N. On Sat, Jan 15, 2011 at 5:22 PM, Jos Koot jos.k...@telefonica.net wrote: Is there a

Re: [racket] racket http server, major GC: -216 bytes collected

2011-01-17 Thread Noel Welsh
On Tue, Jan 11, 2011 at 11:28 PM, Stefan Schmiedl s...@xss.de wrote: While the amount _is_ quite small, I am still concerned by it. I am currently looking for a platform to develop and deploy one or two web apps on, and a memory leak would mean that I either can't use racket or would have to

Re: [racket] Efficiency of tight loops in Racket

2011-01-14 Thread Noel Welsh
On Fri, Jan 14, 2011 at 8:12 PM, Harry Spier harrysp...@hotmail.com wrote: From whats been said perhaps the way to go is to make a C wrapper to the C interface to the latest version of ImageMagick and then go through the FFI to interface to Racket. I doubt you need that C wrapper. The

[racket] Bug matching shortest possible matches in regexp-replace*

2011-01-12 Thread Noel Welsh
A pattern like (.)? causes the following error: racket@ (regexp-replace* #px(.)? a (lambda args foo)) car: expects argument of type pair; given #f === context === /usr/local/plt-head/collects/racket/private/string.rkt:174:7: loop /usr/local/plt-head/collects/racket/private/string.rkt:314:11:

Re: [racket] racket http server, major GC: -216 bytes collected

2011-01-11 Thread Noel Welsh
On Mon, Jan 10, 2011 at 9:53 PM, Greg Hendershott greghendersh...@gmail.com wrote: What does it mean for the GC to collect a negative number of bytes? I'm ducking this one... P.S. I thought Azul's pauseless garbage collector (http://www.artima.com/lejava/articles/azul_pauseless_gc.html,

Re: [racket] webcam hooks in racket?

2011-01-11 Thread Noel Welsh
I looked into webcams a while ago and couldn't find any universal API to access them. For a start it depends on the platform you're using. Then depending on the platform and webcam different APIs are available. N. On Tue, Jan 11, 2011 at 7:00 AM, Ben Dean benjamin.d...@aya.yale.edu wrote:

Re: [racket] Finndesign Liitin: Computing rethought

2011-01-10 Thread Noel Welsh
On Wed, Jan 5, 2011 at 3:04 PM, Jukka Tuominen jukka.tuomi...@finndesign.fi wrote: Hi all, after about a decade's development work, we (Finndesign) are about to release something that we feel very exited about. It's a network OS called Liitin and it uses Scheme (Racket) as built-in language.

Re: [racket] Emacs mode for Scribble coming

2011-01-10 Thread Noel Welsh
Not brave but reckless. Worked for me. N. On Sun, Jan 9, 2011 at 3:50 PM, Neil Van Dyke n...@neilvandyke.org wrote: I've released an Emacs mode for Scribble. Documentation at: http://www.neilvandyke.org/scribble-emacs/ If you're feeling brave, evaluating the following expression will

Re: [racket] REPL and read-line

2011-01-07 Thread Noel Welsh
On Fri, Jan 7, 2011 at 2:01 AM, Alexandre Moreira alexandr...@gmail.com wrote: Thanks everyone for your responses. Unfortunately I planned on using the REPL as a kind of shell for a little utility I need, so I guess I'll only have to live with it. What additional functionality do you need

Re: [racket] Load Showimage

2011-01-06 Thread Noel Welsh
I'm really confused. It looks like this is a C library. Are there Racket bindings somewhere in the distribution? N. On Thu, Jan 6, 2011 at 11:26 AM, Sayth Renshaw flebber.c...@gmail.com wrote: I am trying to load the sdl-image show image library to racket.

Re: [racket] mobile agent in racket

2011-01-05 Thread Noel Welsh
On Wed, Jan 5, 2011 at 8:17 AM, Neil Van Dyke n...@neilvandyke.org wrote:   I suggest finding and reading all the conference and workshop proceedings, as well as trying out any prototypes and tools you can find. AFAIK AAMAS is the main conference, but I'm not in the field:

Re: [racket] openssl - authenticating clients via certificates

2011-01-05 Thread Noel Welsh
On Wed, Jan 5, 2011 at 12:37 PM, Curtis Dutton curtd...@gmail.com wrote: Has anybody figured out a way to do this yet? I don't know enough about SSL to see how this would work, but it sounds interesting. Good luck! N. _ For list-related

Re: [racket] gc and vectors

2011-01-04 Thread Noel Welsh
On Tue, Jan 4, 2011 at 6:09 PM, Jos Koot jos.k...@telefonica.net wrote: Thanks for your response, very quick as always. I'll try flvectors first. It will be like writing fortran with racket syntax. If you use for/flvector and in-flvector (esp. the extended in-flvector that some good fellow

Re: [racket] stateless servlets problem

2011-01-03 Thread Noel Welsh
On Mon, Jan 3, 2011 at 3:13 PM, Stefan Schmiedl s...@xss.de wrote: Is there a public (readonly) repository somewhere that I could tap into? https://github.com/plt/racket N. _ For list-related administrative tasks:

Re: [racket] xml processing question

2010-12-23 Thread Noel Welsh
On Thu, Dec 23, 2010 at 8:36 AM, Manfred Lotz manfred.l...@arcor.de wrote: The only xpath implementation I found is the one for sxml. There doesn't seem to be an xpath implementation for xexpr. Right, or did I overlook anything? You are right. N.

Re: [racket] comments requested from users of SXML and PLT xexprs

2010-12-21 Thread Noel Welsh
On Tue, Dec 21, 2010 at 1:52 PM, Neil Van Dyke n...@neilvandyke.org wrote: Note that the special syntax of the template library does not and will never permit extraneous nesting in the static (Racket syntax) portions of the template.  Extraneous nesting is a convenience for dynamic parts. Can

Re: [racket] question on uri encode decode

2010-12-20 Thread Noel Welsh
uri-encode only works on strings, so you need to convert to a string. The decoding problem is caused by the the bytes to UTF-8 conversion -- that byte string isn't a valid UTF-8 string (or something). The URI encoding functions really should work on bytes, but when they were written a million

Re: [racket] Fwd: Snooze Transactions

2010-12-20 Thread Noel Welsh
Good to hear you got it working! N. On Mon, Dec 20, 2010 at 6:44 PM, Russell Adams rlad...@adamsinfoserv.com wrote: I'm pleased to say I got it working, with a tremendous speedup. As it turns out, I had incorrectly placed: (provide (all-from-out (planet untyped/snooze:2))                  

Re: [racket] Fwd: Snooze Transactions

2010-12-19 Thread Noel Welsh
Hi Russell, You'll find examples of transactions in the tests for it: http://planet.plt-scheme.org/package-source/untyped/snooze.plt/2/8/snooze-transaction-test.ss It should be fairly simple to get working. Note that Snooze on Planet is ancient. Up-to-date but undocumented and hence

Re: [racket] Snooze Transactions

2010-12-18 Thread Noel Welsh
Hi Adam, Great to hear you're enjoying Snooze. Which version are you using? The released version 2, or the unreleased version 3 on Github? Thanks, N. On Sat, Dec 18, 2010 at 7:25 PM, Russell Adams rlad...@adamsinfoserv.com wrote: I'm really enjoying using Snooze to make persistent structures,

Re: [racket] Command line Racket equivalent of DrRacket's Racket | Run (CTRL+T or F5)?

2010-12-13 Thread Noel Welsh
From the command line: racket -e '(enter! test.rkt)' From the REPL: (enter! test.rkt) It is a bit clumsy from the command line. N. On Mon, Dec 13, 2010 at 5:19 PM, Greg Hendershott greghendersh...@gmail.com wrote: I feel like I'm missing something obvious here. Using Racket

Re: [racket] Question about open-output-file

2010-12-05 Thread Noel Welsh
My guess is the LF in the source is being converted to CRLF, and indeed this is what the docs state. I think doing a regexp-replace* directly on the port is probably the easiest and most efficient thing to do. HTH, N. On Sun, Dec 5, 2010 at 8:01 AM, Michael Coppola coppola...@husky.neu.edu

Re: [racket] quack qunundrum

2010-11-26 Thread Noel Welsh
On Fri, Nov 26, 2010 at 8:11 AM, prad p...@towardsfreedom.com wrote: any thoughts on what i can do to get C-c C-c working? Dunno (I develop in a different style) but I can recommend the Geiser Emacs package: http://www.nongnu.org/geiser/ It has been worked on more recently AFAIK, so might

[racket] A Survey on Racket: the Book Was: letoverlambda

2010-11-25 Thread Noel Welsh
Hi all, Writing a book on Racket is an idea that gets kicked around occasionally. It would be a major undertaking, and so only viable if there would be a reasonable return on investment[1]. To gauge the market I've put together this short survey: http://www.surveymonkey.com/s/MKQL3YX If you

Re: [racket] A Survey on Racket: the Book Was: letoverlambda

2010-11-25 Thread Noel Welsh
I've posted on Proggit and HN: http://www.reddit.com/r/programming/comments/ebm67/interested_in_racket_want_to_see_a_book_on_it/ http://news.ycombinator.com/item?id=1940162 Up votes are appreciated. Ta, N. PS: Thanks to everyone who has replied already. You guys are fast!

  1   2   >