John Clements
424ec50bfb
...
...
svn: r12919
2008-12-21 10:00:47 +00:00
Eli Barzilay
72768ef333
Welcome to a new PLT day.
...
svn: r12918
2008-12-21 08:50:22 +00:00
Robby Findler
c2685be3a9
added preference that disables overwrite mode
...
svn: r12917
2008-12-21 07:21:28 +00:00
Robby Findler
76fc27813a
added overwrite mode menu item
...
svn: r12916
2008-12-20 22:56:29 +00:00
Jay McCarthy
5cc3b529a0
Re: Robby
...
svn: r12915
2008-12-20 17:42:38 +00:00
Eli Barzilay
ab84e51c0f
Welcome to a new PLT day.
...
svn: r12914
2008-12-20 08:50:19 +00:00
Matthew Flatt
82ead03b92
change _fpointer handling to work with function pointers in structs and other such uses; add 'function-ptr' casting operation
...
svn: r12913
2008-12-20 05:09:35 +00:00
Eli Barzilay
a62b6a3128
fix _-identifier? typo
...
svn: r12912
2008-12-20 03:06:59 +00:00
Matthew Flatt
7dc56df949
add FFI types _string/utf-16/null and _string/ucs-4/null
...
svn: r12911
2008-12-19 23:59:33 +00:00
Carl Eastlund
69556b1881
Updated planet utility to accept full grammar for scribblings field in info.ss
...
svn: r12909
2008-12-19 21:14:36 +00:00
Matthew Flatt
23e8624e41
fix the test-suite sandbox
...
svn: r12907
2008-12-19 20:58:56 +00:00
Matthew Flatt
064776348a
fix ready-toplevel optimization
...
svn: r12905
2008-12-19 17:16:39 +00:00
Eli Barzilay
4412652784
Welcome to a new PLT day.
...
svn: r12903
2008-12-19 08:50:17 +00:00
Robby Findler
6b4b9fa1a1
improved the cat algorithm (fixed it really) and prepared things for more feedback about where the cat would like to go
...
svn: r12902
2008-12-19 06:29:26 +00:00
Robby Findler
15240d45ba
removed the code, since it is no longer truly code that students in HtDP would likely produce, also waiting for the literate programming support to do a better job here
...
svn: r12900
2008-12-19 06:22:21 +00:00
Eli Barzilay
5cb1e91764
typo
...
svn: r12897
2008-12-19 04:26:19 +00:00
Eli Barzilay
7d48a62155
documented recent changes
...
svn: r12896
2008-12-19 02:38:55 +00:00
Matthew Flatt
e3f008c691
doc ffi/objc
...
svn: r12895
2008-12-19 02:06:50 +00:00
Matthew Flatt
7532556b31
objc bug fix
...
svn: r12893
2008-12-19 00:24:12 +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
Matthew Flatt
2c95f77c31
ctype->layout in scheme/foreign; prototype Objective-C binding in ffi collection
...
svn: r12890
2008-12-18 20:05:21 +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
Eli Barzilay
7dc5bd7a74
Welcome to a new PLT day.
...
svn: r12884
2008-12-18 08:50:12 +00:00
Eli Barzilay
c1123547e4
document basetype change
...
svn: r12883
2008-12-18 06:49:51 +00:00
Eli Barzilay
6283205982
ctype-basetype now holds:
...
* a symbol naming the type for primitive types
* a list of ctypes for cstruct types
* another ctype for user-defined ctypes
svn: r12882
2008-12-18 06:48:10 +00:00
Matthew Flatt
f830ee6184
reference and ffi corrections and clarifications
...
svn: r12880
2008-12-18 02:52:45 +00:00
Robby Findler
3eb2359498
change memory limit defaults
...
svn: r12878
2008-12-17 15:42:33 +00:00
Eli Barzilay
ed7713751a
Welcome to a new PLT day.
...
svn: r12875
2008-12-17 08:50:11 +00:00
Matthew Flatt
efd7446b09
current-exit-handler => exit-handler
...
svn: r12874
2008-12-17 00:04:20 +00:00
Robby Findler
aa749bfe1f
changed the memory limits in drscheme to match the new way they work
...
svn: r12873
2008-12-16 20:57:52 +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
Eli Barzilay
bc81ac95f2
Welcome to a new PLT day.
...
svn: r12866
2008-12-16 08:50:15 +00:00
Eli Barzilay
e5027cb7b0
added a clarifying example for how limits interact
...
svn: r12864
2008-12-15 22:15:52 +00:00
Eli Barzilay
43124c2ec5
more adjustments
...
svn: r12863
2008-12-15 21:37:55 +00:00
Eli Barzilay
f8dff60a01
adjust limits on tight test, others two, clarified comments
...
svn: r12862
2008-12-15 21:32:50 +00:00
Matthew Flatt
25b27a8b08
more memory-accounting repairs, so that sandbox tests now pass
...
svn: r12861
2008-12-15 21:15:24 +00:00
Eli Barzilay
0786da10cb
svn: r12860
2008-12-15 20:43:28 +00:00
Jay McCarthy
dcd1efe385
Updating docs
...
svn: r12859
2008-12-15 20:32:06 +00:00
Eli Barzilay
5141289bd7
* No nested code inspector for scribble sandboxes
...
* No nested inspectors or memory limit for testing sandboxes
svn: r12857
2008-12-15 18:29:59 +00:00
Eli Barzilay
b0758de6f1
clarification on the (new) way memory is charged
...
svn: r12856
2008-12-15 18:22:58 +00:00
Eli Barzilay
04d0b55134
raise the limit for the problematic test, and compensate by doing more iterations
...
svn: r12855
2008-12-15 18:18:06 +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
7107be309c
Welcome to a new PLT day.
...
svn: r12849
2008-12-15 08:50:17 +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
acf3324659
Welcome to a new PLT day.
...
svn: r12844
2008-12-14 08:50:19 +00:00
Ryan Culpepper
6fdba44edc
macro debugger:
...
underline definite binders
add rename/shift mapping so module final term retains binding info
svn: r12843
2008-12-14 07:56:37 +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
bdf71f1b46
typo
...
svn: r12836
2008-12-13 21:13:03 +00:00
Eli Barzilay
510d9f081f
some clarifications
...
svn: r12835
2008-12-13 19:09:54 +00:00
Eli Barzilay
607567d301
simplification
...
svn: r12834
2008-12-13 18:01:12 +00:00
Matthew Flatt
cf8b75939b
trim some fat from module-variable references
...
svn: r12833
2008-12-13 17:38:14 +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
f878d96630
no memory-limit either
...
svn: r12829
2008-12-13 14:13:30 +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
f1dc6c831c
Welcome to a new PLT day.
...
svn: r12826
2008-12-13 08:50:31 +00:00
Ryan Culpepper
12216b15aa
macro debugger: reorg, minor bug fixes
...
svn: r12825
2008-12-13 07:49:52 +00:00
Robby Findler
fca3c228a7
reader didnt get set up properly for the teaching languages
...
svn: r12823
2008-12-12 21:25:04 +00:00
Matthew Flatt
6b4270721c
disable sandbox memory limit for docs
...
svn: r12822
2008-12-12 20:45:02 +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
Jay McCarthy
0c093b73f1
Contract
...
svn: r12790
2008-12-12 16:59:28 +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
83f4d6687d
regexp-match/fail-without-reading -> regexp-try-match
...
svn: r12787
2008-12-12 13:08:22 +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
6af93d9775
Welcome to a new PLT day.
...
svn: r12783
2008-12-12 08:50:20 +00:00
Eli Barzilay
87e5c34935
use !defined for either syntax or simple binding, add !bound for a binding that cannot be a syntax
...
svn: r12781
2008-12-11 21:05:03 +00:00
Matthew Flatt
3e7e63aecf
write embedding sexecutables without setting current output port
...
svn: r12780
2008-12-11 20:14:53 +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
Eli Barzilay
caf6a8be8c
Welcome to a new PLT day.
...
svn: r12773
2008-12-11 08:50:14 +00:00
Eli Barzilay
a2c818d8b1
minor
...
svn: r12772
2008-12-11 00:59:26 +00:00
John Clements
6ab90bed80
fix for intermediate lang, added test/exn docs
...
svn: r12770
2008-12-10 19:41:03 +00:00
John Clements
965cbb00e2
fixed test/exn
...
svn: r12767
2008-12-10 19:00:29 +00:00
Jay McCarthy
02147ef4f3
Fixing regression
...
svn: r12764
2008-12-10 17:22:43 +00:00
Jay McCarthy
247d9fb5fe
Doc request
...
svn: r12762
2008-12-10 16:37:18 +00:00
Eli Barzilay
004759505b
Welcome to a new PLT day.
...
svn: r12761
2008-12-10 08:50:11 +00:00
Matthew Flatt
56ffc62ee2
when embedding source modules for an executable, includes any needed reader modules
...
svn: r12758
2008-12-09 22:07:28 +00:00
Matthew Flatt
149d3a24cb
handle symbol module path as extra path
...
svn: r12757
2008-12-09 21:57:50 +00:00
Robby Findler
41d0609ad2
uses system-position-ok-before-cancel? now
...
svn: r12754
2008-12-09 18:06:03 +00:00
Matthew Flatt
e004ae390b
record modules loaded by the planet reader via current-reader-guard
...
svn: r12752
2008-12-09 11:37:57 +00:00
Eli Barzilay
8b3f58c371
Welcome to a new PLT day.
...
svn: r12751
2008-12-09 08:50:10 +00:00
Eli Barzilay
169c69a0bc
if the path is empty, use /
...
svn: r12750
2008-12-09 02:39:45 +00:00
Sam Tobin-Hochstadt
da7b6978ee
Update typed collection to use struct inheritance.
...
svn: r12747
2008-12-08 20:48:25 +00:00
Sam Tobin-Hochstadt
08fa300d14
Make inference work in subtype tests.
...
Add test for top-arr.
svn: r12746
2008-12-08 18:26:58 +00:00
Sam Tobin-Hochstadt
ea0873adb2
Handle top-arr in infer. Add convenience binding for function top.
...
svn: r12745
2008-12-08 18:24:33 +00:00