有人有用于 Iphone 开发的 ECL Lisp 代码示例吗?
我最近发现了 Lisp for the Iphone,并想找到一些代码示例。
https://github.com/TerjeNorderhaug/ecl-iphone-builder/#readme
I found out about Lisp for the Iphone recently and wanted to find some code examples.
https://github.com/TerjeNorderhaug/ecl-iphone-builder/#readme
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
iOS 发行版的 ECL 包括在 iPhone 上运行的 Common Lisp 应用程序的代码示例。
该示例是一个 Swank 服务器,它是 SLIME 和 MCLIDE Lisp 开发环境(披露:我是后者的开发者)。
按照自述文件中的步骤构建应用程序并将其放置在您的 iPhone 上/iPad,或者在 Xcode 附带的 iPhone 模拟器上。然后,您可以使用 SLIME 或 MCLIDE 连接到 iOS 设备,提供 REPL,您可以从中直接在设备上评估 Lisp 表达式并交互式开发应用程序。
init.lisp 文件中的代码示例当应用程序启动时在设备上运行。它当前加载 swank 服务器并通过文本字段、按钮和警报对话框通知用户。 iPhone 项目的 ECL 尚未提供太多来自 Lisp 的用户界面功能,但您可以使用 Xcode Interface Builder 来设计 GUI。
ECL 编译为 C 并支持内联 Objective-C,因此您可以使用 Common Lisp 作为顶层抽象层,或将 Common Lisp 实现的功能与 Objective-C 代码集成。该项目的存储库包括组合示例 Common Lisp 与 Objective-C,包括基本小部件的实现。
The ECL for iOS distribution includes a code example of a Common Lisp application running on the iPhone.
The example is a Swank server, the backend for the SLIME and MCLIDE Lisp development environments (disclosure: I am the developer of the latter).
Following the steps in the readme will build the application and place it on your iPhone/iPad, or alternatively on the iPhone simulator that comes with Xcode. You can then connect to the iOS device using SLIME or MCLIDE, providing a REPL from which you can evaluate Lisp expressions directly on the device and interactively develop the app.
The code example in the init.lisp file runs on the device as the application starts. It currently loads the swank server and notifies the user with a text field, button and alert dialog. The ECL for iPhone project doesn't yet provide much user interface functionality from Lisp, but you can use the Xcode Interface Builder to design the GUI.
ECL compiles to C and supports inline Objective-C, so you can use Common Lisp as an abstraction layer on top or integrate Common Lisp implemented functionality with Objective-C code. The repository for the project includes examples of combining Common Lisp with Objective-C, including the implementation of basic widgets.
我一直在关注这个线程,最近 ECL 存储库中有一个新分支 https://gitlab.com/embeddable-common-lisp/ecl/tree/arm64-port,为arm64架构构建ECL。
I have been following this thread and recently there was a new branch in ECL repo here https://gitlab.com/embeddable-common-lisp/ecl/tree/arm64-port that builds ECL for arm64 architectures.