Commit Graph

28867 Commits

Author SHA1 Message Date
Chen Xiao
a3a610ed32 doc repair 2013-03-10 06:39:07 -06:00
Matthew Flatt
939b36d1fe slideshow: fix bug related to `interactive'
The viewer didn't remove interactives correctly.
2013-03-10 06:29:02 -06:00
Robby Findler
da7a525452 oops
(and the bigger mystery is why this didn't signal
an error when I ran the tests)
2013-03-09 19:01:31 -06:00
Robby Findler
e0aef0a575 fix two bugs in recent plai commit 2013-03-09 18:59:26 -06:00
Asumu Takikawa
2f0dee9270 Doc fixes for takef & friends 2013-03-09 17:13:59 -05:00
Asumu Takikawa
de99fdb867 Fix identifier typo 2013-03-09 17:13:59 -05:00
Asumu Takikawa
a764f20375 Minor sha1 doc fixes 2013-03-09 17:13:59 -05:00
Robby Findler
38f5823a59 adjust plai's gc2 language to use roots as the arguments
to gc:cons and gc:closure instead of passing locs

This enables the important change, namely that get-root-set
no longer returns roots corresponding to the arguments
of the allocation function that we're in the middle of.

This means that a common error students have (forgetting
to chase the 'hd' and 'tl' pointers in their GC) is
harder to make now, since get-root-set never contains
those locations as roots. (In the past you would have had
to write some pretty non-obvious mutator program to get
that behavior.)
2013-03-09 16:08:00 -06:00
Eli Barzilay
44c274e6c3 Actually swap the argument order.
(This was supposed to be included with the other commit.)
2013-03-09 16:05:01 -05:00
Eli Barzilay
c183711d34 Move the `define-inline' tests to "tests/racket/optimize.rktl".
Avoids a bad dependency.
2013-03-09 15:47:43 -05:00
Eli Barzilay
3af72ecab4 Added splitf-at', takef-right', dropf-right', splitf-at-right', and more.
* See comment about implementation issues.

* Removed the `list?' requirement on `takef' etc -- so it matches the
  non-*f versions.  (IMO, it'd be better to drop it from all of them.)
  This also changes the output of `dropf' to `any/c'.

* Swapped the argument order so the predicate is last -- this makes it
  uniform with the non-f* versions.  (IMO, it'b be better to use the
  popular order in all of them instead.)

* Includes tests, and also improved version of previous tests.

* Includes docs, and also fixes to previous docs (eg, drop* doesn't
  return a fresh list).
2013-03-09 15:47:43 -05:00
Eli Barzilay
0d217af2f0 Shuffle code for a more logical order. 2013-03-09 15:47:43 -05:00
Eli Barzilay
e47cc6efb1 Clean up source layout. 2013-03-09 15:47:42 -05:00
Eli Barzilay
2cdfe18beb Rename {take,drop}-while' -> {take,drop}f'.
Also, improve the tests a little.
2013-03-09 15:47:42 -05:00
Stevie Strickland
7d1ad25d6c Revert hack for top-level, institute real fix.
As a side-effect of this fix, we don't need the thunking behavior for
external identifiers anymore.  Even better!

Also include some other cleanups suggested by Ryan and moves from
quasisyntax/loc -> syntax/loc where we don't use the quasiquoting.
2013-03-09 10:46:12 -05:00
Robby Findler
ba3e676057 adjust the expansion of #%module-begin so it doesn't
generate so much code

(Mostly to avoid pain with the macro stepper, but also
reducing the amount of code macros generates is good
for performance reasons)
2013-03-09 09:22:18 -06:00
Robby Findler
46eb91b578 fix a bug in the way let-values decided which variables are roots
also, Rackety
2013-03-09 09:22:18 -06:00
Robby Findler
eb41882843 add tests for plai's get-root-set (in gc2) 2013-03-09 09:22:18 -06:00
Robby Findler
3311387201 when anormalizing, never lift out identifiers from application expressions
The code used to avoid lifting identifier in more restricted circumstances,
but it seems safe to alway avoid that, which can lead to a lot
less lifting
2013-03-09 09:22:18 -06:00
Robby Findler
87f76e94f7 allow quote require forms in the argument to allocator-setup
This is mostly to better support test cases so that we
can set up namespaces that have specific collectors in them
(easiest to do with quote-based requires)
2013-03-09 09:22:17 -06:00
Robby Findler
609672bfa1 bugfix in the closure support 2013-03-09 09:22:17 -06:00
Stevie Strickland
2fb49aca15 Use old inefficient implementation for top-level for now. 2013-03-09 09:09:20 -05:00
Mike Sperber
b1db073ab8 Synch German string constants with latest. 2013-03-09 14:34:33 +01:00
Stevie Strickland
71a64bfb77 Remove additional cruft. 2013-03-08 23:36:05 -05:00
Stevie Strickland
57e9001868 Fix a couple of identifer references that were overlooked. 2013-03-08 23:04:32 -05:00
Stevie Strickland
539c25bb37 Fix with-contract so that contracts are only applied per mutation.
There's still a function application (here, a thunk) lurking in
external accesses, but since that's a trade-off for an entire contract
application, we profit.
2013-03-08 18:11:27 -05:00
Eric Dobson
1334e8dcc7 Reduce usage of check-below.
This pushes almost all uses of check below into tc-expr and
tc-expr/check. This means that the optimizer sees more precise types
and can make more optimizations.
2013-03-08 09:00:58 -08:00
Eric Dobson
1fd21ef640 Avoid TR internal error, by checking shape of args. 2013-03-08 09:00:10 -08:00
Eric Dobson
df581c3e4f Remove unused argument to tc/rec-lambda/check. 2013-03-08 08:59:57 -08:00
Matthew Flatt
454f4c3f0e slideshow: add `interactive'
The `interactive' pict constructor is a hook for interactive GUI
elements on a slide. The callback associated with an `interactive'
pict gets a `frame%' instance for a frame that floats over the pict.
2013-03-07 21:46:48 -07:00
Matthew Flatt
81a0451849 ffi/unsafe/objc
Avoid crash on duplicate Objective-C class declaration.
2013-03-07 21:46:48 -07:00
Matthew Flatt
9e0e2b932d scribble/srcdoc: add `begin-for-doc' 2013-03-07 21:46:48 -07:00
Jay McCarthy
0720ad231e raco setup, ignore this collect 2013-03-07 15:27:12 -07:00
Robby Findler
308a65e6ca fix plai tests 2013-03-07 16:02:51 -06:00
Eli Barzilay
b9406e6a75 Style changes.
No need to stick with the srfi-1 style of `lis' and `recur'.  I also
removed the srfi-1 comment since this code is straightforward.  (I keep
such comments if there's something non-trivial that was taken.)
2013-03-07 16:43:02 -05:00
Eli Barzilay
bbeb293b2a Fix renamed file in props. 2013-03-07 16:43:02 -05:00
Eli Barzilay
95abacd088 GCalc updates.
* Lots of racket-isms.

* Add ".rktd" to the sample file.

* Fix an old bug where the large display wouldn't get refreshed.
2013-03-07 16:43:02 -05:00
Robby Findler
0889133ca1 unbreak get-root-set 2013-03-07 13:52:37 -06:00
Robby Findler
9ef439d31f add in documentation for plai/gc2 2013-03-07 13:52:37 -06:00
Robby Findler
49ffca8fc2 remove ->address 2013-03-07 13:52:36 -06:00
Robby Findler
5c90a7ba83 adjust gc2's mutator language so that void-producing expressions
are allowed only in places where the value is discarded
2013-03-07 13:52:36 -06:00
Asumu Takikawa
bb17b6a8f6 Add take-while, drop-while to racket/list 2013-03-07 12:26:36 -05:00
Jay McCarthy
6bf03c1244 Extending cookie support with expiration
Providing access to paths on id-cookies

Change PNR to limit checksum updating unless forced
2013-03-07 10:21:03 -07:00
Jay McCarthy
9d3a42f166 using bcrypt 2013-03-07 10:21:03 -07:00
Jay McCarthy
39ae7a834b Removing saltification compat 2013-03-07 10:21:02 -07:00
Matthias Felleisen
ec0398fcdd Racket rename 2013-03-07 11:41:28 -05:00
Matthias Felleisen
c13d603c0e fixed .ss name in title 2013-03-07 11:41:28 -05:00
Matthias Felleisen
ef189b8e6e Racket rename 2013-03-07 11:41:28 -05:00
Robby Findler
eee43eb32f like d9c81a593, but this time only 4 pixels
(and this time under linux, not mac os x)
2013-03-06 16:38:59 -06:00
Robby Findler
d9c81a5931 declare failing test should not have failed
This test started failing due to the additions of the calls
to clip, introduced in commit e6dc9c28b4.  The actual
difference is only 9 pixels out of about 100,000 relevant
pixels. Even better, here's the precise rgb values for the
mis-matched pixels (the alpha values don't change):

   (224 251 255) vs (229 255 255)
   (200 242 255) vs (205 247 255)
   (205 242 255) vs (210 247 255)
   (205 242 255) vs (210 247 255)
   (205 242 255) vs (210 247 255)
   (205 242 255) vs (210 247 255)
   (200 242 255) vs (205 247 255)
   (224 251 255) vs (229 255 255)
   (242 255 255) vs (247 255 255)

It isn't clear to me why clipping like this would have this
particular change, but I think it is safe to assume that
Redex shouldn't change in response to this!
2013-03-06 16:35:37 -06:00