Re: [racket] distributed places - throwing dcgm-type contract violation on *channel-get

2012-12-16 Thread Kevin Tew
re you running? Perhaps there's something funny about my build? I don't know anything about distributed/places internals here, I'm just guessing. I've tested this on Fedora 17 x64, and on an amazon stock x64 ec2 machine. Regards, Matthew Eric On 12/15/2012 04:05 AM, Ke

Re: [racket] distributed places - throwing dcgm-type contract violation on *channel-get

2012-12-15 Thread Kevin Tew
The following thunk example works for me. Uncommenting the message-router line will pump back stdout and stderr from the remote node so you can see any errors that may be occurring at the remote-node. You will have to kill the message router by hitting CTRL-C when you want to end the program.

Re: [racket] Goldilocks: install too big, install-plain too slow

2012-12-04 Thread Kevin Tew
Nevermind, my bad, I was using a "uninstalled racket3m" binary. ~/src/racket/build/racket/racket3m On 12/04/2012 10:06 AM, Sam Tobin-Hochstadt wrote: Really? What happened with the command I posted? It certainly works for me here. On Tue, Dec 4, 2012 at 12:03 PM, Kevin Tew wrote:

Re: [racket] Goldilocks: install too big, install-plain too slow

2012-12-04 Thread Kevin Tew
On 12/04/2012 08:53 AM, Sam Tobin-Hochstadt wrote: On Wed, Nov 28, 2012 at 5:23 PM, Daniel Farina wrote: I have tried the install-plain make target and it is indeed much smaller, but it compiles/installs very little -- no raco, and apparently very little byte-compiling, because the racket REPL

Re: [racket] Statistical profiler doesn't return a complete report with JIT

2012-11-16 Thread Kevin Tew
It looks stripped to me! no .debug sections. ➜ ~/temp/usr/bin git:(master) ✗ objdump -h racket Fri Nov 16 11 2012 04:07:16 PM: racket: file format elf64-x86-64 Sections: Idx Name Size VMA LMA File off Algn 0 .interp 001c 00400270 00400270 0270 2**0 CONTENTS, ALLOC, LO

Re: [racket] sync and input ports

2012-11-10 Thread Kevin Tew
I'm not sure I understand your question. But you need to wrap your input events with handle-evt or wrap-evt so you can close over state that helps you distinguish the events when sync returns. Kevin On 11/10/2012 10:55 AM, Laurent wrote: Hi, Can a single 'sync' accept several input-port even

Re: [racket] XNextEvent blocking 'read' in other thread?

2012-11-08 Thread Kevin Tew
;; (printf "Event ~a\n" event) (server-loop (send root handle-event event)))) On 11/07/2012 11:13 AM, Kevin Tew wrote: yeah I'm putting it in a subdirectory. I'm also trying to get XConnectionNumber to work f

Re: [racket] XNextEvent blocking 'read' in other thread?

2012-11-07 Thread Kevin Tew
Racket threads are green or user threads, they are not scheduled by the operating system. Blocking on a socket in XNextEvent blocks the entire Racket VM. You need to use XConnectionNumber to get the X socket file descriptor number and then create a port that you can sync on with Racket's sync

Re: [racket] Racket Doc / Places

2012-11-05 Thread Kevin Tew
f the form @racket[(#,(racket quote) _sym)] unless the module is predefined (see On 11/05/2012 08:52 AM, Kevin Tew wrote: On 11/05/2012 08:23 AM, Ray Racine wrote: "If the output ports are file-stream ports , then the connected ports in the places share the underlying stream, otherwis

Re: [racket] Racket Doc / Places

2012-11-05 Thread Kevin Tew
On 11/05/2012 08:23 AM, Ray Racine wrote: "If the output ports are file-stream ports , then the connected ports in the places share the underlying stream, otherwise a thread in the creating place pumps bytes to the current ports in the creating place." Should that be "..., otherwise a thr

Re: [racket] Racket and concurrency

2012-07-03 Thread Kevin Tew
I forgot to reply to the list. On 07/03/2012 10:33 AM, Harry Spier wrote: I'm starting to look at Racket concurrency functions (futures and places) to increase the efficiency of my application and I have a few questions. Its an OCR application so that once I've segmented the text and created a

Re: [racket] remote tasks

2012-05-16 Thread Kevin Tew
On 05/15/2012 09:37 AM, Eli Barzilay wrote: Yesterday, Kevin Tew wrote: Attached is a distributed places program that will do what you want. It requires the latest checkout from git head. You must have ssh public-key authentication setup on all the nodes. For easy use, it also requires that

Re: [racket] remote tasks

2012-05-14 Thread Kevin Tew
I'm not familiar with the wiki, but I don't mind if it gets included. Kevin On 05/14/2012 02:16 PM, Matthias Felleisen wrote: Is this something for the Wiki on Tricks and Hacks with Racket? On May 14, 2012, at 1:18 PM, Kevin Tew wrote: Attached is a distributed places program th

Re: [racket] remote tasks

2012-05-14 Thread Kevin Tew
machines. It communicates with plain sockets, so it assumes a secure environment. Let me know what problems you have or if it works for you. I would start by testing it out using just localhost. Kevin Tew On 05/13/2012 01:53 PM, HP Wei wrote: Would you please suggest to me some links so that I

Re: [racket] Problem with places and sync/timeout

2012-03-19 Thread Kevin Tew
Fix was committed last Friday. Kevin Racket Users list: http://lists.racket-lang.org/users

Re: [racket] Problem with places and sync/timeout

2012-03-13 Thread Kevin Tew
Thanks for the problem report. It appears to be a bug, I'm working on it. Kevin #0 0x77265473 in poll () from /lib/x86_64-linux-gnu/libc.so.6 #1 0x00575a42 in default_sleep (v=, fds=0x74bc81b0) at ../../../src/racket/gc2/../src/port.c:9815 #2 0x006104bd in check_s

Re: [racket] Google Summer of Code 2012 Ideas

2012-03-06 Thread Kevin Tew
I'm working on distribute places. The first version should hit git later today as racket/place/distributed. The abstraction over places is working pretty well. The abstraction over threads is planned but not started yet. Kevin On 03/05/2012 08:12 PM, Eduardo Bellani wrote: -BEGIN PGP SIGNED

Re: [racket] Racket 5.2.1 segfault

2012-02-29 Thread Kevin Tew
This is the magic incantation I use to use with valgrind. valgrind --tool=memcheck --db-attach=yes --vex-iropt-precise-memory-exns=yes --leak-check=full --num-callers=40 the --vex-iropt-precise-memory-exns=yes is important for running racket. Kevin On 02/29/2012 10:29 PM, Simon Haines wrote:

Re: [racket] which version of DrRacket to download

2011-09-02 Thread Kevin Tew
__sync_bool_compare_and_swap is compiler builtin intrinsic only present in gcc versions>= 4.1. I'd guess you have gcc 4.0 on the system. You might want to try Linux i386 (Fedora 12) Kevin On 09/02/2011 07:40 AM, Stephen Bloch wrote: On Sep 2, 2011, at 9:18 AM, Matthias Felleisen wrote: Does

Re: [racket] racket/place seems to be incompatible with DrRacket

2011-08-30 Thread Kevin Tew
s or racket pipes for a new place's standard in, out, and err ports. In the Drracket case, I'll detect that that the current-error-port isn't a file port or racket pipe and set up an IO pump that pumps a place's standard IO ports into the current Drracket ones. I think that sh

Re: [racket] racket/place seems to be incompatible with DrRacket

2011-08-30 Thread Kevin Tew
acket uses when the file is not saved. Robby On Tue, Aug 30, 2011 at 12:14 PM, Kevin Tew wrote: When I run the code below in drracket, the code seems to run indefinitely. When I hit the stop button the (place-channel-get p) sexp is highlighted in pink. Kevin On 08/30/2011 08:54 AM, David Mitche

Re: [racket] racket/place seems to be incompatible with DrRacket

2011-08-30 Thread Kevin Tew
When I run the code below in drracket, the code seems to run indefinitely. When I hit the stop button the (place-channel-get p) sexp is highlighted in pink. Kevin On 08/30/2011 08:54 AM, David Mitchell wrote: #lang racket (define (super-simple) (define p (place ch

Re: [racket] Dr. Racket fails to startup on OS X Lion

2011-07-24 Thread Kevin Tew
The nightly builds should work. Try them here: http://pre.plt-scheme.org/installers/ On 07/23/2011 11:04 PM, Andrew Sundstrom wrote: Hi. Dr. Racket stopped working after my upgrade to OS X Lion. Below is the detail report from the most recent failed application startup. - Process:

Re: [racket] OS threads, parallel-map, etc.

2011-05-31 Thread Kevin Tew
On 05/31/2011 09:52 AM, Erich Rast wrote: Recently I started to wonder why Racket has futures and now also places but so far lacks traditional OS-level threads and parallel-map, parallel-for-each, parallel-sort, parallel-filter, for/parallel and the likes for sequences. Places is an abstraction o

Re: [racket] Strange error 5.1.0.2 define-runtime-path

2011-02-24 Thread Kevin Tew
On 02/23/2011 01:23 PM, Eduardo Bellani wrote: I was going to experiment with places for parallelism and I have compiled from source to support it. Then I've encountered a very strange bug that does not happen with 5.1 Did you compile 5.1 with places also? ;;test.rkt #lang racket (require "def

Re: [racket] Efficiency of tight loops in Racket

2011-01-17 Thread Kevin Tew
I'll look into it. I haven't tried places on windows in some time, I'll bring up to date this week. Kevin On 01/17/2011 08:13 AM, Robby Findler wrote: I think the real reason is actually much sadder: no one on the core team regularly uses windows. Well, until about a month ago, when I started

Re: [racket] Building racket from source

2010-12-28 Thread Kevin Tew
Have you tried sudo apt-get install build-essential Kevin On 12/28/2010 01:03 PM, Nikita B. Zuev wrote: Well as Matthew Flatt suggested I compiled 5.0.99.5 so the problem is solved... I think. But for the purpose of finding The Truth, I still tried to make 5.0.2))) [nikit...@oni build]$ LDFLAG

Re: [racket] duplicate/copy a namespace

2010-11-09 Thread Kevin Tew
I've been wanting to implement a fork-like feature for places where a new place is created as a clone of its parent. A deep namespace-copy could be useful in that scenario. On 11/08/2010 04:49 PM, Jay McCarthy wrote: Could namespaces be dicts and we could write dict-copy? Jay On Mon, Nov 8, 2

Re: [racket] Compiling Racket on Maemo 5

2010-07-13 Thread Kevin Tew
void scheme_thread_block(float sleep_time) #ifdef MZ_USE_FUTURES scheme_check_future_work(); #endif -#ifdef MZ_USE_MZRT +#if defined(MZ_USE_MZRT) && !defined(DONT_USE_FOREIGN) scheme_check_foreign_work(); #endif On 07/13/2010 10:03 AM, Kevin Tew wrote: Try this patch, if it works for you. I

Re: [racket] Compiling Racket on Maemo 5

2010-07-13 Thread Kevin Tew
Try this patch, if it works for you. I'll commit it Kevin diff --git a/src/racket/src/env.c b/src/racket/src/env.c index b1c0a8d..68b634b 100644 --- a/src/racket/src/env.c +++ b/src/racket/src/env.c @@ -501,7 +501,9 @@ static Scheme_Env *place_instance_init(void *stack_base, int initial_main_o