Re: [racket] Looking for awk examples

2011-10-01 Thread Jakub Piotr Cłapa
regexps written with s-expressions applied to s-expressions instead of strings. I think you may be interested in OMeta. It was created for Smalltalk and Javascript but it also had a PLT Scheme reimplementation IIRC. -- regards, Jakub Piotr Cłapa

Re: [racket] Racketizing Chrome

2011-09-02 Thread Jakub Piotr Cłapa
and whatever tricky stuff Chrome will do. And you know that they will probably do tricky stuff. NaCL in Chrome should work like a just another operating system. It uses an instruction verifier and not is not a VM or C-Javascript thing. -- regards, Jakub Piotr Cłapa

Re: [racket] Fix for dherman/json

2011-04-30 Thread Jakub Piotr Cłapa
) '(#\-)) '())] to consume the sign character. Anybody managing the package these days? I fixed my local copy but it's not a very persistent solution. Ideas? I am afraid we are on our own: http://planet.plt-scheme.org/trac/ticket/317 -- regards, Jakub Piotr Cłapa

Re: [racket] Can raco exe assign a name other than racket?

2011-04-03 Thread Jakub Piotr Cłapa
get the process name if not from argv[0]? ELF headers? -- regards, Jakub Piotr Cłapa _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

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

2011-02-17 Thread Jakub Piotr Cłapa
form which quotes syntax errors so you can test them. And make the normal test form re-raise syntax errors. I don't think that having to use a separate form just to test macros would be a bad idea. -- regards, Jakub Piotr Cłapa _ For list-related

Re: [racket] WebSocket server dropping connections

2011-02-08 Thread Jakub Piotr Cłapa
ws-close! will not be able to set ws-conn-closed? to #f if there are errors in the shutdown sequence (i.e. if write-byte throws an exception). -- regards, Jakub Piotr Cłapa _ For list-related administrative tasks: http://lists.racket-lang.org

[racket] WebSocket server dropping connections

2011-02-06 Thread Jakub Piotr Cłapa
: ~s m))]) (handle-request msg) (loop))] (log-info exiting from handle-client) (remove-observers!))) (define (start-server) (ws-serve handle-connection #:port 8080 #:conn-headers handle-handshake)) #v- -- regards, Jakub Piotr

[racket] Is there anything like the cl format?

2010-12-17 Thread Jakub Piotr Cłapa
/src/9c60a54ee7df/receive.ss -- regards, Jakub Piotr Cłapa _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

Re: [racket] Racket 5.0.99.2 on OS X

2010-11-29 Thread Jakub Piotr Cłapa
Dear Matthew, Sorry for the long delay. I will try to help you as much as I can. On 26.11.10 15:03, Matthew Flatt wrote: At Thu, 25 Nov 2010 21:30:59 +0100, Jakub Piotr Cłapa wrote: I tried to install the new Racket nightly on OS X (the previous one was missing cairo IIRC). Can you tell me

Re: [racket] what initial velocity to use when calculating velocity from acceleration (peripherally moby-related...)

2010-11-29 Thread Jakub Piotr Cłapa
to press it while standing still. You will get funny results if someone calibrates inside a moving vehicle which sometimes stops (like a bus). ;] -- regards, Jakub Piotr Cłapa _ For list-related administrative tasks: http://lists.racket-lang.org

Re: [racket] Racket 5.0.99.2 on OS X

2010-11-29 Thread Jakub Piotr Cłapa
experiment: * Change the `performKeyEquivalent:' implementation to just #t * Run GRacket. Does Cmd-A work? Cmd-Q? No. A fourth experiment: * Change the `performKeyEquivalent:' implementation to just #f * Run GRacket. Does Cmd-A work? Cmd-Q? No. -- regards, Jakub Piotr

[racket] Racket 5.0.99.2 on OS X

2010-11-25 Thread Jakub Piotr Cłapa
-downs do not react to clicks. I can activate and change some of them using the keyboard (Tabs + Space). I removed the org.racket-lang.prefs.rktd file but it didn't help. Please let me know if there is anything I can do to debug it. [1]: http://cl.ly/2j2g3m1o0z3i3w472S3l -- regards, Jakub Piotr

Re: [racket] How can I measure time in nanoseconds?

2010-11-12 Thread Jakub Piotr Cłapa
(but that is a guess; I didn't measure). -- regards, Jakub Piotr Cłapa _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

Re: [racket] How can I measure time in nanoseconds?

2010-11-12 Thread Jakub Piotr Cłapa
also get negative numbers, which is very weird. This one is a little unexpected. :) -- regards, Jakub Piotr Cłapa _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

Re: [racket] Are there any functional structs in Racket

2010-10-20 Thread Jakub Piotr Cłapa
On 20.10.10 09:16, Nikita B. Zuev wrote: Hello, I'm looking for a way to use Raket's structs in a functional way. Have you tried struct-copy ? -- regards, Jakub Piotr Cłapa _ For list-related administrative tasks: http://lists.racket-lang.org

[racket] [OT] Re: Fundamentals

2010-10-16 Thread Jakub Piotr Cłapa
od disassemblers goes it is not a trivial problem to solve. -- regards, Jakub Piotr Cłapa _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

Re: [racket] [OT] Re: Fundamentals

2010-10-16 Thread Jakub Piotr Cłapa
On 16.10.10 18:29, Neil Van Dyke wrote: Jakub Piotr Cłapa wrote at 10/16/2010 11:57 AM: On 14.10.10 11:44, Noel Welsh wrote: The distinction is a bit arbitrary, as with a one-to-one mapping you can convert from one to the other with no loss of information. AFAIK this is true in general since

Re: [racket] calling osx binaries from racket

2010-08-25 Thread Jakub Piotr Cłapa
. That said: 1. Trying several popular paths is probably a good idea (an example of worse is better) 2. Running the command in a subshell (one obtained from /etc/passwd or Terminal.app configuration) should also work (but requires you to do argument quoting) -- regards, Jakub Piotr Cłapa

Re: [racket] calling osx binaries from racket

2010-08-24 Thread Jakub Piotr Cłapa
. Generally every environment variable I set in my .zshenv is visible in DrRacket. (including all the paths from paths.d) PS. I run 10.6 and Racket 5.0.1.2--2010-07-26. -- regards, Jakub Piotr Cłapa _ For list-related administrative tasks: http

Re: [racket] gracket 5.0.1.2 performance on OS X

2010-08-11 Thread Jakub Piotr Cłapa
On 10.08.10 20:06, Jakub Piotr Cłapa wrote: The behaviour stops as soon as I remove the sleep .001 from the shell script (so it outputs data in big chunks). It looks to me like the event loop and racket thread scheduling is not working very well in the GUI version of racket. I did some

Re: [racket] gracket 5.0.1.2 performance on OS X

2010-08-11 Thread Jakub Piotr Cłapa
On 12.08.10 03:05, Matthew Flatt wrote: At Thu, 12 Aug 2010 02:42:20 +0200, Jakub Piotr Cłapa wrote: I tracked the error down to: (ffi-lib /Users/jpc/Sources/gr2/src/build/gracket/libs/libcairo.2) ffi-lib: couldn't open /Users/jpc/Sources/gr2/src/build/gracket/libs/libcairo.2.dylib (dlopen

[racket] gracket 5.0.1.2 performance on OS X

2010-08-10 Thread Jakub Piotr Cłapa
of racket. PS. I did not test older versions since I do not have them installed right now but I am happy to do any additional tests you think may be helpful. -- regards, Jakub Piotr Cłapa #lang racket (define-values (child sout sin serr) (subprocess #f #f #f ./test.sh)) (copy-port sout (current

Re: [racket] Modifying bindings in parent environment

2010-08-08 Thread Jakub Piotr Cłapa
(define-syntax-rule (make-accessor b) (case-lambda [() b] [(v) (set! b v)])) (define (f x y) (let ([old-x (x)]) (x y) (list old-x (x (let ([b 15]) (list b (f (make-accessor b) 3) b)) -- regards, Jakub Piotr Cłapa

Re: [racket] adding other objects to custodian

2010-07-07 Thread Jakub Piotr Cłapa
it astethicaly and it did not help with making my program more robust (rather to the contrary, unfortunately). -- regards, Jakub Piotr Cłapa _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

Re: [racket] adding other objects to custodian

2010-07-05 Thread Jakub Piotr Cłapa
] DJB has some nice stories about UNIX daemons and their authors funny ideas: http://cr.yp.to/daemontools/faq/create.html#fghack -- regards, Jakub Piotr Cłapa _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

Re: [racket] context switching

2010-06-14 Thread Jakub Piotr Cłapa
some ways to protect yourself agains malicious and runaway code. (threads and kill-thread are good but you must check that all your code is kill-safe) -- regards, Jakub Piotr Cłapa _ For list-related administrative tasks: http://lists.racket