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 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 development team) need peop

[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 wrote: > For wikipedia, Is rackunit an XUnit? I said yes. Change if necessary: > > http://en.wikipedia.org/wiki/List_of_unit_testing_frameworks#Racket > > John Clements _

Re: [racket] Numerical integration

2012-01-04 Thread Noel Welsh
2012/1/4 Doug Williams : > 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 you're in

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 e

Re: [racket] Engineering Tradeoffs of ANF transforms and the Stateless Server

2011-12-30 Thread Noel Welsh
On Tue, Dec 27, 2011 at 9:26 PM, Galler wrote: > I note that no one has discussed throwing a significant amount of physical > memory at the problem. > > Empirically, is that because garbage-collection of a large heap creates its > own performance problems? Yes, GC pauses get annoying when the hea

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, D

[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 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. N. PS: I've also used

Re: [racket] Question about round

2011-09-30 Thread Noel Welsh
Agreed in general, but I think we want an exact positive and negative infinity, not more confusion to the coercion rules. Ironically R6RS includes max and min integers (at least I have a vague memory of such an addition) which will do the job. N. On Fri, Sep 30, 2011 at 2:16 PM, Doug Williams w

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 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 (run-test > all-test

Re: [racket] Racket in the world

2011-09-15 Thread Noel Welsh
Great stuff! N. On Wed, Sep 14, 2011 at 11:57 PM, Matt Jadud wrote: > Hi all, > > Start with the video of an installation piece at Ars Electronica: > > http://vimeo.com/29037809 ... _ For list-related administrative tasks: http://lists.racket-la

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] fruit flies

2011-09-13 Thread Noel Welsh
On Mon, Sep 12, 2011 at 10:47 PM, Danny Yoo 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 but it does

Re: [racket] future

2011-08-29 Thread Noel Welsh
On Mon, Aug 29, 2011 at 8:05 PM, Eli Barzilay 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 (printf "foo\n"

Re: [racket] Thoughts on Overeasy

2011-08-29 Thread Noel Welsh
On Mon, Aug 29, 2011 at 9:33 AM, Neil Van Dyke 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 are > followed

Re: [racket] Thoughts on Overeasy

2011-08-29 Thread Noel Welsh
On Sun, Aug 28, 2011 at 6:02 AM, Eli Barzilay 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 > >  (define-test-ar

Re: [racket] Bite-Size Racket Projects

2011-08-28 Thread Noel Welsh
On Sun, Aug 28, 2011 at 11:23 AM, Neil Van Dyke 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 it > obsolete.  (I

Re: [racket] Bite-Size Racket Projects

2011-08-28 Thread Noel Welsh
On Sun, Aug 28, 2011 at 1:34 AM, Ray Racine 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 library and > a few odd

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 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 detailed plan and t

[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 user

[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.

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 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: > > http://blog.iwl.me/post/813673561

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 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 > problems I wa

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 upd

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 wrote: > Hi, > > I remember somone mentioning recording racketcon might happen. > > Will t

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

2011-07-19 Thread Noel Welsh
On Wed, Jul 20, 2011 at 3:18 AM, Hendrik Boom 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 all the real memory

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 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 > (http://olabini.com/blog/2009/12/path-problem-with-emacs-on-mac-os-x/,

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 wrote: > Yesterday I ran `yum update' on an Amazon Linux 32-bit instance. It > updated quite a bit more than I expected. __

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 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 your macro in a hygenic wa

Re: [racket] Price of RackUnit

2011-07-07 Thread Noel Welsh
On Thu, Jul 7, 2011 at 12:40 AM, Patrick King 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 -- it's not an extra

Re: [racket] rackunit (success)

2011-06-22 Thread Noel Welsh
On Mon, Jun 20, 2011 at 5:56 PM, Anthony Carrico 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 to truly test

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 wrote: > -BEGIN PGP

Re: [racket] rackunit (success)

2011-06-20 Thread Noel Welsh
You're correct, there is no success function in Rackunit. This will do: (lambda () 'ok) I.e. you don't need to signal success for a test to pass. People have experimented with test frameworks where you have to signal success, but it the general conclusion is that it's too much effort for the smal

Re: [racket] filesystem api

2011-06-05 Thread Noel Welsh
Maybe fold-files will do what you want. N. On Sun, Jun 5, 2011 at 3:19 PM, Nikita B. Zuev wrote: > Hello, > > I'm writing a program, that needs to walk recursively through a > filesystem directory structure. _ For list-related administrative task

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

2011-06-04 Thread Noel Welsh
On Sun, Jun 5, 2011 at 6:21 AM, Richard Cleis 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: http://lists.racket-lang.org/listinf

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.plt&owner=neil Pattern matching (don't know if this still works): http://planet.racket-lang.org/display.ss?package=sxml-match.plt&owner=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 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 than Emacs > does by

Re: [racket] Physics/Genetic Algorithms

2011-05-19 Thread Noel Welsh
If you haven't seen it yet, check out Jay's bindings to Chipmunk. It's on Planet: http://planet.racket-lang.org/package-source/jaymccarthy/chipmunk.plt/1/0/planet-docs/chipmunk/index.html HTH, N. On Thu, May 19, 2011 at 2:13 PM, Ben Thompson wrote: ... > Obviously, this project requires a ph

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 canv

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 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 compiles common draw se

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

2011-05-09 Thread Noel Welsh
2011/5/9 Jyu 。 : > 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 scaling. If you firs

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 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 to missing somethin

Re: [racket] webserver mapping servlets to path

2011-04-17 Thread Noel Welsh
You just need to add another dispatcher to your first example to serve the static files. Search the docs for web-server/dispatchers/dispatch-files and use the procedure provided by this module. HTH, N. On Sun, Apr 17, 2011 at 6:06 AM, J G Cho wrote: > To those familiar with Web Server, ... > > I

Re: [racket] Racket in a browser?

2011-04-13 Thread Noel Welsh
PIC is position independent code. I think that only applies to static compilers generating or using shared objects. There is no way Haskell would use LLVM if they couldn't get tail calls everywhere. N. On Wed, Apr 13, 2011 at 3:44 AM, Hendrik Boom wrote: > On Tue, Apr 12, 2011 at 08:17:02PM -060

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 wrote: > On Mon, Apr 11, 2011 at 12:16 PM, geb a wrote: >> Hello all, >> >> I'm having some trouble processing a block of pixe

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 wrote: > Hi all, > > In the same way that it is possible to require a file given a local path: > eg. >

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 wrote: > On Thu, Apr 7, 2011 at 8:58 PM, Mark Carter wrote: >> A previous poster said that the #lang directive created an

Re: [racket] Module docs - still a problem

2011-04-07 Thread Noel Welsh
On Thu, Apr 7, 2011 at 8:58 PM, Mark Carter 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 same > behaviour as wh

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 a

Re: [racket] Racket on Centos 5

2011-03-29 Thread Noel Welsh
On Tue, Mar 29, 2011 at 10:22 AM, 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 doesn't > nee

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 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 called god that is anot

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: http://metaoptimize.com/qa/questio

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 wrote: > Suppose I just create a simple web server: ... > > ;;; Start the server > (define (go) >  (define log-to (build-path (find-system-path 'home-dir) >      

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 wrote: ... > > In any case, I thought I'd just ask: how many of you are using 64-bi

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 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 > being executed

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 wrote: > Want to ask a question that displays my spectacular nub-ness re Linux: ... _ For lis

Re: [racket] Compile racket

2011-02-24 Thread Noel Welsh
https://github.com/plt/racket/blob/master/src/README Cheers, N. 2011/2/24 José António : > Hello, > > How do you compile racket for Microsoft Windows? > Are you using MSYS/MinGW? > > Regards, > José > > José António Branquinho de Oliveira Lopes > 58612 - MEIC-A > jose.lo...@ist.utl.pt __

Re: [racket] file permissions and ownership

2011-02-24 Thread Noel Welsh
Take a look at file-or-directory-permissions. HTH, N. On Tue, Feb 22, 2011 at 7:36 PM, Manfred Lotz wrote: > Hi there, > Is there a way to set file resp. directory permission and ownership > from racket? I didn't find anything in the documentation. > > > > -- > Thanks, > Manfred > > > __

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 wrote: > I do want to say that, despite some troubles I've been having with > Ty

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 wrote: > Hello, > > over the past few days I have hacked together a small Racket binding > for the Gtk+ WebKit port

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 wrote: > Four minutes ago, Noel Welsh wrote: >> Working, and all basic infrastructure in place. > > I'd really hate to see this turn into yet anoth

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 wrote: > For the built-in functions that are currently su

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 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

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 wrote: > > > On Feb 13, 2011, at 10:15 PM, Neil Van Dyke wrote:

[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] Help require and provide

2011-02-14 Thread Noel Welsh
Use except-in or rename-in N. 2011/2/14 José Lopes : > 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 > want? > > Regard

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 wrote: > How do I use regexp with r5rs?  I had some difficulty using outside of racket. > > Sincerely, > Dan > > > > _ >  For list-related ad

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 beginner-ev

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 wrote: > I've now released ErrRecorder

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 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 about it has been forthc

[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: ... * Pro

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 w

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 25

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 wrote: >>Try adding a delay to the loop. > > I added (sleep 5) after http-get > But same err was caused > _ For list-relate

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] Sending a cvector to foreign functions.

2011-01-24 Thread Noel Welsh
It is really hard to say (and debug). Have you independently tested the C code? N. On Mon, Jan 24, 2011 at 5:50 AM, Lewis wrote: > Greetings, > > I am trying to send a racket cvector to a C function in a lib I a > writing. The C function in question has the prototype > ... > > Unfortunately, whe

[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 o

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 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 work arou

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 wrote: > Is there a specific reason why there is n

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 wrote: > I use racket for web crawl

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 wro

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 wro

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 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 in the current or future

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 wrote: > Hello there. > > I am trying to use Set operation

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 wrote: > Hello everybody, > I looked several times through the docs a

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 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 ImageMagick API is large but

[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 ; 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] 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 wrote: > > > > I'm wondering how much it

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 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, which I > found via http

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 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 install > the package

Re: [racket] Finndesign Liitin: Computing rethought

2011-01-10 Thread Noel Welsh
On Wed, Jan 5, 2011 at 3:04 PM, Jukka Tuominen 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. BTW, Liitin means > 'c

Re: [racket] REPL and read-line

2011-01-07 Thread Noel Welsh
On Fri, Jan 7, 2011 at 2:01 AM, Alexandre Moreira 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 beyond in your shell be

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 wrote: > > I am trying to load the sdl-image show image library to racket. > http://www.libsdl.org/projects/SDL_image/ > > I downloa

Re: [racket] openssl - authenticating clients via certificates

2011-01-05 Thread Noel Welsh
On Wed, Jan 5, 2011 at 12:37 PM, Curtis Dutton 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 administrative tasks: ht

Re: [racket] mobile agent in racket

2011-01-05 Thread Noel Welsh
On Wed, Jan 5, 2011 at 8:17 AM, Neil Van Dyke 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: http://www.cse.yorku.ca/AAMAS2010/ N.

Re: [racket] gc and vectors

2011-01-04 Thread Noel Welsh
On Tue, Jan 4, 2011 at 6:09 PM, Jos Koot 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 added) this kind of code

Re: [racket] stateless servlets problem

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

  1   2   3   >