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
1 answer

where to find whatIsAPrimitive in squeak

Hey, friends, I am using squeak for developing and I found primitives is useful, every comment belong to primitives all mentioned See Object documentation whatIsAPrimitive Any friend can help where to see the object document whatIsAPrimitive,…
parsifal
  • 879
  • 4
  • 12
  • 21
1
vote
1 answer

If Squeak is not a script language, then where is the tree data structure?

Because Squeak is a open source environment, we can see the implementation of data structures like OrderedCollection>>addFirst: addFirst: newObject "Add newObject to the beginning of the receiver. Answer newObject." firstIndex = 1 ifTrue: [self…
parsifal
  • 879
  • 4
  • 12
  • 21
1
vote
3 answers

How does shallow copy work for Array in Smalltalk?

So from what I understand when you pass the message copy to an array, a shallow copy is performed. Two objects should point to the same array and in theory, when you change one, you change the other. However, when I run this code, it acts like it's…
On The Net Again
  • 265
  • 4
  • 16
1
vote
3 answers

How to open a txt File in Squeak4.1

Friend, How can open a txt file in Squeak4.1 ,the code Shall be like this: at: #f put: (FileStream open: '/root/test' mode: FileStream read) ! f do: [ :c | Transcript nextPut: c ] ! f close ! can any body give some hints on how to open the file…
parsifal
  • 879
  • 4
  • 12
  • 21
1
vote
1 answer

squeak4.1's debug menu questions

friends As showed on the title, while I am debugging in squeak4.1, the menu "debug it" is powerful, there have Proceed, Restart, Into, Over, Through buttons etc. Each time when I enter Into button, I can trace into the specific code, But what is the…
parsifal
  • 879
  • 4
  • 12
  • 21
1
vote
1 answer

How do I debug Squeak source code?

Here is the division method in Squeak 4.1: /t1 | t2 | t1 isInteger ifTrue: [t2 := self digitDiv: t1 abs neg: self negative ~~ t1 negative. (t2 at: 2) = 0 ifTrue: [^ (t2 at: 1) normalize]. ^ (Fraction…
parsifal
  • 879
  • 4
  • 12
  • 21
1
vote
1 answer

squeak error: cannot write a read-only file

I am trying to write a new method in Squeak. I click on the "no messages" to create a new method but any change to the existing template produces the error "Error: cannot write a read-only file"
1
vote
2 answers

Remove method in Seaside

How does one remove a method in Squeak! Smalltalk? I'm using a Seaside 2.8.4 image and I've accidentally added a method and made a typo in the name. I renamed it, but then it just made a new method. How do I remove the old one? Google didn't turn…
afkbowflexin
  • 4,029
  • 2
  • 37
  • 61
1
vote
2 answers

Writing chunks of a large HTTP response to disk as soon as chunks arrive, in Squeak

I am trying to download files to disk from squeak. My method worked fine for small text/html files, but due to lack of buffering, it was very slow for the large binary…
pii_ke
  • 2,811
  • 2
  • 20
  • 30
1
vote
2 answers

Squeak 5.1 and Seaside Control Panel

I am getting a DNU error when clicking the 'browse' button on the Seaside Control Panel. To reproduce: Top menu->Apps->Seaside Control Panel -> Browse -> throws a Dictionary DNU #collectWithIndex: The Debugger shows its occurring in the…
gettimothy
  • 19
  • 1
  • 4
1
vote
1 answer

where can I find smalltalk japanese language support package

Friend, I am looking for a japanese language support package for squeak4.1. Can you give some hint on the topics? thanks first!
parsifal
  • 879
  • 4
  • 12
  • 21
1
vote
1 answer

Overriding subclass method in squeak

I need to make a new subclass method to a new classs that i created who got 2 class instance varribles : isInterface and behavesLike. i need to make a subclass method that gets this parameters as well and creates a new sub class with thos…
1
vote
1 answer

" Nothing more expected -> " when running "do it" in Squeak

I'm trying to run some command split on several lines from the Workspace in Squeak 5.1 When it's on one line, like below, it works fine: Perroquet new nom: 'Polly' ; vocabulaire: 'Screatch! Go away'; vocabulaire: 'give me food'; parle. However, if…
Jonath P
  • 519
  • 5
  • 16
1
vote
2 answers

Squeak Smalltalk -"Print specific integers" Error message, how to improve and why?

what I want is: From integers 1 to 130, I want to print some specific integers already given in an array. They are: 2 32 44 67 89 111 123 which are stored in small-to-big order. Here's my codes: |a n myArray| myArray := #(2 32 44 67 89 111 123).…
1
vote
3 answers

Squeak Smalltalk- How to make to "Transcript show" print more things?

I am using Smalltalk to type in Transcript window a 1-9 multiplication table . Here is my code: 1 to: 9 do: [:i| 1 to: i do: [:j| Transcript show: j. Transcript show: ' * '. Transcript show: i. Transcript show: '…