smalltalk

What's the best free IDE for learning smalltalk? [closed]

≯℡__Kan透↙ 提交于 2019-12-03 02:21:31
Closed. This question is off-topic. It is not currently accepting answers. Learn more . Want to improve this question? Update the question so it's on-topic for Stack Overflow. What do you think is a good IDE for learning SmallTalk? I'll only be using it as a hobby, so it has to be free. I think Squeak is the way to go. It has an entire smalltalk environment and is constantly updated. Its what I used for learning and is actually even a cool app in itself. You should also consider Pharo . Pharo is a fork of Squeak. Their goals are: a clean and lean open-source Smalltalk platform, derived from

What is the correct way to test Unicode support in a Smalltalk implementation?

匿名 (未验证) 提交于 2019-12-03 01:38:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: Given any Smalltalk flavor, how should I proceed to check if Unicode is supported? In case of not having support, how can I detect at which level is missing (VM, font, Converter, etc)? 回答1: At the VM level you can try Character codePoint: 256 or Character codePoint: 65536 (some Smalltalks may use value: instead of codePoint: still). Converter APIs differ between dialects too, but chances are that if the VM supports Unicode so will the converters. As far as I know, no Smalltalk fully supports Unicode algorithms (case-folding,

历年NOIP提高组初赛选择解析

匿名 (未验证) 提交于 2019-12-03 00:13:02
编译型语言是编译一次就可以转成计算机可以直接运行的机器语言程序(如.exe文件)但是由于他们是直接编译的,依赖于计算机的不同,所以跨平台能力比较差,但是运行速度高。 解释性语言则是每次运行前编译,先解释再运行,导致运行效率降低,但是因为其依托于虚拟机/解释器所以跨平台性能好。 高级语言还可分为面向过程语言和面向对象语言。(区别自然是有没有对象) 于 1967 年出现的 Simula67 是历史上第一个面向对象语言 Smalltalk 被公认为第二个面向对象的程序设计语言,和第一个IDE C 和 Pascal 是纯面向过程语言 就算没有对象也可以学面向对象的程序设计语言 C++ 第一个高级语言是fortran,Ada是美国军方发明的语言,取名Ada是为了纪念第一个女程序员 第一个支持面向对象的语言是simula67 1 、 ( NOIP - 2004 T19 -多选)下列哪个(些)程序设计语言支持面向对象程序设计方法( ABDE )。 A . C ++ B . Object Pascal C . C D . Smalltalk E . Java C ++, object Pascal , VB , smalltalk (第一个支持动态类型的语言), simula67 (第一个面向对象的语言), Java 是面向对象的 free Pascal , C 是面向过程的 模型:

Run Smalltalk on server without GUI?

天大地大妈咪最大 提交于 2019-12-02 18:02:55
I've got rather distinct question - I'd like to run Smalltalk on a production server without using graphical interface. Is this possible with VW or Pharo (maybe even Squeak)? I've got a VPS hosting without X and would like to have few websites running on Smalltalk, while developing them locally with full-blown Smalltalk env, including GUI. Mariano Martinez Peck Yes, it is possible to deploy Pharo in a "headless" way. Just send the -headless and that's all. Example: #!/bin/sh NOHUP="/usr/bin/nohup" SQUEAK_VM="/usr/bin/squeakvm" SQUEAK_OPTS="-mmap 100m -vm-sound-null -vm-display-X11 -headless"

What are the key differences between OO in Smalltalk and Java?

北战南征 提交于 2019-12-02 17:16:48
What are the key differences between OO in Smalltalk and Java? Please note that I am a Java programmer trying to expand his horizons by exploring Smalltalk. Currently I know almost nothing about Smalltalk except that it's purer than Java. Therefore I'll prefer the answer that shows how various Java concepts map to corresponding Smalltalk concepts and then introduces the Smalltalk concepts that don't exist in Java at all. Frank Shearar Message passing Smalltalk uses message passing, not method invocation. The distinction is subtle, but enormously powerful. Some terminology: Given foo bar: baz ,

How can I refresh a session for every 60 second and display it on transcript with Pharo?

爱⌒轻易说出口 提交于 2019-12-02 06:34:29
问题 |a b | a := ZnClient new. a get: 'http://cloud-storage.com/login'. a formAt: 'username' put: 'jom'; formAt: 'password' put: 'mypass'; post; get: 'http://cloud-storage.com/my-file'. "Here I want to refresh the session for every 60sec and" "to checking for newer data" b := a maxNumberOfRedirects:60 Transcript show: b; cr. I would like to implement a method that can refresh the ZnClient session every 60s for checking for newer data on the server I am logged into. I tried the redirect method of

Colored Window Theme in Pharo?

一世执手 提交于 2019-12-02 05:06:47
问题 How do I switch to the colored window theme in Pharo? 回答1: Not sure which theme you mean but have you tried world menu -> System -> Settings -> Appearance -> Morphic -> User interface theme? The select box will let you choose the window color theme. 回答2: Or...by code... execute: XXXTheme beCurrent. 回答3: Best neat way to do this is to install the TWM (Tiled Windows Manager) and use its theme. That the closest you'll get to a squeak colorful windows meets pharo theme. You can get the theme

How can I refresh a session for every 60 second and display it on transcript with Pharo?

我的未来我决定 提交于 2019-12-02 00:39:21
|a b | a := ZnClient new. a get: 'http://cloud-storage.com/login'. a formAt: 'username' put: 'jom'; formAt: 'password' put: 'mypass'; post; get: 'http://cloud-storage.com/my-file'. "Here I want to refresh the session for every 60sec and" "to checking for newer data" b := a maxNumberOfRedirects:60 Transcript show: b; cr. I would like to implement a method that can refresh the ZnClient session every 60s for checking for newer data on the server I am logged into. I tried the redirect method of pharo but it does not seem to work. or say It does not show anything. Any idea? | session data | session

“Dead method context” error in a function

此生再无相见时 提交于 2019-12-01 23:10:33
I am trying to write a isBinary function that checks sent line if it has any non-printable characters (integer value outside range 0-127): isBinary := [ :sline | 'Reached isBinary fn.' displayNl. sline do: [ :char | "for each character" i := char asInteger. "convert to integer" (i < 0 | i > 127) ifTrue: [^true]. ]. "return true if found unprintable" ^false. ]. "if not found above, return false" (Directory working: '.') allFilesMatching: '*.x' do: [ :ff | ((ff name), ' : ') display. infile := FileStream open: ff name mode: FileStream read. firstline := infile nextLine. (isBinary value:

Can operators in Smalltalk be overloaded?

梦想的初衷 提交于 2019-11-30 15:48:31
问题 Is it possible to overload operators in Smalltalk? I am looking for tutorials/examples. Thanks. 回答1: Method overloading is not possible in Smalltalk. Instead, a combination of method overriding and a technique called double dispatch is used to implement the same behavior as operator overloading in other languages. You can find an example implementation in the mathematical operators +,*,/,- (which are binary messages in Smalltalk). Here is the idea: the implementation of Integer>>+ sends a