Re: [racket-dev] Any notion of ".jar" files for Racket?

2012-03-07 Thread Matthew Flatt
At Tue, 6 Mar 2012 14:51:45 -0500, Danny Yoo wrote: > On Tue, Mar 6, 2012 at 2:44 PM, Tony Garnock-Jones wrote: > > On 03/06/2012 02:14 PM, Danny Yoo wrote: > >> > >> The Java folks have a notion of ".jar" files that pack a collection of > >> class files into a single archive, but also make it pos

[racket-dev] submodules

2012-03-07 Thread Matthew Flatt
I've added "submodules" to a version of Racket labeled v5.2.900.1 that's here: https://github.com/mflatt/submodules After we've sorted out any controversial parts of the design and after the documentation is complete, then I'll be ready to merge to the main Racket repo. Why Submodules? ---

Re: [racket-dev] possible bug in openssl/mzssl

2012-03-01 Thread Matthew Flatt
At Thu, 1 Mar 2012 09:31:40 +0400, Sergey Pinaev wrote: > On Wed, 29 Feb 2012 09:20:54 -0700 > Matthew Flatt wrote: > > > Neil and Timur: Thanks for detailed information about the problem. > > > > So far, I haven't managed to replicate the problem on my machine.

Re: [racket-dev] possible bug in openssl/mzssl

2012-02-29 Thread Matthew Flatt
Neil and Timur: Thanks for detailed information about the problem. So far, I haven't managed to replicate the problem on my machine. Do you have any hints on how to configure Apache to trigger the problem or a server that I might try? I've tried connecting to an Apache servers running on 64-bit M

Re: [racket-dev] [plt] Push #24367: master branch updated

2012-02-28 Thread Matthew Flatt
At Tue, 28 Feb 2012 07:21:24 -0600, Robby Findler wrote: > Last I heard, Eli was saying that there was something seriously wrong > with 'raco setup' on two cores. Did that ever get resolved? Commits 012ef60cd545ba and 534886dbe4b6ad (yesterday) were in response and improved things on my machine, s

Re: [racket-dev] build hang on s390x

2012-02-27 Thread Matthew Flatt
My guess is that something is going wrong with the GC's write barrier. In "src/racket/gc2/newgc.c" around line 2677, if you change 1 to 0 in newgc->generations_available = 1; does the build make further progress? At Fri, 24 Feb 2012 21:44:34 -0500, James McCoy wrote: > On Fri, Feb 24, 2012 at

Re: [racket-dev] Request for max-log-level

2012-02-27 Thread Matthew Flatt
We've added this function as `log-max-level'. (Also, I tried to fix the instructions in "schminc.h".) At Thu, 16 Feb 2012 14:53:33 +0100, Tobias Hammer wrote: > Hi, > > i have to synchronize the log levels of a racket logger and an external > logging > system. Therefore i need the information

Re: [racket-dev] Scribble documentation bug

2012-02-24 Thread Matthew Flatt
At Wed, 22 Feb 2012 13:38:37 -0500 (EST), "J. Ian Johnson" wrote: > In scribblings/scribble/manual.scrbl: > cite does not take only strings. I've been using bib-entries with it > exclusively, actually. What all can it take? I see it makes a link element > with > a tag like `(cite ,@all-things-th

Re: [racket-dev] Possible bug in get-module-code function of syntax/modcode

2012-02-24 Thread Matthew Flatt
Right - thanks! I've pushed your repair to the git repo. At Wed, 22 Feb 2012 17:25:09 +0400, Timur Sufiev wrote: > Hi all! > > It seems to me that a bug exists in handling so-extensions inside > get-module-code. Imagine a situation when we want to use get-module-code > on mzmimer.so file which

Re: [racket-dev] Build failures since 5.2

2012-02-19 Thread Matthew Flatt
Thanks for tracking this down! Compiling with `-funisgned-char' on my machine produced the same error. I've corrected the problem (pushed to the git repo) and added a release-time checklist item to try compiling with `-funisgned-char'. At Sat, 18 Feb 2012 21:17:36 -0500, James McCoy wrote: > Hi a

Re: [racket-dev] Possible promotional poster (with apologies to Matthias)

2012-02-18 Thread Matthew Flatt
At Sat, 18 Feb 2012 08:56:22 -0700, Neil Toronto wrote: > Jay had a cool idea to make propagan--er, promotional posters. The > attached SVG isn't the style Jay wanted (like the Obama "Hope" posters) > but I kinda like it. It's here: > > http://students.cs.byu.edu/~ntoronto/matthias-poster.svg >

Re: [racket-dev] collections with no one responsible

2012-02-17 Thread Matthew Flatt
At Fri, 17 Feb 2012 08:43:48 -0500, Sam Tobin-Hochstadt wrote: > On Fri, Feb 3, 2012 at 6:32 PM, Sam Tobin-Hochstadt wrote: > > As well as: > > - gui-builder > >  No one has made significant changes (other than collection-wide > > cleanups) to guibuilder in more than 6 years, except Asumu.  Asumu,

Re: [racket-dev] build fail for 64-bit OS X af9bab74265

2012-02-13 Thread Matthew Flatt
Have you changed anything about your installation via MacPorts lately? I think you're seeing a mismatch between a MacPorts iconv and the pre-installed iconv. See also https://lists.racket-lang.org/dev/archive/2011-April/006153.html At Mon, 13 Feb 2012 17:02:20 -0800, John Clements wrote: > Afte

Re: [racket-dev] Racket logo

2012-02-10 Thread Matthew Flatt
+1 At Thu, 9 Feb 2012 22:34:31 +, Stephen De Gabrielle wrote: > +1 > > On Thu, Feb 9, 2012 at 8:07 PM, Jay McCarthy wrote: > > > +1 > > > > On Wed, Feb 8, 2012 at 6:18 PM, Robby Findler > > wrote: > > > John Clements and Neil Toronto have put together a new Racket logo > > > that I've just

Re: [racket-dev] check over this doc fix to slideshow's (dc ...) before I push?

2012-01-29 Thread Matthew Flatt
At Sat, 28 Jan 2012 15:13:53 -0500, John Clements wrote: > The docs for slideshow's (dc ...) call didn't mention the use of the 'a' and > 'd' arguments. I inferred based on the following docs that these referred to > ascent and descent, and assumed based on the following docs that these were > a

Re: [racket-dev] Release Announcement for v5.2.1

2012-01-23 Thread Matthew Flatt
At Mon, 23 Jan 2012 17:27:47 -0700, Ryan Culpepper wrote: > - racket >- io now uses poll() or kqueue() when available >- floating-point ops now use SSE (when available?) >- cross-module function inlining, racket/performance-hint * Performance improvements include the use of epoll()/kq

Re: [racket-dev] Pre-Release Checklist for v5.2.1, second call

2012-01-23 Thread Matthew Flatt
At Mon, 23 Jan 2012 02:16:06 +0400, Aleksej Saushev wrote: > I'm testing racket-5.2.0.901 on NetBSD 5.99.59 i386. > > After applying patch as attached, Thanks! > Section(deep) > [1] Illegal instruction (core dumped) (cd collects/tests/racket && racket > -f > quiet.rktl) > > [...] > > Any

Re: [racket-dev] Pre-Release Checklist for v5.2.1, second call

2012-01-21 Thread Matthew Flatt
At Fri, 20 Jan 2012 13:18:54 -0700, Ryan Culpepper wrote: >- mzc --exe tests >- Create an executable from a BSL program. Done. _ Racket Developers list: http://lists.racket-lang.org/dev

Re: [racket-dev] Strange error with gui and ffi

2012-01-20 Thread Matthew Flatt
At Thu, 19 Jan 2012 15:40:07 +0100, Tobias Hammer wrote: > > Even if libVLCore is statically linked to a libjpeg, I think it could > > interact with dynamic loading of another libjpeg, depending on the > > platform and linking options. > > I digged a bit more and found the following line the ra

Re: [racket-dev] problem with require and frtime

2012-01-20 Thread Matthew Flatt
At Fri, 20 Jan 2012 13:45:35 +0100, Marijn wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 19-01-12 14:13, Matthew Flatt wrote: > > The `frtime' language exports an `=' that isn't the same as `=' in > > `racket', so that's

Re: [racket-dev] how to disable intra-module constant inlining?

2012-01-19 Thread Matthew Flatt
When I wrote "inlining", I should have written "function inlining". The `compile-context-preservation-enabled' parameter doesn't affect propagation of non-function constants (which I incorrectly called "folding" in my previous message); it affects only function inlining. At Thu, 19 Jan 2012 10:49

Re: [racket-dev] how to disable intra-module constant inlining?

2012-01-19 Thread Matthew Flatt
Do you mean the situation with one module, like this one? ;; a.rkt #lang racket (provide f c) (define (f x) x) (f 3) ; call might be inlined (define c 10) (define use-c c) ; constant might be folded Or are two modules involved, like this second one? ;; b.rkt #lang racket (require "a

Re: [racket-dev] problem with require and frtime

2012-01-19 Thread Matthew Flatt
frtime to #lang racket? -- Matthias > > > > On Jan 19, 2012, at 8:13 AM, Matthew Flatt wrote: > > > The `frtime' language exports an `=' that isn't the same as `=' in > > `racket', so that's why the pattern doesn't match. (This seems like a &

Re: [racket-dev] problem with require and frtime

2012-01-19 Thread Matthew Flatt
d of `?' and `=' --- which makes clear that there's no question of binding. At Thu, 19 Jan 2012 10:46:37 +0100, Marijn wrote: > On 18-01-12 17:47, Matthew Flatt wrote: > > At Wed, 18 Jan 2012 12:02:10 +0100, Marijn wrote: > >> I would expect both forms to work. Thi

Re: [racket-dev] Strange error with gui and ffi

2012-01-19 Thread Matthew Flatt
At Thu, 19 Jan 2012 13:30:40 +0100, Tobias Hammer wrote: > i am getting a strange error message from racket if i use racket/gui in > the main module and only racket in a required one. If i load another > shared lib in the required module i get the following output: > > jpeg: unsupported library

Re: [racket-dev] problem with require and frtime

2012-01-18 Thread Matthew Flatt
At Wed, 18 Jan 2012 12:02:10 +0100, Marijn wrote: > the following fragment: > > > #lang frtime > > (require (only-in srfi/1 every)) > > > leads to ```only-in: bad module path in: (only-in srfi/1 every)''' > error. The `frtime' language builds on (the older) `scheme' language instead of `rack

Re: [racket-dev] Pre-Release Checklist for v5.2.1

2012-01-17 Thread Matthew Flatt
At Tue, 17 Jan 2012 16:44:59 -0700 (MST), Ryan Culpepper wrote: > * Matthew Flatt > - Racket Tests > - Languages Tests > - GRacket Tests (Also check that `gracket -z' and `gracket-text' still > works in Windows and Mac OS X) > - .plt-packing Tests >

Re: [racket-dev] Caching rendered icons

2012-01-13 Thread Matthew Flatt
At Fri, 13 Jan 2012 18:01:22 -0500, Eli Barzilay wrote: > We don't own some of them, LD_LIBRARY_PATH > and some have no maintainer. Let's drop them. While we may lose some testing benefit, it's not worth trying to create builds for systems that have almost no users. > The first is > also an

Re: [racket-dev] Caching rendered icons

2012-01-12 Thread Matthew Flatt
At Thu, 12 Jan 2012 13:15:03 -0700, Neil Toronto wrote: > Just to double-check: ever since the big GUI rewrite, I can use > racket/draw without needing a display, right? Right. _ Racket Developers list: http://lists.racket-lang.org/dev

Re: [racket-dev] Caching rendered icons

2012-01-12 Thread Matthew Flatt
At Thu, 12 Jan 2012 11:19:55 -0700, Neil Toronto wrote: > 2. Compile time: Provide macros that render icons during expansion and > try to store them in the "compiled" directory. Do you need icons to be in separate files? A macro could expand to a byte-string literal, since it's just as easy to ge

Re: [racket-dev] racket unlinking bigloo lib

2012-01-12 Thread Matthew Flatt
At Thu, 12 Jan 2012 10:25:48 +0100, Marijn wrote: > Using DESTDIR everything including shared libraries is installed in a > staging area by `make install'. Files will only be moved to the ``live > filesystem'' by the package manager after things like make install > have finished running. Currently

Re: [racket-dev] racket unlinking bigloo lib

2012-01-10 Thread Matthew Flatt
At Tue, 10 Jan 2012 11:31:19 +0100, Marijn wrote: > Racket calls `ldconfig -n /usr/lib' in the course of doing `make > install' and this causes one of bigloo's shared object symlinks to be > unlinked. > I don't think racket should be calling ldconfig. That call comes from `libtool --mode=finish'.

Re: [racket-dev] Release for v5.2.1 has begun

2012-01-09 Thread Matthew Flatt
At Mon, 9 Jan 2012 12:16:15 -0500, Danny Yoo wrote: > Is there a test module whose source compiles to a use of > inline-variant? I'm trying to make sure Whalesong is doing the right > thing with regards to the recent bytecode change to def-values, but > haven't yet been able to construct a module

Re: [racket-dev] Small typo in scribble/core docs

2011-12-30 Thread Matthew Flatt
Thanks! At Fri, 30 Dec 2011 17:45:01 -0500 (EST), "J. Ian Johnson" wrote: > I'm not set up to make a pull request on this computer, but core.scrbl needs > to > add an "s" to make "contents" the field name for multiarg-element, not > "content". > -Ian _ Racket Develope

Re: [racket-dev] .1 evaluates to 0.0 [was Re: plot doesn't plot (inexact->exact: no exact representation for +nan.0)]

2011-12-29 Thread Matthew Flatt
At Thu, 29 Dec 2011 10:34:53 +0100, Marijn wrote: > Because the french locale uses comma (,) as the decimal separator like > my dutch one and unlike the english one which uses dot (.). So when > the locale-aware C number reading function gets to it and sees (.) it > fails to recognize is as a valid

Re: [racket-dev] require does not recognize filenames with '>' in them

2011-12-29 Thread Matthew Flatt
You can use a `file' module path to allow ">" in the name: (require (file "file-with-lo>ng-name")) A ">" isn't allowed with the portable relative-path form, because ">" isn't allowed in paths on Windows (roughly speaking). At Thu, 29 Dec 2011 12:03:14 +0100, Marijn wrote: > -BEGIN PGP SIGNE

Re: [racket-dev] .1 evaluates to 0.0 [was Re: plot doesn't plot (inexact->exact: no exact representation for +nan.0)]

2011-12-28 Thread Matthew Flatt
Thanks for all the new info! I don't think that it's a bytcode problem. I start to wonder if it's in number parsing... On line 1102 of "src/racket/src/numstr.c", there's a call to STRTOD(). Does it change anything if you wrap that call with calls to scheme_push_c_numeric_locale() and scheme_pop_c_

Re: [racket-dev] Racket home page proposal

2011-12-20 Thread Matthew Flatt
At Tue, 20 Dec 2011 13:11:35 -0500, Asumu Takikawa wrote: > On 2011-12-20 08:02:15 -0500, Matthias Felleisen wrote: > > I do NOT like pages that have text below my laptop screen 'fold'. > > My eyes do glaze over. And I am off the page quickly. > > Taking some feedback into account, here's a second

Re: [racket-dev] scribble -- an ncurses game

2011-12-13 Thread Matthew Flatt
You can use `raco scribble' instead of `scribble'. Maybe `raco scribble' should be the preferred form? At Tue, 13 Dec 2011 19:31:56 -0500, Neil Van Dyke wrote: > Jon Rafkind wrote at 12/13/2011 06:27 PM: > > A user of mine alerted me to the fact that 'scribble' is a crossword puzzle > similar to

Re: [racket-dev] raco make broken

2011-12-13 Thread Matthew Flatt
I've pushed a repair. Thanks for the report! At Tue, 13 Dec 2011 13:56:32 +0100, Tobias Hammer wrote: > Hello, > > raco make --no-deps seems to be broken: > > default-load-handler: cannot open input file: > racket-5.2.0.6/collects/compiler/cffi.rkt" (No such file or directory; > errno=2) > > =

Re: [racket-dev] Why is there no `stream' macro which functions analogously to the `list' macro?

2011-12-08 Thread Matthew Flatt
At Thu, 8 Dec 2011 11:58:45 -0600, Robby Findler wrote: > On Thu, Dec 8, 2011 at 8:40 AM, Matthew Flatt wrote: > > The addition of `stream' makes sense to me. What were the arguments > > against? > > I don't know that any were articulated yet, but what would be t

Re: [racket-dev] plot doesn't plot (inexact->exact: no exact representation for +nan.0)

2011-12-08 Thread Matthew Flatt
At Tue, 06 Dec 2011 11:13:54 +0100, Marijn wrote: > Matthew has been trying to determine the cause via private email. > Matthew, has any of the data I provided so far pointed you anywhere? > Otherwise is there something else I can do to help debug? I hope to investigate more soon, and I expect I'l

Re: [racket-dev] feature request: gcd, lcm for rationals

2011-12-08 Thread Matthew Flatt
I'll make this change. At Wed, 07 Dec 2011 12:25:34 -0500, David Van Horn wrote: > It would be nice if gcd and lcm were extended to rational numbers, which > seems in-line with Scheme's philosophy (but not standards) on numbers. > > (define (gcd-rational . rs) >(/ (apply gcd (map numerator r

Re: [racket-dev] Why is there no `stream' macro which functions analogously to the `list' macro?

2011-12-08 Thread Matthew Flatt
The addition of `stream' makes sense to me. What were the arguments against? (For further pull requests, please include test cases --- which in this case would have caught the use of `stream-empty' instead of `empty-stream'.) At Mon, 5 Dec 2011 16:23:09 -0500, Daniel King wrote: > I initiated a p

Re: [racket-dev] cross-module function inlining

2011-12-02 Thread Matthew Flatt
At Thu, 01 Dec 2011 10:47:10 -0500, Neil Van Dyke wrote: > Are struct accessor procedures inlined across modules? Structure procedures are not inlined by the bytecode compiler, but they are semi-inlined by the JIT. There's room for the bytecode compiler to help the JIT generate better code, though

Re: [racket-dev] cross-module function inlining

2011-12-01 Thread Matthew Flatt
At Thu, 1 Dec 2011 09:25:43 -0700, Matthew Flatt wrote: > Yes, that's better. I'll push a change to use a syntax property instead > of a `begin' pattern. > > I won't add a macro just now, since I'm unsure of the right general > form or whether anyone will

Re: [racket-dev] cross-module function inlining

2011-12-01 Thread Matthew Flatt
At Thu, 1 Dec 2011 09:54:36 -0500, Carl Eastlund wrote: > On Thu, Dec 1, 2011 at 9:49 AM, Matthew Flatt wrote: > >  (define-values () > >    (begin > >      'compiler-hint:cross-module-inline > >      )) > > > > Yes, this pattern is a hack; I don't

Re: [racket-dev] Responding to old bug reports

2011-12-01 Thread Matthew Flatt
How about closing the PR, but with a message that says we would be happy to reopen if we've closed the PR by mistake (i.e., there's still a problem) or if more information is available? At Thu, 1 Dec 2011 11:13:23 -0500, Sam Tobin-Hochstadt wrote: > In my role as bug czar, I've been trying to work

[racket-dev] cross-module function inlining

2011-12-01 Thread Matthew Flatt
The bytecode compiler now supports cross-module inlining of functions. As a result, for example, `empty?' and `cons?' should now perform just as well as `null?' and `pair?'. To avoid expanding bytecode too much, the compiler is especially conservative about which functions it chooses as candidates

Re: [racket-dev] generating tex with a different component order from Scribble

2011-11-26 Thread Matthew Flatt
At Fri, 25 Nov 2011 18:53:11 -0500, Sam Tobin-Hochstadt wrote: > Given that I have an existing paper in Scribble, which I need to get > into this format, which of the following would be > easiest/prettiest/most useful for the future? > > - writing a new renderer > - generalizing the existing latex

Re: [racket-dev] generating tex with a different component order from Scribble

2011-11-25 Thread Matthew Flatt
I think you could probably make it work with a replacement "prefix.tex", although it won't be easy or pretty. At Fri, 25 Nov 2011 17:43:24 -0600, Robby Findler wrote: > Yes, I believe that is not possible without creating a new renderer. > > Robby > > On Fri, Nov 25, 2011 at 4:49 PM, Sam Tobin-H

Re: [racket-dev] literal strings and numbers are now interned

2011-11-24 Thread Matthew Flatt
, Nov 22, 2011 at 1:50 PM, Matthew Flatt wrote: > > At Tue, 22 Nov 2011 09:18:30 -0700, Matthew Flatt wrote: > >> Along the same lines, I think it's unlikely that good programs are > >> affected by the `read' interning change > > > > Some Scribble tests faile

Re: [racket-dev] literal strings and numbers are now interned

2011-11-22 Thread Matthew Flatt
At Tue, 22 Nov 2011 09:18:30 -0700, Matthew Flatt wrote: > Along the same lines, I think it's unlikely that good programs are > affected by the `read' interning change Some Scribble tests failed in DrDr, because the Scribble reader actually promises a distinct "\n" for

[racket-dev] literal strings and numbers are now interned

2011-11-22 Thread Matthew Flatt
As of v5.2.0.4, Racket's reader and `datum->syntax' interns literal strings, byte strings, regexps, characters, and numbers. (Also, `equal?' now works in the obvious way for regexps.) For example, `(eq? "hello" "hello")' will always return true, since the two literal "hello"s are interned to the s

Re: [racket-dev] nan?, infinite? and regular-real? [Was: Latest Plot Package]

2011-11-18 Thread Matthew Flatt
Except for `finite?' (which seems to be covered by `rational?'), these additions sound fine to me. I'm not sure whether they should go in `racket/math' or `racket/base', though. Although it feels wrong to keep adding to `racket/base', two thoughts make me lean in that direction: * It will be con

[racket-dev] I/O scheduler change --- epoll(), kqueue(), etc.

2011-11-10 Thread Matthew Flatt
I've pushed a change in the way that the Racket scheduler handles I/O. The new implementation should scale to a large number of network connections, at least on Linux and BSDs (including Mac OS X). Formerly, if a program had many threads each blocked on on I/O, then the scheduler would poll each

Re: [racket-dev] REPL broken for #lang racket language?

2011-11-04 Thread Matthew Flatt
The bug was from a commit on Wednesday. As it happens, I just now noticed the problem, too. I've pushed a fix. At Fri, 4 Nov 2011 17:37:01 -0400, Sam Tobin-Hochstadt wrote: > This just started happening to me as well. > > On Fri, Nov 4, 2011 at 5:25 PM, John Clements > wrote: > > It looks to m

Re: [racket-dev] read-line performance problem

2011-11-03 Thread Matthew Flatt
At Wed, 02 Nov 2011 20:54:25 -0400, Neil Van Dyke wrote: > Racket can do this somewhat faster, but I suggest any effort be focused > on improvements that are also relevant to substantial programs, and not > on trying to compete on Perl one-liners and poor benchmarks. Agreed, but in this case, I

Re: [racket-dev] Release Announcement for v5.2

2011-11-02 Thread Matthew Flatt
At Wed, 2 Nov 2011 11:50:25 -0400, Eli Barzilay wrote: > 20 minutes ago, Sam Tobin-Hochstadt wrote: > > > * Fixed several GUI problems. > > > > This should explicitly mention Ubuntu 11.10/GTK3, and go ahead of > > most of the others. > > I'll leave this for Matthew to decide. (There were a bunch

Re: [racket-dev] raco setup & documentation indexing change?

2011-10-28 Thread Matthew Flatt
`raco docs' sets the browser cookie to point to a user-specific documentation page, not `raco setup'. At Fri, 28 Oct 2011 14:43:13 -0500, Robby Findler wrote: > I believe it used to be the case that I could run "raco setup" and > rely on the user-specific search html file being updated to whatever

Re: [racket-dev] Kill-safe, single-write, blocking box (was Re: scheme_sema_post_all)

2011-10-22 Thread Matthew Flatt
I think you could get this behavior by creating a manager thread when you create the new kind of box. If threads are too heavyweight, though, you can get the effect of a primitive by using `ffi/unsafe/atomic'. At Sat, 22 Oct 2011 10:24:27 -0400, Tony Garnock-Jones wrote: > On 2011-10-22 9:43 AM, T

Re: [racket-dev] occasional seg faults when calling C routine

2011-10-21 Thread Matthew Flatt
At Fri, 21 Oct 2011 15:30:44 -0600, Matthew Flatt wrote: > In case it helps, I'm thining of adding something like the following to > the docs: [...] I didn't find a good place for it, and then somehow I ended up adding a tutorial to the FFI docs. It

Re: [racket-dev] occasional seg faults when calling C routine

2011-10-21 Thread Matthew Flatt
At Fri, 21 Oct 2011 14:10:03 -0700, John Clements wrote: > I'm getting occasional (non-reliably-reproducible) seg faults when calling a > C > routine that copies bits from one place to another. > > My working assumption is that the buffer is getting moved by GC in between > the > computation o

Re: [racket-dev] shared no longer works on cons?!?

2011-10-20 Thread Matthew Flatt
At Fri, 21 Oct 2011 05:14:28 +0200, Shriram Krishnamurthi wrote: > Ryan, I noticed this seems to be a problem in full Racket as well: try > > #lang racket > > (define web-colors > (shared ([W (cons "white" G)] > [G (cons "grey" W)]) >W)) > > (rest web-colors) > > Robby privately

[racket-dev] Mac OS X default build: 64-bit for 10.6, 10.7

2011-10-20 Thread Matthew Flatt
I've changed `configure' so that 64-bit mode is no longer disabled by default for Mac OS X builds. The build now uses the default mode of the compiler, which is typically 64-bit mode for Mac OS X 10.6 and 10.7. To get a 32-bit mode build when your compiler's default is 64-bit mode, configure with

Re: [racket-dev] while resizing drawing into a canvas is off

2011-10-20 Thread Matthew Flatt
At Thu, 20 Oct 2011 17:58:08 +0200, Marijn wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 10/20/11 14:53, Matthew Flatt wrote: > > At Thu, 20 Oct 2011 11:16:59 +0200, Marijn wrote: > >> Could you perhaps comment on the slowness of the cursor appearing

Re: [racket-dev] while resizing drawing into a canvas is off

2011-10-20 Thread Matthew Flatt
At Thu, 20 Oct 2011 11:16:59 +0200, Marijn wrote: > Could you perhaps comment on the slowness of the cursor appearing in a > clicked cell? It seems to have something to do with the timer > frequency, because if I decrease the frequency the first time that the > cursor appears is also sooner after c

Re: [racket-dev] Windows ffi's 'malloc raw' can't be paired with C 'free'

2011-10-18 Thread Matthew Flatt
At Tue, 18 Oct 2011 15:39:13 -0700, John Clements wrote: > 1) This is only a problem under Windows, right? Yes. > 2) It looks to me like there's an easy workaround in my case, which is simply > to put the 'malloc' on the C side in a one-line stub function. Right? Yes --- a malloc() in the same

Re: [racket-dev] Windows ffi's 'malloc raw' can't be paired with C 'free'

2011-10-18 Thread Matthew Flatt
At Tue, 18 Oct 2011 15:27:28 -0700, John Clements wrote: > It looks like there's a problem with the ffi implementation of (malloc ... > 'raw) in Windows. In particular, if I call 'free()' in a C extension on a > block of memory that was allocated with (malloc ... 'raw), I get the Windows > equi

Re: [racket-dev] while resizing drawing into a canvas is off

2011-10-18 Thread Matthew Flatt
At Tue, 18 Oct 2011 16:32:54 +0200, Marijn wrote: > the attached program draws a grid in a canvas and paints a few of the > cells so created. When resizing the window, the grid is also dynamically > resized together with the coloring of a few painted cells. Everything > seems to work fine, except t

Re: [racket-dev] Pre-Release Checklist for v5.2

2011-10-18 Thread Matthew Flatt
At Mon, 17 Oct 2011 19:02:36 -0600 (MDT), Ryan Culpepper wrote: > * Matthew Flatt > - Racket Tests > - Languages Tests > - GRacket Tests (Also check that `gracket -z' and `gracket-text' still > works in Windows and Mac OS X) Done. > - mzc Tests No longer

Re: [racket-dev] Windowing API

2011-10-15 Thread Matthew Flatt
I think you'll have to handle `on-size' at the `racket/gui' level: (define panel (new (class panel% (define/override (on-size w h) (tellv web-view setFrame: #:type _NSRect (make-NSRect (make-NSPoint 0 0) (

Re: [racket-dev] Fwd: Can't pass cpointers in 5.1.3, correct?

2011-10-11 Thread Matthew Flatt
At Tue, 11 Oct 2011 15:22:41 -0700, John Clements wrote: > Just to confirm this: it looks like I can't pass cpointers through > place-channels in version 5.1.3. Right. > However, it looks to me like I can cheat, using the standard unsafe C > transformations to turn pointers into numbers and bac

Re: [racket-dev] Release for v5.2 has begun

2011-10-09 Thread Matthew Flatt
Fixed. Some unsafe primitives were marked internally as "functional", but this annotation was used with two different interpretations: sometimes as "non-mutating", sometimes as "always produces the same result". The `unsafe-vector-ref' primitive was marked as "functional" with the former intent, b

Re: [racket-dev] advice on linking against racket in windows

2011-10-08 Thread Matthew Flatt
At Sat, 8 Oct 2011 10:41:52 -0700, John Clements wrote: > > On Oct 8, 2011, at 10:39 AM, Matthew Flatt wrote: > > > At Sat, 8 Oct 2011 10:28:58 -0700, John Clements wrote: > >> I'm building cross-platform binaries, and one of my platforms is Windows. > >>

Re: [racket-dev] advice on linking against racket in windows

2011-10-08 Thread Matthew Flatt
At Sat, 8 Oct 2011 10:28:58 -0700, John Clements wrote: > I'm building cross-platform binaries, and one of my platforms is Windows. > > Moreover, I'm calling mzrt_sema primitives from my library, but those are the > only Racket functions I'm calling. The main problem is that the mzrt_ functions

Re: [racket-dev] blocked on a mzrt-sema that gets collected: okay?

2011-10-04 Thread Matthew Flatt
At Tue, 4 Oct 2011 13:34:17 -0700, John Clements wrote: > I conjecture that if a place is blocked on a mzrt_sema semaphore and if that > semaphore is then collected using a call to mzrt_sema_destroy(), then the > waiting thread will simply wait forever. Is that correct? Not necessarily; it may

Re: [racket-dev] Creating executables still broken

2011-10-04 Thread Matthew Flatt
I think I found the problem. Can you try the latest version? At Tue, 04 Oct 2011 09:42:53 +0200, Marijn wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 10/03/11 17:07, Matthew Flatt wrote: > > At Mon, 03 Oct 2011 16:10:15 +0200, Marijn wrote: > >> cr

Re: [racket-dev] Creating executables still broken

2011-10-03 Thread Matthew Flatt
At Mon, 03 Oct 2011 16:10:15 +0200, Marijn wrote: > creating executables is still broken and seems now to cause lots of > memory allocation causing my system to start thrashing... I've fixed the problem that caused `raco exe' to not terminate. I doubt that the older problem you've seen is fixed,

Re: [racket-dev] [racket] Question about round

2011-09-30 Thread Matthew Flatt
er would denote the > exact integers now. > > In general, I wanted to this email into a larger > context. > > > > On Sep 30, 2011, at 2:01 PM, Matthew Flatt wrote: > > > Vincent's proposal seemed to me to be just a renaming the current > > functions. Is th

Re: [racket-dev] [racket] Question about round

2011-09-30 Thread Matthew Flatt
code base and outside consumers tells us that Racket isn't > the language that can fix these mistakes. > > > > > On Sep 30, 2011, at 12:32 PM, Robby Findler wrote: > > > This is my opinion, too. > > > > Robby > > > > On Fri, Sep 30, 2011 at 11:

Re: [racket-dev] [racket] Question about round

2011-09-30 Thread Matthew Flatt
I think this is a good change for the next language, but not for `#lang racket'. As confusing as the current `integer?' may be, I think its definition is deeply wired into our code, tests, and documentation. I may guess wrong, but my best estimate of the hassle for this change is that it's too muc

Re: [racket-dev] More places questions

2011-09-30 Thread Matthew Flatt
At Fri, 30 Sep 2011 09:21:42 -0400, Eli Barzilay wrote: > A few minutes ago, Kevin Tew wrote: > > place-channel-put is not blocking. > > So "channel" in the name is not a good choice... We use "channel" for asynchronous channels, too, such as `racket/asynch-channel'. Since all place channels are

[racket-dev] `date*' (was: Re: Test results are slightly incomprehensible...)

2011-09-29 Thread Matthew Flatt
At Wed, 28 Sep 2011 17:42:50 -0600, Matthew Flatt wrote: > At Wed, 28 Sep 2011 18:12:34 -0500, Robby Findler wrote: > > On Wed, Sep 28, 2011 at 6:04 PM, Matthew Flatt wrote: > > > At Wed, 28 Sep 2011 21:02:14 +0100, Paulo J. Matos wrote: > > >> Errors were: >

Re: [racket-dev] Test results are slightly incomprehensible...

2011-09-28 Thread Matthew Flatt
At Wed, 28 Sep 2011 18:12:34 -0500, Robby Findler wrote: > On Wed, Sep 28, 2011 at 6:04 PM, Matthew Flatt wrote: > > At Wed, 28 Sep 2011 21:02:14 +0100, Paulo J. Matos wrote: > >> Errors were: > >> (Section (got expected (call))) > >> ((date) ((638931660

Re: [racket-dev] Test results are slightly incomprehensible...

2011-09-28 Thread Matthew Flatt
At Wed, 28 Sep 2011 21:02:14 +0100, Paulo J. Matos wrote: > Errors were: > (Section (got expected (call))) > ((date) ((638931660) Error (find-seconds 0 1 2 1 4 1990))) After looking into this, I conclude that the test is faulty, but that it also highlights a bug/limitation on Windows: * The test

Re: [racket-dev] Test results are slightly incomprehensible...

2011-09-28 Thread Matthew Flatt
The `with-limit' test is not completely deterministic. It's looking for an out-of-memory exception, and you got an out-of-time exception, instead. That sometimes happens if the machine is loaded or otherwise distracted. The `find-seconds' test may be wrong or it may be a bug. I see it for 64-bit b

[racket-dev] contract-out

2011-09-24 Thread Matthew Flatt
The `racket/contract' and `racket' modules now provide `contract-out', which is a `provide' form for contracts. Use (provide (contract-out )) instead of (provide/contract ) There's one difference between `(provide (contract-out ))' and `(provide/contract )': contract ex

Re: [racket-dev] system-library-subpath etc. on windows 32-bit and 64-bit platforms?

2011-09-22 Thread Matthew Flatt
Yes, that's all correct. Although Microsoft now simply calls it the "Windows" API, it used to be called "Win32". At Thu, 22 Sep 2011 22:34:47 -0700, John Clements wrote: > > On Sep 22, 2011, at 10:22 PM, Neil Van Dyke wrote: > > > Matthew or someone can give an authoritative answer, but if this

Re: [racket-dev] error with futures and the compiler

2011-09-20 Thread Matthew Flatt
Fix pushed. At Tue, 20 Sep 2011 17:57:01 -0400, Sam Tobin-Hochstadt wrote: > Here's a rather smaller version, with the same error: > > #lang racket/base > > (require racket/future racket/flonum racket/fixnum > racket/cmdline) > > (define N (command-line #:args (n) (string->number n)))

Re: [racket-dev] repeatable segfault in expander

2011-09-20 Thread Matthew Flatt
Fix pushed. At Tue, 20 Sep 2011 11:04:46 -0400, Sam Tobin-Hochstadt wrote: > The below program segfaults the expander, but not the compiler (tested > with git HEAD): > > [samth@punge:~/sw/plt/collects/tests/racket/benchmarks/shootout (master) plt] > r > Welcome to Racket v5.1.3.9. > -> (define x

Re: [racket-dev] [racket] Code compiled for version ~a, not ~a

2011-09-20 Thread Matthew Flatt
At Tue, 20 Sep 2011 00:56:01 -0400, Guillaume Marceau wrote: > When I was doing it earlier, I was skipping the 'raco setup -D' step. > I was under the impression that the 'raco link' operation updated the > necessary info-domain/compiled/cache.rktd files automatically. When I > add or remove a dire

Re: [racket-dev] [racket] Code compiled for version ~a, not ~a

2011-09-18 Thread Matthew Flatt
I've pushed a fix for the problem with forward slashes in PLTCOLLECTS. I haven't been able to provoke problems with version mismatches or `raco link' not working for a tool. Here's what I tried. Environment: git checkout & build in c:\matthew\plt 5.1.3 install in "c:\Program Files\Racket-5.1.3"

Re: [racket-dev] posting to semaphore from C causes seg fault

2011-09-17 Thread Matthew Flatt
It looks like the call in C might have been in a thread other than the thread where Racket was started. In that case, when scheme_post_sema() tries to cooperate with the GC, then it would end up with a NULL pointer for the Racket GC information of the current thread. In particular, since you're as

Re: [racket-dev] mips/ia64 build failures due to unaligned memory access (was: Re: Build failure on specific PPC systems)

2011-09-17 Thread Matthew Flatt
At Sat, 17 Sep 2011 09:10:44 -0400, James Vega wrote: > mips and ia64 both fail with unaligned access, although in different > places. > > ia64's build failure I think Racket won't work on ia64 because we never worked out how to deal with its multiple stacks. > mips' build failure > > ,

Re: [racket-dev] foreign struct access different in 5.1.3?

2011-09-17 Thread Matthew Flatt
At Sat, 17 Sep 2011 07:44:50 -0600, Kevin Tew wrote: > If you would like document the fact that cstructs are generative only up > to version 5.1.3. I think that improve the docs. I think the right next step is for you (Kevin) to update "doc/release-notes/racket/HISTORY.txt" to describe the chang

Re: [racket-dev] current-read-interaction

2011-09-15 Thread Matthew Flatt
At Thu, 15 Sep 2011 16:05:58 -0600, Jon Rafkind wrote: > For Honu I set up the `current-read-interaction' procedure to read a string > of > characters ended by a newline and to parse that with `honu-read-syntax'. [...] > > 2. I wanted to make ctrl-d quit the repl immediately so I look for an >

Re: [racket-dev] build error with gcc 4.5.2

2011-09-12 Thread Matthew Flatt
I think the problem is that I changed xform without adjusting the version number as I should have. A fresh build directory or throwing out "/racket/gc2/xform-collects" and "/racket/gc2/xsrc" should avoid the problem. [I planned to push a change that adjusts the version number, but I haven't gott

Re: [racket-dev] weird (memory?) bug using (dis)similar require mechanisms

2011-09-12 Thread Matthew Flatt
At Mon, 12 Sep 2011 09:28:43 +0200, Marijn wrote: > Seems to work for me too now. The only thing I'm left wondering is why > starting the program in ways that I would mentally classify as exactly > the same turned out to differ in such a way. Would appreciate if you > could shed some light on that.

Re: [racket-dev] Using clang to Build Racket on Mac OS X

2011-09-10 Thread Matthew Flatt
At Wed, 27 Jul 2011 10:38:44 -0500, "Will M. Farr" wrote: > The only wart in the process is the following: when compiling with clang or > llvm-gcc with the -O4 option, which enables link-time optimization in the > LLVM > backend, the GC is unable to correctly determine the stack growth direction

<    3   4   5   6   7   8   9   10   11   12   >