ktango (13)


Pebble has been described (by one of us) as an arcane amalgamation of Python and JavaScript. We hope that's not true (but we'll buy ourselves commemorative mugs if it actually is).

Pebble is intended to be an intuitive, English-friendly, high-level language. Our goal was to balance simplicity with expressive power; to make a language that is easy to pick up the basics in, but which offers a surprisingly rich environment for the advanced user.

We actually created our own programming paradigm to run our language and have tailored our syntax to be consistent with it. Code-named the "call-binding paradigm", this paradigm is robust enough to mimic both object-oriented and functional programming paradigms, and the exact feel can be seasoned to taste by the programmer themselves. We find it cool because in it, classes are methods are objects are classes (check out the demo for details)… also types are first-class citizens.

We also re-imagine other features of what a language should be. We take a novel approach to designing a type system for which we're currently in the process of writing a compile-time checker; we rethink what a null construct should look like and we avoid that-scary-cool-doodad (you know, a monad) when we talk about it; and we reshape code into a more human, conversational flow.

But, enough of these high level, broad characterizations. If you're interested, take a look at the interactive demo. We encourage you to read everything because it nicely explains what's really happening.


Pretty much all code inside Pebble is built in-house. We wrote our own custom grammar-format, tokenizer, lexer, parser, interpreter, bytecode runtime, and demo-izer (not to be mistaken for the demonizer).

The code is all open source and can be found here


So there's an interactive demo that takes you through the quirks and peculiarities of Pebble. You can view it by running the embedded repl, though you may prefer to run it in a separate tab so you can resize the window and enjoy more real estate. Here is a link to the full repl.


Pebble has been built by these lovely folks.


and me,


We're new, don't know what we're doing, and having a blast.

You are viewing a single comment. View All
redsox2 (13)

@ktango What is the file called 'pebble' contain. All I see are a bunch of question mark like characters as well as a few others. There are 58305 lines in the file, so you couldn't have written that either, so what is it?

ktango (13)

@redsox2 this is the binary file which results from compiling the entire Pebble codebase. It's essentially the machine code that runs the entire language. It's also OS dependent so I don't recommend copying it and running it on Windows as it's built for Linux and won't work. Here's a link to where you can download a prebuilt Windows binary to play around with. It hasn't been digitally signed with a cert so you can expect to see Windows throw a fit if you try and run it.

I highly recommend building it yourself, but the binary will work as well. Enjoy :)

P.S. Thanks for all the kind feedback

redsox2 (13)

@ktango Can you at least describe in more detail how to build it myself then? The VSCode thing didn’t make much sense. As I said, I am not a inclined at navigating the windows system. Can you please help? Besides the windows file says 32. Does that mean 32bit? Mine is 64, so it might not work.

redsox2 (13)

@ktango I'm pretty sure I can build it now. That article helped, however there is one thing I am still stumped on. What does the README file mean when it says "Clone the pebble repo"?

redsox2 (13)

@ktango Actually, I think that the same thing that happened to @syc1 happened to me.

redsox2 (13)

@ktango I am still very confused. I guess that means I am very amateur. I am just going to root for you guys to win so I can use your language on Else, I will wait for you guys to update your Github. Either way, you guys will be my favorite. Good luck!!

ktango (13)

@redsox2 thanks for the all the support! It really means a lot to all of use that our language is actually useful to REAL people. We're currently working on ways to make getting access to Pebble easier (because we want everyone to try it!). In the mean time, you could always fork the repo to get access to Pebble through replit.

redsox2 (13)

@ktango Yeah, I think I have done that. But it always has to go through the demo and stuff. How do I disable that?

ktango (13)

@redsox2 so in the root directory of the repl you should find a file called .replit. Open it up--its like two lines. The second line will read run = "rm ./pebble; make; ./pebble --demo".

Change this to run = "rm ./pebble; make; ./pebble" and you can skip right to running theprogram.pebl` file.

redsox2 (13)

@ktango I figured out how to use the prebuilt binary, I was being rather stupid before. I have been doing some C++ stuff and and learnt a bit, so now I can use the prebuilt one. However, I kind of want to prove to myself that I can build it. In VSCode, you have to have a C++ file open to build, you can't run a command to build it (at least I am pretty sure you can't). Do you know which file I should have open?