Commit Graph

27364 Commits

Author SHA1 Message Date
Matthew Flatt
4e6f8af667 JIT: fix a bug related to self-tail calls
The last argument in a self-tail cal is treated specially and
not immediately stored on the "runstack". Space was formerly
allocated for it, though, and under certain circumstances
that space was not initialized. I think a combination of thread
timing, GC timing, and flonum boxing could potentially lead to a
crash (but constructing a test case is really difficult).
2012-11-18 10:31:20 -07:00
Matthew Flatt
7a8f5f20fc bytecode compiler: replace table of local types with flags on primitives
This change makes it easier to annotate more primitives, so functions like
`integer-length' are now annotated as producing a fixnum.
2012-11-18 10:31:20 -07:00
Matthew Flatt
c5d3178602 change representation of optimization flags on primitives
Makes room for a lot more.
2012-11-18 10:31:20 -07:00
Matthew Flatt
42f74b5982 JIT tweak: stack-clearing operations do not disturb registers 2012-11-18 10:31:20 -07:00
Matthew Flatt
be4ce3ed66 skip some unneeded fixnum tests in JIT-generated code 2012-11-18 10:31:20 -07:00
Matthew Flatt
4041e65a86 JIT simplification
The scheme_generate_arith() function effectively had its own
copy of of the general scheme_generate_two_args() function that
predates the general one. Using scheme_generate_two_args()
instead simplifies and clarifies the code.
2012-11-18 10:31:20 -07:00
Neil Toronto
68af24780d Manually applied Jens Axel's patch to add `random-prime' 2012-11-17 21:19:46 -09:00
Jens Axel Søgaard
e655e97a83 Better example for prime-omega 2012-11-17 21:03:47 -09:00
Jens Axel Søgaard
69f6d8ce52 Added prime-omega 2012-11-17 21:02:59 -09:00
Neil Toronto
1e52736089 Documentation style changes
Fixes after merge weirdness from pull request (specifically, removed `bfrandom' from "mpfr.rkt" again)
Removed dependence of math/flonum on math/bigfloat (better build parallelization)
Changed `divides?' to return #f when its first argument is 0
Made return type of `quadratic-character' more precise
Made argument types more permissive:
 * second argument to `solve-chinese'
 * second argument to `next-primes'
 * second argument to `prev-primes'
2012-11-17 21:02:37 -09:00
Jens Axel Søgaard
db500e8b58 Fixed next-prime and prev-prime problem 2012-11-17 21:02:37 -09:00
Jens Axel Søgaard
7e89adece4 Moved links to margin. Added more links 2012-11-17 21:02:37 -09:00
Jens Axel Søgaard
f208d0dae8 Add note about untyped- in docs for next-prime and prev-prime 2012-11-17 21:02:37 -09:00
Jens Axel Søgaard
bbef490fb0 Fixed missing import for curry 2012-11-17 21:02:36 -09:00
Jens Axel Søgaard
9307cbb120 Changed size of prime arrary to 10000 2012-11-17 21:02:36 -09:00
Jens Axel Søgaard
2178282fd6 Documentation for order, orders, primitive-root, exists-primitive-root?, primitive-roots 2012-11-17 21:02:36 -09:00
Jens Axel Søgaard
0af1cb034e Documentation of tangent-number, quadratic-solutions, quadratic-residue and quadratic-character 2012-11-17 21:02:36 -09:00
Jens Axel Søgaard
63b5f47989 Documentation on mediant 2012-11-17 21:02:36 -09:00
Jens Axel Søgaard
00a886ea0c Documentation on polygonal numbers 2012-11-17 21:02:36 -09:00
Jens Axel Søgaard
f68cc0ada6 More documentation on number theoretic functions 2012-11-17 21:02:36 -09:00
Jens Axel Søgaard
8b99eb5b6a Headline in docs 2012-11-17 21:02:36 -09:00
Jens Axel Søgaard
e81f9eb146 Added bindings to number theoretic functions 2012-11-17 21:02:36 -09:00
Robby Findler
4ba1c119d4 fix bug in recent tooltip-related commit 2012-11-17 21:26:02 -06:00
Robby Findler
9298353e90 add recent changes to HISTORY 2012-11-17 20:17:19 -06:00
Robby Findler
e449e275ab removed the deinprogramm one-line-summary's because they are
just the same as the language names, and so look a bit silly
in tooltips now
2012-11-17 20:15:19 -06:00
Robby Findler
4774d7fea0 made the 'one-line-summary' of the drracket languages be in tooltips,
instead of in a message% object near the bottom of the dialog
2012-11-17 20:15:19 -06:00
Ryan Culpepper
ba1f4a6b22 fix for ssl-set-verify-hostname! 2012-11-17 16:46:10 -05:00
Ryan Culpepper
c5f8aa41ee add some basic notes on using ssl securely 2012-11-17 16:35:03 -05:00
Ryan Culpepper
5cdb967251 added ssl-set-verify-hostname! 2012-11-17 15:36:18 -05:00
Ryan Culpepper
1c0e08f0a6 do security-guard check in ssl-load... 2012-11-17 14:47:13 -05:00
Ryan Culpepper
d6cb2ecee6 add ssl hostname verification support 2012-11-17 14:47:13 -05:00
Ryan Culpepper
9a7a80422c linked to serialization docs 2012-11-17 14:47:13 -05:00
Robby Findler
4befb20bd0 remove the mode where reader errors discovered via online check syntax
are shown in the corner of the window

This was an attempt to avoid opening up a whole status line in the
bottom of the window much of the time. But it doesn't really work
since as soon as you have a syntax error (which are relatively common)
you get that whole line opened up. That it, this attempted GUI interaction
depended on the bogus premise that read errors are somehow happening
in a transient way between error-free states.

closes PR 13267
2012-11-17 13:20:04 -06:00
Robby Findler
fda9d211b7 Add more items to the frameless help menu
closes PR 13262
2012-11-17 13:20:03 -06:00
Neil Toronto
aa83f80d64 Removed extraneous files that DrDr was running 2012-11-17 11:57:13 -07:00
Matthew Flatt
eaf68e6e85 GMP and MPFR as pre-build libraries for Mac OS X and Windows
Also, add versions for Unix references, and adjust the way that
missing bindings are handled.
2012-11-16 22:21:54 -07:00
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