Commit Graph

37761 Commits

Author SHA1 Message Date
Matthew Flatt
f0e710179c filesystem-change-evt: report inotify_init() error correctly 2014-07-24 14:12:17 +01:00
Matthew Flatt
c570a86201 streamline some paths for equality and hashing
Cuts about 1/3 of the time for a string-hashing microbenchmark
provided by Pedro Ramos:

 #lang racket
 (define alphabet "abcdefghijklmnopqrstuvwxyz")
 (define (random-word n)
   (build-string n (lambda (x) (string-ref alphabet (random 26)))))
 (define words (for/list ([k 1000000])
                 (random-word 3)))
 (define d (make-hash))
 (time (for ([w (in-list words)])
         (if (hash-has-key? d w)
             (hash-set! d w (add1 (hash-ref d w)))
             (hash-set! d w 1))))
2014-07-24 13:33:11 +01:00
Matthew Butterick
0b7d96b854 fix doc typo 2014-07-24 07:31:59 +01:00
Matthew Flatt
aedeccb8cd move udp tests out of weird nesting within file tests 2014-07-24 07:26:53 +01:00
Matthew Flatt
6e35660583 filesystem-change-evt tests: let error through when success is required 2014-07-24 07:26:53 +01:00
Asumu Takikawa
ad677478ab Test for begin at label phase 2014-07-23 12:20:50 -04:00
Matthew Flatt
8353db2882 raco decompile: show provides
original commit: bf748a03c9
2014-07-23 16:46:51 +01:00
Matthew Flatt
a95e279219 fix submodule export of enclosing module's binding
When `x` and `x`-with-a-mark are both defined, then the order of
definitions affected the binding that `(provide x)` would export
in a submodule that uses `#f` as its language. The problem was
in the implementation of the implicit `require`, which needs to
look up a variable's symbolic name in two different environments
to set up the right mapping.
2014-07-23 16:46:51 +01:00
Matthew Flatt
bf748a03c9 raco decompile: show provides 2014-07-23 16:46:51 +01:00
Matthias Felleisen
68de6454d9 documented addition of check-random; please include in 6.1 2014-07-23 11:44:05 -04:00
Matthias Felleisen
25f1137f66 Rackety, deleted some unnecessary comments 2014-07-23 11:44:05 -04:00
Matthias Felleisen
d321c4e117 Racket-y, 102 2014-07-23 11:44:04 -04:00
Neil Toronto
3849643e4b Move margin-note* in math docs to work around issue with Firefox
Please merge to v6.1
2014-07-23 11:21:19 -04:00
Jay McCarthy
31001f3484 Adding legacy/core decision in gl-config/canvas 2014-07-23 08:56:32 -04:00
Jay McCarthy
ac05b99db3 starting off on summary integration 2014-07-23 08:56:32 -04:00
Neil Toronto
1f7b452920 Fix compiled-bitmap and compiled-bitmap-list on 2x bitmaps, lossy compression
This fixes the docs for `compiled-bitmap-list`. Icons in DrRacket were immune,
because they're stored in modules as PNG bytes.

Please merge to v6.1
2014-07-23 07:48:37 -04:00
Matthew Flatt
59da3bd83e meta/pkg-build/thread: fix test
Add synchronization so that the enumerated interleavings cover
all of the ones that should be possible.

Using `(sync (system-idle-evt))` as a barrier works as long as
the implementation of the library being tested doesn't itself
use `(sync (system-idle-evt))`. That seems like a safe-enough
assumption for a test.
2014-07-23 11:14:10 +01:00
Matthew Flatt
4c8084e5d8 quasisyntax: fix reporting for misused unsyntax[-splicing]
Closes PR 14652
2014-07-23 11:01:41 +01:00
Matthew Flatt
0e4db0a7f0 web pages: fix platform sorting on download pages
Fix use of wrong array element during sort, where using the wrong element
caused "Windows source" to be sorted before "Windows (x86, 32-bit)".
(The wrong-element bug was introduced with changed to support the button
that downloads directly from the default mirror.)

Closes PR 14655 and PR 14656
2014-07-23 10:43:41 +01:00
Matthew Flatt
7d87e5ab23 web pages: use UTC for computing month names
Otherwise, generated web pages can differ depending on which timezone
is used to render them.
2014-07-23 09:42:30 +01:00
Matthew Flatt
ce2d7f040a web pages: add "recent" links at download-racket-lang.org
These links reflect soft links that are in place at
"mirror.racket-lang.org", but they're needed as links/rewrite on the
main site for some purposes, such as references from the tech-report
pages.
2014-07-23 09:39:52 +01:00
Matthew Flatt
a114733559 racket/draw: fix problems with set-argb-pixels on scaled, no-alpha bitmaps
Also, fix the docs to clarify that `just-alpha?` as #t means a no-op for
a target bitmap that has an alpha channel.
2014-07-23 09:19:34 +01:00
Matthew Flatt
295cb46c48 racket/draw: fix get-argb-pixels for unscaled and just-alpha
Closes PR 14653

Merge to v6.1
2014-07-23 08:44:17 +01:00
Matthew Flatt
f567fe3589 fix a test for raco exe
The test failed for certain installation configurations due to a
problem with the test.

original commit: a881e24d43
2014-07-23 07:55:17 +01:00
Matthew Flatt
df5bfe19c0 sync: accept 0 arguments
As suggested by Jonathan Schuster.

Note that the `choice-evt` constructor already accepted 0 arguments.
2014-07-23 07:55:17 +01:00
Matthew Flatt
3cab3f1000 raco exe: document command-line flags 2014-07-23 07:55:17 +01:00
Matthew Flatt
a881e24d43 fix a test for raco exe
The test failed for certain installation configurations due to a
problem with the test.
2014-07-23 07:55:17 +01:00
Robby Findler
f9b20d3789 fix bug in ->i 2014-07-22 22:42:41 -05:00
Robby Findler
cdd06f108c remove call to 'time'
Please add to 6.1 release branch
2014-07-22 18:18:28 -05:00
Asumu Takikawa
be54163763 Add doc examples for flatten-begin 2014-07-22 17:38:08 -04:00
Asumu Takikawa
041c2b1a07 Add flatten-all-begins to syntax/flatten-begin 2014-07-22 17:38:08 -04:00
Burke Fetscher
3890394131 redex: fix error messages for #:satisfying
Closes PR 14642
2014-07-22 15:49:15 -05:00
Burke Fetscher
54a6d3179d redex: add #:pre to define-judgment-form
also, update contract error messages for the same
2014-07-22 14:28:20 -05:00
Vincent St-Amour
45af9f8fe2 More titles and abstracts for RacketCon. 2014-07-22 14:12:16 -04:00
Robby Findler
8429f3e9d6 misc improvements around read-language (uses and docs)
- make a logger for drracket-related #lang problems
- change read-language's docs to indicate that it can return #f
- adjust a bunch of calls to read-language for the case that it returns #f
  with the goal of making that be the same as a get-info function that
  always returns the given default
- mention `read-language` in the guide section entitled
 "Source-Handling Configuration"
2014-07-22 08:54:08 -05:00
Robby Findler
017480c9b9 heap-remove! sometimes needs to heapify up
closes PR 14651
2014-07-21 22:27:11 -05:00
Stephen Bloch
2fd802cf3b Commented out some test cases that intentionally failed, so as to not
get spurious failure messages.
2014-07-21 21:02:41 -04:00
Vincent St-Amour
a56895d29e Start filling in RacketCon titles and abstracts. 2014-07-21 14:38:02 -07:00
Vincent St-Amour
5a12f8e778 Update TR history.
Please merge to 6.1.
2014-07-21 13:42:29 -07:00
John Clements
7edaf9b1cc boldface for performance note 2014-07-21 08:45:19 -07:00
John Clements
c970a0656c updated HISTORY.txt
Merge to 6.1 release
2014-07-21 08:45:18 -07:00
Robby Findler
3666842cd4 fix compatible-closure to deal properly with language extension
Thanks to David Van Horn for spotting the problem and providing
a nice simple test case

Please include in 6.1
2014-07-20 07:05:14 -05:00
Gregory Cooper
2881b60536 Rewrite the delay-by primitive so it's easier to understand.
Also, add comments that attempt to explain how it's intended to work.
2014-07-19 16:06:31 -07:00
Gregory Cooper
45306397cc Reorder some recursive definitions to avoid undefined references.
Please include in v6.1 release if possible.
2014-07-18 22:25:04 -07:00
Robby Findler
2a07425f26 renaming bug in file/convertible's contract 2014-07-18 23:32:24 -05:00
Robby Findler
5641ab84db add contracts to file/convertible 2014-07-18 20:59:09 -05:00
Robby Findler
ad7a535de9 add missing argument 2014-07-18 20:33:41 -05:00
Robby Findler
4a996cce6b add context into the blame record for struct-type-property/c
and use the standard contract printer
2014-07-18 20:33:41 -05:00
Ryan Culpepper
f4978d2fdb fixed macro stepper test 2014-07-18 16:35:58 -04:00
Ryan Culpepper
4f05e33192 fix stxparse test 2014-07-18 16:15:00 -04:00