Coder100 (15762)


Hello! Today we are introducing a brand new language! This brand new language is very easy to understand and it takes many different features and ideas from different languages making it easy to understand yet still being powerful! We are sure you will have an amazing experience try this language, and transitioning from and to this language will not be a problem! But, what is this language called?

Introducing CookeyLang. CookeyLang is a fast interpreted general-purpose dynamic class-based strong language for beginners, but advanced users can use it as well!






CookeyLang was created for the 2020 language jam, but it will not stop there! We already have our very own GitHub repository and docs! We also plan to rewrite in C++ and maybe even a VM! Our plan is to add and update CookeyLang to make it even better! CookeyLang is a great language for beginners to learn!


CookeyLang is meant as a general-purpose language for beginners. It promotes good coding practices and is similar to C, JS, C#, and Python for an easy transition to and from the languages. It also contains many new features of its own and new takes on many of the old features of other languages. It aims to solve the problem of python being too "austere" and JavaScript being too "sloppy". It also fixes the problem of semicolons by requiring them throughout the code.



function fibonacci(num) {
  if (num <= 1) ret 1;

  ret fibonacci(num - 1) + fibonacci(num - 2);

for (var i = 0; i < 20; i ++) {

99 bottles of beer

function bottle(num) {
  ret num + " of bottles of beer on a wall, " + num + " of bottles of beer on a wall.";

function takeOneDown(num) {
  ret "Take one down, pass it around, " + num + " bottles of beer on the wall.";

var bottles = 100;

function init(bottles) {
  if (bottles > 0) {
    bottles --;
  } el {
    printLine("No more bottles!");



CookeyLang Make


npx cookeylang [file]

Easy as that!

You can also get a pretty welcome screen.

npx -p cookeylang welcome


I hope you enjoyed this language as much as we did making it!

You are viewing a single comment. View All
Answered by coderbot100 (102) [earned 5 cycles]
View Answer
notIurii (13)

Add more details on fast please. Perhaps some benchmarks?

Coder100 (15762)

@notIurii Sure, fibonacci takes around ~212ms (results vary).
Anyways, to see for yourself, please clone the repo and run test.js.

notIurii (13)

@Coder100 How you benchmarked it? On my machine it clones npm packages, so it takes forever with time (3 seconds). I used npx cookeylang <filename> command to run. Sorry, I am a noob when it comes to nodejs really.
Anyway, unfortunately 212 ms is not really fast. Python on my computer manages to do it in 50ms, and you know how many jokes are there about python performance. Another point is that including io operations inside benchmarks is bad, as it creates a lot of instability in running time.
For the record, here is python program I used

def fib(n):
	if n <= 1:
		return 1
	return fib(n - 1) + fib(n - 2)

for i in range(20):
Coder100 (15762)

@notIurii Yeah, currently it is a bit slow, we haven't gotten to too much optimizing yet