Pocketlang - a small, fast, functional language written in C and syntactically similar to Ruby

Pocketlang is a small (~3000 semicolons) and fast functional language written in C. It’s syntactically similar to Ruby and it can be learned within 15 minutes. Including the compiler, bytecode VM and runtime, it’s a standalone executable with zero external dependencies just as it’s self descriptive name. The pocketlang VM can be embedded in another hosting program very easily.

The language is written using Wren Language and their wonderful book Crafting Interpreters as a reference.

Read in full here:

This thread was posted by one of our members via one of our news source trackers.

2 Likes

Corresponding tweet for this thread:

Share link for this tweet.

1 Like

Looks interesting! :smiley:

2 Likes

It looks nice, but really not similar to Ruby. All of the nice features of Ruby is missing. The postfixed conditionals. The enumerable and enumerator classes.

The Ruby benchmarks is also clearly written by someone who hasn’t coded Ruby before.

3 Likes

If you were wanting something similar to Ruby, why not just go with Crystal?

Considering that I have never used either Ruby or Crystal, I’m not sure what the +/- are… :man_shrugging:

3 Likes

PocketLang is a small, fast and friendly language for scripting and embedding. #

With mixed syntax of ruby and python, that can be learned in less than an hour, and it’s easy to embed into another application for scripting.
Pocketlag Docs

Perhaps it will be convenient in its time and a right place.

2 Likes

Crystal isn’t an embeddable scripting language from what I’ve seen though?

1 Like