Commit Graph

34523 Commits

Author SHA1 Message Date
Matthias Felleisen
549776eaad more Rackety, useless exn msg 2014-10-02 12:14:12 -04:00
Matthias Felleisen
98e9bc7f9c Racket-y 2014-10-02 12:14:12 -04:00
Vincent St-Amour
0c633d91e1 Add Fogus's slides. 2014-10-02 11:40:40 -04:00
Neil Toronto
4c95f3da0d Added warning about GLX choosing indirect rendering 2014-10-01 22:51:03 -04:00
Neil Toronto
c601b82f04 Remove dependence on libgtkgl; fix indirect rendering problem
The right way to render to pixmaps is to create a GLX pixmap wrapper
and render to *that*. Almost nobody does this - including libgtkgl -
and it's almost never a problem. But it causes crashes on my system
in indirect rendering mode.

This commit changes three things.

 1. OpenGL on Linux no longer requires libgtkgl, only libGL, which
    comes preinstalled on many (most? almost all?) systems.

 2. Rendering to pixmaps is done properly, via a GLX pixmap wrapper.

 3. Direct rendering is done whenever possible, even for pixmaps.
2014-10-01 22:51:03 -04:00
Robby Findler
7aa4c94b9b fix some random generators broken when refactoring things to improve contract-stronger? 2014-10-01 21:44:02 -05:00
Matthew Flatt
b946d4639e JIT: fix allocation of letrec-bound closure over unboxed flonums
The closure could be allocated as uninitialized memory with the
expectation that it would be filled right away, but boxing values
to put in the closure could expose the uninitialized memory to
the GC. Fix the problem by boxing before allocating closures.
2014-10-01 13:13:37 -06:00
Matthew Flatt
b336194cf4 racket/gui Cocoa: disable App Nap; switch to GUI mode more lazily
On 10.9 and later, `racket/gui` now disables App Nap. Otherwise, a
program like

 #lang racket/base
 (require racket/class
          racket/gui/base)

 (define T 0.05)

 (let loop ([prev (current-inexact-milliseconds)])
   (sleep T)
   (define now (current-inexact-milliseconds))
   (define delta (- now prev))
   (when (delta . > . (* 2000 T))
     (printf "long wait ~a at ~a\n" delta now))
   (loop now))

will start to report a wait of more than 10 seconds, as App Nap
puts the process to sleep.

Relatedly, when `racket/gui` is started via plain `racket` (as opposed
to GRacket), then it starts in "accessory" mode instead of "regular"
mode, which means that the application does not appear in the dock
or have a menu bar. As soon as a frame is shown or a root menu bar
is created, the application is promoted to "regular" mode. This works
in 10.7 and later.
2014-10-01 13:13:37 -06:00
Asumu Takikawa
0a71fe1d28 Fix types for eq/eqv/equal-hash-code
Thanks to this SO question:
  http://stackoverflow.com/questions/26130215
2014-10-01 13:53:18 -04:00
Ryan Culpepper
b2c6022989 syntax/parse: support pvar:literal patterns 2014-10-01 10:39:56 -04:00
Ryan Culpepper
e1e2e7e5da syntax/parse: conventions have lowest priority 2014-10-01 10:39:56 -04:00
Ryan Culpepper
462bf4b399 syntax/parse: fix docs typos and mistakes
closes PR 14675, closes PR 14674
2014-10-01 10:39:56 -04:00
Ryan Culpepper
ee65681a90 syntax/parse: literals shadow pattern forms etc
closes PR 14750
2014-10-01 10:39:56 -04:00
Ryan Culpepper
2d2f5dc333 tests for SSL server-side SNI
thanks to Jay Kominek
2014-10-01 10:39:56 -04:00
Jay Kominek
320079eeab add server-side support for TLS SNI 2014-10-01 10:39:56 -04:00
hopkinsr
d534b19167 call/input-url - support headers and polymorphism
The types are tweaked to match the contracts and to support passing a
list of headers to the connect procedure.

The FIXME for polymorphism has also been removed as it is now
parameterized to support "...The result of the handle procedure is the
result of call/input-url..."
2014-10-01 09:24:32 -04:00
Jay McCarthy
3bd9ab669f Removing separate processes and trying to get faster turn-around, plus a few little things 2014-10-01 09:07:28 -04:00
Jay McCarthy
368385a2e6 Notification 2014-10-01 09:07:28 -04:00
Jay McCarthy
c848a1ea92 Cleanup 2014-10-01 09:07:28 -04:00
Jay McCarthy
6cc07e5048 Little notes 2014-10-01 09:07:27 -04:00
Jay McCarthy
bd4a180d35 remove debug 2014-10-01 09:07:27 -04:00
Jay McCarthy
a8c8af93fb help 2014-10-01 09:07:27 -04:00
Jay McCarthy
9c51088b12 default search 2014-10-01 09:07:27 -04:00
Jay McCarthy
24d854e4d1 updated 2014-10-01 09:07:27 -04:00
Jay McCarthy
6482301fd5 consistent colors 2014-10-01 09:07:27 -04:00
Jay McCarthy
3f081ced2d help 2014-10-01 09:07:27 -04:00
Jay McCarthy
9ad95c1305 build width 2014-10-01 09:07:27 -04:00
Jay McCarthy
66d79cdb57 docs 2014-10-01 09:07:26 -04:00
Jay McCarthy
e88bf026e0 authors 2014-10-01 09:07:26 -04:00
Jay McCarthy
480c60ceb0 style 2014-10-01 09:07:26 -04:00
Jay McCarthy
52ce34a6df style 2014-10-01 09:07:26 -04:00
Jay McCarthy
f90ec41331 Change hash in one go 2014-10-01 09:07:26 -04:00
Jay McCarthy
cfbd147734 Clean 2014-10-01 09:07:26 -04:00
Jay McCarthy
204f7c981b Fix error found by cky 2014-10-01 09:07:26 -04:00
Jay McCarthy
80b5424a02 Add spaces between doc links 2014-10-01 09:07:25 -04:00
Robby Findler
221519f47f change the recursive contract stronger implementation
to use hash tables instead of association lists
2014-09-30 21:02:13 -05:00
Robby Findler
43ffd4b6ce start the drracket-tools pkg
pull out the drracket/check-syntax library into this pkg
2014-09-30 21:02:13 -05:00
Asumu Takikawa
994c54c722 Fix embarrassing bug in OO subtyping
Subtyping on objects was unsound due to an attempt to
make the algorithm more clever. This was a good lesson in
the danger of premature optimization.
2014-09-30 21:56:07 -04:00
Burke Fetscher
96714934b6 redex: try harder when checking non-terminals
Unfold non-terminals other than the one we're currently
checking, and follow variable references, when normalizing
patterns for nt checking.
2014-09-30 17:31:08 -05:00
Burke Fetscher
72055d3a3a redex: make the depth-based clause ordering smarter 2014-09-30 17:31:08 -05:00
Vincent St-Amour
08d3345f60 Add Neil's slides. 2014-09-30 16:22:37 -04:00
Ryan Culpepper
5312a4b09f update docs for syntax pattern expanders 2014-09-30 11:05:04 -04:00
Ryan Culpepper
3d5fcaa355 move pattern-expander contracts to outer modules, trim exports
This avoids mysterious errors later in the build process related to
TR and static-contracts. I don't see how the pattern-expander code
could possibly cause the errors that occur, but this commit fixes them.
2014-09-30 11:05:04 -04:00
AlexKnauth
81cc6bf4d0 add pattern-expanders to syntax/parse 2014-09-30 11:05:04 -04:00
Matthew Flatt
89690c6de9 2htdp/universe: adjust world loop to make it a loop
Similar to the server-side problem, but on the client side. In a
game where the server drives the clients with frequent messages
through `on-tick`, per-message growth in the continuation can
matter a lot.
2014-09-29 21:21:47 -06:00
Matthew Flatt
346365f64c 2htdp/universe: adjust universe loop to make it a loop
Neither the body nor handler functions in `with-handlers` are
in tail position with respect to `with-handlers`.
2014-09-29 17:06:15 -06:00
Vincent St-Amour
e6eba83512 Add links to videos, and add links to slides/code in the schedule. 2014-09-29 15:57:11 -04:00
Vincent St-Amour
f07300589a Revert "testing"
This reverts commit 6ccfbec2b9.
2014-09-29 15:42:07 -04:00
Vincent St-Amour
e5fd7e504d Revert "Revert "fix a bug in f669c47c1""
This reverts commit 2e29a18039.

Reverted the wrong commit.
2014-09-29 15:41:51 -04:00
Matthias Felleisen
2e29a18039 Revert "fix a bug in f669c47c1"
This reverts commit 379ed6b46e.

Stupid robby experiment
2014-09-29 12:06:47 -04:00