SmallTalk 알아보기
객채지향 언어를 이야기 할 때 빠지지 않고 등장하는 것이 언어 SmallTalk 입니다.
GNU의 GNU SmallTalk User's Guide를 참조해서 SmallTalk의 특징을 살펴보면 다음과 같습니다.
https://www.gnu.org/software/smalltalk/manual/html_node/
GNU Smalltalk User’s Guide: Top
This document describes installing and operating the GNU Smalltalk programming environment. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version publis
www.gnu.org
"smallTalk 언어에서는 모든 것이 객체입니다. 숫자나 데이터 구조뿐만 아니라 클래스, 메서드, 메서드 안의 코드블록, 스텍 프레임 등이 포함됩니다..." -GNU SmallTalk User's Guide Overview-
철저한 객체 지향적 코드를 준수하기 위하여 구현할 수 있는 최대한의 요소를 객체로써 다루도록 설계한 언어입니다.
Github와 GNU에 오픈소스로써 gnu SmallTalk를 이용할 수 있으나, 윈도우 환경에서 빠르게 가동할 수 있는
Pharo를 통해서 순수한 Object로 구현된 smallTalk 방식의 언어를 실습해보도록 하겠습니다.
Pharo, smallTalk에 영향을 받은 객채 지향적 언어
Pharo - Welcome to Pharo!
The immersive programming experience Pharo is a pure object-oriented programming language and a powerful environment, focused on simplicity and immediate feedback (think IDE and OS rolled into one). It is open source and available for Mac, Windows and Linu
pharo.org
Pharo는 Pharo 언어의 장점을 다음과 같이 표현하고 있습니다.
"Simple & powerful language: No constructors, no types declaration, no interfaces, no primitive types. Yet a powerful and elegant language with a full syntax fitting in one postcard! Pharo is objects and messages all the way down."
기존의 복잡한 Contructor, Type선언, Interface, 기본형 등을 모두 없에고 객체와 메시지만을 남겼다고 합니다.
https://www.youtube.com/watch?v=WLoXXFxU8lw
유튜브에는 Pharo를 통해서 SmallTalk 형식의 Object를 구현해 볼 수 있는 간단한 튜토리얼이 있습니다.
다음 글에서는 Pharo를 이용한 Object 구현 튜토리얼을 직접 실습해보도록 하겠습니다.
'정보게시판 > 웹' 카테고리의 다른 글
네트워크 통신의 포트(Port) (1) | 2022.06.26 |
---|---|
Apple WWDC 개발자 컨퍼런스 소개 (0) | 2022.06.26 |
테스트를 위한 더미 파일 생성하기 (0) | 2022.06.18 |
Base64 인코딩 방법 (0) | 2022.06.14 |
Redis, 인메모리 데이터베이스(In-Memory Database) (0) | 2022.06.13 |