Eli Barzilay
3f36d054f6
Turn contracts on enqueue!' and
dequeue!' into the usual error checks.
...
On a simple benchmark of:
(let ([N 100000]
[M 20]
[q (make-queue)])
(time (for ([i (in-range M)])
(for ([i (in-range (* i N))]) (enqueue! q i))
(unless (for/and ([i (in-range (* i N))]) (list i (dequeue! q)))
(error "poof")))))
I get these timings:
original version: cpu time: 24438 real time: 24439 gc time: 8164
single-links: cpu time: 17848 real time: 17849 gc time: 4859
this version: cpu time: 6519 real time: 6519 gc time: 3032
In addition, cleaned up the documentation a little, and mention the fact
that it is not thread safe.
2010-06-23 16:13:54 -04:00
Eli Barzilay
d986fed725
Uses a simpler single-linked list, about half of the meat code, and much
...
faster due to the removed overhead of dealing with the redundant
pointers.
2010-06-23 16:13:53 -04:00
Eli Barzilay
8a5bceece1
Various comments on problematic aspects of the code.
2010-06-23 16:13:53 -04:00
Vincent St-Amour
ef1da61fd0
Added S-Expression diff to unstable.
2010-06-22 18:42:28 -04:00
Sam Tobin-Hochstadt
2285e1a340
Make `debug' catch *all* exceptions
2010-06-21 18:30:27 -04:00
Sam Tobin-Hochstadt
0379e534e3
New interface for unstable/mutated-vars
...
- functional hash tables
- fix clients
2010-06-10 13:28:29 -04:00
Sam Tobin-Hochstadt
679967b491
PLT Scheme -> Racket
2010-06-08 13:08:13 -04:00
Carl Eastlund
5d212ce1bd
Completed the adaptation of (planet cce/scheme:7) to collects/unstable.
...
Removed the staging area collects/unstable/cce.
2010-06-06 20:31:37 -04:00
Carl Eastlund
e7814b63a7
Renamed call/debug from unstable/debug to debugf.
2010-06-06 20:31:37 -04:00
Carl Eastlund
a915d7c053
Changed unstable/debug to use error printing instead of logger output.
2010-06-06 20:31:36 -04:00
Carl Eastlund
ddc889532e
Replaced unstable/debug with unstable/cce/debug.
2010-06-06 20:31:36 -04:00
Carl Eastlund
5faced0c23
Moved unstable/cce/set to unstable/set.
2010-06-06 20:31:35 -04:00
Carl Eastlund
f5b58403ba
Moved unstable/cce/scribble to unstable/scribble.
2010-06-06 20:31:35 -04:00
Carl Eastlund
5877732abf
Moved unstable/cce/slideshow to unstable/gui/slideshow.
2010-06-06 20:31:34 -04:00
Carl Eastlund
c749b3ece5
Moved unstable/cce/planet to unstable/planet.
2010-06-06 20:31:34 -04:00
Carl Eastlund
f6a190d3f3
Moved unstable/cce/require-provide to unstable/require.
2010-06-06 20:31:33 -04:00
Carl Eastlund
7131198974
Moved unstable/cce/define to unstable/define.
2010-06-06 20:31:33 -04:00
Carl Eastlund
ce85a96978
Moved the contents of unstable/cce/syntax to multiple other modules:
...
unstable/syntax, unstable/contract, and unstable/planet-syntax.
2010-06-06 20:31:32 -04:00
Carl Eastlund
904f80cd44
Moved unstable/cce/drscheme to unstable/gui/language-level.
2010-06-06 20:31:32 -04:00
Carl Eastlund
fb53d5d191
Moved unstable/cce/dict to unstable/dict.
2010-06-06 20:31:31 -04:00
Carl Eastlund
86a3c3ed18
Moved unstable/cce/class to unstable/class.
2010-06-06 20:31:31 -04:00
Carl Eastlund
584fac8419
Moved unstable/cce/gui to unstable/gui/window.
2010-06-06 20:31:30 -04:00
Carl Eastlund
1360d02728
Added unstable/cce/exn to unstable/exn.
2010-06-06 20:31:30 -04:00
Carl Eastlund
402232237c
Moved unstable/cce/port to unstable/port.
2010-06-06 20:31:21 -04:00
Carl Eastlund
4166a0cfe7
Moved unstable/cce/sandbox to unstable/sandbox.
2010-06-06 20:30:49 -04:00
Carl Eastlund
2db3a9d38a
Moved unstable/cce/regexp to unstable/regexp.
2010-06-06 20:30:48 -04:00
Carl Eastlund
3a525b9a12
Replaced unstable/hash with unstable/cce/hash.
2010-06-06 20:30:48 -04:00
Carl Eastlund
286319d723
Added unstable/cce/contract contents to unstable/contract.
2010-06-06 20:30:47 -04:00
Carl Eastlund
70858e93e5
Moved unstable/cce/queue to unstable/queue.
2010-06-06 20:30:40 -04:00
Carl Eastlund
1d0c069a6c
Moved unstable/cce/web to unstable/web.
2010-06-06 20:29:59 -04:00
Carl Eastlund
14b2daab66
Moved unstable/cce/values to unstable/values.
2010-06-06 20:29:56 -04:00
Carl Eastlund
a22a1a4c15
Added unstable/cce/match macros to unstable/match.
2010-06-06 20:29:55 -04:00
Carl Eastlund
6bcf77fe65
Moved unstable/cce/text to unstable/text.
2010-06-06 20:29:54 -04:00
Carl Eastlund
8d10a6343b
Adapted unstable/cce/function to unstable/function.
2010-06-06 20:29:54 -04:00
Carl Eastlund
6f39c3fca1
Adding contents of (planet cce/scheme:7) to collects/unstable/cce.
...
This is a staging area; these modules will be adapted to collects/unstable.
2010-06-06 20:29:53 -04:00
Carl Eastlund
4b728da51c
Added unstable/pretty with pretty-format/print, /write, and /display.
2010-06-06 20:29:38 -04:00
Carl Eastlund
e52fb81aac
Renamed bindings from unstable/hash and unstable/debug that will clash
...
with subsequent adaptation of (planet cce/scheme) to collects/unstable.
These bindings are temporary, and will be replaced in the adaptation.
2010-06-06 19:57:15 -04:00
Carl Eastlund
c1906fd3d3
Un-clutter TOC for unstable docs.
2010-06-06 19:55:45 -04:00
dvanhorn
c9d0bd10a1
Added remf to unstable/list.
...
Signed-off-by: Jay McCarthy <jay@racket-lang.org>
2010-05-26 10:08:29 -06:00
Jay McCarthy
758b944996
Contract was too strict
2010-05-24 13:14:35 -06:00
Jay McCarthy
f44e3123b5
Adding byte counting ports
2010-05-24 13:14:35 -06:00
Sam Tobin-Hochstadt
5faab8b578
Add `debugm' to unstable/debug
...
- `debugm' does not parse or print the arguments to the form,
so it works for macros, not just function application
2010-05-21 10:41:24 -04:00
Sam Tobin-Hochstadt
bc7bd9245e
`debug' prints the value of the function being called
2010-05-12 17:04:18 -04:00
Jay McCarthy
e40f89fed2
Adding mark params
2010-04-30 13:06:55 -06:00
Jay McCarthy
7d1c7d874b
Changing unstable, xml, html, and web-server to be rackety
2010-04-28 13:21:30 -06:00
Matthew Flatt
28b4043077
rename all files .ss -> .rkt
2010-04-27 16:50:15 -06:00
Matthew Flatt
a6694a08b7
fix make-base-namespace in scheme/base (PR 10870)
2010-04-26 06:47:02 -06:00
Sam Tobin-Hochstadt
49a42fd089
fix to handle multiple value return
2010-04-22 10:50:29 -04:00
Matthew Flatt
c95a398754
move most of the 'scheme' collection to the 'racket' collection
2010-04-20 15:24:48 -06:00
Jay McCarthy
918f2caf34
Adding generics
2010-04-15 16:33:31 -04:00