On Fri, Nov 9, 2012 at 5:40 PM, Robby Findler
ro...@eecs.northwestern.eduwrote:
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:
On Tue, Nov 13, 2012 at 6:15 PM, Robby Findler
ro...@eecs.northwestern.eduwrote:
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!
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-before,
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:
On Sun, Nov 18, 2012 at 4:24 PM, Pierpaolo Bernardi olopie...@gmail.comwrote:
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
On Tue, Nov 20, 2012 at 8:58 AM, Robby Findler
ro...@eecs.northwestern.eduwrote:
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
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:
On Mon, Nov 26, 2012 at 11:31 AM, Robby Findler ro...@eecs.northwestern.edu
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
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, I'll
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
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
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
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
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: #resolved-module-path:(submod
syntax-local-module-exports: unknown module
module name: #resolved-module-path:(submod /Users/dyoo/Library/Racket/
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
* 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
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
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
describes
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 to
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
On Fri, Jan 4, 2013 at 5:46 PM, Danny Yoo d...@hashcollision.org 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 a bit
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 server
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?
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
done
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
On Tue, Jan 29, 2013 at 9:35 AM, Nick Shelley nickmshel...@gmail.com 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
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
On Thu, Jan 31, 2013 at 4:01 PM, Sam Tobin-Hochstadt sa...@ccs.neu.edu 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.
On Thu, Jan 31, 2013 at 8:23 PM, Eli Barzilay e...@barzilay.org 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
On Sat, Feb 2, 2013 at 9:19 AM, Ray Racine ray.rac...@gmail.com 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
On Sun, Feb 3, 2013 at 8:23 PM, Robby Findler
ro...@eecs.northwestern.edu 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
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 last time I
On Wed, Feb 6, 2013 at 1:17 PM, Matthias Felleisen matth...@ccs.neu.edu 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
On Wed, Feb 6, 2013 at 3:39 PM, Robby Findler
ro...@eecs.northwestern.edu 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
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
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 on. If I do the
On Sat, Feb 9, 2013 at 6:12 AM, Robby Findler
ro...@eecs.northwestern.edu 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
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) -1
On Fri, Feb 15, 2013 at 2:37 PM, Asumu Takikawa as...@ccs.neu.edu 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
Ok, I'm reverting most of what I did here for PR 13305, but I do
introduce a change in the sequence:
span class=mywbr nbsp;/span
where the discretionary word breaks are supposed to happen: the nbsp;
is what I've adding. The extra nbsp; entity is bizarre, but I've
seen it recommended
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
On Sun, Feb 24, 2013 at 3:16 PM, Eli Barzilay e...@barzilay.org 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.
On Sun, Feb 24, 2013 at 3:55 PM, Robby Findler
ro...@eecs.northwestern.edu 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
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]
On Wed, Mar 6, 2013 at 9:59 AM, Eli Barzilay e...@barzilay.org 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
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
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
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
Following up: I haven't received any input on this yet.
On Fri, Mar 29, 2013 at 1:28 PM, Danny Yoo d...@hashcollision.org 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 committing
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 Interactions pane.
Are there high priority bugs that deserve attention?
_
Racket Developers list:
http://lists.racket-lang.org/dev
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
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
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
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)
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
Yes, Whalesong's running ok on it.
_
Racket Developers list:
http://lists.racket-lang.org/dev
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:
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
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
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
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:
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)
;;
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.pltowner=dyoo
_
Racket Developers list:
http://lists.racket-lang.org/dev
101 - 164 of 164 matches
Mail list logo