ChinaUnix.net
相关文章推荐:

scheme嵌套

本页收录 scheme 语言的相关资源。大家有好的资料请在论坛发布,我们会挑选一些并收录在这里。 [ 本帖最后由 win_hate 于 2008-9-8 19:06 编辑 ]

by win_hate - Functional编程 - 2008-09-05 12:18:17 阅读(15461) 回复(4)

相关讨论

最近,翻了几页《计算机程序的构造的解释》(英文名为《Structure and Interpretation of Computer Programs》),学了一点皮毛,现把所学记录下来,为了以后方便查阅。幸运的是,你可以下载视频观看,非常方便,其中授课的两名(Hal Abelson、Gerald Jay Sussman)都是MIT顶级教授,而且还是这本书的其中两位作者。下载地址: 点这里。 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/2302...

by lkcgood - Linux文档专区 - 2008-05-02 11:40:29 阅读(747) 回复(0)

FP版比较冷清去, 想学FP, 打算从scheme开始, (别人推荐我学cl,但我感觉scheme比它简单) 现在谁能推荐一个解释器, 还有一些学习教程、路线什么的, 我现在用的是guile, 看的是t-y-scheme, 但是上面的结构定义在guile里我试了好几次都不行, 请指教

by slucx - Functional编程 - 2013-01-11 11:17:45 阅读(3112) 回复(10)

scheme语法本身简单,但是R5RS里的宏很别扭啊,尤其是省略号的使用,很不lisp啊,我想来想去却想不出更好的语法。哪位同学有感想的来科普一下。

Macroscheme

by oooooxxxxx - Functional编程 - 2011-08-14 14:33:22 阅读(2761) 回复(0)

本帖最后由 qinguan0619 于 2011-07-19 09:20 编辑 开始学习SICP,用scheme,下了Racket。按着练习做了几个,遇到问题如下:[code] > (not 1) not: expected either true or false; given 1 > (not #f) true > (not 'a) not: expected either true or false; given 'a > (define name "hhh") > name "hhh" > (string-length name) 3 > (string-set! name 0 #\g) reference to undefined identifier: string-set! > (define p ...

by qinguan0619 - Functional编程 - 2011-07-21 09:09:12 阅读(3968) 回复(5)

本帖最后由 love_wisdom 于 2011-06-20 18:33 编辑 wget提示我所指定的URL无法使用,scheme missing。Invalid URL: url scheme missing.

by love_wisdom - 网络技术 - 2011-06-20 15:07:44 阅读(7093) 回复(0)

a very small library intended for use as an extension and scripting language in C programs. In addition to support for lightweight VM-based threads, each VM itself runs in an isolated heap allowing multiple VMs to run simultaneously in different OS threads. The default language is R5RS scheme, including first-class continuations and low-and-high-level hygienic macros. A full-featured build prod...

chibischeme

by Lispor - Functional编程 - 2011-08-26 10:11:06 阅读(4595) 回复(2)

本帖最后由 Lispor 于 2010-12-09 23:54 编辑 [code]guile> (eq? 'x 'x) #t guile> (eq? '(+ x 1) '(+ x 1)) #f[/code]这是为何,他们quote后,不都变成符号了嘛? 是不是只有 自求值表达式 quote后 才可以 eq? :em14:

by Lispor - Functional编程 - 2010-12-12 21:38:16 阅读(3411) 回复(1)

[code];;; amb ;;; Example: ;;; > (if (amb #f #t) ;;; 1 ;;; (amb)) ;;; 1 ;;; > (let ((x (list (amb 1 4 5) ;;; (amb 2 6 7)))) ;;; (let ((x1 (car x)) ;;; (x2 (cadr x))) ;;; (amb:assert (and (even? x1) ;;; (even? x2))) ;;; (amb:assert (< x1 x2))) ;;; x) ;;; (4 6) (define amb:fail...

by Lispor - Functional编程 - 2011-02-05 22:00:07 阅读(4850) 回复(1)

本帖最后由 Lispor 于 2010-12-03 19:01 编辑 Guile-dbi(data base interface) 为 guile 提供了一种简单、通用和易于使用的各种数据库接口, 例如, Postgres, MySQL 或者是 SQLite. guile-dbi 被分为两部分: DBI(database independent) 和 DBD(database dependent) 插件, DBI 为 guile提供操作接口, 而 DBD 插件为 scheme 连接特定的 SQL server. 现在, 只有 Postgres, MySQL 和 SQLite3 的 DBD 后端. 1.1 历史 2004 年, Maur...

by Lispor - Functional编程 - 2010-12-03 18:50:55 阅读(3371) 回复(0)

本帖最后由 Lispor 于 2010-11-30 23:23 编辑 guile 中的 format 函数与 c 语言中的 printf 函数作用相同, 但是远比它强大, 其类似于 common lisp 中的 format 函数, 但是他们并不相同, guile 中的 format 函数并没有 common lisp 中的全部特性. guile 默认的 format 函数为 simple-format, 它只支持 ~A 和 ~S 格式化字符, ~A 使用 display 函数, 而 ~S 使用 write 函数. 若想用 format 的全部特性, 需加载 (ice-9 format) 模块...

by Lispor - Functional编程 - 2011-01-20 20:05:14 阅读(4818) 回复(6)