Re: [racket-dev] for loops with interleaved escape continuations

2014-06-27 Thread Danny Yoo
Hi Jay, Have not been following Racket development too closely lately, but perhaps you might find this helpful? http://planet.racket-lang.org/display.ss?package=while-loop.plt&owner=dyoo _ Racket Developers list: http://lists.racket-lang.org/dev

Re: [racket-dev] Apple today

2014-06-02 Thread Danny Yoo
>From the Ars Technica article, second paragraph: "Swift seems to get rid of Objective C's reliance on defined pointers; instead, the compiler infers the variable type, just as many scripting languages do." Is it just me, or is almost everything about this sentence technically wrong, except the p

Re: [racket-dev] seeing compile-time error for Whalesong on HEAD

2013-04-29 Thread Danny Yoo
Ah, ok, I've reduced the test case to something more managable: two files, promise.rkt and test-promise.rkt, with the following content: ;; promise.rkt #lang typed/racket/base (require (for-syntax racket/base)) (provide MyPromise) (define-struct: (a) MyPromise ([thunk : (-> a)]) #:mutable) ;;

Re: [racket-dev] seeing compile-time error for Whalesong on HEAD

2013-04-29 Thread Danny Yoo
Yeah, I want to reduce this to a test case, but I haven't been able to figure out yet what part of Whalesong is tickling this one. I'm also a bit confused, as this part of the code hasn't been touched in months, and so I would have expected the error to show up much sooner. Unfortunately, I don't

Re: [racket-dev] seeing compile-time error for Whalesong on HEAD

2013-04-29 Thread Danny Yoo
I believe the right fix for this is: https://github.com/dyoo/racket/commit/24d03f2bf308854deb365fe8bcf6599e8d84fab9 but I do not have enough comfort with TR to know if this will break anything. Can someone review this? Thanks! _ Racket Developers list: http://li

Re: [racket-dev] seeing compile-time error for Whalesong on HEAD

2013-04-29 Thread Danny Yoo
There's something funky in typed-racket/private/type-contract.rkt, with some non-uniformity in the following lines: https://github.com/plt/racket/blob/master/collects/typed-racket/private/type-contract.rkt#L143-L149 where the keywords are being called #:kind, but the variable binding is called "f

[racket-dev] seeing compile-time error for Whalesong on HEAD

2013-04-29 Thread Danny Yoo
I'm seeing the following error message on HEAD (08dc0e10d934cb29b9830a94945c2e38c275a9d8): application: procedure does not expect an argument with given keyword procedure: t->c/both given keyword: #:kind given arguments: Boolean #:kind 'impersonator #:seen (list (cons #(struct:# (B

Re: [racket-dev] processing the internal-context of a mod?

2013-04-25 Thread Danny Yoo
> I'm trying to understand the case analysis so that I can properly > generate the code to construct the namespace. The documentation says > I have four things to keep track of for internal-context: > > case 1: #f: it's empty > case 2: #t: it's all the requires > case 3: stx: it's the

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

2013-04-22 Thread Danny Yoo
Is mflatt's fix to NACK events getting in 5.3.4? It's an important enough fix that I need to deploy something like it in the very near future. I really would like to avoid manually patching my production servers if I can avoid it. See: http://lists.racket-lang.org/users/archive/2013-April/0

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

2013-04-17 Thread Danny Yoo
Yes, Whalesong's running ok on it. _ Racket Developers list: http://lists.racket-lang.org/dev

[racket-dev] module path resolver -> module name resolver?

2013-04-12 Thread Danny Yoo
I'm reading the documentation for: http://docs.racket-lang.org/reference/Module_Names_and_Loading.html#%28tech._module._path._resolver%29 and it looks to me like the term here should have been 'module name resolver'. I haven't been able to see other uses of 'module path resolver' anywhere else i

Re: [racket-dev] how to define a custom "null" in typed racket

2013-04-11 Thread Danny Yoo
Perhaps something like this? ; #lang typed/racket/base (provide mynull mycar mycdr) (struct: MyNull ()) (define mynull (MyNull)) (define-type MyListof (All (A) (Rec X (U MyNull (Pair A X) (: mycar : (All (A) ((MyListof A) -> A))) (define (mycar lst) (if (MyNull? lst) (

[racket-dev] Confusion of difference of evaluating syntax vs compiled code?

2013-04-04 Thread Danny Yoo
I'm running into dynamic evaluation behavior that I don't quite understand yet. My example is: https://gist.github.com/dyoo/5314045 It's meant as an experiment to see whether it's possible to avoid 3d syntax in certain places like the gui-debugger. I try to throw in a wrench on lines 52-54:

Re: [racket-dev] Fix to module reader?

2013-04-03 Thread Danny Yoo
> In general, if you want to add a "test" to DrDr, all you do is commit > the file somewhere. I'd put that file in something like > collects/tests/syntax/module-reader-bad-pos.rkt Ok, I've put it into collects/tests/syntax/module-reader-synthetic-pos.rkt. I don't think it's technically "bad". I

Re: [racket-dev] Right-paren behavior on Definitions window still looks funky

2013-04-02 Thread Danny Yoo
On Tuesday, April 2, 2013, Robby Findler wrote: > I've just pushed a fix for this, but when you say "still", do you mean > that you've reported this before? > > I'm sorry: I should have reported it as a bug much sooner. I noticed it some time after 5.3.3, but thought you were experimenting with s

Re: [racket-dev] The next Racket release is about to begin

2013-04-02 Thread Danny Yoo
Are there high priority bugs that deserve attention? _ Racket Developers list: http://lists.racket-lang.org/dev

[racket-dev] Right-paren behavior on Definitions window still looks funky

2013-04-02 Thread Danny Yoo
In the version of DrRacket in HEAD, when I press the two characters "[" "]" in sequence in the Definitions pane, I visually see that the paren fixing is happening on the "]" in a very distracting way: it visually switches between "]", "}", and finally ")". I don't see this behavior on the Interact

Re: [racket-dev] Fix to module reader?

2013-04-02 Thread Danny Yoo
Following up: I haven't received any input on this yet. On Fri, Mar 29, 2013 at 1:28 PM, Danny Yoo wrote: > I'm running into an internal error with the syntax/module-reader > library with the given test program, and wanted to double check with > someone else before committi

[racket-dev] Measuring # of waiters on a port?

2013-04-02 Thread Danny Yoo
I'm trying to isolate a "503" error coming from WeScheme occasionally, and I think I've isolated the problem down to the number of allowed waiters on a port. I see that web-server has the default set to 40. Is there a good way to tell whether or not we do reach this limit at runtime, or is that n

[racket-dev] Fix to module reader?

2013-03-29 Thread Danny Yoo
I'm running into an internal error with the syntax/module-reader library with the given test program, and wanted to double check with someone else before committing the fix upstream. The test file is: https://gist.github.com/dyoo/5272982 When I run this under an unpatched module reader, I

[racket-dev] processing the internal-context of a mod?

2013-03-27 Thread Danny Yoo
So I'm revisiting some of the Whalesong code, and finally realized that I'd been missing a crucial detail in the "internal-context" field of modules. http://docs.racket-lang.org/raco/decompile.html#%28def._%28%28lib._compiler%2Fzo-structs..rkt%29._mod%29%29 I got it wrong because I didn't ha

Re: [racket-dev] Tweaked doc pages

2013-03-06 Thread Danny Yoo
On Wed, Mar 6, 2013 at 9:59 AM, Eli Barzilay wrote: > I have the minimal things that I wanted in a working state now: > > * Links to the PDF versions next to the version. > > * A selection box for different versions of documents. > > * A google custom search. > > All of this is now visible on newd

Re: [racket-dev] Tweaked doc pages

2013-03-05 Thread Danny Yoo
Hi Eli, Just wanted to give some more feedback on newdocs; the select box for getting at the other version of the docs is great! Can the version box be moved above the Google search bar or a little away from it? The issue I ran across is that I start a google custom search, and the location of t

Re: [racket-dev] Tweaked doc pages

2013-03-01 Thread Danny Yoo
>> It's now available at newdocs.racket-lang.org. >> >> There are two things that need to be addressed: >> >> * The layout should have the main column centered. (I thought that it >> was fine initially if the left column is part of the contents.) The docs look good. I'm a little confused at w

Re: [racket-dev] A standard for testing Racket's libraries?

2013-02-27 Thread Danny Yoo
On Wed, Feb 27, 2013 at 1:36 PM, Robby Findler wrote: > I think that currently you can look at what drdr does. That's the best we > have. I'll assume that this is the drdr collection in meta, http://git.racket-lang.org/plt/tree/HEAD:/collects/meta/drdr and not the drdr2 directory, right?

[racket-dev] A standard for testing Racket's libraries?

2013-02-27 Thread Danny Yoo
On Wed, Feb 27, 2013 at 7:01 AM, Jay McCarthy wrote: > The tests are run by running "main.rkt", which has no rerrors when you > run it. It is a bit strange that those errors happen when run that > way, but I think it just means that "eval" should control the context > of the sub-programs more. O

[racket-dev] datalog tests failing on HEAD?

2013-02-26 Thread Danny Yoo
I'm seeing some severe failures of the datalog test suite on HEAD. Is anyone else seeing this? Here's what I'm seeing on my end: 128-110-92-136:datalog dyoo$ pwd /Users/dyoo/local/racket/collects/tests/datalog 128-110-92-136:datalog dyoo$ ~/local/racket/bin/raco test . [lots of output] Datalo

Re: [racket-dev] I'd like to add a sidebar link to all documentation versions in docs.racket-lang.org.

2013-02-24 Thread Danny Yoo
On Sun, Feb 24, 2013 at 3:55 PM, Robby Findler wrote: > How about the "docs" link on the front page go to a page with the versions > all listed, and those links go to pages that look like the current > docs.racket-lang.org/ ? No, I do like that the default is to show the docs for the current vers

Re: [racket-dev] I'd like to add a sidebar link to all documentation versions in docs.racket-lang.org.

2013-02-24 Thread Danny Yoo
On Sun, Feb 24, 2013 at 3:16 PM, Eli Barzilay wrote: > Two hours ago, Eli Barzilay wrote: >> I think that this should be reverted, and instead make the older >> docs more available: I'll make another column in the all-versions >> page (main page > download > all versions). > > Done, now. See the

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

2013-02-20 Thread Danny Yoo
On Wed, Feb 20, 2013 at 3:54 PM, wrote: > stchang has updated `master' from 5fcc96e41a to bd1141c670. > http://git.racket-lang.org/plt/5fcc96e41a..bd1141c670 Is there a test case that checks this correction? _ Racket Developers list: http://lists.racket-lang.org/de

[racket-dev] I'd like to add a sidebar link to all documentation versions in docs.racket-lang.org.

2013-02-19 Thread Danny Yoo
I always have a difficult time looking for the documentation for previous versions of Racket. For example, I wanted to compare API documentation for 5.2.1 vs. the latest. I visited: http://docs.racket-lang.org/ and immediately got stuck. I had no idea what to do next here. It turns out t

Re: [racket-dev] Fix for PR13305 displays oddly in Opera

2013-02-18 Thread Danny Yoo
Ok, I'm reverting most of what I did here for PR 13305, but I do introduce a change in the sequence:   where the discretionary word breaks are supposed to happen: the   is what I've adding. The extra   entity is bizarre, but I've seen it recommended elsewhere on the web when wbr is being si

Re: [racket-dev] Fix for PR13305 displays oddly in Opera

2013-02-15 Thread Danny Yoo
On Fri, Feb 15, 2013 at 2:37 PM, Asumu Takikawa wrote: > Hi all, > > A few days ago, PR 13305 was fixed in commit > 29031f0972ead0d3cd26d61f163b5e5b59e9ffce. Unfortunately, the fix makes > some identifiers in the docs display oddly in Opera. I've attached some > screenshots that demonstrate the is

Re: [racket-dev] Installing Optimization Coach broke Racket's reader

2013-02-13 Thread Danny Yoo
My apologies for letting this hang. The current state of this bug repair is that I've got a patch on: https://github.com/dyoo/racket/commit/compiler-hack that addresses the issue of installing PLaneT2 packages while in DrRacket. However, there was some parallel conversation about what the

Re: [racket-dev] 5.3.3

2013-02-13 Thread Danny Yoo
On Wed, Feb 6, 2013 at 5:17 PM, Danny Yoo wrote: >> How likely is that authors of planet2 packages use the released version >> rather than the git head version? > > > Ok, I rescind my point then, since PLaneT2 is in beta. But just to confirm, the release isn't wait

Re: [racket-dev] all/13393: overlay works in reverse

2013-02-13 Thread Danny Yoo
> Could you take over as bug czar? -- Matthias > I can not do this at this time. _ Racket Developers list: http://lists.racket-lang.org/dev

Re: [racket-dev] need help with pr-13350: readline busy polling vs callback fix?

2013-02-09 Thread Danny Yoo
Ok. I can dodge this problem by re-routing the getc-like function that readline uses with Racket-aware stuff. (set-ffi-obj! "rl_getc_function" libreadline (_fun _pointer -> _int) (lambda (_) (define next-byte (read-byte)) (if (eof-object? next-byte) -

Re: [racket-dev] need help with pr-13350: readline busy polling vs callback fix?

2013-02-09 Thread Danny Yoo
On Sat, Feb 9, 2013 at 6:12 AM, Robby Findler wrote: > I can't really help with the other questions, but yes, I expect it is the > newline after the require. Read doesn't read past that matching paren: I'm observing that if I try to set the file-stream-buffer-mode during module-load time, it see

Re: [racket-dev] need help with pr-13350: readline busy polling vs callback fix?

2013-02-08 Thread Danny Yoo
> > However, when I try using this in the larger context of xrepl, I've > found that I've completely broken it. > > ### > $ ~/local/racket/bin/racket > Welcome to Racket v5.3.3.1. >> (require xrepl) > -> hello > -> world > -> help > ### There's something funny with buffered input going o

[racket-dev] need help with pr-13350: readline busy polling vs callback fix?

2013-02-08 Thread Danny Yoo
I'm trying to attack PR-13350, which is the busy-polling bug involving readline. The closest I've got so far is: https://github.com/dyoo/racket/tree/pr-13350 When I run the small test program: ### $ cat test.rkt #lang racket/base (require readline/mzrl) (list (readline-bytes #">>> ")

Re: [racket-dev] 5.3.3

2013-02-06 Thread Danny Yoo
> How likely is that authors of planet2 packages use the released version > rather than the git head version? Ok, I rescind my point then, since PLaneT2 is in beta. _ Racket Developers list: http://lists.racket-lang.org/dev

Re: [racket-dev] 5.3.3

2013-02-06 Thread Danny Yoo
On Wed, Feb 6, 2013 at 3:39 PM, Robby Findler wrote: > This one seems maybe okay: > > https://github.com/dyoo/racket/commit/3e3608ccb82de7e14b0b3aed223d95c7d5a500ba > > but the other one definitely seems like too much. And I'm not sure that that > one is a good idea. I think it is, but I'd want to

Re: [racket-dev] 5.3.3

2013-02-06 Thread Danny Yoo
On Wed, Feb 6, 2013 at 2:45 PM, Robby Findler wrote: > Do you have a commit in mind? (It would need to a simple one that is easily > seen to be "correct".) I'm thinking of the two commits currently on my compiler-hack branch: https://github.com/dyoo/racket/commit/1caae27ded89a46453316f65a

Re: [racket-dev] 5.3.3

2013-02-06 Thread Danny Yoo
On Wed, Feb 6, 2013 at 1:17 PM, Matthias Felleisen wrote: > Dear all > > DrRacket v5.3.2 has a bug that causes the highlighting to become corrupted > when the program contour is visible. We are planning to release 5.3.3 with > just a fix for this bug in the next few days. Would it be possible

[racket-dev] raco pkg remove needs to state package dependencies

2013-02-05 Thread Danny Yoo
I tried the following: 128-110-72-21:ragg dyoo$ ~/local/racket/bin/raco pkg remove ragg raco pkg remove: cannot remove packages that are dependencies of other packages dependencies: ragg The error message needs to say which package is depending on what other packages. Otherwise, the user i

Re: [racket-dev] request for code review on fix for pr 13471

2013-02-04 Thread Danny Yoo
>> I've put this in my branch 'pr13471': >> >> https://github.com/dyoo/racket/tree/pr13471 >> >> After someone takes a look and says ok, I can push the fix upstream. > It looks ok to me. Ok, good. Pushed. I don't think I have privileges to close the bug in the bug tracker. At least, the l

Re: [racket-dev] Running in DrRacket changes behavior of the `compiler/cm` library

2013-02-03 Thread Danny Yoo
On Sun, Feb 3, 2013 at 8:23 PM, Robby Findler wrote: > Why do you think it should include so much stuff? I would have said it > should include only the directories where we know that collections live. Can those other directories are also potential places where collections could be installed? If

Re: [racket-dev] request for code review on fix for pr 13471

2013-02-03 Thread Danny Yoo
471 After someone takes a look and says ok, I can push the fix upstream. On Fri, Feb 1, 2013 at 2:44 PM, Danny Yoo wrote: > I've written up a patch for PR 13471: > > > https://github.com/dyoo/racket/commit/544918465b67cbf2e8ad40bd3c2b3ea90f33c085 > > I just want a seco

Re: [racket-dev] Running in DrRacket changes behavior of the `compiler/cm` library

2013-02-03 Thread Danny Yoo
On Sun, Feb 3, 2013 at 5:26 PM, Robby Findler wrote: > 6.2 in the planet2 docs suggest something more complicated. Probably we want > to follow that? > > But this idea seems to fit better to me! I think it should include, at the very least, (find-lib-dir), (find-user-lib-dir), (find-collects-dir)

Re: [racket-dev] Running in DrRacket changes behavior of the `compiler/cm` library

2013-02-03 Thread Danny Yoo
On Sat, Feb 2, 2013 at 5:20 PM, Robby Findler wrote: > The change to DrRacket that you suggest would have the effect of debugging > annotations being forgotten for files that are already compiled by another > route, so that seems wrong. Ok, so I'll revert that particular change on my fork. But

Re: [racket-dev] Running in DrRacket changes behavior of the `compiler/cm` library

2013-02-02 Thread Danny Yoo
> > With this in place, PLaneT2 package installation appears to be behaving. The other hack in there that's making me feel a little uncomfortable is this: https://github.com/dyoo/racket/commit/df221a6266dc347556e19b98e091b8a62ef8bc8b If I don't do this, then as soon as I do the following

Re: [racket-dev] Running in DrRacket changes behavior of the `compiler/cm` library

2013-02-02 Thread Danny Yoo
> > Ok, I think I see it. It's in resolve.rkt, right? > > > https://github.com/plt/racket/blob/master/collects/planet/private/resolver.rkt#L609 Ok, how about this? https://github.com/dyoo/racket/tree/compiler-hack With this in place, PLaneT2 package installation appears to be behavi

Re: [racket-dev] Running in DrRacket changes behavior of the `compiler/cm` library

2013-02-02 Thread Danny Yoo
On Sat, Feb 2, 2013 at 3:31 PM, Robby Findler wrote: > Planet 1 explicitly deals with this by having the runtime system give it > access to the original parameterization, which it picks and chooses > parameters from to restore (to make sure that this kind of thing doesn't > happen). Ok, I think I

Re: [racket-dev] Running in DrRacket changes behavior of the `compiler/cm` library

2013-02-02 Thread Danny Yoo
>>> >> I'm not sure if this is a bug or not, so I'm bringing it up on the >>> >> list. But when I do the following: >>> >> >>> >> #lang racket >>> >> (require compiler/cm) >>> >> (manager-compile-notify-handler displayln) >>> >> (managed-compile-zo >>> >> >>> >> "/home/samth/sw/plt/collects/tests/

Re: [racket-dev] Installing Optimization Coach broke Racket's reader

2013-02-02 Thread Danny Yoo
> Reproducible, and not related to optimization coach. I'm seeing this > too. It looks like a bad interaction between Planet2 installation in > DrRacket when "Populate Compiled Directories" is in effect. See: > > http://lists.racket-lang.org/users/archive/2013-February/056245.html Somethin

Re: [racket-dev] Installing Optimization Coach broke Racket's reader

2013-02-02 Thread Danny Yoo
On Fri, Feb 1, 2013 at 8:58 AM, Vincent St-Amour wrote: > As you mention, the OC package doesn't touch any collect except its own, > so I don't know what's going on. > > Neil, can you reproduce this with other packages, or is this OC-specific? Reproducible, and not related to optimization coach.

Re: [racket-dev] raco pkg and github

2013-02-02 Thread Danny Yoo
On Sat, Feb 2, 2013 at 9:19 AM, Ray Racine wrote: > I saw a blurb this week where Microsoft is using http://libgit2.github.com/ > to add git support into their tooling (Visual Studio no less) and their devs > have been committing to fill in any MS specific git gaps. It looks like a > top quality

[racket-dev] request for code review on fix for pr 13471

2013-02-01 Thread Danny Yoo
I've written up a patch for PR 13471: https://github.com/dyoo/racket/commit/544918465b67cbf2e8ad40bd3c2b3ea90f33c085 I just want a second pair of eyes just to make sure I've done it correctly. I added a free-id-table that the parse function uses when walking across lex-abbrev syntaxes. Doe

Re: [racket-dev] Why is the Systems Programming guide using console-oriented Racket?

2013-01-31 Thread Danny Yoo
On Thu, Jan 31, 2013 at 8:23 PM, Eli Barzilay wrote: > Also, no matter what you do, there are a certain kind of hackers that > will never dump their console for all the gui in the world. (And the > size of this crown is not negligible.) Ok. I think Matthew's note is good enough then. _

Re: [racket-dev] Why is the Systems Programming guide using console-oriented Racket?

2013-01-31 Thread Danny Yoo
On Thu, Jan 31, 2013 at 4:01 PM, Sam Tobin-Hochstadt wrote: > It emphasizes that Racket is broadly applicable, and works both in an > IDE environment, and in a text editor/shell environment, each of which > is preferred by large groups of developers. Ok, this idea is important. I'm just not sure

[racket-dev] Why is the Systems Programming guide using console-oriented Racket?

2013-01-31 Thread Danny Yoo
Is there a pedagogic reason why the Systems Programming guide explicitly discourages running through DrRacket? There's a leading paragraph in the intro: To get into the spirit of this tutorial, we suggest that you set DrRacket aside for a moment, and switch to raw racket in a terminal. But f

Re: [racket-dev] Racket learning page videos

2013-01-30 Thread Danny Yoo
> > https://github.com/plt/racket/wiki/Videos > > Please fill in whatever I've missed! (The page already has more on it > than I expected to find, so I'm sure I've missed things.) Would the bootstrapworld videos be applicable here too? I was about to add these as well: http://www.youtube.co

Re: [racket-dev] union-find

2013-01-29 Thread Danny Yoo
On Tue, Jan 29, 2013 at 2:51 PM, Robby Findler wrote: > I've just pushed an implementation of the union-find algorithm to the data/ > collection. I didn't do it quite the way wikipedia recommends, but instead > made the sets be little containers whose canonical element can be mutated. More code r

Re: [racket-dev] union-find

2013-01-29 Thread Danny Yoo
On Tue, Jan 29, 2013 at 2:51 PM, Robby Findler wrote: > I've just pushed an implementation of the union-find algorithm to the data/ > collection. I didn't do it quite the way wikipedia recommends, but instead > made the sets be little containers whose canonical element can be mutated. Code review

Re: [racket-dev] Racket learning page videos

2013-01-29 Thread Danny Yoo
On Tue, Jan 29, 2013 at 9:35 AM, Nick Shelley wrote: > I recently came across a presentation on the Racket way by Matthew Flatt > (http://www.infoq.com/presentations/Racket) and thought that it would be > nice to be able to discover this and similar things more easily. I really > like how all the

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

2013-01-26 Thread Danny Yoo
On Wed, Jan 23, 2013 at 6:11 AM, Jay McCarthy wrote: > This is the right patch, but I think we also need Eli to update the > DNS setup, in addition to me updating the server (which I am doing > now). Hurrah! I can see pkg.racket-lang.org now. _ Racket Developers list:

[racket-dev] attacks on the plt web server?

2013-01-22 Thread Danny Yoo
I've noticed that one of my plt servers is being hit hard occassionally, with the following output coming out of the Racket web server before it crashes. I'm including a portion of the output. This is on Racket 5.3. Can it be that somehow something is escaping the custodian cleanup? dyoo@web4 ~

Re: [racket-dev] 5.3.2 & mac os x

2013-01-22 Thread Danny Yoo
On Sat, Jan 19, 2013 at 11:35 AM, Robby Findler wrote: > Dear all: we have a new .dmg layout setup for the mac os x version of Racket > and so if you have time to have a look and see if it looks reasonable on > your machine and report back here, that would be helpful. > > Here is a pointer to the

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

2013-01-18 Thread Danny Yoo
> information and list your packages on the new index > [https://pnr.racket-lang.org/]. We anticipate it will leave beta > during the next release. Woohoo! But pnr.racket-lang.org is being flagged as unsafe in Google Chrome and Firefox (and probably the other browsers too). What needs to be don

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

2013-01-17 Thread Danny Yoo
> * Danny Yoo > - Whalesong Tests (confirm that Whalesong runs from PLaneT) Yes, looking ok to me. _ Racket Developers list: http://lists.racket-lang.org/dev

Re: [racket-dev] request to move cfg-parser from algol60 into parser-tools

2013-01-16 Thread Danny Yoo
> Cut-and-paste worries me. Instead of copying the documentation for X to > Y, usually it works better to document X as "Like Y, except...". Could > that work in this case? Ok, I can change it so it just documents the delta. How does this look? https://github.com/dyoo/racket/commit/3a3b0f90084b

Re: [racket-dev] request to move cfg-parser from algol60 into parser-tools

2013-01-16 Thread Danny Yoo
Ok, done. I've also did a copy-and-paste of the documentation for parser-tools/yacc, but adjusted the prose where cfg-parser deviates from the standard parser interface. Does it look ok? _ Racket Developers list: http://lists.racket-lang.org/dev

[racket-dev] more planet2 feedback

2013-01-10 Thread Danny Yoo
Hi Jay, Some more usability feedback: 1. When updating checksums of my existing packages, I can't tell what gets updated, as the page for: https://plt-etc.byu.edu:9004/manage can look the same before and after "Update checksums", so I don't know if I actually did anything, or if the serve

Re: [racket-dev] Need a good way to fix location on cfg-parser

2013-01-08 Thread Danny Yoo
On Fri, Jan 4, 2013 at 5:46 PM, Danny Yoo wrote: > I've caught a bug with regards to the source locations constructed by > cfg-parser, but I don't know quite what the right patch is. I do know > what the _wrong_ patch is, so maybe that will help? :) Ok, I needed to do

[racket-dev] Need a good way to fix location on cfg-parser

2013-01-04 Thread Danny Yoo
I've caught a bug with regards to the source locations constructed by cfg-parser, but I don't know quite what the right patch is. I do know what the _wrong_ patch is, so maybe that will help? :) Here's what I've kludged so far: https://github.com/dyoo/ragg/commit/5ef0e007d4b80e95a20824a2005

Re: [racket-dev] request to move cfg-parser from algol60 into parser-tools

2013-01-03 Thread Danny Yoo
On Thu, Jan 3, 2013 at 8:01 PM, Robby Findler wrote: > Is the documentation and testing sufficient? There's no documentation yet, and no, there needs to be a bit more testing. cfg-parser's interface is the same as that in parser-tools/yacc, so I can borrow from the prose there. But as for error

[racket-dev] request to move cfg-parser from algol60 into parser-tools

2013-01-03 Thread Danny Yoo
I would like to move cfg-parser, which currently exists in the algol60 collection, into parser-tools proper. That way, my 'ragg' package can refer to it from there. Is this ok? _ Racket Developers list: http://lists.racket-lang.org/dev

[racket-dev] Working on Ragg. Suggestions?

2013-01-01 Thread Danny Yoo
Hi everyone, I've been working on a parsing framework with the design goal to be easy to use. I'm calling it "ragg": Racket AST Generator Generator. (It used to be called 'autogrammar', but that was too much of a mouthful. Thanks to Joe Politz for the new name!) The current source code uses PLa

[racket-dev] Want to add an example to reference docs

2012-12-29 Thread Danny Yoo
I'd like to add something like the following example to the third paragraph of section 1.1.16 on the implications on custodian shutdown: https://gist.github.com/4411396 Otherwise, without the example, it's easy to misinterpret the sentence: "If the current custodian is shut down before

Re: [racket-dev] scribble/doclang example?

2012-12-13 Thread Danny Yoo
> Ok, done. I've pushed up a scribble/doclang2 and documentation that > describes how to use both scribble/doclang2 and scribble/doclang. Ugh; I feel bad that I forgot to write proper test cases. Where are the existing test cases for doclang? I'll add some for doclang2, but I don't know where t

Re: [racket-dev] scribble/doclang example?

2012-12-13 Thread Danny Yoo
> I suggest that you pick a new name for the language that you'd like to > have, and fix the docs to talk about that one. Then, we can leave > `scribble/doclang' alone, documenting it as only for backward > compatibility. Ok, done. I've pushed up a scribble/doclang2 and documentation that describ

[racket-dev] scribble/doclang example?

2012-12-12 Thread Danny Yoo
I'm reading the documentation on how scribble/doclang works, http://docs.racket-lang.org/scribble/doclang.html but it doesn't say really what it needs to work. That is, a program written in scribble/doclang must provide a few elements besides the chunks of document: it needs to also provide

[racket-dev] Other PLaneT 2 questions

2012-12-04 Thread Danny Yoo
* Will there be a procedure for package revocation? For example, if I put something up, I may want to take it down, either because it should be renamed, or it's bitrotted code. * Will there be an easy way to pull a full list of packages programmatically from the central repositories? One of the

Re: [racket-dev] getting error on syntax-local-module-exports with a planet 2 package

2012-12-04 Thread Danny Yoo
syntax-local-module-exports: unknown module > module name: # 5.3.1.9/pkgs/installed/data-red-black/data/red-black/red-black.rkt" > uncontracted)> > context...: > ... never mind. I'm an idiot, as usual. It's a problem in one of my helper modules. Sorry! _ Racket De

[racket-dev] getting error on syntax-local-module-exports with a planet 2 package

2012-12-04 Thread Danny Yoo
I'm running into the following error when trying to install my red-black tree package from planet2: bash-3.2$ ~/local/racket/bin/raco pkg install data-red-black [some output later] syntax-local-module-exports: unknown module module name: # context...: /Users/dyoo/local/racket/collects/ra

Re: [racket-dev] Planet 2 package names

2012-12-03 Thread Danny Yoo
> Planet 1 packages and Racket collections also don't use A-Z (with one or > two exceptions on Planet). In theory, we could disallow those characters > and gain compatibility with case-insensitive mediums such as the default > Mac OS X filesystem. I'm not particularly attached to this second > pr

Re: [racket-dev] Planet 2 Beta Release

2012-12-02 Thread Danny Yoo
> Exactly. That student is going to get an error message when DrRacket > starts up saying that the handin tool is broken. They complain to > someone, and so on. > > Or, even worse, the student can get the error message at Check Syntax time, after which because it's an internal error, DrRacket goes

[racket-dev] augmented rb-tree with customizable combinator

2012-11-30 Thread Danny Yoo
Hi Matthew, Ok, I've generalized the code so you can use a custom node combinator to compute the metadata at each node. I've tried to write comprehensive documentation's in collects/syntax-color/augmented-red-black.scrbl. Maybe it's a candidate for the data collection? I don't think the red-bl

[racket-dev] String search in mred/private/wxme: knuth-bendix?!

2012-11-29 Thread Danny Yoo
I'm staring at do-find-string-all's implementation, and right before the string-matching logic, there's a mysterious comment "Knuth Bendix" in there. I'm staring at the code some more, and it looks more like KMP (Knuth-Morris-Pratt) to me. (I have no idea what the Knuth-Bendix algorithm looks lik

Re: [racket-dev] indentation: the rb tree didn't help, but a hack to stick-to-next-sexp might

2012-11-26 Thread Danny Yoo
> and call it a bunch (inside an 'or', one branch for each of those > strings that are currently in the second argument to member; or well, > even use a for/or, I guess). Or, if you wanted, you could change your > existing code to push the 'or' inside the 'and' and then drop the > promise. > Ok,

Re: [racket-dev] indentation: the rb tree didn't help, but a hack to stick-to-next-sexp might

2012-11-26 Thread Danny Yoo
On Mon, Nov 26, 2012 at 11:31 AM, Robby Findler wrote: > That kind of thing makes a lot of sense to me. > > I'd probably write the code a little bit differently, having a > function that takes a string and sees if the text starting at > start-pos matches that string instead of having to special c

[racket-dev] indentation: the rb tree didn't help, but a hack to stick-to-next-sexp might

2012-11-25 Thread Danny Yoo
At least, as far as I can tell, it does not perform any better than the splay tree. It's actually about a second slower when indenting drracket/private/unit.rkt. Darn it. However, I did find something that's slightly nutty: the following patch appears to greatly improve indentation: https://g

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

2012-11-22 Thread Danny Yoo
On Tue, Nov 20, 2012 at 8:58 AM, Robby Findler wrote: > Yes, I think that's the eventual plan. > > Ok, I've added documentation. Is red-black.rkt something that I should move into the data collection now, or should I wait? I was also going to change the name of the module to "positional-red-blac

Re: [racket-dev] Wow; racket master at least 2x faster than 5.3.1 on my rb tree benchmark?

2012-11-18 Thread Danny Yoo
On Sun, Nov 18, 2012 at 4:24 PM, Pierpaolo Bernardi wrote: > How does compare to builtin mutable hashes? > The following code represents a rough hashtable equivalent of what my rb code would be enabling (quick search for word by position): ;; We might be curious as to the overhead of the

[racket-dev] Wow; racket master at least 2x faster than 5.3.1 on my rb tree benchmark?

2012-11-18 Thread Danny Yoo
I'm doing some micro-optimizations on my rb-tree implementation. One thing I'm testing is inserting the entire contents of /usr/share/dict/words. It's heavily dominated by structure-mutation code. Under 5.3.1, I see the following times: Timing construction of /usr/share/dict/words: inse

Re: [racket-dev] Replacing the splay tree token-tree% with an rb-tree?

2012-11-16 Thread Danny Yoo
> I wanted to surprise you by getting this all working by mid-week, but it's > taking longer than I thought... :) So I might as well run it by you to > make sure the idea is sound before I go further on this track. > The core rb implementation is almost done. The search-by-position, insert-befor

Re: [racket-dev] Replacing the splay tree token-tree% with an rb-tree?

2012-11-14 Thread Danny Yoo
On Tue, Nov 13, 2012 at 6:15 PM, Robby Findler wrote: > That sounds fantastic! Thanks! > > In your stress test, try doing random insertions/deletions to try to > find things that break the red/black invariant. > Of course! https://github.com/dyoo/new-token-tree/commit/7264f76cf3f05ebb3c8e8630ef

[racket-dev] Replacing the splay tree token-tree% with an rb-tree?

2012-11-13 Thread Danny Yoo
Hi Robby, I've been looking at a profile of DrRacket when opening/indenting large files. Using the statistical profiler, I've measured a large chunk of time (around 40%) is dedicated to the search operation of the existing syntax-color token-tree. That seems too high, so I've been trying to unde

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

2012-11-09 Thread Danny Yoo
On Fri, Nov 9, 2012 at 5:40 PM, Robby Findler wrote: > Was it actually faster? > > Unfortunately I couldn't observe the change switching from display to write-string: it was within the margin of noise. _ Racket Developers list: http://lists.racket-lang.org/dev

[racket-dev] More Scribble optimization; contracts?

2012-11-09 Thread Danny Yoo
I've been hammering on the problem of speeding up scribble. One of the things that's a surprise is that the contract checks on the part/element structure appear to be significant because Scribble documents are so granularly structured. I focus on extract-part-style-files in scribble/base-render.r

  1   2   3   >