问题标签 [ironscheme]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
2 回答
665 浏览

.net - 发现 lisp 系列语言 .NET 实现

所以基本上我不是在这里比较 Scheme 和 Clojure,我想比较实现。有:

Clojure-clr 甚至可以使用 Visual Studio 扩展来安装,但是以这种方式使用它对我来说仍然有点麻烦。创建并保存此类项目后,您将无法再次打开它...

还有 IronScheme,据我所知,还没有 IronScheme 的 VS 插件,但也许它得到了更好的 .NET 支持,我从未使用过它,也不知道它。

那么这两个(或者甚至还有其他类似 lisp 语法的东西)中的哪一个获得了更好的 CLR 支持?

0 投票
2 回答
482 浏览

scheme - Scheme中的部分评估

我正在尝试在分布式系统中使用 Scheme。这个想法是一个进程将评估一些表达式并将其传递给另一个进程以完成。

例子:

将评估为

在第一个过程中。该进程将表达式作为字符串传递给另一个进程(在另一个节点上),该进程会将其计算为

想法是做一个 map reduce 风格的工作分布,但是通过传递方案表达式。这可能吗?任何指针都会有所帮助。(顺便说一句,我正在使用 IronScheme)。

0 投票
1 回答
250 浏览

c# - Resetting IronScheme Engine in C#

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.

0 投票
1 回答
290 浏览

model-view-controller - 在 C# 或 web 中使用 lisp 或 Ironscheme?

嗨,我知道可以在 c#(visual studio) 中使用 Ironscheme,并且我在我的 Visual Studio 2012 上从http://ironscheme.codeplex.com/下载了 Ironscheme,但我不知道如何在 Visual Studio 中使用 Ironscheme。例如我从http://einarwh.wordpress.com/tag/asp-net-mvc/获取此示例,该示例 在 Visual Studio 中使用 lisp 编写,但我无法从此代码中使用。我应该如何在 Visual Studio 中为 lisp 和 c# 一起新建一个项目?我知道所有的功能和.... lisp & Ironscheme 但我不能在 Visual Studio 中使用 c# !

0 投票
1 回答
80 浏览

scheme - 为什么重复的“(加载”不更新定义?

我在编辑器中打开了一个文件,并在旁边的控制台窗口中运行了一个方案。这是文件中的内容:

我在文件中编辑定义,保存它,然后切换到方案窗口并执行

我在输出中看到“Hello”,但是当我尝试访问 THIS 时 - THIS 未定义。

我正在使用 IronScheme(如果它是相关的)并且我一般是方案新手,那么如何通过修改和重新读取文件来更改会话中的定义?

0 投票
1 回答
96 浏览

c# - Calling closure using ironscheme

We would like to call a scheme closure from C# using IronScheme, but we keep getting an exception, saying "not a pair".

We would like to call the following Scheme code:

Using the following code in C#:

We get the following exception:

What is causing the problem? How can we solve it?

0 投票
2 回答
219 浏览

file - 将字符串附加到 IronScheme 中的现有文本文件

我们正在尝试使用 IronScheme 构建一个日志文件,并且我们已经使用球拍为其编写了代码。它在球拍中运行良好,但 IronScheme 会引发错误。这是我们目前所拥有的:

看看我们在使用 with-output-to-file 时如何使用“exists”可选参数。我们不确定如何使此可选参数与 IronScheme 一起使用。有什么方法可以让这个工作,或替代方法?

请注意,我们希望将字符串附加到现有的 .txt 文件中。如果我们不使用可选参数,则会抛出一个错误,说明文件已经存在。

0 投票
1 回答
200 浏览

c# - 如何在 C# (Visual Studio) 中获取 IronScheme 函数返回

我正在使用 IronScheme 用 C#(使用 Visual Studio)制作一个程序,这是我拥有的一段代码。

基本上,我想获取该列表的第一个元素,即另一个列表(1 2 3)。我的问题是我不知道如何获取实际的号码列表。在这个例子中,我打印 的结果Eval(),它打印:

如果我将它转换为字符串,我会得到相同的结果。任何其他类型的转换/转换都会打印相同的内容

如何获取该列表的值,如 C# list List<>

0 投票
1 回答
80 浏览

ironscheme - IronScheme:你如何“或”枚举条目

您如何在 IronScheme 中“或”枚举条目,例如:

这会导致错误,我在文档中没有找到替代方法。

0 投票
1 回答
66 浏览

c# - 从 IronScheme 返回 c# 上的列表列表

IronScheme.Runtime.Cons我想在 Visual Studio 中返回一个列表,但只在 Visual Studio控制台上打印。

我有这个代码

上面的代码显示System.InvalidCastException,我想将列表作为字符串返回,例如 a:
"(1 (8 7 2) 3)"或 a List<string>,但这不起作用:(