Commit Graph

457 Commits

Author SHA1 Message Date
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
Stevie Strickland
6672638df1 Syncing up.
svn: r13154
2009-01-15 17:57:25 +00:00
Matthew Flatt
6aea96cb5c improve name of class field accessors/mutators
svn: r13150
2009-01-15 13:49:04 +00:00
Stevie Strickland
f72060a72b Yep, another sync.
svn: r13146
2009-01-15 09:15:20 +00:00
Stevie Strickland
8b5b007a51 We want to cover the marked version of the identifier (which has the proper
value), not the "regular" version that's now a transformer to a contracted
version of the marked identifier (and thus double-contracting here).

svn: r13145
2009-01-15 09:11:50 +00:00
Eli Barzilay
873fe865cd another tweak to the error message
svn: r13139
2009-01-15 03:24:04 +00:00
Stevie Strickland
ea3879fd8f Syncing again, whee.
svn: r13136
2009-01-15 02:35:34 +00:00
Eli Barzilay
3418b1404e plural
svn: r13131
2009-01-14 22:58:06 +00:00
Eli Barzilay
559363bc2b remove #:from from error message, a little clearer code
svn: r13130
2009-01-14 22:57:52 +00:00
Matthew Flatt
9e341c4e0d correct syntax-error message for 'help'
svn: r13129
2009-01-14 22:52:06 +00:00
Eli Barzilay
62ed5ba3ad make it require one or more strings, just in case
svn: r13127
2009-01-14 22:39:17 +00:00
Eli Barzilay
ac5dcae9e6 make (help "foo") run a search for "foo"
svn: r13126
2009-01-14 22:35:39 +00:00
Stevie Strickland
8ef9977f57 Change contract error reporting back to how it was (at least how it is on
unit-contracts, which avoids the spacing issue), and just change the blame
notation so that we can still report the region/definition stuff.

svn: r13122
2009-01-14 21:21:59 +00:00
Stevie Strickland
9facb3ffaf Forgot a quote-syntax here, so unprotected ids weren't being transformed
correctly.

svn: r13121
2009-01-14 20:58:38 +00:00
Stevie Strickland
5ac3135cd6 Syncing up here as well.
svn: r13118
2009-01-14 18:27:06 +00:00
Eli Barzilay
d1a0086471 newlines at EOFs
svn: r13105
2009-01-14 03:10:47 +00:00
Stevie Strickland
455999eadd Add first-order contract checking at definition time.
svn: r13095
2009-01-13 20:52:58 +00:00
Stevie Strickland
4899d91b97 Lacked unprotected ids, and c should have never been false here anyway.
svn: r13093
2009-01-13 20:40:36 +00:00
Stevie Strickland
1cede752f9 Not sure whether we want just a simple rename transformer for non-contracted
ids or whether we really want a set! transformer that still disallows set!ing.
Hmm.

svn: r13090
2009-01-13 19:41:52 +00:00
Stevie Strickland
909dd82f7c Using splicing-syntax-parameterize and a syntax-introducer instead of
what I had originally.

svn: r13089
2009-01-13 19:36:54 +00:00
Stevie Strickland
51da9beab4 This is a change I was toying with that shouldn't have gotten caught up in
the trunk sync of 13084.

svn: r13088
2009-01-13 19:01:21 +00:00
Stevie Strickland
2537508865 Syncing on up
svn: r13084
2009-01-13 01:05:50 +00:00
Matthew Flatt
2530e04720 add some-system-path<->string functions to scheme/path
svn: r13065
2009-01-11 14:47:51 +00:00
Matthew Flatt
4180d67e34 make scheme/path fuctions work on paths for any playform
svn: r13064
2009-01-11 13:52:26 +00:00
Matthew Flatt
a58010fd0d scheme/class: fix local member names to provide an better message on misuse, and to declare itself as an expression form
svn: r13050
2009-01-09 21:00:50 +00:00
Stevie Strickland
22ee00b10f Oh, no! Aliens, bio-duplication, nude conspiracies.. oh my God,
Lyndon LaRouche was right!

svn: r13037
2009-01-08 14:55:23 +00:00
Robby Findler
c9ebe9bba3 changed the way or/c works; PR 10010
svn: r13030
2009-01-07 16:48:17 +00:00
Matthew Flatt
821a82195e change 'help' to open the main doc page instead of the docs for 'help' itself
svn: r13004
2009-01-04 23:15:50 +00:00
Robby Findler
97e00eef97 fixed a bug in the ->d contract checking (wrt tail dropping)
svn: r12987
2009-01-03 16:57:46 +00:00
Robby Findler
3af2ea45d0 changed ->d so that it only checks the contract just above, not many above
svn: r12986
2009-01-03 16:40:54 +00:00
Stevie Strickland
6d966c80af Syncing
svn: r12982
2009-01-03 03:09:06 +00:00
Matthew Flatt
b2d0a37f7b add propagated arguments to 'call-with-continuation-prompt'; streamline 'with-handlers' expansion; speed up slightly some JITted cross-module function calls
svn: r12979
2009-01-02 21:57:31 +00:00
Matthew Flatt
e92b588985 macro-expansion performance tweaks
svn: r12972
2009-01-02 16:50:32 +00:00
Robby Findler
fb821d9041 added argmin and argmax to scheme/list and to the teaching languages
svn: r12960
2009-01-01 00:03:31 +00:00
Matthew Flatt
8fac3dbc89 fix gui-available? to return #f for phases other than 0
svn: r12955
2008-12-30 21:20:55 +00:00
Matthew Flatt
1642a84e69 add equal?/recur; implement equal? for image-snip% via properties
svn: r12950
2008-12-29 22:36:53 +00:00
Matthew Flatt
0cd2537a82 add equal<%> ad interface*
svn: r12946
2008-12-28 15:05:02 +00:00
Stevie Strickland
d81776083f Sync
svn: r12899
2008-12-19 05:43:50 +00:00
Eli Barzilay
13e58dc786 * Fix call-with-custodian-shutdown and call-with-killing-threads
* Organize similarities into a utility `nested' function
* Make trusted configuration disable the evaluation handlers

svn: r12891
2008-12-18 20:25:03 +00:00
Eli Barzilay
11107f4e22 (Second part of the previous commit)
svn: r12886
2008-12-18 13:43:59 +00:00
Eli Barzilay
0c85f221be Added:
sandbox-eval-handlers
  set-eval-handler
  call-with-custodian-shutdown
  call-with-killing-threads
Added optional `unrestricted?' argument to `call-in-sandbox-context'

svn: r12885
2008-12-18 13:35:49 +00:00
Stevie Strickland
0b1829e250 Sync up
svn: r12877
2008-12-17 14:28:56 +00:00
Matthew Flatt
efd7446b09 current-exit-handler => exit-handler
svn: r12874
2008-12-17 00:04:20 +00:00
Eli Barzilay
f74dc2b8c7 Added `call-with-trusted-sandbox-configuration', and used in scribble
and in tests.

svn: r12871
2008-12-16 20:29:17 +00:00
Stevie Strickland
236370fd9f Syncing up this branch to get ready to clean it up for future possible
merging.

svn: r12870
2008-12-16 20:06:24 +00:00
Eli Barzilay
0cd1b5fea9 * reorganize termination code a bit better
* use it when the sandbox is being setup, so we catch an out of memory
  error at that time

svn: r12854
2008-12-15 17:13:44 +00:00
Matthew Flatt
45e4684e4f memory accounting: blame the parent instead of the child
svn: r12853
2008-12-15 17:09:33 +00:00
Eli Barzilay
ab115fb6e4 default global limit is 30mb
svn: r12852
2008-12-15 16:26:25 +00:00
Eli Barzilay
b882de2409 allow any number for memory limits
svn: r12851
2008-12-15 16:22:41 +00:00
Eli Barzilay
a2ef8a5aae allow 'exists access to addon directory
svn: r12847
2008-12-15 02:24:32 +00:00
Eli Barzilay
c62595772f Finally enabled using a sub code-inspector properly, with a new
'read-bytecode permission mode.  Added tests and (crappily)
documented.

svn: r12846
2008-12-15 01:07:00 +00:00
Eli Barzilay
340b193571 minor improvements
svn: r12842
2008-12-14 05:17:32 +00:00
Eli Barzilay
9295a1dc27 * Fix memory test
* Better organization of `user-eval'
* Deal with cases when the evaluator dies outside of our control

svn: r12841
2008-12-13 23:26:44 +00:00
Eli Barzilay
5ab0de415d formatting
svn: r12840
2008-12-13 22:45:35 +00:00
Eli Barzilay
39a69b30fd Don't set memory limits or test for them when there is no memory
accounting.

svn: r12839
2008-12-13 22:44:02 +00:00
Eli Barzilay
813eb20e35 termination message now indicates suicides too (both killing the
thread or shutting the custodian)

svn: r12838
2008-12-13 22:39:49 +00:00
Eli Barzilay
188489b34f * Added `exn:fail:sandbox-terminated' for all sandbox termination
kinds.
* The default exit handler kills the sandbox, with an appropriate
  termination message.
* Also, sending an eof to the sandbox shows 'eof as the reason
* Added some tests for these.
* Still need to deal with termination messages for evaluator suicide.

svn: r12837
2008-12-13 22:12:16 +00:00
Eli Barzilay
bd01cda595 typo in the last commit
svn: r12832
2008-12-13 17:18:40 +00:00
Eli Barzilay
46e16fc206 * The sandbox now uses a new code-inspector to avoid using protected
bindings
* Added `sandbox-make-code-inspector' to control this
* Changed the function form of `sandbox-security-guard' to be a thunk,
  to make it uniform with other sandbox settings.

svn: r12831
2008-12-13 17:17:12 +00:00
Eli Barzilay
55f1df58e1 Make sure that the module is also instantiated under the evaluation
limits too (the instantiation was happening outside of the limited
thunk)

svn: r12830
2008-12-13 16:41:07 +00:00
Eli Barzilay
e2221c800b * sandbox-security-guard can now be a function that translates a given
security guard to a new one
* this is now used for the default to avoid grabbing the global
  security guard

svn: r12828
2008-12-13 14:11:28 +00:00
Eli Barzilay
ac5d6d66c1 make call-in-nested-thread avoid potential break problem
svn: r12792
2008-12-12 17:25:03 +00:00
Eli Barzilay
90492a0606 avoid timer-killing problem; cust-box might not be set
svn: r12791
2008-12-12 17:22:24 +00:00
Eli Barzilay
3fcc58c05e minor improvements
svn: r12789
2008-12-12 13:43:05 +00:00
Eli Barzilay
c76a23ed29 termination message indicates whether the sandbox died because of memory limit
svn: r12788
2008-12-12 13:32:20 +00:00
Eli Barzilay
a1222d66ca * Implementer global sandbox memory limit and added
`sandbox-memory-limit' to set it
* Added `evaluator-alive?'
* Undo accidental commenting of most tests

svn: r12786
2008-12-12 12:45:08 +00:00
Eli Barzilay
a0d1baea00 When an expression evaluation dies out of memory, the sandbox stays alive
svn: r12785
2008-12-12 11:22:08 +00:00
Eli Barzilay
c979ffa85a small fix, other minor things
svn: r12784
2008-12-12 10:29:28 +00:00
Eli Barzilay
f7c16fc8bb * fix last commit
* when make-module-evaluator gets a path, allow reading that path
  automatically (since that's where the source is)

svn: r12778
2008-12-11 18:34:58 +00:00
Eli Barzilay
baffbeeeb2 close the input after reading
svn: r12775
2008-12-11 18:00:43 +00:00
Stevie Strickland
dd5afccd82 Catch up to now.
svn: r12742
2008-12-08 17:02:26 +00:00
Matthew Flatt
89d0801d7a change quote-syntax to include a certificate for the enclosing module, enable certificate checking of phase-1 bindings, and fix some other problems with certificates
svn: r12714
2008-12-05 22:45:04 +00:00
Matthew Flatt
66a0c27703 avoid shared mutation of break state across with-handlers procs
svn: r12706
2008-12-04 23:04:33 +00:00
Stevie Strickland
5eab2260cc S-S-S-S-S-S-Syncing
svn: r12695
2008-12-04 16:15:18 +00:00
Eli Barzilay
10c9b39bfe removed unused variable
svn: r12675
2008-12-02 14:39:36 +00:00
Eli Barzilay
eb54b1a5b2 * Added `call-in-nested-thread*', and used it to improve
`call-with-limits'; specifically, it can now distinguish killing the
  main thread or shutting down the custodian from an out-of-memory
  error.
* This also makes it possible to have threads created and stay alive
  between evaluations.
* Added tests for this.

svn: r12673
2008-12-02 12:23:35 +00:00
Eli Barzilay
e0917e1a5e * Added `call-in-sandbox-context'.
* Removed `get-namespace' since it's generalized in the above.
* Deal with killing the current thread (or the current custodian) in
  the sandbox code.  (Works only without per-expression limits --
  still need to find a solution for `call-with-limits'.)
* Added tests for this.

svn: r12670
2008-12-02 05:26:45 +00:00
Eli Barzilay
fc920b18bb set-eval-limits requires two arguments
svn: r12669
2008-12-02 00:15:58 +00:00
Eli Barzilay
ab817097b4 * Create string/bytes output port in the user's custodian (at least
try to do so...).
* Add tests for output collection under resources -- some are
  commented since they're not working right, either a bug in this code
  that I don't see, or some problem with memory accounting.
* Clarify in the docs that output collection is still under resource
  limits.

svn: r12667
2008-12-01 22:19:58 +00:00
Eli Barzilay
12467b4ecd better organization for running resource limited code
svn: r12666
2008-12-01 21:28:28 +00:00
Eli Barzilay
0c2410739a cust -> user-cust
svn: r12665
2008-12-01 21:22:53 +00:00
Stevie Strickland
e94cadd86d Syncing -- nothing to see here.
svn: r12660
2008-12-01 15:11:00 +00:00
Matthew Flatt
6e9ccd3f43 better checking of case where a local name is used before it is defined (in an int-def context)
svn: r12659
2008-12-01 12:54:16 +00:00
Eli Barzilay
8905cc86e5 Added `sandbox-exit-handler' to control the exit handler
svn: r12654
2008-11-30 21:44:47 +00:00
Stevie Strickland
581800ad8c Splicing syntax parameterize, here I come!
svn: r12601
2008-11-26 22:42:32 +00:00
Matthew Flatt
2c48c2c817 splicing-syntax-parameterize and docs for scheme/splicing
svn: r12600
2008-11-26 21:31:58 +00:00
Stevie Strickland
6f83ed1a80 Sync that beautiful trunk footage
svn: r12593
2008-11-25 21:18:04 +00:00
Matthew Flatt
7a66101d30 remove broken define*-struct
svn: r12590
2008-11-25 18:14:57 +00:00
Matthew Flatt
ed536c002e scheme/package (and more int-def repairs)
svn: r12589
2008-11-25 17:58:21 +00:00
Matthew Flatt
b7addbab82 provide open*-package
svn: r12586
2008-11-25 03:13:06 +00:00
Matthew Flatt
5f3b7e5c6f another int-def binding simplification repair
svn: r12585
2008-11-25 03:08:08 +00:00
Matthew Flatt
a0f91d905e revised internal-definitions context and a basic 'define-package' form
svn: r12579
2008-11-24 19:52:41 +00:00
Stevie Strickland
702c1b7af2 Syncerating the countryside
Syncerating the peasants
Syncerating all the peoples
in the thatched-roof COTTAGES!
THATCHED-ROOF COTTAGES!

svn: r12578
2008-11-24 17:52:56 +00:00
Eli Barzilay
5b9f0aa322 Implemented a `no-empty-edge-matches' function using the new
`make-regexp-tweaker', which produces a regexp that cannot match an
empty string at the beginning or the end of the input.  This:
* simplies a whole bunch of messy and fragile code
* makes `regexp-split' and friends usable with a pattern like #px"\\b"
  (which previously would match in every position, making it explode
  the string to 1-character strings)
* makes it even closer to what perl does, the only way that we produce
  a different result from perl now is that we don't blindly drop empty
  matches at the end like perl (it *does* keep empty matches in the
  beginning though)
The two tests that demonstrated the difference are now changed, and a
bunch of other tests added.

svn: r12575
2008-11-23 05:40:54 +00:00
Eli Barzilay
ecb39eedee added make-regexp-tweaker (not used yet), and some code reorganization
svn: r12573
2008-11-23 00:17:39 +00:00
Stevie Strickland
537d98ac20 Mergerating.
svn: r12510
2008-11-19 20:34:37 +00:00
Sam Tobin-Hochstadt
4c0c3c0ff8 Fix dynamic context of use of match failure continuations.
svn: r12497
2008-11-18 21:17:36 +00:00
Sam Tobin-Hochstadt
d1fca9c04a Fix PR 9918.
svn: r12480
2008-11-17 23:58:05 +00:00
Stevie Strickland
3212d11712 Add all changes from branches/with-contract (which this branch will replace
eventually), plus a couple of fixes in contract-test.ss.

svn: r12451
2008-11-14 16:48:17 +00:00