Re: [racket] raco setup broken if behind softlink

2014-02-27 Thread Tobias Hammer
link is not called "raco", then it uses `setup-plt` mode, which treats arguments as file names instead of collection names. You can work around the problem by supplying `-l` before `mycollection`. At Thu, 27 Feb 2014 14:56:58 +0100, Tobias Hammer wrote: Hi, if i use a softlink on lin

[racket] raco setup broken if behind softlink

2014-02-27 Thread Tobias Hammer
s if i am trying something evil or for possible workarounds. Tobias -- Tobias Hammer DLR / Robotics and Mechatronics Center (RMC) Muenchner Str. 20, D-82234 Wessling Tel.: 08153/28-1487 Mail: tobias.ham...@dlr.de Racket Users list: http://lists.racket-lang.org/users

Re: [racket] Racket v5.92

2014-01-28 Thread Tobias Hammer
on to SVG format. * Under unix, Racket provides desktop entries (.desktop files) for its graphical executables. Racket Users list: http://lists.racket-lang.org/users -- Tobias Hammer DLR / Robotics and Mechatronics Center (RMC) Muenchner Str. 20, D-82234 Wessl

Re: [racket] Custodian behavior on normal exit

2013-10-30 Thread Tobias Hammer
_ Racket Users list: http://lists.racket-lang.org/users -- --------- Tobias Hammer DLR / Robotics and Mechatronics Center (RMC) Muenchner Str. 20, D-82234 Wessling Tel.: 08153/28-1487 Mail: tobias.ham...@dlr.de Racket Users list: http://lists.racket-lang.org/users

Re: [racket] Computing dot product via racket math library

2013-10-24 Thread Tobias Hammer
e questions are: A. Is there dot product function available? B. Is there any reason that matrix* yields single-element matrix (2) Thanks -- ----- Tobias Hammer DLR / Robotics and Mechatronics Center (RMC) Muenchner Str. 20, D-82234 Wessling T

Re: [racket] Debugging a seg fault

2013-10-24 Thread Tobias Hammer
My normal workflow for this (preferring post-mortem analysis because no special flags for gdb required) enable core dumps ulimit -c unlimited cat segv.rkt #lang racket (require ffi/unsafe) (define _strlen (get-ffi-obj "strlen" #f (_fun _pointer -> _int))) (_strlen #f) racket segv.rkt SI

Re: [racket] many permissions & other problems using packages in 5.3.6... workarounds?

2013-10-14 Thread Tobias Hammer
On Sun, 13 Oct 2013 21:37:55 +0200, Eli Barzilay wrote: 2. One thing on Windows that prevents removing a directory is when there's a process whose working directory you're trying to delete. (I keep running into that when I try to remove some directory and there's a cygwin shell in that

Re: [racket] Adjusting behavior based on version of Racket?

2013-10-08 Thread Tobias Hammer
our-filesystem-change-evt)]) ;1 (define f (dynamic-require 'racket/base 'filesystem-change-evt)) (match (f (build-path 'same) (const our-filesystem-change-evt)) [(? procedure? f) f] ;2 [(? evt?) f]))) ;3 Racket Users list: http://lists.racket-la

[racket] struct #:methods question

2013-08-28 Thread Tobias Hammer
to have no real impact as i get the exactly same error with just leaving it out? Thanks for any clarification. Tobias -- --------- Tobias Hammer DLR / Robotics and Mechatronics Center (RMC) Muenchner Str. 20, D-82234 Wessling Tel.: 08153/28-1487 M

Re: [racket] Generics and modules

2013-08-28 Thread Tobias Hammer
On Tue, 27 Aug 2013 20:03:43 +0200, Greg Hendershott wrote: I've been wondering whether it would be more practical for struct-generated names to concatenate with colon (":") as a separator, rather than with minus ("-"). 1. Yes. In addition to name conflicts, it's harder on human code re

Re: [racket] Help with exception raising and testing

2013-08-28 Thread Tobias Hammer
On Tue, 27 Aug 2013 22:35:06 +0200, Asumu Takikawa wrote: In addition, the test predicate should take an exception value so `negative?` won't work. You probably want a predicate like `(λ (e) (regexp-match #rx"negative?" (exn-message e)))` instead. Slightly OT: check-exn can directly take a re

Re: [racket] A `check-expansion` for rackunit to test macros?

2013-08-27 Thread Tobias Hammer
d/should rackunit provide something like `check-expansion`? Racket Users list: http://lists.racket-lang.org/users -- --------- Tobias Hammer DLR / Robotics and Mechatronics Center (RMC) Muenchner Str. 20, D-82234 Wessling Tel.: 08153/28-1487 Mail: tob

Re: [racket] OpenCL module macro errors

2013-08-26 Thread Tobias Hammer
acket Users list: http://lists.racket-lang.org/users ________ Racket Users list: http://lists.racket-lang.org/users -- - Tobias Hammer DLR / Robotics and Mechatronics Center (RMC) Muenchner Str. 20, D-82234 Wessling Tel.: 08153/28-1487 Mail: tobias.ham...@dlr.de Racket Users list: http://lists.racket-lang.org/users

Re: [racket] Stuttering problems with big-bang

2013-08-08 Thread Tobias Hammer
Racket Users list: http://lists.racket-lang.org/users Racket Users list: http://lists.racket-lang.org/users Racket Users list: http://lists.racket-lang.org/users -- - Tobias

[racket] srcloc in unbound identifier errors

2013-07-26 Thread Tobias Hammer
nce an identifier before its definition ;; in module: 'm ;; phase: 1 ;; context...: ;;standard-module-name-resolver -- ----- Tobias Hammer DLR / Robotics and Mechatronics Center (RMC) Muenchner Str. 20, D-82234 Wessling Te

Re: [racket] learn racket in 10 minutes

2013-07-15 Thread Tobias Hammer
Thanks again R -- --------- Tobias Hammer DLR / Robotics and Mechatronics Center (RMC) Muenchner Str. 20, D-82234 Wessling Tel.: 08153/28-1487 Mail: tobias.ham...@dlr.de Racket Users list: http://lists.racket-lang.org/users

Re: [racket] issue with function "regexp-replaces"

2013-06-07 Thread Tobias Hammer
the same file (full of from-to pairs) are a bunch of straight string replacements, like this: > > > >("…""\\…") > > > > > >I cannot figure out what's wrong with this one: what to do here > > > >("\n""\n") &

Re: [racket] Rosetta code submission / string operations

2013-06-04 Thread Tobias Hammer
Sorry for the misinformation but Eli is of course right that regexp-quote must be used. Example: (regexp-match? "a" "abc") #t (regexp-match? "." "abc") #t ; WRONG! '.' matches every character (regexp-match? (regexp-quote "a") "abc") #t (regexp-match? (regexp-quote ".") "abc") #f On

Re: [racket] quasisyntax vs quasisyntax/loc

2013-06-04 Thread Tobias Hammer
A difference is that `quasisyntax/loc' is predefined --- so, in some sense, you're not supposed to know that it's a macro, and maybe it should just work. Offhand, I can imagine ways to fix the interaction of `quasisyntax' and `quasisyntax/loc', but I'll have to think

Re: [racket] Rosetta code submission / string operations

2013-06-04 Thread Tobias Hammer
Or even shorter (regexp-match? sub-str str) (Didn't know that worked) On Tue, 04 Jun 2013 13:34:37 +0200, Tobias Hammer wrote: I think regexp are the right choice: (regexp-match? (regexp sub-str) str)) On Tue, 04 Jun 2013 12:43:02 +0200, Daniel Prager wrote: I've just

Re: [racket] Rosetta code submission / string operations

2013-06-04 Thread Tobias Hammer
lso most welcome. -- Dan -- --------- Tobias Hammer DLR / Robotics and Mechatronics Center (RMC) Muenchner Str. 20, D-82234 Wessling Tel.: 08153/28-1487 Mail: tobias.ham...@dlr.de Racket Users list: http://lists.racket-lang.org/users

[racket] quasisyntax vs quasisyntax/loc

2013-06-04 Thread Tobias Hammer
var 'outer]) (quasisyntax/loc stx (let ([var 'inner]) (quasisyntax/loc #'here #,var])) (loc) # -- --------- Tobias Hammer DLR / Robotics and Mechatronics Center (RMC) Muenchner Str. 20, D-8223

[racket] dynamic-require and submod

2013-05-29 Thread Tobias Hammer
;d as my example runs with #lang racket/load) Tobias -- --------- Tobias Hammer DLR / Robotics and Mechatronics Center (RMC) Muenchner Str. 20, D-82234 Wessling Tel.: 08153/28-1487 Mail: tobias.ham...@dlr.de Racket Users list: http://lists.racket-lang.org/users

Re: [racket] non-shared module variables

2013-05-28 Thread Tobias Hammer
ate-dependent-function (add v) (set! state (cons v state))) (define-invocation-local-state-dependent-function (get) state) (provide (except-out (all-from-out racket/base) #%module-begin) (rename-out [module-begin #%module-begin]) add get) On Tue, May 28,

Re: [racket] non-shared module variables

2013-05-28 Thread Tobias Hammer
ut racket/base) #%module-begin) (rename-out [module-begin #%module-begin]) add get) On Tue, May 28, 2013 at 5:59 AM, Tobias Hammer wrote: Hi, i am trying to write a simple language that has variables that should not be shar

[racket] non-shared module variables

2013-05-28 Thread Tobias Hammer
of complexity. So, the question is, what is the right way to get the desired behavior? Tobias -- - Tobias Hammer DLR / Robotics and Mechatronics Center (RMC) Muenchner Str. 20, D-82234 Wessling Tel.: 08153/28-1487 Mail: tobias.ham..

Re: [racket] raco setup parallel build

2013-05-03 Thread Tobias Hammer
te: I think it doesn't scale past about 6, which is probably why the limit of 8 is there. Robby On Fri, May 3, 2013 at 7:00 AM, Tobias Hammer wrote: > Good hint. > Only on 32bit linux it's limited to 4 and on 64bit the hard limit seems to > be 8. > It's good

Re: [racket] raco setup parallel build

2013-05-03 Thread Tobias Hammer
13:53:58 +0200, Robby Findler wrote: It is with a 32 bit build (possibly only under windows, I forget). I believe the issue is that the docs building phase runs out of memory with more. Robby On Fri, May 3, 2013 at 6:47 AM, Tobias Hammer wrote: Hi, is raco setup limited to use

[racket] raco setup parallel build

2013-05-03 Thread Tobias Hammer
claim that). Tobias -- ----- Tobias Hammer DLR / Robotics and Mechatronics Center (RMC) Muenchner Str. 20, D-82234 Wessling Tel.: 08153/28-1487 Mail: tobias.ham...@dlr.de Racket Users list: http://lists.racket-lang.org/users

Re: [racket] Typed Racket HashTable vs Racket HashTable

2013-04-08 Thread Tobias Hammer
Today nightlies. -- --------- Tobias Hammer DLR / Robotics and Mechatronics Center (RMC) Muenchner Str. 20, D-82234 Wessling Tel.: 08153/28-1487 Mail: tobias.ham...@dlr.de Racket Users list: http://lists.racket-lang.org/users

Re: [racket] Nesting evt handlers

2013-03-28 Thread Tobias Hammer
r' also should be changed, because "generator" now means something specific and different. At Thu, 28 Mar 2013 16:08:09 +0100, Tobias Hammer wrote: Hi, i am trying to understand how nack-guard-evt works. Therefore i created the appended test program. Sometimes it stops with the e

[racket] Trouble with nack-guard-evt

2013-03-28 Thread Tobias Hammer
ync/timeout 0. nack)) 'ALWAYS #f . . sync/timeout: contract violation expected: evt? given: #f argument position: 2nd other arguments...: 0.0 OR 'ALWAYS # # -- --------- Tobias Hammer DLR / Robotics and Mechatronics Cen

Re: [racket] Understanding raco make and its correctness guarantees

2013-03-21 Thread Tobias Hammer
ms very counter intuitive. On Thu, Mar 21, 2013 at 1:51 AM, Tobias Hammer wrote: > The difference lies in the method how racket and raco make check for > changes. > - racket only looks at each individual file's timestamp source and .zo > timestamp and uses whichever is never

Re: [racket] Understanding raco make and its correctness guarantees

2013-03-21 Thread Tobias Hammer
ne give some insight on what I should be expecting? Racket Users list: http://lists.racket-lang.org/users -- ----- Tobias Hammer DLR / Robotics and Mechatronics Center (RMC) Muenchner Str. 20, D-82234 Wessling Tel.: 08153/28-1487 Mail: tobia

Re: [racket] Places performance

2013-03-15 Thread Tobias Hammer
-get place1) (place-channel-get place2) (place-channel-get place1) (place-channel-get place2) (place-wait place1) (place-wait place2) (void)) (define (noplaces-main) (test-function test-vector) (test-function test-vector) (void)) On Thu, Mar 14

Re: [racket] Places performance

2013-03-14 Thread Tobias Hammer
s cpu time: 15787 real time: 23318 gc time: 1373 Without places cpu time: 7769 real time: 9456 gc time: 4461 Press any key to continue . . . -- Thanks, Harry Spier -- - Tobias Hammer DLR / Institute of Robotics and Mechatronics

Re: [racket] providing cstructs

2013-03-09 Thread Tobias Hammer
(struct-out id), not _id still works. Only the 'special' names like _id, _id-pointer etc. are not included. Tobias On Sat, 09 Mar 2013 09:24:02 +0100, Pierpaolo Bernardi wrote: Hello, I understand that there isn't an abbreviation equivalent to (provide (struct-out ...)), but for cstruc

Re: [racket] size_t and FFI?

2013-02-10 Thread Tobias Hammer
e' to `ffi/unsafe', risking collisions with existing code? Or add `ffi/size' (or `ffi/size_t')? At Fri, 8 Feb 2013 20:45:07 +0100, Tobias Hammer wrote: This should work: _uintptr = size_t _intptr = ssize_t Tobias On Fri, 08 Feb 2013 20:40:43 +0100, Tony Garnock-Jones w

Re: [racket] size_t and FFI?

2013-02-08 Thread Tobias Hammer
ze_t _long) ./racket/draw/unsafe/jpeg.rkt: (define _size_t _intptr) ... of which the last one looks most likely to work properly. Cheers, Tony Racket Users list: http://lists.racket-lang.org/users -- ----- Tobias

Re: [racket] math/matrix <--> FFI/array

2013-01-22 Thread Tobias Hammer
When you pass it directly to c-code, maybe you can completely bypass the array and convert matrix -> flarray -> flvector -> cpointer the last 3 conversions should be blazing fast but i guess that won't matter much for 16 elements. Neil, can you nevertheless tell me more about the expected perf

Re: [racket] performance problem in math/matrix

2013-01-21 Thread Tobias Hammer
disable. If it is enabled, I currently get this curious error from the compiler: ../collects/compiler/cm.rkt:438:6: write: cannot marshal value that is embedded in compiled code value: # I unsure whether it is a bug in my code, or in cm.rkt. -- --

Re: [racket] performance problem in math/matrix

2013-01-20 Thread Tobias Hammer
On Sun, 20 Jan 2013 15:09:42 +0100, Jens Axel Søgaard wrote: Note: Disable "Populate "compiled" directories (for faster loading)" to run it in DrRacket. To disable: Choose the language menu. Choose the menu item "Choose language". Click the button "advanced". The

Re: [racket] How to disable a couple of things in drracket

2012-12-22 Thread Tobias Hammer
ll of the background expansion features) as requested by Tobias. At least that way we can address the immediate problem. Robby On Thu, Nov 22, 2012 at 10:00 AM, Tobias Hammer wrote: The arrows are definitely far more distracting because they overlap everything and pop up whenever i have to

Re: [racket] Places, Channels as Events. Labeling Places.

2012-12-14 Thread Tobias Hammer
ectly. Tobias -- --------- Tobias Hammer DLR / Institute of Robotics and Mechatronics Muenchner Str. 20, D-82234 Wessling Tel.: 08153/28-1487 Mail: tobias.ham...@dlr.de Racket Users list: http://lists.racket-lang.org/users

Re: [racket] How to disable a couple of things in drracket

2012-11-23 Thread Tobias Hammer
modifier key? (I think (hope...) that that isn't being used for anything yet.) Robby On Thu, Nov 22, 2012 at 10:00 AM, Tobias Hammer wrote: The arrows are definitely far more distracting because they overlap everything and pop up whenever i have to click somewhere. The tooltips an

Re: [racket] How to disable a couple of things in drracket

2012-11-22 Thread Tobias Hammer
ltips? Robby On Thu, Nov 22, 2012 at 1:21 AM, Tobias Hammer wrote: Is there a way to disable the hover-arrows without disabling the error messages from online compilation? Tobias On Wed, 21 Nov 2012 20:17:59 +0100, Robby Findler wrote: Right click in the circle on the the bottom of rig

Re: [racket] How to disable a couple of things in drracket

2012-11-21 Thread Tobias Hammer
et...@acm.org | http://www.wisdomandwonder.com/ Wisdom begins in wonder. ((λ (x) (x x)) (λ (x) (x x))) Racket Users list: http://lists.racket-lang.org/users Racket Users list: http://lists.racket-lang.org/users -- ----

Re: [racket] datum<->syntax with same context, yet "unbound identifier"

2012-11-21 Thread Tobias Hammer
On Wed, 21 Nov 2012 15:33:06 +0100, Greg Hendershott wrote: The lexical context you're picking up to put on #'args in the lam macro is the context that's sitting on the parentheses in the first argument to 'lam' in the body of 'expand-to-lam'. that context has no "x" bound. OK, that explain

Re: [racket] Generate Syntax Identifiers

2012-11-15 Thread Tobias Hammer
-tmp") Is there an easier way to append together syntax? Thanks, Ray -- ----- Tobias Hammer DLR / Institute of Robotics and Mechatronics Muenchner Str. 20, D-82234 Wessling Tel.: 08153/28-1487 Mail: tobias.ham...@dlr.de

Re: [racket] Prevent racket From Closing

2012-11-12 Thread Tobias Hammer
on DrRacket, but when I tried to run it under >> > racket >> > (the command-line executable) it shows the sever started message and >> > quits, >> > so the server doesn't keep running. Is there anyway to make racket wait >> > until it's proc

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

2012-11-07 Thread Tobias Hammer
___ Racket Users list: http://lists.racket-lang.org/users -- ----- Tobias Hammer DLR / Institute of Robotics and Mechatronics Muenchner Str. 20, D-82234 Wessling Tel.: 08153/28-1487 Mail: tobias.ham...@dlr.de Racket Users list: http://lists.racket-lang.org/users

Re: [racket] regexp with \"

2012-10-22 Thread Tobias Hammer
ed as the end of the pattern. You have to escape the quote too... " ... \\\" ... " --- nadeem -- - Tobias Hammer DLR / Institute of Robotics and Mechatronics Muenchner Str. 20, D-82234 Wessling Tel.: 08153/28-1487 Mail: to

Re: [racket] objects as hash keys

2012-10-19 Thread Tobias Hammer
From the docs (3.13 Hash Tables): Caveat concerning mutable keys: If a key in an equal?-based hash table is mutated (e.g., a key string is modified with string-set!), then the hash table’s behavior for insertion and lookup operations becomes unpredictable. Try make-hasheq instead of make-has

Re: [racket] Places acting differently in DrRacket and Racket

2012-10-18 Thread Tobias Hammer
The whole enclosing module (file) is executed again on every call to place. Add a print before the place start to see it. Seems to be broken since < 5.2.1. On Thu, 18 Oct 2012 06:39:56 +0200, Nick Shelley wrote: It looks like that was the problem. Thanks! However, if I add (place-wait p

Re: [racket] Semaphore obscurities

2012-09-27 Thread Tobias Hammer
gs…) returns. However the documentation doesn't actually say that. Is that just an oversight, or is the return value of CALL-WITH-SEMAPHORE undefined? Best wishes, Norman -- --------- Tobias Hammer DLR / Institute of Robotics and Mechatr

Re: [racket] 5.3's "mzc optimizer" log-debug, and log "facility" in general

2012-09-10 Thread Tobias Hammer
d point, Tobias. I'd actually be fine with `define-logger' acting like `define/provide-logger' -- just go ahead and provide them all. Because I don't see opacity being such a useful option for a logger, as opposed to something like a struct? On Fri, Sep 7, 2012 at 12:21 PM,

Re: [racket] 5.3's "mzc optimizer" log-debug, and log "facility" in general

2012-09-07 Thread Tobias Hammer
llel to `make-log-receiver'. * Changed the GC to log messages to a 'GC logger, the optimizer to log to an 'optimizer logger, and the futures subsystem to log to a 'future logger. Racket Users list: http://lists.racket-lang.org/users -- --

Re: [racket] Exception not being caught?

2012-09-04 Thread Tobias Hammer
(sudoku) Cannot open file /Users/gregwoodhouse/sudoku/puzzles/puzzle-4a.sdk #(struct:exn:fail:filesystem call-with-input-file: cannot open input file path: /Users/gregwoodhouse/sudoku/puzzles/puzzle-4a.sdk system error: Permission denied; errno=13 #) and (with-handlers

Re: [racket] Strange error with OpenGL in Windows XP

2012-08-01 Thread Tobias Hammer
rtex 0.4 0.4) (gl-end))) (set! init? #f) (send canvas on-paint -- - Tobias Hammer DLR / Institute of Robotics and Mechatronics Tel.: 08153/28-1487 Mail: tobias.ham...@dlr.de Racket Users list: http://lists.racket-lang.org/users

Re: [racket] Fun with denormalized floating point numbers

2012-08-01 Thread Tobias Hammer
Users list: http://lists.racket-lang.org/users -- --------- Tobias Hammer DLR / Institute of Robotics and Mechatronics Tel.: 08153/28-1487 Mail: tobias.ham...@dlr.de Racket Users list: http://lists.racket-lang.org/users

[racket] Circular dependency error message

2012-06-06 Thread Tobias Hammer
-- - Tobias Hammer DLR / Institute of Robotics and Mechatronics Tel.: 08153/28-1487 Mail: tobias.ham...@dlr.de Racket Users list: http://lists.racket-lang.org/users