具有完美功能集的 Smalltalk 实现

发布于 2024-11-28 02:52:54 字数 362 浏览 2 评论 0原文

我更喜欢通过标准 bash 终端与编程语言交互。虽然 Squeak 和 Pharo 有详细的文档记录,但它们似乎没有 CLI,只有 VM GUI。

GNU Smalltalk 和 Slate 有一个普通的 CLI,但没有适用于 Linux、Mac 或 Windows 的安装程序——并且它们需要在 Windows 上进行复杂的 MSYS 配置。

似乎没有一个 Smalltalk 实现同时具有 CLI 和多平台安装程序。我很想学习这种语言,但我似乎找不到适合我的 Smalltalk。

Squeak 和 Pharo 有秘密 CLI 模式吗?有谁知道 GST 或 Slate 安装程序在哪里发布?是否还有其他免费、开源的 Smalltalks 具有这两个功能?

I prefer interfacing with programming languages through a standard bash terminal. While Squeak and Pharo are well documented, they don't seem to have a CLI, just a VM GUI.

GNU Smalltalk and Slate have a normal CLI but no installers for Linux, Mac, or Windows--and they require a complicated MSYS configuration on Windows.

There seems to be no Smalltalk implementation that has both a CLI and multiplatform installers. I'd love to pick up this language, but I can't seem to find a Smalltalk that suits me.

Do Squeak and Pharo have secret CLI modes? Does anyone know where GST or Slate installers are posted? Are there other free, open source Smalltalks that have these two features?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

蓝梦月影 2024-12-05 02:52:55

是的,Pharo 有一个“秘密”CLI 模式。它被称为珊瑚

Yes, Pharo has a "secret" CLI mode. It is called Coral.

沫离伤花 2024-12-05 02:52:55

扩展 Lukas 的答案,这里有一个将 Coral 加载到 Squeak 中的脚本:

Installer ss
    project: 'OSProcess';
    install: 'OSProcess-dtl.63'.
Installer ss
    project: 'rb';
    install: 'AST-Core-lr.88'.
Installer lukas
    project: 'petit';
    install: 'PetitParser-lr.218';
    install: 'PetitTests-lr.34';
    install: 'PetitSmalltalk-lr.47'.
Installer ss
    project: 'fs';
    install: 'FS-Core-StephaneDucasse.4';
    install: 'FS-AnsiStreams-cwp.1';
    install: 'FS-FileStream-cwp.1';
    install: 'FS-Disk-cwp.1'.
Installer ss
    project: 'CoralSqueak';
    install: 'Coralsqueak-fbs.2';
    install: 'Coral-fbs.55'.

它基于 Coral 的近端版本(Damien 刚刚开始重新设计 Coral 的某些部分),并向 Squeak 添加了 Coral 期望的一些方法。

安装后,请按照标准说明进行操作:

SmalltalkImage current saveAs: 'coral.image'.
CoralInstaller generateCoralScript.
CoralInstaller generateCoralDebugScript.
"Optionally: CoralInstaller generateAllExamples."

然后从命令行:

$ chmod +x coral.sh coralDebug.sh
$ ./coral.sh scriptCarpet.cst

Extending on Lukas' answer, here's a script to load Coral into Squeak:

Installer ss
    project: 'OSProcess';
    install: 'OSProcess-dtl.63'.
Installer ss
    project: 'rb';
    install: 'AST-Core-lr.88'.
Installer lukas
    project: 'petit';
    install: 'PetitParser-lr.218';
    install: 'PetitTests-lr.34';
    install: 'PetitSmalltalk-lr.47'.
Installer ss
    project: 'fs';
    install: 'FS-Core-StephaneDucasse.4';
    install: 'FS-AnsiStreams-cwp.1';
    install: 'FS-FileStream-cwp.1';
    install: 'FS-Disk-cwp.1'.
Installer ss
    project: 'CoralSqueak';
    install: 'Coralsqueak-fbs.2';
    install: 'Coral-fbs.55'.

It's based on a near-to-head version of Coral (Damien's just started on a redesign of parts of Coral), and adds a few methods to Squeak that Coral expects.

Once installed, follow the standard instructions:

SmalltalkImage current saveAs: 'coral.image'.
CoralInstaller generateCoralScript.
CoralInstaller generateCoralDebugScript.
"Optionally: CoralInstaller generateAllExamples."

And then from your command line:

$ chmod +x coral.sh coralDebug.sh
$ ./coral.sh scriptCarpet.cst
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文