Commit Graph

624 Commits

Author SHA1 Message Date
Eli Barzilay
4977e6bd6c Switch off unsafe operations for now, better to turn it on after the
code was used for a while.

svn: r17008
2009-11-23 18:53:13 +00:00
Eli Barzilay
0b6ae05e9b Use unsafe operations for dealing with the vectors and indexes.
svn: r17007
2009-11-23 18:51:03 +00:00
Eli Barzilay
ea94f5dea5 Added `copying-insertionsort' for small blocks, some fixes.
svn: r17006
2009-11-23 18:50:12 +00:00
Eli Barzilay
ab832a3b4d Optimize copying-quicksort by passing around only two indexes and the
length of the block.

svn: r17005
2009-11-23 18:49:38 +00:00
Eli Barzilay
d46beb2325 Works on lists of any size now.
svn: r17004
2009-11-23 18:48:46 +00:00
Eli Barzilay
c68eeb97ca Further optimizations to `merge'.
svn: r17003
2009-11-23 18:48:06 +00:00
Eli Barzilay
ebfdbe4bb0 Combined the two merge functions into one macro, and improved it a little.
svn: r17002
2009-11-23 18:47:32 +00:00
Eli Barzilay
a272c479a6 First version of a vector-based "half-copying" merge sort, which will end up
being more than twice faster than the current version.

[Currently works only with 2^n lists, and otherwise broken -- committed
to keep the development history in svn.]

svn: r17001
2009-11-23 18:46:40 +00:00
Matthew Flatt
f719aac2be scheme/future, sequential futures implementation when --enable-futures not specified; doc updates
svn: r16999
2009-11-23 18:12:23 +00:00
Jay McCarthy
7662ef4bc1 Eli says it is a bad hack.
svn: r16998
2009-11-23 18:04:15 +00:00
Jay McCarthy
342fb61208 There is a race condition in this code. This doesn't totally fix it, if another process is creating and deleting the directory quickly, but it will help.
svn: r16996
2009-11-23 17:20:41 +00:00
Eli Barzilay
35b62665ae fix error messages
svn: r16933
2009-11-21 00:16:08 +00:00
Robby Findler
7b6eb65d79 vector-copy now works for empty vectors
svn: r16930
2009-11-20 22:43:01 +00:00
Stevie Strickland
71eef1bbd8 Allow for changing the name on flat contracts via flat-named-contract.
svn: r16928
2009-11-20 20:45:45 +00:00
Eli Barzilay
e2cd7a51e5 Fixed a comparison that was too strict, making the code go to the
general case on lists of length 3.  (Didn't have much effect since it's
only the toplevel comparison).

svn: r16899
2009-11-19 21:58:44 +00:00
Eli Barzilay
518a9d2df1 added path-up to scheme/require
svn: r16824
2009-11-17 08:11:44 +00:00
Eli Barzilay
86aabe4d34 misc improvements to the code
svn: r16819
2009-11-16 22:39:18 +00:00
Eli Barzilay
b1f5b0652c new kinds of promises
svn: r16807
2009-11-16 11:06:47 +00:00
Eli Barzilay
77d9f02c90 work around name problem in promise, avoid keeping the original exn in syntax errors in eli-tester
svn: r16796
2009-11-16 04:34:13 +00:00
Eli Barzilay
b79734941f separate out reify-result
svn: r16793
2009-11-16 02:23:18 +00:00
Sam Tobin-Hochstadt
fb29a2498e Move a bunch of functions from typed-scheme/utils/utils to unstable.
Add convenience lib for unstable docs.
Add char support to format-{id,symbol}
Add unstable/sequence library.

svn: r16789
2009-11-15 22:15:29 +00:00
Eli Barzilay
8e3ec9d3bf * Improve naming convention -- always use v' for values and p' for promises
* When `force/composable' reaches a promise, use `force' to dispatch on the
  kind of promise
* Minor printer tweaks (print "raise" for non-exceptions)

svn: r16772
2009-11-14 22:30:55 +00:00
Eli Barzilay
e7614fd491 more reorganization, centrelized macro for all delays -- can deal with keyword arguments, and accepts multiple expressions (since these will be sensible in new kind of promises)
svn: r16765
2009-11-14 05:57:27 +00:00
Eli Barzilay
2b4c9eb0d0 major code reorganization: it is now simpler than its srfi-45 roots, faster, and extensible (internally, to add new promise types)
svn: r16754
2009-11-13 19:17:53 +00:00
Eli Barzilay
61e5c3e41e use unsafe struct accessors and pair ops (using #%unsafe, because going throught scheme/unsafe/ops will lead to a cycle)
svn: r16744
2009-11-13 12:43:15 +00:00
Eli Barzilay
82f10f35a5 minor reorganizations
svn: r16743
2009-11-13 12:27:42 +00:00
Eli Barzilay
44d88cee6b newlines at EOFs
svn: r16630
2009-11-09 03:49:50 +00:00
Robby Findler
d5b5351751 improved domain check
svn: r16611
2009-11-07 17:29:50 +00:00
Robby Findler
667e967085 added order-of-magnitude from Jos Koot and some tests for other scheme/math stuff
svn: r16607
2009-11-07 14:26:39 +00:00
Eli Barzilay
29184f50ca clarify optimization choice
svn: r16588
2009-11-06 22:34:26 +00:00
Eli Barzilay
69e90b7ef3 #:key argument to remove-duplicates
svn: r16587
2009-11-06 22:32:53 +00:00
Matthew Flatt
c880b2119c fix problems with recent FFI changes
svn: r16565
2009-11-05 20:29:18 +00:00
Stevie Strickland
c993533814 Change from (module ...) -> #lang and also move any mzscheme -> scheme/base.
svn: r16563
2009-11-05 17:18:54 +00:00
Matthew Flatt
c49b22fa2c change _pointer to mean a reference to non-GCed memory; add _gcpointer (v4.2.2.6)
svn: r16546
2009-11-04 19:28:04 +00:00
Matthew Flatt
4edc044cb6 source locations for 'for' loops in stack traces
svn: r16545
2009-11-04 19:17:31 +00:00
Eli Barzilay
705f21187c more fixes
svn: r16514
2009-11-03 05:47:29 +00:00
Eli Barzilay
891b14c98d several typos
svn: r16513
2009-11-03 05:07:33 +00:00
Eli Barzilay
00ada47764 tabs and indentation
svn: r16512
2009-11-03 04:39:13 +00:00
Sam Tobin-Hochstadt
149e695a55 New `scheme/vector' library.
svn: r16511
2009-11-03 04:16:48 +00:00
Jon Rafkind
f99c5f276c print value of the super class in error messages
svn: r16482
2009-10-30 17:50:15 +00:00
Eli Barzilay
cf91b7c254 Use in-producer' for in-input-port-chars' and `in-input-port-bytes'.
(The non-macro version of `in-input-port-bytes' still uses
`:input-port-gen', since it's needed anyway.)

svn: r16475
2009-10-30 13:34:33 +00:00
Eli Barzilay
4f002bb7bb Redo in-port' and in-lines' using `in-producer', since this gives us a
faster macro version for the loops.

svn: r16474
2009-10-30 11:10:05 +00:00
Eli Barzilay
c049ccca3a minor fixes
svn: r16473
2009-10-30 10:48:38 +00:00
Eli Barzilay
52ac79406b some reformatting
svn: r16472
2009-10-30 10:46:18 +00:00
Eli Barzilay
87a5092c82 added error checking for the reader, some shuffling
svn: r16471
2009-10-30 08:24:57 +00:00
Eli Barzilay
55506e6ecf remove dependency which leads to bad error message anyway
svn: r16470
2009-10-30 08:06:32 +00:00
Eli Barzilay
bfb3fd2d67 switch to #lang
svn: r16469
2009-10-30 08:01:43 +00:00
Eli Barzilay
6d2756c562 more minorities
svn: r16466
2009-10-30 07:47:15 +00:00
Eli Barzilay
f0f9e995d6 minor reformatting, remove unused file-size
svn: r16465
2009-10-30 07:36:37 +00:00
Sam Tobin-Hochstadt
653d0ccd66 Add in-port', port->list', `file->list'.
Add documentation, tests for above.
Allow procedure argument to `fold-files' to return 2 values in all cases.
Document, test.

svn: r16453
2009-10-29 18:49:34 +00:00