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
6
votes
4 answers

Making an HTTP request in Pharo and getting the response headers

how can I make an HTTP request and get both the response content and the response headers?
dave
  • 61
  • 2
6
votes
1 answer

How can I add an item in the World-menu of Pharo 4.0?

How can I add a new item - Workspace openLabel: 'Workspace' - to the World-menu of Pharo 4.0 ? (What can I say... I prefer Workspace over the new what's-it-called. :-) I've looked at several menu-related items in the Browser, but couldn't really…
Baard Kopperud
  • 577
  • 1
  • 5
  • 12
6
votes
2 answers

animation in squeak smalltalk

I have a simple morph in squeak smalltalk. I want to move it from x1,y1 to x2,y2 (animation) with 5 seconds (or 10 seconds) is there a build in way to create animation in squeak smalltalk ?
2Big2BeSmall
  • 1,348
  • 3
  • 20
  • 40
6
votes
2 answers

Why shouldn't I store into literal arrays in Smalltalk?

Some style-guides and idioms suggest that you should not mutate literal arrays, like in this case: MyClass>>incrementedNumbers | numbers | numbers := #( 1 2 3 4 5 6 7 8 ). 1 to: numbers size: do: [:index | numbers at: index put:…
Tobias
  • 3,026
  • 20
  • 34
6
votes
1 answer

How to undo > 1 in Squeak

How do you undo in squeak more than one time? I am using coglinux-VM, Squeak-Image 4.5 with Squeak source version 41. I wrote some test code in my workspace window and want to undo more steps, but Squeak won't do it.
bartak
  • 91
  • 7
6
votes
2 answers

data visualization (2-d plot) package for smalltalk

Is there any current data visualization or 2-d plot package for smalltalk (squeak or pharo) platform? something similar to d3js or processing.org, or maybe sdl support to draw lines/dots on the screen?
Zhe Hu
  • 3,777
  • 4
  • 32
  • 45
6
votes
2 answers

Is there an upper limit to the number of objects in a Smalltalk image?

I'm putting together a NLP experiment in which concepts are agents in a system designed to engender Emergent properties consisting of new concepts (here's a link for those who don't know what Emergence is). Smalltalk (specifically the Pharo dialect)…
snerd
  • 1,238
  • 1
  • 14
  • 28
6
votes
3 answers

SmalltalkHub versus SqueakSource3

With the next closing of SqueakSource repository, I wonder what is the advantage of SmalltalkHub over SqueakSource3. Is there some feature missing in SqueakSource3? I have noticed that basic functionality like explore projects seems broken in…
user183928
  • 783
  • 3
  • 9
6
votes
1 answer

Smalltalk: Checking if a method belongs to a class (or its inheritance hierarchy)

Is there a smalltalk message that will answer with a boolean value if a given method (example: passed with #aMethod) belongs to a given class (or its hierarchy)? I want to say something like — (self containsMethod:#aMethod) ifFalse:[...blah…
Wes Field
  • 3,291
  • 6
  • 23
  • 26
6
votes
3 answers

How to define a ConfigurationOf with a #development version that depends on a baseline?

In Pharo, I want to define a Metacello's ConfigurationOfNand2Tetris that has just one package: ConfigurationOfNand2Tetris>>baseline01: spec spec for: #common do: [ spec blessing: #baseline; …
Damien Cassou
  • 2,555
  • 1
  • 16
  • 21
6
votes
3 answers

Pharo / Squeak environment with dual screens

I was just wondering if there is a way to work with multiple screens in Pharo or Squeak. I am just switching from VisualWorks to Pharo and am really missing this feature. I am used to having my workspace / transcript on one and my browsers on the…
Henrik Guschov
  • 317
  • 1
  • 8
6
votes
1 answer

How to deploy a nice One-Window-Application with Pharo or Squeak?

I have an application that has it's entire GUI in one Morph. Pharo and Squeak have one window in the host operating system. Now i want to tie this one Morph to the one Pharo/Squeak window in a way that it fills the whole Pharo/Squeak window, resizes…
Helene Bilbo
  • 1,142
  • 7
  • 20
6
votes
3 answers

Install script for OmniBrowser for Pharo 1.3?

Please do not promote Nautilus or Glamour here. I'm using Pharo 1.3 (without plans to migrate to Pharo 1.4 or 2.0). It seems to be many version of OmniBrowser out there. Which one is the most tested (in the sense of coverage) or just…
Juan Aguerre
  • 388
  • 2
  • 7
5
votes
4 answers

Pharo/Squeak - How do I quickly browse the implementation of a given method in a given class?

Let's say I want to see how "copy" is implemented in the Dictionary class. Currently I use the system browser and manually traverse the inheritance hierarchy (bottom up) until I find the class that implements the given message. Is there a one-liner…
Janus Troelsen
  • 20,267
  • 14
  • 135
  • 196
5
votes
1 answer

How to prevent greedyness with PetitParser?

I'm trying to implement the BNF for EPD in Pharo/PetitParser. digit18 := $1 asParser / $2 asParser / $3 asParser / $4 asParser / $5 asParser / $6 asParser / $7 asParser / $8 asParser. piecePromotion := $N asParser / $B asParser / $R asParser / $Q…
Janus Troelsen
  • 20,267
  • 14
  • 135
  • 196