Re: [racket-dev] relative lines of C in gracket vs. gracket2

2010-10-29 Thread Matthew Flatt
At Thu, 28 Oct 2010 10:48:43 -0700, John Clements wrote: I took a look at the size of our C code base (all files ending in .c, .h, .cpp, and .cxx, not including those with 'xsrc' in the path) to see how much smaller gracket2 is, and (assuming I didn't miss something major) the difference is

Re: [racket-dev] sharing cpointers between namespaces

2010-10-29 Thread Matthew Flatt
At Thu, 28 Oct 2010 14:46:30 -0700, John Clements wrote: Specifically, I moved the define-struct of cpointer into a module by itself, called ffi/unsafe/cvector-def; that way, my tool.rkt file can require this one-line module and attach it to the user's namespace using 'reset-console'. BUT:

Re: [racket-dev] relative lines of C in gracket vs. gracket2

2010-10-29 Thread Robby Findler
Go, Matthew! :) Slay the evil beast. Robby On Fri, Oct 29, 2010 at 9:07 AM, Matthew Flatt mfl...@cs.utah.edu wrote: At Thu, 28 Oct 2010 10:48:43 -0700, John Clements wrote: I took a look at the size of our C code base (all files ending in .c, .h, .cpp, and .cxx, not including those with

[racket-dev] non-reproducible gr2 bug heads-up

2010-10-29 Thread John Clements
I had a not-easily-reproducible problem today where the tab-change keybinding (shift-cmd-right) was not working as expected. In particular, hitting with two tabs open and the first one shown would switch briefly to the second, then pop back to the first. As I've said, I don't know how to

[racket-dev] Scribble Racket Code with Here Strings

2010-10-29 Thread Doug Williams
I sometimes use here strings for readability when building queries, etc. For example: (let-values (((variables results) (get-repository-query-tuple r #--- select * from {x} sys:repositoryID {y} using namespace sys = http://www.openrdf.org/config/repository# ---

[racket-dev] Yikes! Images in science collection could be much smaller

2010-10-29 Thread John Clements
Your science collection stores images as bitmaps. Storing them as png's instead reduces their size by about 99%. This is lossless, so there's no reduction in quality. If I'm doing the math correctly, this could reduce the size of the installed science collection from about 78 megabytes to

Re: [racket-dev] Yikes! Images in science collection could be much smaller

2010-10-29 Thread Doug Williams
I'm in the process of updating all of my collections to Racket. I have most of the smaller ones done - animated-canvas, describe (with documentation this time), packed-binary, and uuid - with only table-panel left to go. Right now I'm finishing up the documentation for my new sesame library - an

[racket-dev] Demodularizer

2010-10-29 Thread Jay McCarthy
Here is a message from Blake Johnson about something I just pushed for him: Jay recently committed my changes implementing raco demod, which will flatten a modular program into a single compiled module. How to use it: Run raco demod filename. This will produce a demodularized zo file

Re: [racket-dev] Demodularizer

2010-10-29 Thread Jon Rafkind
How do you run the resulting _merged file? I ran 'raco demod p.rkt' and got compiled/p_rkt_zo_merged.zo. Then I tried running racket on it but got an error $ ~/bin/plt/bin/racket p_rkt_zo_merged compiled/p_rkt_zo_merged.zo: read (compiled): ill-formed code (bad count: 436459 != 801349, started at

Re: [racket-dev] Demodularizer

2010-10-29 Thread Jon Rafkind
Ok nevermind about the bug, I had some leftover .zo files. When I erased my compiled directory and reran the demodularizer it worked. Another quick stat: $ time raco demod p.rkt real 3m55.563s 1.8ghz amd On 10/29/2010 10:40 PM, Jon Rafkind wrote: How do you run the resulting _merged file? I