Commit Graph

27851 Commits

Author SHA1 Message Date
Neil Toronto
0182a6c491 Worked around new typed/rackunit limitations in "array-tests.rkt" and
"mandelbrot-test.rkt"

Fixed error in `array-count' revealed by correctly failing test

Simplified Mandelbrot test
2012-11-29 15:45:17 -07:00
Neil Toronto
5a43f2c6bc Finished array documentation!
Cleaned up other docs in preparation for alpha-testing announcement

Created `math/utils' module for stuff that doesn't go anywhere else (e.g.
FFT scaling convention, max-math-threads parameters)

Reduced the number of macros that expand to applications of `array-map'

Added `flvector-sum', defined `flsum' in terms of it

Reduced the number of pointwise `flvector', `flarray' and `fcarray' operations

Reworked `inline-build-flvector' and `inline-flvector-map' to be faster and
expand to less code in both typed and untyped Racket

Redefined conversions like `list->flvector' in terms of for loops (can do
it now that TR has working `for/flvector:', etc.)
2012-11-29 15:45:17 -07:00
Neil Toronto
6009eed8d2 Moved flvector functions into math/flonum
Sped up normal distribution sampling procedure (2x for large samples)
2012-11-29 15:45:17 -07:00
Neil Toronto
cd002d5830 Documented `math/array' folds
Refactored many of the fold functions (e.g. `array-axis-andmap' is gone,
replaced by short-cutting `array-axis-and', which is sufficient because the
result of `array-map' is non-strict; added `array-count', `array-all-fold';
removed `array-all=' and friends)

Turned common folds into macros (preserves return types better, speeds up
compilation time)

Exposed a safe variant of `unsafe-array-axis-reduce'
2012-11-29 15:45:17 -07:00
Neil Toronto
9249929c45 Documented array printing, broadcasting, and transformations 2012-11-29 15:45:17 -07:00
Neil Toronto
7aadf33ead Implemented `flmultinomial' (not accurately, but it's there); changed
argument types to match `multinomial'
2012-11-29 15:45:16 -07:00
Ryan Culpepper
10a348815b load certificates from macosx keychains 2012-11-29 17:06:14 -05:00
Ryan Culpepper
f2621a5ea9 split off common certificate-adding code 2012-11-29 17:02:40 -05:00
Robby Findler
993cd40208 Adjust DrRacket so the window can get narrower
For example, a new DrRacket window (with a file named tmp.rkt in the
and 356 afterwards.  This is under mac os x with, I believe, the
default system font sizes. (The file is important because different
languages can have different buttons in the toolbar and the filename's
length itself can affect the minimum size.)

Mostly this change is the addition of a new kind of panel that
lets its children have multiple fixed sizes (as opposed to
just a single minimum size and (optionally  arbitrarily large))
It also adjusts the various toolbar buttons to use this new code.

Also, there's a few tweaks to shrink other things that became the
limiting factor in shrinking the width of the DrRacket window.

Currently, at least for #lang racket programs, the toolbar buttons
along the top of the window are the limiting factor (including the
save button).  With a bogus language (ie, #lang rackeeet), the bottom
bar is the limiting factor, since that will have only the Save, Run,
and Stop buttons.

related to PR 13281
2012-11-29 09:43:05 -06:00
Robby Findler
a45f94b58b adjust the anchor message, keyboard recording message, and overwrite
message so they don't take up space when they aren't being shown
(to reduce the minimum width of the window)
2012-11-29 09:43:05 -06:00
Matthew Flatt
b84b634359 meta/planet2: fix module broken by removing a file
Use `setup/unpack' instead of `planet2/util-plt'.
2012-11-29 07:42:52 -07:00
Matthew Flatt
bd16f1e302 scribble HTML: no extra breaking at the end of an identifier 2012-11-29 07:18:30 -07:00
Sam Tobin-Hochstadt
d6b0dfcd04 Switch to use almost-standard DOCTYPE for Scribble.
Also switches scribble search trampoline to standard DOCTYPE.

Scribble's HTML output currently relies on the quirks-mode
box model for layout of the many tables used in rendering.
However, Scribble doesn't need the rest of the changes in
browser quirks modes, so we choose a DOCTYPE that just
changes the box model.

It's non-obvious how to replicated this formatting with CSS
in standard-mode rendering.  Probably a better long term
solution is to move away from table-based layout.

See further discussion on GitHub pull request 158 here:
  https://github.com/plt/racket/pull/158
2012-11-29 07:06:52 -07:00
Matthew Flatt
6bfc03d625 add tests for in-list', in-mlist', and `in-set' shortcut 2012-11-29 06:57:34 -07:00
J. Ian Johnson
889f159103 Singleton optimization for sequences that would allocate. 2012-11-29 06:54:06 -07:00
Matthew Flatt
15cbfa1947 `raco pkg': fixes for package source inference and handling
Also, test additions and documentation adjustments.
2012-11-29 06:43:51 -07:00
Matthew Flatt
b16679266a raco pkg: --dont-setup' to --no-setup' and help text adjustments
Adjustements are for case and setence consistency and to fit
in 80 columns.
2012-11-29 06:27:38 -07:00
Matthew Flatt
3c253b0e2b raco pkg': treat ".plt" format consistently with raco setup -A'
An old package intended for use with `raco setup -A' can be
installed with `raco pkg install'.

A package created with `raco pkg create --format plt' can be
installed with `raco setup -A', although it could leave behind
weird "MANIFEST.rktd" and other files in the "collects" directory.

An old package created with `raco pkg create --format plt' still
can be used with `raco pkg install', although not with `raco setup -A'.

The change from previous 'raco pkg' behavior is that package content
now claims to be in a "collects" directory that is
installation-relative, and unpacking redirects "collects" to the
package-staging area. At the same time, unpacking still works the
same as before on ".plt" archives that are not installation-relative.
2012-11-29 06:27:38 -07:00
Matthew Flatt
abe4c1143f make raco pkg install' call raco setup' via `setup/setup'
Instead of using `system'.
2012-11-29 06:27:38 -07:00
Matthew Flatt
88a729df56 setup/setup: a keyword-based API for running `raco setup'
Mostly moves the implementation out of `setup/plt-single-installer'
into a more generic format.
2012-11-29 06:27:38 -07:00
Matthew Flatt
610587bf6e raco pkg install: change inference of package sources
A file package source is inferred only if suitable file suffix is
present, etc.
2012-11-29 06:27:37 -07:00
Ryan Culpepper
2f93e69b13 make file runnable on non-win32 2012-11-29 00:55:11 -05:00
Ryan Culpepper
7775a30a7f fix contract mistakes 2012-11-29 00:47:54 -05:00
Jens Axel Søgaard
6e60fb0a1d Fixed popcount name in docs 2012-11-28 23:14:52 +01:00
Ryan Culpepper
c64c325a55 remove redundant statement resets 2012-11-28 17:09:25 -05:00
Ryan Culpepper
0ac903f527 work around missing _v2 functions on old libsqlite3 versions
Missing sqlite3_next_stmt is still a problem, but harder to work
around.
2012-11-28 17:08:53 -05:00
Jens Axel Søgaard
07b8507ce9 Rename to bit-vector-popcount 2012-11-28 22:04:25 +01:00
Ryan Culpepper
fc4010d327 added todo list 2012-11-28 15:11:31 -05:00
Ryan Culpepper
9a07eed458 update docs 2012-11-28 15:11:03 -05:00
Ryan Culpepper
dc2a63182d remove error checks obviated by contracts 2012-11-28 15:06:06 -05:00
Ryan Culpepper
994f2998de added contracts 2012-11-28 15:06:06 -05:00
Ryan Culpepper
3d37eb4ae4 untabify, #lang 2012-11-28 15:06:06 -05:00
Ryan Culpepper
438f906fb9 reset statement after use 2012-11-28 15:06:06 -05:00
Ryan Culpepper
7b0a13bf74 load root certificates from windows system certificate store
Also, some recently added functions and parameters are renamed for
greater generality ("root-certificates" -> "verify sources").
2012-11-28 15:06:06 -05:00
Robby Findler
97454b6e55 guard use of exn-message
closes PR 13316
2012-11-28 13:17:41 -06:00
Robby Findler
253ae42558 clarify what 'displayed' is programmatically (a call to get-admin) 2012-11-28 13:17:41 -06:00
Robby Findler
e7c6222142 improve the 'method' syntax error so it gives a hint which argument is which 2012-11-28 13:12:28 -06:00
Robby Findler
ad2e8ac54e fix error check on the result of place-children
The main problem is that it asked exact? on an unknown
value and exact? works only on numbers.

But since I was here, also try to clarify the error message a bit.
2012-11-28 10:54:34 -06:00
Robby Findler
52d0b7e352 Possible fix for error raised by build-rectangle
When switching tabs while an on-reflow initiated callback
might still be running can lead to bogus information
coming back from position-locations, as the editor loses
its admin.

So, we just give up recomputing the rectangles when the
admin is gone and, for now, expect that there will be
another on-reflow call when the admin comes back that'll
restart the process (not sure that this is guaranteed tho)
2012-11-28 10:54:34 -06:00
Matthew Flatt
f847b76ad1 win32: make "build.bat" work with VCExpress
Closes PR 13231
2012-11-28 05:42:05 -07:00
Matthew Flatt
46fb91cfe4 update pre-built binary path for a win32 patch
Also, describe the patch in the Windows build notes.

This change increases access to symbol fonts, though not in a
completely consistent and portable way. See the closed problem
report for more information, as well as a 24-NOV-2012 post
on the Racket mailing list:
 http://lists.racket-lang.org/users/archive/2012-November/055141.html

Closes PR 13300
2012-11-28 05:39:46 -07:00
Matthew Flatt
3aa74f2a84 slideshow: fix import that changed the style of legacy libraries 2012-11-28 05:39:45 -07:00
Neil Toronto
96d1400654 Renamed functions
* bernoulli -> bernoulli-number
 * farey -> farey-sequence
 * fibonacci/mod -> modular-fibonacci
 * order -> unit-group-order
 * orders -> unit-group-orders

Documented `make-fibonacci' and `make-modular-fibonacci'

Reworked text about loading external libraries in docs for `math/bigfloat'

Removed type aliases like Z, Q, Prime (I like them, but TR was printing them
in unexpected places like array return types)
2012-11-27 22:23:42 -07:00
Robby Findler
a5961dcf36 make the drr log follower show its results in a separate window 2012-11-27 22:56:44 -06:00
Neil Toronto
6f1ffecc23 Stubbed out missing math/array' and math/statistics' doc entries to
clean up build

Moved `float-complex?' and `number->float-complex' to `math/base',
documented them

Documented `flexpt1p'

Removed `samples->immutable-hash' (not covariant anyway; not going to
use hashes)
2012-11-27 18:05:38 -07:00
Asumu Takikawa
3e81924f84 Fix nav separator for Opera
Commit 8653bc6792 caused
the doc navigation to render oddly on Opera due to how
it handles  . This commit retains the spacing
for text browsers, but fixes the navigation on Opera.
2012-11-27 18:03:40 -05:00
Jens Axel Søgaard
64f64a3607 Added bit-vector-count 2012-11-27 21:53:30 +01:00
Neil Toronto
2d34811ab6 Finished `math/distributions' documentation!
Fixed a few limit cases in some distributions (e.g. (uniform-dist 0 0) didn't
act like a delta distribution, (beta-dist 0 0) and (beta-dist +inf.0 +inf.0)
pretended to be defined by unique limits even though they can't be)

Made integer distributions' pdfs return +nan.0 when given non-integers

Added "private/statistics/counting.rkt", for hashing and binning samples

Added `flvector-sums' (cumulative sums with single rounding error)

Added `flinteger?', `flnan?' and `flrational?', which are faster than their
non-flonum counterparts (at least in Typed Racket; haven't tested untyped)
2012-11-27 13:44:15 -07:00
Philippe Mechai
3fdd834c6c add missing icon resizing in replace-icons
When replacing icons in an exe file, if the icon is smaller than the target
size and it has an alpha mask it is not resized which lead to an error.
2012-11-27 09:23:45 -07:00
Arek Korbik
0a5f1a21a6 Make send/suspend/[url/]dispatch allow values
Fix the send/suspend/[url/]dispatch's contracts (any/c -> any) to
allow values (and match the docs).
2012-11-27 08:49:04 -07:00