Strongtalk

Comments Off on Strongtalk

A blast from the past!

Strongtalk is a now-obsolete object-oriented programming language developed by Sun Microsystems (later acquired by Oracle) in the early 1990s. It was designed to be a more efficient and scalable alternative to C++.

Here’s the “Hello World!” program in Strongtalk:

class HelloWorld {
    method main() {
        print("Hello, World!");
    }
};

Let me explain what’s going on:

  • class defines a new class, which is a user-defined data type.
  • HelloWorld is the name of our class.
  • The method keyword defines a method (a function) inside the class.
  • main() is the entry point of our program. In Strongtalk, the main method doesn’t take any arguments and returns no value.
  • print("Hello, World!"); uses the built-in print() function to output the string “Hello, World!”.

To compile and run this code, you would need a Strongtalk compiler, such as the one provided by Sun Microsystems during the language’s active development period. Unfortunately, no official compilers or interpreters are available for download today, so I won’t be able to provide instructions on how to compile and run this code.

Prompt

Negative prompt

Text model: llama3

Image model: CHEYENNE