GNU Smalltalk 中的图像或文件?

发布于 2024-09-02 02:05:20 字数 290 浏览 11 评论 0原文

我是 Smalltalk 的新手。我想我了解了该语言的基础知识,现在想从 GNU Smalltalk 开始(因为它是免费的并且绑定了 GTK)。

由于我来自 PHP 和 Java 角落,所以我不熟悉 Smalltalk 图像的概念。我什至现在读到,您不需要在 GNU Smalltalk 中使用图像。现在我很困惑;-)

那么是否可以使用文件并将我需要的类包含在 PackageLoader 类中?

如果我也能使用我最喜欢的文本编辑器 (vim) 而不是 IDE 进行编码,我会很高兴;-)

请赐教:-)

I'm new to Smalltalk. I think I understand the basics of the language and now want to start with GNU Smalltalk (as it's free and has bindings for GTK).

As I'm coming from the PHP and Java-Corner, I'm not familiar with the concept of the Smalltalk images. And I even read now, that you don't need to use images in GNU Smalltalk. Now I'm confused ;-)

So is it possible to work with files and to include the classes I need with the PackageLoader class?

I would be happy when I could use my favourite texteditor (vim) for coding instead of an IDE, too ;-)

Please enlight me :-)

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

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

发布评论

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

评论(3

女中豪杰 2024-09-09 02:05:20

作为一名顽固的 Smalltalk 使用者,我必须说:如果没有 IDE,我个人永远不会在 Smalltalk 中工作。如果您以经典的编辑-链接-编译风格尝试 Smalltalk,您将永远不会“感受到它的感觉”。这是可能的,但仅适用于调试良好、准备好执行的程序 - 不适用于开发。

所以请:不要这样做 - 您从浏览器获得了如此多的功能,并且由于是动态类型的,您确实需要它才能对 Smalltalk 感到满意。

PS:但是,当然,您可以这样做:在 Smalltalk/X 中,您甚至可以沿用旧的风格,将类编辑到单独的文件中,将它们编译为 .obj 文件,将它们链接到 .dll,然后执行它们作为.exe。如果您愿意,您甚至可以使用 print 语句来调试它们......

Being a hard core smalltalker myself, I must say: I personally would NEVER work in Smalltalk without the IDE. You will never "get the feeling for it" if you try Smalltalk in a classical edit-link-compile style. It is possible, but only for well debugged, ready to execute programs - not for development.

So please: don't do it - you get so much power from the browser, and due to being dynamically typed, you really need it to be happy with Smalltalk.

PS: but, of course, you can do it: in Smalltalk/X, you can even go along the old style, by editing classes into individual files, compile them to .obj-files, link them to .dll's, and execute them as .exe. You can even debug them using print statements, if you want...

为你鎻心 2024-09-09 02:05:20

是的,你可以这样做。然而,使用图像作为一种预加载的包缓存将加快应用程序的加载速度。请参阅 http://smalltalk.gnu.org/blog/bonzinip/seaside -development-gnu-smalltalk 为例。

Yes, you can do that. However using an image as a kind of preloaded package cache will speed up loading your application. See http://smalltalk.gnu.org/blog/bonzinip/seaside-development-gnu-smalltalk for an example.

递刀给你 2024-09-09 02:05:20

有一本免费的书似乎可以回答您的新手问题 - 使用 GNU Smalltalk 进行计算机编程

There's a free book which seems to answer your newbie questions - Computer Programming using GNU Smalltalk

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