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
7
votes
5 answers

How to print Smalltalk code from Pharo/Squeak?

What is the best way to print - syntax colored and well formatted - code from Pharo/Squeak on paper? 1) Is there a way to print directly from within Pharo/Squeak? (i use it on macosx) 2) Is there a way to export syntax colored, well formatted code…
Helene Bilbo
  • 1,142
  • 7
  • 20
7
votes
5 answers

Is it OK to leave the [ and ] out for messages like at:ifAbsent: if you don't need a full block?

In Smalltalk (and specifically Pharo/Squeak) I want to know if it is OK to leave out the "[" and "]" for the argument to messages like at:ifAbsent: if you don't need a block, like this; ^ bookTitles at: bookID ifAbsent: ''. and ^ books at: bookID…
claudio
  • 71
  • 1
7
votes
0 answers

Why would you choose Squeak over Pharo today?

I am trying to understand the uses of both. Already I have seen stuff on the SmalltalkHub doesn't often build on Squeak but always seems to work with Pharo. What are the advantages now in 2014 to choose Squeak and not Pharo?
Marco
  • 71
  • 2
7
votes
1 answer

Read a filestream (named pipe) with a timeout in Smalltalk

I posted this to the Squeak Beginners list too - I'll be sure to make sure any answers from there get here :) I'm using Squeak 4.2 and working on the smalltalk end of a named pipe connection, which sends a message to the named pipe server with: …
dsl101
  • 1,715
  • 16
  • 36
7
votes
2 answers

Debugging interpreter in VM when changing vm primitives

Context As a university project we want to change the the pharo vm to use an object-table and see what happens. We use a pharo-vm clone from github and VMMaker. Building the VM works fine. To get started we added a primitive that returns an…
User
  • 14,131
  • 2
  • 40
  • 59
7
votes
1 answer

Parsing RDF in Smalltalk

Is there any example, in any Smalltalk flavour, showing how to parse a RDF file? The only package I've seen is Rikaiko with a RDFXMLReader class, but there are no references and it seems very undocummented.
Juan Aguerre
  • 388
  • 2
  • 7
6
votes
7 answers

Are there any large-scale commercial projects that use Squeak Smalltalk?

I've been learning Squeak Smalltalk & have noticed that it's got a really faithful community and is used in some large academic and open-source projects, but I haven't found any examples of it being used commercially in any significant way. I'm…
6
votes
4 answers

new line in squeak

i want to do something like this: Transcript show: '\n'. how?
Renne
6
votes
2 answers

How to search for a string inside a class in Squeak smalltalk ? How about inside a package?

I searched, and searched. I went to IRC Hope the question is not silly. If it was, the right string to search at google would still be much appreciated
josinalvo
  • 1,366
  • 13
  • 26
6
votes
2 answers

Performance overhead of perform: in Smalltalk (specifically Squeak)

How much slower can I reasonably expect perform: to be than a literal message send, on average? Should I avoid sending perform: in a loop, similar to the admonishment given to Perl/Python programmers to avoid calling eval("...") (Compiler evaluate:…
jeff
6
votes
5 answers

Inter-Image communication in Smalltalk. Possible?

I have a graph-traversal problem that is beautifully and elegantly modeled in smalltalk, but it's too big (in terms of computation and storage) for one smalltalk image instance. So, I want to partition the problem across multiple instances. My…
Alex
  • 4,316
  • 2
  • 24
  • 28
6
votes
2 answers

Is it possible to make a multiple-window GUI in Squeak?

In Squeak, is it possible for a GUI program to have multiple windows? For example, if I am making a painting application, is it possible for the "paint palette" and the "canvas" to be separate windows in the operating system's desktop environment?…
Flux
  • 9,805
  • 5
  • 46
  • 92
6
votes
6 answers

How can I make an HTTPS request in Squeak or Pharo?

How can I make an HTTPS request from Squeak or Pharo? HTTPClient and friends seem to lack any facilities for SSL.
Benjamin Pollack
  • 27,594
  • 16
  • 81
  • 105
6
votes
3 answers

Squeak Smalltalk: Game loop

In many languages you can do something like the following: while true: handle events like keyboard input update game world draw screen (optional: delay execution) while this is far from optimal it should suffice for simple games. How do you…
Higemaru
  • 354
  • 4
  • 10
6
votes
3 answers

Function objects in Smalltalk (or executing blocks with no `value:`)

Is it possible to send an anonymous message to an object? I want to compose three objects like this (think FP): " find inner product " reduce + (applyToAll * (transpose #(1 2 3) #(4 5 6))) where reduce, applyToAll and transpose are objects and +,…
Vijay Mathew
  • 26,737
  • 4
  • 62
  • 93