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
1
vote
4 answers

How to, in smalltalk,append two arrays

Had to change this up. I have two arrays and I want to essentially concatenate them into one array. completearray:= completearray, temparray."concatenate the new array to the existing one" How do I get this working please? Thanks.
Kobojunkie
  • 6,375
  • 31
  • 109
  • 164
1
vote
1 answer

Pharo and Squeak Smalltalk: Listing unimplemented methods in a package?

How do I list all unimplemented methods in a package? Given that the method should be implemented in that package and not in other (for example in a superclass outside the package or in Object). Edit: Yes, I'd like to know "messages sent that are…
user1000565
  • 927
  • 4
  • 12
1
vote
1 answer

SqueakMap won't work in a fresh 3.10 dev image

I just downloaded a fresh Squeak-dev image from Damien Cassou, clicked on SqueakMap, and got the error that in SqueakMap>>categories, the objects instance variable is nil, but shouldn't be. I can't be the only one with that error, am I? What should…
nes1983
  • 15,209
  • 4
  • 44
  • 64
1
vote
1 answer

Sort array that has different types in smalltalk

I tried to run this code to sort an array and got this error | x sortedX | x := #('bb' 10 'aa' 2 'cc' 3 5). sortedX := x asSortedCollection: [:y :z | (y class = z class) ifTrue: [y < z] ifFalse: [y class < z class] ]. Transcript…
yoav28
  • 28
  • 6
1
vote
1 answer

Refreshing a Morph without any user interaction

I am creating a board game that can have both human and bot players. My first version, which uses the Transcript, is ready. So now I want to make a better looking, more user friendly version using Morphs. The problem is when I start the game with…
Sander de Jong
  • 351
  • 6
  • 18
1
vote
2 answers

How to identify binary and text files using Smalltalk

I want to verify that a given file in a path is of type text file, i.e. not binary, i.e. readable by a human. I guess reading first characters and check each character with : isAlphaNumeric isSpecial isSeparator isOctetCharacter ??? but joining…
user869097
  • 1,362
  • 8
  • 16
1
vote
1 answer

Squeak smalltalk: why can't I activate the do it menu

I downloaded squeak 4.2 http://squeak.org/ and watch this very basic tutorial http://www.youtube.com/watch?v=0w1Yub4eUAU When I type 2 + 2 in workspace window and select right-click the line I can't get any popup menu with "do it" option. Did I miss…
user310291
  • 36,946
  • 82
  • 271
  • 487
1
vote
0 answers

Implemeted ZXing's Reed Solomon Error Correction in Squeak. VERY SLOOOW

I am feeling the dopamine high from finally finishing (mostly) my Reed Solomon implementation. I got decoding working correctly, with dataMatrix256 and QRCode, including corruption repair, within t/2 errors. It is VERY SLOOOW, way to slow to use…
rabbit
  • 111
  • 9
1
vote
2 answers

Is it not possible to do a repository install for Squeak in Ubuntu derivatives anymore, independent from Scratch?

I noticed there is a squeak-vm in the repositories from Linux Mint 20.1 /Ubuntu 20.04, and so I tried to install it, to see how much of the knowledge I'm acquiring in a Pharo course is transferable to Squeak: user@user-Standard:~$ apt-cache search…
kleite
  • 195
  • 1
  • 16
1
vote
1 answer

Method isn't added to methodDict

As far as I've understood yet, that each time I do "Obj compile: foo", the function foo is added to "Obj methodDict", I tried to test that in a small code, and I've found that it's not always added... Is there another way to find all the methods…
Sami Hammoud
  • 75
  • 1
  • 9
1
vote
0 answers

Compile method squeak

I was searching the web for compile method declaration and didn't find any, I didn't find it on the web either in the squeak application browser, Can anyone explain how does it work? what does it take? For now, I know that it takes a string but I…
Sami Hammoud
  • 75
  • 1
  • 9
1
vote
2 answers

Is there a smalltalk implementation of the textile "humane text" format?

I like the textile 'Humane web text generator' and I'd like to use it in tools like Pier, but I've not yet come across a Smalltalk implementation. Does such a thing exist?
Piers Cawley
  • 686
  • 6
  • 13
1
vote
2 answers

squeak(smalltalk) how to get all the methods of an object (inherited methods too)

how can I get a list of all the methods an object can understand? for example: set := 8 getAllMethods will give me all methods 8 can understand in set
Guy Sadoun
  • 427
  • 6
  • 17
1
vote
1 answer

Adding/Overriding/Edit Body Methods to Class (Smalltalk - Squeak)

How can I add new methods or remove methods of a specific Class? Or, if I try to add a method which already exists so it will override it (although at this case I can just remove the old one and add the new one which is the same)? Can it be done…
user550413
  • 4,609
  • 4
  • 25
  • 26
1
vote
1 answer

What is Smalltalk way to store/reuse changes to others code?

I started to tweak Squeak classes to make them perform what is the best behaviour for me. In particular I added a message: MCGitRepository>>gitCommandWithOutput and I modified another: MCRemoteGitRepository>>basicStoreVersion. I saved the image. I…
Nicola Mingotti
  • 860
  • 6
  • 15