Questions tagged [squeak]

Squeak is a modern, open-source implementation of the Smalltalk language, with a history of being very easy to port across platforms. See https://squeak.org/.

Squeak started in 1996 as a project of Alan Kay and friends at Apple. They wanted an open source Smalltalk with a view to building Smalltalk's replacement.

Among its features:

  • The Virtual Machine is written in (a subset of) Smalltalk.
  • Runs bit-identically across all its platforms.
  • Very easy to port: it runs on Linux, Macs (both old and new), Windows, iPhones, iPads, and even bare metal.
412 questions
40
votes
8 answers

Squeak or Pharo for the beginning Smalltalker?

I am a Rubyist that is just starting to dabble in Smalltalk and am trying to chose an implementation to experiment with. It seems like Squeak or Pharo would be a good choice, but I'm having trouble finding current information to help decide which…
gregspurrier
  • 1,448
  • 2
  • 13
  • 13
29
votes
4 answers

Using Squeak from a shell

Can I launch Squeak as a REPL (no GUI), where I can enter and evaluate Smalltalk expressions? I know the default image don't allow this. Is there any documentation on how to build a minimum image that can be accessed from a command-line shell?
Vijay Mathew
  • 26,737
  • 4
  • 62
  • 93
25
votes
2 answers

What is the difference between self and yourself in Smalltalk?

In Smalltalk, there are two terms often found within a method body: self and yourself. What is the difference between them?
Euan M
  • 1,126
  • 11
  • 20
17
votes
1 answer

When to use Seaside components, and when to use simple render objects?

I have been developing a web application in Seaside+Squeak recently, and have found it to be a wonderful experience. Seaside really is head and shoulders above every other framework out there, and I feel as though I am working at a higher level of…
new_squeaker
  • 173
  • 5
17
votes
3 answers

Is Pharo just a repackaging/rebranding of Squeak?

I'm trying to learn some Smalltalk. First found was Squeak, but since it has been removed from Gentoo ebuild tree because of security problem, so I decided to find an alternative. Then I found Pharo through Seaside project, after I downloaded Pharo…
number5
  • 15,913
  • 3
  • 54
  • 51
17
votes
3 answers

What is the difference between a Squeak/Pharo Trait and a Newspeak Mixin?

So Squeak/Pharo support Traits and Newspeak has Mixins. What is the difference? Traits have no instVars but Mixins have?
Richard Durr
  • 3,081
  • 3
  • 20
  • 26
14
votes
2 answers

Are Smalltalk bytecode optimizations worth the effort?

Consider the following method in the Juicer class: Juicer >> juiceOf: aString | fruit juice | fruit := self gather: aString. juice := self extractJuiceFrom: fruit. ^juice withoutSeeds It generates the following bytecodes 25 self …
Leandro Caniglia
  • 14,495
  • 4
  • 29
  • 51
14
votes
5 answers

Why do methods return "self" by default in Smalltalk?

Background In Smalltalk, if you don't excplicitly return anything then the message passing evaluates to the receiver (or "self" in the message context). For example, given this method: MyClass >> myMethod Transcript show: 'hello'; cr. Evaluating…
Sebastian N.
  • 1,962
  • 15
  • 26
13
votes
4 answers

How can I easily change to native fonts in Smalltalk Squeak/Pharo

With every new Squeak/Pharo image, I immediately change the fonts to some native version. It is a lot of mouseclicks and I want to script the process.
soemirno
  • 29,244
  • 3
  • 19
  • 14
13
votes
1 answer

What are Smalltalk pragmas conceptually?

I have used pragmas in Pharo Smalltalk and have an idea about how they work and have seen examples for what they are used in Pharo. My questions are: what are pragmas conceptually, to what construct do they compare in other languages, when should i…
MartinW
  • 4,966
  • 2
  • 24
  • 60
12
votes
5 answers

Writing a GUI in squeak

How can I write a GIU in Squeak? I'm a Smalltalk newbie and I'm using Cincom's VisualWorks at the moment but I'd like to give Squeak a try. I see that Squeak has Morphic for graphics but for the life of me I can't seem to find a package to write an…
KHWP
  • 1,211
  • 2
  • 11
  • 17
12
votes
6 answers

Is it possible to extend an individual object in Smalltalk

I'm doing research in Smalltalk reflection, and I was wondering if it was possible to extend an individual object like that would be possible for instance in Ruby. With this I mean a selector that only particular objects respond to. Here is some…
froginvasion
  • 833
  • 6
  • 19
11
votes
5 answers

How Compatible is GNU Smalltalk with Squeak

I'm working on an app in squeak that requires no graphics at all, its all just data manipulation. The problem is that I work in a fairly conservative environment and I dont think I'll be able to sell a squeak app to my managers (I feel like the…
Alex
  • 4,316
  • 2
  • 24
  • 28
11
votes
2 answers

Squeak Smalltalk vertical arrow in code

I'm trying to learn Smalltalk and so I'm doing the "Squeak by Example" tutorial. I have to write a method in the system browser with a vertical arrow which points up at the beginning of the code. Is there a Unicode sign or something like this, which…
Janus
  • 309
  • 1
  • 5
  • 18
11
votes
5 answers

Current Smalltalk development activity

I'm now a couple of months into my Smalltalk learning voyage. I was aware, from the beginning that Smalltalk has several "dialects" (perhaps "dialect" isn't the best word) but by this I mean VisualWorks, Squeak and Dolphin to mention just three. …
KHWP
  • 1,211
  • 2
  • 11
  • 17
1
2 3
27 28