你好,游客 登录 注册 搜索
背景:
阅读新闻

newLISP 10.6.3 开发版发布,功能更新和 BUG 修复

[日期:2015-07-13] 来源:oschina.net  作者:Linux [字体:大 中 小]

newLISP 10.6.3 发布,此版本是开发版本,包括一些新特性和改进:

组件和改进

  • dolist now also accepts arrays.

  • The net-eval function now returns the evaluation of the last function passed, not the first. The possibility of passing more than one expression in net-eval  is not documented.

  • The system variable ostype on MS Windows now reports the string "Windows" not "Win32". Windows now also can be compiled as a 64-bit application.

  • net-eval connection timeout changed to 15 seconds from 60 secconds. The processing timeout while connected can still be set by the user in a net-eval parameter.

  • The environment variable HTTP_AUTHORIZATION has been added to the variables handled in HTTP server mode.

  • In date-value the date and time numbers can now be given in one list instead of separate number parameters using and additional syntax.

  • The date-list function, when given without a parameter, now returns the date list for the current UTC date and time value.

  • The trim function without trim character parameters will now trim all white-space characters, not only spaces.

  • dump now returns the number of cells dumped not true.

  • A new trace syntax (trace int-device) writes all expression entries and exit results to the device given. int-device can be could be an open file or 1 for stdout.

  • The stack trace in error messages now prints the entire espression passed for evaluation, not only the function name.

  • The tmp directory is now defined on newLISP startup. For UNIX this is /tmp, for Windows it is taken from the TMP environment variable or assumed as /tmp.  The directory is used by the built-in function share and the built-in HTTPD server.

  • A new newLISP library call (newlispLibConsole 1) forces console output to stdout instead of writing to the return string of newlispEvalStr. The same call also enables console input viastdin.

  • newLISP can now be compiled as a 64-bit executable. Thanks toShigeru Kobayashi for doing most of this work.

Bug 修复

  • date-list crashed for negative values on some Windows versions.

  • The det and mat functions now give an error message when passed the wrong dimensions.

  • HTTP server mode now works correctly with Apache server, when the environment variables NEWLISPDIR and PROGRAMFILES are not defined. Default file paths are assumed for these variables.

  • HTTP only server mode with command-line switch -http did not reject net-eval requests.

  • expand could crash when evaluating binding lists.

  • The 'json-parse' function now handles 64-bit number also in 32-bit versions of newLISP.

下载:http://www.newlisp.org/downloads/development/newlisp-10.6.3.tgz 

newLISP是一个类似Lisp语言的、用于一般用途的脚本语言。它具有 LISP 语言所有的魔力,但更容易学习和使用。 newLISP是友好的,快速和简小的。大部分您需要的功能都将已经内置。

下面是一段示例代码:

(command-event (fn (s)
    (local (request)
        (if (find "?" s) ; is this a query
            (begin
                (set 'request (first (parse s "?")))
                ; discover illegal extension in queries
                (if (ends-with request ".exe") 
                    (set 'request "GET /errorpage.html")
                    (set 'request s)))
            (set 'request s))
        request)
))

为Emacs配置newLISP开发环境 http://www.linuxidc.com/Linux/2013-01/78463.htm

newLISP做GitLab系统备份 http://www.linuxidc.com/Linux/2013-01/78464.htm

newLISP 遍历目录树,清理编译目录 http://www.linuxidc.com/Linux/2013-08/88954.htm

newLISP 的详细介绍:请点这里
newLISP 的下载地址:请点这里

本文永久更新链接地址:http://www.linuxidc.com/Linux/2015-07/119835.htm

linux
相关资讯       newLISP 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款