Commit Graph

27628 Commits

Author SHA1 Message Date
Matthew Flatt
6fdcee44db props fix 2012-11-16 22:21:54 -07:00
Matthew Flatt
98f1b8da94 typo/update comment 2012-11-16 21:56:19 -07:00
Neil Toronto
e88fe44ff5 Made bigfloats serializable 2012-11-16 17:10:37 -07:00
Neil Toronto
26475f44e4 Set ntoronto as responsible for math 2012-11-16 15:43:29 -07:00
Neil Toronto
97fa28552d Removed runtime dependence on libmpfr; DrDr should be able to test all but tests/bigfloat-test.rkt now 2012-11-16 15:39:15 -07:00
Kevin Tew
d1a02d3fe2 [Distributed Places] fix partit function 2012-11-16 15:25:52 -07:00
Matthew Flatt
8d30f1738c fix a sorting problem in a bytecode's submodule table 2012-11-16 14:10:32 -07:00
Matthew Flatt
9a48e5d1e5 math: avoid import at unnecessary phase
This repair avoids using at compile time external libraries that
are needed at run time.
2012-11-16 14:10:32 -07:00
Matthew Flatt
4080446c50 skip ".git" or ".svn" in a collects directory
Also, update the documentation for `raco setup' and its handling
of command-line argument.
2012-11-16 14:10:32 -07:00
Matthew Flatt
c3cd089758 fix error message for `map', etc. on arity mismatch
Closes PR 13244
2012-11-16 14:10:32 -07:00
Robby Findler
d0ce0de398 change the way that the delegate text is specified, using
getter/setters instead of overriding a method

this has the benefit that the delegate does not have to be
rebuilt when switching tabs in drracket; we just leave the
old delegate on the old definitions text, and the swap it
back into the editor-canvas when we swap the text% object
itself back in.
2012-11-16 14:33:17 -06:00
Robby Findler
899ce93d07 don't run follow-log.rkt in drdr 2012-11-16 14:33:17 -06:00
Robby Findler
6fc70a04d8 adjust the code that maintains the blue "where am I" background
coloring in the contour window to make only a single call to
invalidate-bitmap-cache

It was making two before, which could have pretty similar regions,
leading to two repaints instead of just one. When pushing the down
arrow near the bottom of the visible regions of the definitions text
was causing those two calls to take about 30 milliseconds and after
this change the one call seems to be about half that (but there is
lots of variance so I'm only sure that it helped some, not how much)
2012-11-16 14:33:00 -06:00
Robby Findler
052ee14afc unbreak the contour window
A long time ago, I tried to improve the interactiveness
of DrRacket when the contour window was open with the
code that is removed in this commit. Looking at it today,
it seems clear that this code was buggy (and, now that
we've had lots of experience with it, it didn't actually
help with interactivity either)

The problem is that the code didn't record enough
information about the change to the editor in the thunk put
into the 'todo' field. It would remember that a particular
range was out of date, but it woudln't remember which
characters were in that range, so when it would go to copy
the characters, it may be getting the wrong characters
(since another edit may have happened since the thunk was
stored in the todo field)

This change also has the side benefit that the time it takes
to change the contour window is now being tracked by the
colorer, which means that it'll give up a bit sooner
coloring less in each go, but hopefully maintaining the
interactivity
2012-11-16 14:32:45 -06:00
Neil Toronto
f2dc2027f6 Initial math library commit. The history for these changes is preserved
in the original GitHub fork:

  https://github.com/ntoronto/racket

Some things about this are known to be broken (most egregious is that the
array tests DO NOT RUN because of a problem in typed/rackunit), about half
has no coverage in the tests, and half has no documentation. Fixes and
docs are coming. This is committed now to allow others to find errors and
inconsistency in the things that appear to be working, and to give the
author a (rather incomplete) sense of closure.
2012-11-16 11:39:51 -07:00
Neil Toronto
ac424a73a5 Added `define-typed/untyped-identifier' to typed/untyped-utils
Made return types of `flvector-length' and `unsafe-flvector-length' more precise (they return Index)
2012-11-16 10:52:56 -07:00
Matthew Flatt
9ef485d802 fix configuration for QNX
Patch from Tobias Hammer.

Closes PR 13265
2012-11-16 06:37:23 -07:00
Matthew Flatt
a4b5336709 doc clarification on `set-rest' 2012-11-16 06:37:23 -07:00
Robby Findler
3aac6ec715 add the name of the function to the message string in the gui-event logger 2012-11-16 07:26:38 -06:00
Robby Findler
12e8332c55 move follow-log.rkt to tests/drracket 2012-11-16 07:26:38 -06:00
Sam Tobin-Hochstadt
30e26f00cd Use error-display-handler instead of threads for multiple error reporting.
Closes PR 13240 (in reality, avoids the bug, but ryanc says that it's too
hard to fix).
2012-11-15 12:33:25 -08:00
Robby Findler
d11f63bd46 fix bad require in follow-log.rkt and add some more histogram utils 2012-11-15 12:22:13 -06:00
Matthias Felleisen
9af2c9de5d remove matrix-set-bang from documentation; Closes PR 13264 2012-11-15 10:45:33 -05:00
Matthias Felleisen
2984f939ed experiment with matrix-set-bang, some Rackety, fixing tests 2012-11-15 10:45:33 -05:00
Matthew Flatt
a89963d0a8 remove unneeded "info.rkt"
It's not needed, and it also overrides the enclosing `omit-compiled-paths'
specification, which in turn triggers a failure of the "zo-path.rkt" test.
2012-11-15 07:03:24 -07:00
Matthew Flatt
ed89b32de4 fix argument checking of semi-inlined `continuation-mark-set-first'
Closes PR 13256
2012-11-15 07:03:24 -07:00
Robby Findler
a9b6f8ea46 improve drracket's event log following code
- add support for getting a histogram of event timings

 - add support for scripting drr to be able to make comparisons
2012-11-15 07:49:04 -06:00
Robby Findler
8a45494872 make drracket's test util use a relative path for things
inside the same collection so this file can (when other
things aren't too different) be used in a version of racket
that doesn't generally have the tests
2012-11-15 07:49:04 -06:00
Robby Findler
bfa6f374ff test that you can use flat-named-contract with a contract
that already has a name (and get the new name)

closes PR 8050 -- this PR was fixed at some point in
the past; this commit just adds a test case
2012-11-15 07:49:03 -06:00
Matthew Flatt
d7eddb91ef fix compiler/zo-marshal
Missed some updates for recent local-type changes. Also, fix up a
few field names in the demodularizer.
2012-11-15 06:18:05 -07:00
Matthew Flatt
719ada1baa fix benchmark on empty input 2012-11-15 06:18:05 -07:00
Matthew Flatt
6ee62ec5ad check fixnum-literal range before claiming it's always a fixnum 2012-11-15 06:18:05 -07:00
Matthew Flatt
367f47f92d fix bad aliasing 2012-11-15 06:18:05 -07:00
Eli Barzilay
8c021b60ce New Racket version 5.3.1.7. 2012-11-15 03:30:14 -05:00
Matthew Flatt
bdf1c3e165 bytecode compiler: generalize local-type tracking for unboxing
Track fixnum results in the same way as flonum results to enable
unboxing, if that turns out to be useful. The intent of the change,
though, is to support other types in the future, such as "extnums".

The output `raco decompile' no longer includes `#%in', `#%flonum',
etc., annotations, which are mostly obvious and difficult to
keep in sync with the implementation. A local-binding name now
reflects a known type, however.

The change includes a bug repair for he bytecode compiler that
is independent of the generalization (i.e., the new test case
triggered the old problem using flonums).
2012-11-14 19:37:01 -07:00
Matthew Flatt
447db085dc benchmark improvement
Hash to a box, because finding and updating a box is faster than
updating a hash-table entry.
2012-11-14 19:17:42 -07:00
Matthew Flatt
5400b41bce add `unsafe-cons-pair'
Also, make `list?' more optimistic about checking is  the "is list?"
flag on a pair.
2012-11-14 19:17:42 -07:00
Matthew Flatt
9e3f9fbe3e JIT x86: streamline store of a 32-bit constant 2012-11-14 19:17:42 -07:00
Matthew Flatt
91a5347d5b JIT: push alternate target-register handling into inlined code
This change streamlines generated code slightly.

New release checklist item: double-check by building with
TEST_ALTERNATE_TARGET_REGISTER.
2012-11-14 19:17:42 -07:00
Matthew Flatt
335711bc3f tweak JIT-inlined `cons'
Handle better the case where the first argument is more
complex than the second.
2012-11-14 19:17:41 -07:00
Matthew Flatt
f1807d2ecc JIT: skip an unused load 2012-11-14 19:17:41 -07:00
Matthew Flatt
d99888d700 x86_64: more direct thread-local access in JIT
Use one instruction instead of two.
2012-11-14 19:17:41 -07:00
Ryan Culpepper
ab88a2a9bd add table-based db tests
Allows testing for mysql char type (see previous commit comment)
2012-11-14 20:40:52 -05:00
Ryan Culpepper
8db023c624 add string typeid for mysql char(N) fields
closes PR 13255

Need to add tests, but "select cast(? as char(5))" results in var-string,
not string. Only get string typeid when reading from table.
2012-11-14 20:40:14 -05:00
Ryan Culpepper
4cdcfd6a3b improve db tests 2012-11-14 18:30:03 -05:00
Danny Yoo
032e1ebf55 Add contract for run-tests. 2012-11-14 10:54:51 -07:00
Kevin Tew
46dc0357ba [Places] remove unused code 2012-11-13 10:22:13 -07:00
Kevin Tew
06bc6d7883 Places documentation clarification 2012-11-13 10:21:52 -07:00
Kevin Tew
d269817a60 typo fixes 2012-11-13 10:11:50 -07:00
Jay McCarthy
db3d9b784f Missed a place where I assumed a default format on pkg create 2012-11-12 12:03:40 -07:00