[racket] SIGCHLD handler called in stderr

2012-12-06 Thread Sergey Khorev
Hi, When using embedded Racket, I noticed it can write to stderr directly: static void got_sigchld() XFORM_SKIP_PROC { if(-1 == write(2, "SIGCHLD handler called (some thread has SIGCHLD unblocked)\n", 59)) { } } Is it be possible to disable this for embedded configuration as it messes up st

Re: [racket] disable inlining for recursive functions

2012-12-06 Thread Robby Findler
In addition to what Sam mentioned, if you use state in your function, then the optimizer tends to give up early, so you can often stick a set! that isn't doing anything to make it give up. Robby On Thu, Dec 6, 2012 at 12:27 AM, Denys Rtveliashvili wrote: > Hello, > > Is there a way of disabling

Re: [racket] Behavior of file-exists? and directory-list

2012-12-06 Thread Greg Hendershott
I'm fuzzy on the details, but I believe recent versions of Windows handle applications that to dump potentially conflicting things in System32, by using a "side-by-side" configuration strategy? If so, perhaps some of the items are in fact some variety of link rather than a normal file. As Jay ment

Re: [racket] Behavior of file-exists? and directory-list

2012-12-06 Thread Tim Nelson
It actually _is_ in my PATH already: > (find-executable-path "javaw.exe") # > (getenv "PATH") "...;C:\\Windows\\system32;..." (Other members of PATH omitted.) Weird, huh? Something is wonky. I even tried changing the capitalization of "system" on the off chance that case mattered, but nope. Ben:

Re: [racket] Behavior of file-exists? and directory-list

2012-12-06 Thread Danny Yoo
On Thu, Dec 6, 2012 at 4:22 PM, Tim Nelson wrote: > Thanks for the hint Danny. I didn't know about that function... but I'm > sorry to say that > > > (find-executable-path "java.exe") > #f > > whereas from cmd: > > where java > C:\Windows\System32\java.exe > > so the command line knows about it,

Re: [racket] Behavior of file-exists? and directory-list

2012-12-06 Thread Ben Goetter
On 12/6/2012 2:13 PM, Tim Nelson wrote: I'm stumped. I even tried to track directory-list to its source, but lost the scent in pre-base.rkt. pre-base.rkt makes my head hurt, too. It's in racket\src\racket\src\file.c. Ben Racket Users list: http://lists.racket-lang.org/u

Re: [racket] Behavior of file-exists? and directory-list

2012-12-06 Thread Jay McCarthy
Oh! I just remembered that we recently patch Racket with Racket blinders so that it doesn't acknowledge the existence of any language not implemented a Racket macro. I think you're just out of luck unless you want to downgrade. Jay On Thu, Dec 6, 2012 at 4:22 PM, Tim Nelson wrote: > Thanks for

Re: [racket] Behavior of file-exists? and directory-list

2012-12-06 Thread Tim Nelson
Thanks for the hint Danny. I didn't know about that function... but I'm sorry to say that > (find-executable-path "java.exe") #f whereas from cmd: > where java C:\Windows\System32\java.exe so the command line knows about it, and I can use it, but it is concealed from Racket, even via find-execut

Re: [racket] Behavior of file-exists? and directory-list

2012-12-06 Thread Danny Yoo
> One of my Racket projects scans the PATH directories to locate > the Java executable, if one is installed. > If you're searching through PATHt, you should be able to use find-executable-path. http://docs.racket-lang.org/reference/Filesystem.html#(def._((lib._racket/private/misc..rkt)._find-exec

Re: [racket] Behavior of file-exists? and directory-list

2012-12-06 Thread Jos Koot
(directory-exists? "C:\\Windows\\System32") -> #t (file-exists? "C:\\Windows\\System32") -> #f You wrote: "(Yes, Windows 8, please don't laugh at me. :-) )" I am laughing to myself, for I use windows 7 and windows XP :) Jos _ From: users-boun...@racket-lang.org [mailto:users-boun...

Re: [racket] Behavior of file-exists? and directory-list

2012-12-06 Thread Tim Nelson
I don't think that the file (in this case, java.exe) is a symlink, and it's definitely not a shortcut. What really worries me is that it doesn't come up when calling (directory-list), which doesn't have as strong a filter as file-exists?. Is directory-list supposed to ignore anything? I could pipe

Re: [racket] Behavior of file-exists? and directory-list

2012-12-06 Thread Jay McCarthy
file-exists? checks if it a FILE, it returns false on directories, links (shortcuts), special files, etc. Could that be it? Jay On Thu, Dec 6, 2012 at 3:13 PM, Tim Nelson wrote: > Dear Benevolent Racketeers, > > I just installed DrRacket 5.3.1 on my Windows 8 Laptop. (Yes, > Windows 8, please

[racket] Behavior of file-exists? and directory-list

2012-12-06 Thread Tim Nelson
Dear Benevolent Racketeers, I just installed DrRacket 5.3.1 on my Windows 8 Laptop. (Yes, Windows 8, please don't laugh at me. :-) ) I have not checked this on other operating systems or other versions of Racket. One of my Racket projects scans the PATH directories to locate the Java executable,

Re: [racket] disable inlining for recursive functions

2012-12-06 Thread Sam Tobin-Hochstadt
See On Wed, Dec 5, 2012 at 10:27 PM, Denys Rtveliashvili wrote: > Hello, > > Is there a way of disabling the inlining for recursive functions? See the `--disable-inline` flag to `raco make`. Sam Racket Users list: http://lists.racket-lang.org/users

[racket] disable inlining for recursive functions

2012-12-06 Thread Denys Rtveliashvili
Hello, Is there a way of disabling the inlining for recursive functions? This code: (define (do_loop i) (when (< i 100) (do_loop (add1 i Is compiled into this: (begin (module test3 (require (lib "racket/main.rkt")) (define-values (_do_loop) (lambda

Re: [racket] OPERATING SYSTEM ON A FPGA

2012-12-06 Thread Erich Rast
Reminder: If you need a space cadet keyboard to use an OS, it'll have lower chances of long-term success... However, the keyboard layout was pretty cool. On Wed, 5 Dec 2012 20:59:44 -0800 Joe Marshall wrote: > http://dspace.mit.edu/handle/1721.1/5731 > > "Those who cannot remember the past