我可以使用交互式命令行进行 Squeak/Pharo 开发吗?
我尝试将 Squeak/Pharo 安装到 Ubuntu 服务器计算机中。
./squeak -vm-display-null ./Pharo-1.2.2-12353/Pharo-1.2.image
它执行了,但没有命令行。没有GUI就无法使用吗?
I tried to install Squeak/Pharo into Ubuntu server machine.
./squeak -vm-display-null ./Pharo-1.2.2-12353/Pharo-1.2.image
It executed, but there was no command-line. No way to use without GUI?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
看看 Coral,它为 Pharo 提供了脚本接口。不确定在哪里可以找到最新的文档,但有一个基于 Pharo 构建服务器。
Have a look at Coral, it provides a scripting interface to Pharo. Not sure where to find up-to-date documentation, but there is a build on the Pharo Build Server.
您可以通过参数将脚本发送到VM。
但这就是除了 Coral 之外你能做的一切。否则你应该使用 GNUSmalltalk
You can send scripts by parameter to the VM.
But that's all you can do apart from Coral. Otherwise you should use GNUSmalltalk
我相信在当前的虚拟机中,您必须使用完整的“file:///” URL,这是不久前做出的选择,直到最近才被讨论为想要逆转。
I believe in the current VM you have to use a full "file:///" URL, a choice made a while back and only recently having been discussed as wanting to be reversed.
我不确定我是否正确理解您的需求,但我想您可以编写一些线性读取评估循环,并在启动时将其作为脚本参数传递。
除此之外,smalltalk 的大多数无头用法都是用于 Web 服务器(seaside、aida),在这种情况下,通常有一个管理 URL,可让您通过向对象和类似对象发送消息来浏览图像。如果您有海边一键图像,您可以尝试:
http://localhost:8080/tools/classbrowser
http://localhost:8080/tools/screenshot
http://localhost:8080/tools/versionuploader
让您体验一下可以做什么。
I am not sure if I understand your needs correctly, but I guess you could write a few liner read-eval loop, and pass it as script argument at start up.
Other than that most headless usages of smalltalk are for web servers (seaside, aida), in which case there is usually an admin url which lets you to poke around image by sending messages to objects and similar. If you have seaside one click image you could try out:
http://localhost:8080/tools/classbrowser
http://localhost:8080/tools/screenshot
http://localhost:8080/tools/versionuploader
to give you a taste of what can be done.
有 Coral,但您也可以考虑一个名为“Pharo Kernel”的较轻版本的 Pharo:
请访问 https://ci。 inria.fr/pharo-contribution/view/Pharo-Kernel-2.0/job/PharoKernel2.0/
There is Coral, but you might also look into a lighter version of Pharo called "Pharo Kernel":
Check it out at https://ci.inria.fr/pharo-contribution/view/Pharo-Kernel-2.0/job/PharoKernel2.0/