diff options
author | bnewbold <bnewbold@eta.mit.edu> | 2009-01-22 02:17:29 -0500 |
---|---|---|
committer | bnewbold <bnewbold@eta.mit.edu> | 2009-01-22 02:17:29 -0500 |
commit | 1d18259d031a2bbbb6e99f883f26de1919bda511 (patch) | |
tree | 67ec4f83b0071415e00468835164358b0f46a627 /journal | |
parent | 694370db05356b12c931a9bb4baa65a1dc0cfa16 (diff) | |
download | 8thesis-1d18259d031a2bbbb6e99f883f26de1919bda511.tar.gz 8thesis-1d18259d031a2bbbb6e99f883f26de1919bda511.zip |
journal entry, scm interface for sage math
Diffstat (limited to 'journal')
-rw-r--r-- | journal/19jan2009.html | 2 | ||||
-rw-r--r-- | journal/21jan2009.html | 56 |
2 files changed, 57 insertions, 1 deletions
diff --git a/journal/19jan2009.html b/journal/19jan2009.html index 270f527..01d6b98 100644 --- a/journal/19jan2009.html +++ b/journal/19jan2009.html @@ -42,7 +42,7 @@ For now, i'm actually going to switch over to the "scm" scheme distribution which is much simpler and get that going well with sage, then try MIT/GNU scheme again. <br /><br /> -<a href="16jan2009.html"><i>(previous entry</i></a> +<a href="16jan2009.html"><i>(previous entry)</i></a> <!-- ================================================================ --> <!-- ================================================================ --> diff --git a/journal/21jan2009.html b/journal/21jan2009.html new file mode 100644 index 0000000..d451c90 --- /dev/null +++ b/journal/21jan2009.html @@ -0,0 +1,56 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" +"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head><title>bnewbold thesis</title></head> +<body style="margin: 25px; font-family: helvetica;"> +<h1 style="border-bottom: 2px solid;"> +Journal: Jan 21, 2009</h1> +<i>Bryan Newbold, <a href="mailto:bnewbold@mit.edu">bnewbold@mit.edu</a></i><br /> +<i><a href="http://web.mit.edu/bnewbold/thesis/"> +http://web.mit.edu/bnewbold/thesis/</a></i> +<br /><p /> +<!-- ================================================================ --> +<!-- ================================================================ --> +Aha! Found the hook needed to disable error interrupt REPLs in mit-scheme: +<pre style="margin:20px; border-left: solid grey 3px; background-color:lightgrey;padding:5px;width:750px;"> +(set! standard-error-hook (lambda (x) (begin (warn x) (cmdl-interrupt/abort-top-level)))) +</pre> +For example: +<pre style="margin:20px; border-left: solid grey 3px; background-color:lightgrey;padding:5px;width:750px;"> +1 ]=> (set! standard-error-hook (lambda (x) (begin (warn x) (cmdl-interrupt/abort-top-level)))) + +;Value: #f + +1 ]=> (car 3) + +;Warning: The object 3, passed as the first argument to car, is not the correct type. +;Quit! + +1 ]=> +</pre> +This makes it much easier for sage to do subprocess interactions. I have a +half-working scm scheme interface and now a half-working mit-scheme interface; +files for both are in the <a href="../other/">other</a> folder. I should have +a demo server running on <a href="http://xvm.mit.edu">SIPB's XVM service</a> +tomorrow, maybe if I polish these interfaces I can package them up as optional +sage .spkgs. Most importantly, for now only put one S-expression in a scheme +notebook cell at a time. +<p /> + +Of course removing the error REPL loop of course takes away excellent +functionality from the interactive session... to me a vertically split edwin +session with a file *scheme* buffer on the top and REPL output on the bottom is +the best way to "do" scheme. +<p /> + +In other news I just learned the vim command I was missing: <code>gq}</code> +will rewrap the current paragraph to ~70 columns width; <code>gq</code> will do +the same to the current selection in visual mode. FINALLY. + +<br /><br /> +<a href="19jan2009.html"><i>(previous entry)</i></a> + +<!-- ================================================================ --> +<!-- ================================================================ --> +</body> +</html> |