Eli Barzilay
9cc6cd0db4
moved extra promise types back to scheme/promise
...
svn: r17207
2009-12-05 09:28:41 +00:00
Eli Barzilay
4df0d11db5
promise code moved to scheme/private
...
svn: r17205
2009-12-05 09:07:17 +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
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
c0bdc22085
bleh
...
svn: r13169
2009-01-16 16:36:51 +00:00
Eli Barzilay
c5f8c43dbf
better code order
...
svn: r13168
2009-01-16 16:29:53 +00:00
Eli Barzilay
99592959b8
fix display/write swap, use ~s for exn-messages
...
svn: r13161
2009-01-16 05:49:16 +00:00
Eli Barzilay
a76cdc248f
added promise-forced? and promise-running?
...
svn: r13160
2009-01-16 05:46:07 +00:00
Eli Barzilay
6307b4bdc1
comment typo
...
svn: r11157
2008-08-08 22:35:36 +00:00
Eli Barzilay
ce7dc400f3
svn: r11129
2008-08-07 19:32:26 +00:00
Eli Barzilay
f781bc04a1
svn: r11128
2008-08-07 19:32:13 +00:00
Eli Barzilay
b93cdc5803
minor
...
svn: r11001
2008-07-31 04:03:28 +00:00
Eli Barzilay
04b97ff977
Make promise.ss use #%kernel directly -- this way mzscheme does not
...
depend on scheme/base.
svn: r10424
2008-06-23 14:32:27 +00:00
Eli Barzilay
3619ab2062
* USe a thunk for caught values, not just the exception value, since
...
(as Mathew notes as a bug) any value can be raised
* Actually use an applicable struct, so we can printout something
sensible. The current printout is:
#<promise!exn!...exn-message...> for exceptions
#<promise!(raise val)> for other values
svn: r10423
2008-06-23 13:57:18 +00:00
Eli Barzilay
b7839a4ec3
removed redundant syntax hack
...
svn: r10417
2008-06-23 04:33:25 +00:00
Eli Barzilay
945dc376d2
* Removed `with-handlers*' that was causing a problem in some long
...
nested streams example (from Jos Koot).
* Replaced with `call-with-exception-handler' which is (intentionally)
not tail-recursive, but it seems to work fine now.
* The `lazy' form is restricted to single-valued expressions only.
svn: r10416
2008-06-23 04:07:12 +00:00
Eli Barzilay
7a29625659
lift handle-results, since matthew said that the compiler might not do so
...
svn: r9181
2008-04-07 19:55:54 +00:00
Eli Barzilay
f0547adffc
fix force for dealing with (lazy 0), add a test suite (simple one for now)
...
svn: r9180
2008-04-07 19:33:48 +00:00
Matthew Flatt
8311c8f9e4
Eli's repaired and specialized sort, fix in 'for/fold' binding, generalized integers-bytes functions, and some r6rs work
...
svn: r8798
2008-02-25 14:42:32 +00:00
Eli Barzilay
e3f8d7e74b
better code organization
...
svn: r8116
2007-12-24 12:24:46 +00:00
Eli Barzilay
9ba922ff1c
reformatting
...
svn: r8114
2007-12-24 11:29:33 +00:00
Matthew Flatt
415cd0bf15
lazy, force, delay in scheme/promise and scheme; clean up mzscheme some, and clean up the docs some
...
svn: r8053
2007-12-18 21:37:23 +00:00