Questions tagged [pharo]

Pharo is an open-source Smalltalk environment. It is a derivative of Squeak and is MIT licensed with some original Apple parts remaining under the Apache 2.0 license.

Pharo is a fork of Squeak, an implementation of the object-oriented, dynamically typed, reflective programming language Smalltalk.

Appearing in 2008, Pharo focuses on removing unessential code from Squeak and serves as the reference implementation of Seaside, a web application framework for developing web applications in Smalltalk. The name Pharo may be a reference to the famous Pharos lighthouse in ancient Alexandria.

Pharo 4.0 includes much improved tools to analyse and view objects and to construct browsers (Spotter, Playground, Glamour framework).

Squeak before version 4.0 shipped under the Squeak license, which was not an approved OSI open source licence, Pharo has a policy that enforces contributors to agree to publishing their code under the MIT License. Many packages that are integrated into the Squeak base distribution are optional in Pharo. Unlike Squeak, Pharo ships with TrueType fonts bundled already.

Useful links

913 questions
9
votes
3 answers

What's the difference of Squeak/Pharo/Newspeak Smalltalk VMs?

I saw 3 different VMs while learning about Smalltalk. They are Squeak/Pharo/Newspeak. What's the difference between them?
eonil
  • 83,476
  • 81
  • 317
  • 516
9
votes
5 answers

Browsing VisualWorks code in Squeak/Pharo

Is there any Smalltalk parser in Squeak/Pharo which allows me to browse VisualWorks code in Squeak/Pharo ? I'm interested in reading code exported in the chunk format (not in XML). Clarification: I do not need to file in the code. Thanks
Ray Doyle
  • 829
  • 1
  • 6
  • 8
9
votes
2 answers

Smalltalk (Pharo) How to interface with the user simply

I stumbled upon Smalltalk and further downloaded Pharo, because it was recommended. My first impression is very positive. I wanted to port some simple programs I have written in C++ (my main language), so I can get a feel for Smalltalk. However, I…
smoothware
  • 898
  • 7
  • 19
9
votes
3 answers

How to save a Pharo image automatically every hour?

I want to save my Pharo image every hour on the hour automatically. How would you make this automatic within the image? I've seen the Pier project do this. But I'm not sure how they do it. TIA
elviejo79
  • 4,592
  • 2
  • 32
  • 35
9
votes
3 answers

What is the difference between a Morph in Morphic and a NSView in Cocoa?

I'd like to know about the things that make Morphic special.
Richard Durr
  • 3,081
  • 3
  • 20
  • 26
9
votes
2 answers

Image processing and Computer Vision

I would like to use Smalltalk (Pharo) to better refactor my image processing and computer vision code/algorithms, written in other languages. I have not found a lot of examples online where Smalltalk is used for processing images (or video frames).…
9
votes
3 answers

How to implement a switch in Pharo Smalltalk

I'm trying to parse a command and an int to make a "turtle" move on a board. I'm a bit overwhelmed, since it's not throwing an exception, and I can't even figure out how to open the debugger without one. My code: "only should begin parsing on new…
sumaksion
  • 117
  • 6
9
votes
3 answers

Is there a dependency injection framework for Smalltalk?

I'm running Pharo and I'm just in a use case that sort of screams for Dependency Injection à la Guice. Is there something similar for Smalltalk? I understand that you can sort of do it all by foot, by just passing in your dependencies explicitly.…
nes1983
  • 15,209
  • 4
  • 44
  • 64
9
votes
3 answers

Switch between open windows in Pharo

After search in the nautilus shortcut description: I searched in the forums to find something about this, but doesn't work in Pharo v3. I still looking for a shortcut that I can use to easily change between open windows such as alt + tab/cmd + tab…
vmariano
  • 473
  • 2
  • 19
9
votes
3 answers

Porting code to Pharo 2.0

Pharo 2.0 changed some basic API bits, and I cannot found the new way of doing the following: FileDirectory default directoryNamed: aFolderString. FileDirectory on: aFilename. FileDirectory default assureExistenceOfPath: aString. ReferenceStream…
user183928
  • 783
  • 3
  • 9
9
votes
2 answers

Glamour and Nautilus questions

In Smalltalk, the system browser is the central tool for pretty much anything. Glamour seems to be a package for building general purpose browsers using a declarative scripting language. From the paper it is available in VisualWorks and Pharo, but…
user1000565
  • 927
  • 4
  • 12
8
votes
2 answers

Generating diagrams in Pharo/Squeak Smalltalk

I'm having trouble understanding big code libraries in Pharo and Squeak, is there is a typical template script to generate a static class relationship diagram (not necessarily UML) and a dynamic object relationship diagram in Pharo or Squeak without…
user869097
  • 1,362
  • 8
  • 16
8
votes
4 answers

What is the idiomatic way to define an enum type in Smalltalk?

Like in Java, C# etc. How would I define something like enum Direction { input, output } in Smalltalk?
Michael
  • 4,722
  • 6
  • 37
  • 58
8
votes
3 answers

Why are Metaclasses instances of Metaclass and not Class?

I'd like to know the reasoning why there are two different classes used, instead of just using Class for both.
Richard Durr
  • 3,081
  • 3
  • 20
  • 26
8
votes
2 answers

How to get emacs-like keybindings in Pharo?

I've downloaded Pharo today, and I noticed most keybindings don't work within the language environment. Is there any possible way to get standard Mac / Linux keybindings to work? I could find no answer searching on Google. I'd appreciate if someone…
Daniel
  • 11,332
  • 9
  • 44
  • 72
1 2
3
60 61