ironscheme

start a new project in xacc.ide?

牧云@^-^@ 提交于 2020-01-06 02:59:10
问题 I'm trying out xacc.ide because I'm interested in dabbling with IronScheme. I just can figure out how to start a new project. There's a whole menu for projects and dealing with them but there are only options to create "Blank File" and "File..." How to I start a new project? Thanks 回答1: I gave up on project creation in xacc.ide. Note that xacc.ide development stopped before I started working on IronScheme. Also there is no project support for IronScheme in either xacc.ide and Visual Studio,

Resetting IronScheme Engine in C#

天涯浪子 提交于 2020-01-02 07:29:18
问题 Is there a way to "reset" the IronScheme engine? I'm essentially aiming to ensure that successive calls to string.Eval() are executed independently. For example, I want to be execute "(define x 1.0) (+ x 5.0)".Eval() then reset, and have the call "(+ x 3.0)".Eval() fail as it would if it were executed by itself. Even better would be a way to give each of n concurrent threads its own independent space in which to execute. 回答1: You have 2 options for the REPL (with libraries it will not even

Resetting IronScheme Engine in C#

丶灬走出姿态 提交于 2020-01-02 07:29:07
问题 Is there a way to "reset" the IronScheme engine? I'm essentially aiming to ensure that successive calls to string.Eval() are executed independently. For example, I want to be execute "(define x 1.0) (+ x 5.0)".Eval() then reset, and have the call "(+ x 3.0)".Eval() fail as it would if it were executed by itself. Even better would be a way to give each of n concurrent threads its own independent space in which to execute. 回答1: You have 2 options for the REPL (with libraries it will not even

Is IronScheme interpreted or compiled? Does it benefit from .NET Framework optimizations?

核能气质少年 提交于 2019-12-21 16:53:47
问题 In the book "IronPython in Action," the author states that IronPython, unlike CPython, benefits from certain optimizations, both in the JIT and in the framework itself, that CPython cannot take advantage of. Consequently, IronPython is potentially faster than CPython is, especially for multithreading scenarios. Does IronScheme benefit from such optimizations? Is it an interpreter (not a compiler), and is it an interpreter because that's the nature of Lisp, that it must be interpreted to

Append string to existing textfile in IronScheme

一笑奈何 提交于 2019-12-10 18:19:14
问题 We are trying to construct a log file using IronScheme, and we have written a code for it using racket. It works fine in racket, but IronScheme throws an error. This is what we have so far: (define write-to-log (lambda(whatToWrite) (with-output-to-file "robot-log.txt" (lambda () (printf (string-append whatToWrite "\r\n" ))) #:exists 'append))) See how we use the "exists" optional parameter when using with-output-to-file. We are not sure how to make this optional parameter work with IronScheme

Resetting IronScheme Engine in C#

空扰寡人 提交于 2019-12-06 01:34:55
Is there a way to "reset" the IronScheme engine? I'm essentially aiming to ensure that successive calls to string.Eval() are executed independently. For example, I want to be execute "(define x 1.0) (+ x 5.0)".Eval() then reset, and have the call "(+ x 3.0)".Eval() fail as it would if it were executed by itself. Even better would be a way to give each of n concurrent threads its own independent space in which to execute. You have 2 options for the REPL (with libraries it will not even allow you to write such code ;p). 1: Reset the interaction environment. This can be done with (interaction

Is IronScheme interpreted or compiled? Does it benefit from .NET Framework optimizations?

此生再无相见时 提交于 2019-12-04 07:22:43
In the book "IronPython in Action," the author states that IronPython, unlike CPython, benefits from certain optimizations, both in the JIT and in the framework itself, that CPython cannot take advantage of. Consequently, IronPython is potentially faster than CPython is, especially for multithreading scenarios. Does IronScheme benefit from such optimizations? Is it an interpreter (not a compiler), and is it an interpreter because that's the nature of Lisp, that it must be interpreted to provide the Lisp-like flexibility? If it is an interpreter, can it still benefit from optimizations in the