# ALOE = Scheme + Smalltalk + Types

**URL:** <https://racket.discourse.group/t/aloe-scheme-smalltalk-types/4367>\
**Category:** Show & Tell\
**Created:** [September 2, 2026, 5:51pm UTC](https://racket.discourse.group/t/aloe-scheme-smalltalk-types/4367 "2026-09-02T17:51:20Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![dharmatech](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/dharmatech/32/1996_2.png) [@dharmatech](https://racket.discourse.group/u/dharmatech)\
**Post date:** [September 2, 2026, 5:51pm UTC](https://racket.discourse.group/t/aloe-scheme-smalltalk-types/4367/1 "2026-09-02T17:51:20Z")

</div>

Hey y'all 🙋‍♂️

In Scheme, we have:

```
(proc arg ...)

```

In ALOE, it's:

```
(obj msg arg ...)

```

It's an experiment in making everything about calling methods on objects instead of applying functions. And throwing types in the mix too.

Small interpreter in 2000 lines of Racket:

> **[GitHub - dharmatech/2026-09-02-aloe-racket](https://github.com/dharmatech/2026-09-02-aloe-racket)**
>
> Contribute to dharmatech/2026-09-02-aloe-racket development by creating an account on GitHub.

It doesn't even have strings yet!  
But it can simulate a flock of 3 boids:

> <https://github.com/dharmatech/2026-09-02-aloe-racket/blob/main/examples/boids.aloe>

Spec:

> <https://github.com/dharmatech/2026-09-02-aloe-racket/blob/main/SPEC.md>

Ed

---

<div class="post-metadata">

**Author:** ![hendrikboom3](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/hendrikboom3/32/2748_2.png) [@hendrikboom3](https://racket.discourse.group/u/hendrikboom3)\
**Post date:** [September 2, 2026, 6:20pm UTC](https://racket.discourse.group/t/aloe-scheme-smalltalk-types/4367/2 "2026-09-02T18:20:21Z")

</div>

Isn't that what Java did already? what is being tested in this experiment?

---

<div class="post-metadata">

**Author:** ![spdegabrielle](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/spdegabrielle/32/95_2.png) [@spdegabrielle](https://racket.discourse.group/u/spdegabrielle)\
**Post date:** [September 3, 2026, 9:44am UTC](https://racket.discourse.group/t/aloe-scheme-smalltalk-types/4367/3 "2026-09-03T09:44:37Z")

</div>

Hi Ed,

This is really cool.

It makes me think of another experiment: [Purely-functional Object-Oriented System](https://okmij.org/ftp/Scheme/#pure-oo)

Thanks for sharing

Stephen

---

<div class="post-metadata">

**Author:** ![dharmatech](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/dharmatech/32/1996_2.png) [@dharmatech](https://racket.discourse.group/u/dharmatech)\
**Post date:** [September 3, 2026, 3:04pm UTC](https://racket.discourse.group/t/aloe-scheme-smalltalk-types/4367/4 "2026-09-03T15:04:30Z")

</div>

Hey @spdegabrielle 🙋‍♂️

Thanks for checking it out!

Yes, experimenting with the various object systems grown in Scheme has influenced ALOE.

---

<div class="post-metadata">

**Author:** ![dharmatech](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/dharmatech/32/1996_2.png) [@dharmatech](https://racket.discourse.group/u/dharmatech)\
**Post date:** [September 4, 2026, 6:17pm UTC](https://racket.discourse.group/t/aloe-scheme-smalltalk-types/4367/5 "2026-09-04T18:17:15Z")

</div>

OK, ALOE 0.2 is out.

For this release, the aim was to implement a basic computer algebra simplifier.

To implement that, I needed two things added to the ALOE core language:

- Protocols (class interfaces)
- Method overloading

Core language is around 2600 lines of Racket.

> <https://github.com/dharmatech/2026-09-02-aloe-racket/blob/main/docs/journal/2026-09-04-v0.2.md>

---

<div class="post-metadata">

**Author:** ![dharmatech](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/dharmatech/32/1996_2.png) [@dharmatech](https://racket.discourse.group/u/dharmatech)\
**Post date:** [September 18, 2026, 10:19am UTC](https://racket.discourse.group/t/aloe-scheme-smalltalk-types/4367/6 "2026-09-18T10:19:23Z")

</div>

In ALOE, since we have

```scheme
(obj method arg ...)

```

and we have type inference, we can get code completion for methods after typing an object expression.

Here's a video demo of this using vscode:

[![](https://global.discourse-cdn.com/free1/uploads/racket/original/2X/a/a1a7945f5fff356835f1411924cac2f8fbe20167.jpeg "ALOE : code completion") ](https://www.youtube.com/watch?v=YuIjug7elPY)

We're getting this via LSP support in ALOE.

---

<div class="post-metadata">

**Author:** ![dharmatech](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/dharmatech/32/1996_2.png) [@dharmatech](https://racket.discourse.group/u/dharmatech)\
**Post date:** [October 9, 2026, 7:51pm UTC](https://racket.discourse.group/t/aloe-scheme-smalltalk-types/4367/7 "2026-10-09T19:51:51Z")

</div>

I've been messing around with aloemacs, an emacs-like editor written in ALOE:

 ![image](https://global.discourse-cdn.com/free1/uploads/racket/original/2X/9/95bbb46b01fa861d189dffbf2d67f881033886f4.jpeg)

It's extremely rudimentary right now.  
Mostly serving as an exploration of the ALOE language.  
Not currently intended for regular use.

Currently around 2632 lines of ALOE.

Source:

> **[2026-09-02-aloe-racket/examples/aloemacs at main ·...](https://github.com/dharmatech/2026-09-02-aloe-racket/tree/main/examples/aloemacs)**
>
> main/examples/aloemacs

Besides GNU Emacs, a lot of design influence came from E, an emacs-like written in Chez Scheme:

> **[GitHub - paveluv/e: A tiny, fully customizable, self-aware, Emacs-like...](https://github.com/paveluv/e)**
>
> A tiny, fully customizable, self-aware, Emacs-like editor written in Chez Scheme.

As well as legmacs, an emacs-like written in a dialect of clojure:

> **[GitHub - nooga/legmacs: A small terminal text editor written in and...](https://github.com/nooga/legmacs)**
>
> A small terminal text editor written in and scriptable with let-go, a Clojure-dialect Lisp

---

<div class="post-metadata">

**Author:** ![bakgatviooldoos](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/bakgatviooldoos/32/1381_2.png) [@bakgatviooldoos](https://racket.discourse.group/u/bakgatviooldoos)\
**Post date:** [October 10, 2026, 8:35pm UTC](https://racket.discourse.group/t/aloe-scheme-smalltalk-types/4367/8 "2026-10-10T20:35:27Z")

</div>

Hi, @dharmatech.

This looks so clean!

I notice in your recording that `(List empty)` is a constructor for an empty list, but then later on you use `(Point new ...)`.

You explain that the syntax is `(obj method arg ...)`, which implies that the classes/types are objects--I am guessing--but is there an underlying construct for, you know, constructing things, that gets wrapped in these specialized methods?

The editor looks pretty cool, too, well done. What font are you using, by the way?

---

<div class="post-metadata">

**Author:** ![dharmatech](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/dharmatech/32/1996_2.png) [@dharmatech](https://racket.discourse.group/u/dharmatech)\
**Post date:** [October 10, 2026, 11:22pm UTC](https://racket.discourse.group/t/aloe-scheme-smalltalk-types/4367/9 "2026-10-10T23:22:13Z")

</div>

> [@bakgatviooldoos](#):
>
> This looks so clean!

Thanks for checking it out @bakgatviooldoos 🙋‍♂️

---

<div class="post-metadata">

**Author:** ![dharmatech](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/dharmatech/32/1996_2.png) [@dharmatech](https://racket.discourse.group/u/dharmatech)\
**Post date:** [October 10, 2026, 11:32pm UTC](https://racket.discourse.group/t/aloe-scheme-smalltalk-types/4367/10 "2026-10-10T23:32:14Z")

</div>

> [@bakgatviooldoos](#):
>
> The editor looks pretty cool, too, well done. What font are you using, by the way?

In that screenshot, aloemacs is running in a terminal window on Ubuntu 26.04.1.

I'm using the default terminal that comes with Ubuntu.  
(I believe the terminal is `ptyxis`).

I believe the default fixed width font is Ubuntu Monospace:

[https://design.ubuntu.com/font](https://design.ubuntu.com/font)

---

<div class="post-metadata">

**Author:** ![bakgatviooldoos](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/bakgatviooldoos/32/1381_2.png) [@bakgatviooldoos](https://racket.discourse.group/u/bakgatviooldoos)\
**Post date:** [October 10, 2026, 11:58pm UTC](https://racket.discourse.group/t/aloe-scheme-smalltalk-types/4367/11 "2026-10-10T23:58:58Z")

</div>

@dharmatech, do you explain somewhere in the repo where the name comes from? I skimmed it, but I didn't see anything obvious. I have kind of a hermeneutic bent, so I always find such things very interesting.

---

<div class="post-metadata">

**Author:** ![dharmatech](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/dharmatech/32/1996_2.png) [@dharmatech](https://racket.discourse.group/u/dharmatech)\
**Post date:** [October 11, 2026, 12:08am UTC](https://racket.discourse.group/t/aloe-scheme-smalltalk-types/4367/12 "2026-10-11T00:08:31Z")

</div>

> [@bakgatviooldoos](#):
>
> I notice in your recording that `(List empty)` is a constructor for an empty list, but then later on you use `(Point new ...)`.

If you use `define-class` with `fields`, you get one constructor, named `new`.

```scheme
dharmatech@X1E:~/journal/2026-09-02-aloe-racket$ rlwrap ./bin/aloe 
aloe> (define-class Pt (fields (x Int) (y Int)) (methods))
aloe> Pt
#<class Pt>
aloe> (Pt new 10 20)
#<Pt 10 20>

```

But instead of `fields`, you can list the constructors yourself:

```scheme
(define-class Shape
  (constructors
    (Circle (fields (radius Float)))
    (Rect (fields (width Float) (height Float))))
  (methods
    (area () Float
      (self case
        (Circle (r) (3.14159 * (r * r)))
        (Rect (w h) (w * h))))))

```

Then you can do:

```scheme
aloe> (Shape Circle 1.0)
#<Shape 1.0>
aloe> (Shape Rect 3.0 4.0)
#<Shape 3.0 4.0>
aloe> ((Shape Circle 1.0) area)
3.14159
aloe> ((Shape Rect 3.0 4.0) area)
12.0

```

`List empty` and `List of` are built-ins. Right now, `List` is sort of a primitive.

---

<div class="post-metadata">

**Author:** ![bakgatviooldoos](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/bakgatviooldoos/32/1381_2.png) [@bakgatviooldoos](https://racket.discourse.group/u/bakgatviooldoos)\
**Post date:** [October 11, 2026, 12:15am UTC](https://racket.discourse.group/t/aloe-scheme-smalltalk-types/4367/13 "2026-10-11T00:15:14Z")

</div>

That's cool, reminds me of Haskell (because this is my only experience with something similar). Seems like a nice way to address the expression-problem, to some degree.

---

<div class="post-metadata">

**Author:** ![dharmatech](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/dharmatech/32/1996_2.png) [@dharmatech](https://racket.discourse.group/u/dharmatech)\
**Post date:** [October 11, 2026, 12:36am UTC](https://racket.discourse.group/t/aloe-scheme-smalltalk-types/4367/14 "2026-10-11T00:36:55Z")

</div>

> [@bakgatviooldoos](#):
>
> @dharmatech, do you explain somewhere in the repo where the name comes from? I skimmed it, but I didn't see anything obvious. I have kind of a hermeneutic bent, so I always find such things very interesting.

I have a bunch of earlier prototypes of the language.  
Somewhere along the way I think I had an acronym like:

```scheme
Associative Language of Objects and Environments

```

I almost called it:

```scheme
CARL (Contextual Associative Receiver Language, a nod to Carl Hewitt)

```

There's no official acronym right now. 😁

---

<div class="post-metadata">

**Author:** ![bakgatviooldoos](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/bakgatviooldoos/32/1381_2.png) [@bakgatviooldoos](https://racket.discourse.group/u/bakgatviooldoos)\
**Post date:** [October 11, 2026, 12:45am UTC](https://racket.discourse.group/t/aloe-scheme-smalltalk-types/4367/15 "2026-10-11T00:45:51Z")

</div>

TIL about Carl Hewitt. Go figure, a big inspiration for Prolog, coming via Micro-Planner.

> Planner has been described as "extremely ambitious".

😆

---

<div class="post-metadata">

**Author:** ![dharmatech](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/dharmatech/32/1996_2.png) [@dharmatech](https://racket.discourse.group/u/dharmatech)\
**Post date:** [October 11, 2026, 12:49am UTC](https://racket.discourse.group/t/aloe-scheme-smalltalk-types/4367/16 "2026-10-11T00:49:27Z")

</div>

> [@bakgatviooldoos](#):
>
> @dharmatech, do you explain somewhere in the repo where the name comes from? I skimmed it, but I didn't see anything obvious. I have kind of a hermeneutic bent, so I always find such things very interesting.

Guy Steele talked about "growing a language":

[![](https://global.discourse-cdn.com/free1/uploads/racket/original/2X/a/ac16162b59b284a0a814163f1dcbd142a8e23f05.jpeg "OOPSLA Conference: Growing a Language") ](https://www.youtube.com/watch?v=lw6TaiXzHAE)

So there's that influence as well; growing aloe vera plants.

---

<div class="post-metadata">

**Author:** ![dharmatech](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/dharmatech/32/1996_2.png) [@dharmatech](https://racket.discourse.group/u/dharmatech)\
**Post date:** [October 11, 2026, 6:16pm UTC](https://racket.discourse.group/t/aloe-scheme-smalltalk-types/4367/17 "2026-10-11T18:16:43Z")

</div>

By the way,  
aloemacs is using the excellent `tui/term` package by @dominik.pantucek :

> **[tui-term](https://codeberg.org/racketeer/tui-term.git)**
>
> A Racket package for low-level terminal access on all major desktop operating systems.

Thank you Dominik!

---

<div class="post-metadata">

**Author:** ![dharmatech](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/dharmatech/32/1996_2.png) [@dharmatech](https://racket.discourse.group/u/dharmatech)\
**Post date:** [October 22, 2026, 11:13am UTC](https://racket.discourse.group/t/aloe-scheme-smalltalk-types/4367/18 "2026-10-22T11:13:57Z")

</div>

If you're at all interested in the space that ALOE is exploring,  
I highly encourage you to look at the Niva language that I discovered recently:

> **[GitHub - gavr123456789/Niva: Smalltalk like programming language](https://github.com/gavr123456789/Niva)**
>
> Smalltalk like programming language

ALOE says, "let's start with Scheme, move it towards smalltalk and add static types".

Niva says "Let's just with a Smalltalk like language and then add static types".

Niva feels VERY close to ALOE, but without the parenthesis  
(since it uses unary, binary and keyword messages from Smalltalk).
