DEV Community

Cover image for Myco: the language born of things I love and things I don’t
Ivy
Ivy

Posted on

Myco: the language born of things I love and things I don’t

🌱 Myco: a language grown from what I love (and don’t)

When your favorite parts of programming languages clash with the bits you can’t stand, you either put up with it… or you grow something new. I chose the latter.

What Myco is

“I hated something about every single language I’ve used, so I took my favorite bits from each and mashed them together.”

Ivy Mycelia, announcing Myco

Myco is:

  • Lightweight & portable — runs on Windows, macOS, Linux without heavy deps.
  • Readable — clean syntax for quick learning and long-term sanity.
  • Efficient — minimal, memory-aware C implementation.
  • Flexible — gentle for beginners, sharp enough for advanced use.

A glimpse of Myco

func factorial(n: int): int:
    if n <= 1:
        return 1;
    end
    return n * factorial(n - 1);
end

let result = factorial(5);
print("Factorial of 5 is:", result);

for i in 1:10:
    if i % 2 == 0:
        print("Even:", i);
    else:
        print("Odd:", i);
    end
end
Enter fullscreen mode Exit fullscreen mode

Readable. Minimal. To the point.


Why not just use X language?

Some are too verbose. Some too specific. Others too confusing.
Myco takes what I liked (Lua’s simplicity, shell’s clarity) and leaves behind the rest. No cryptic macros, no gimmicks, just intent-driven code.


The forest as it grows

Open-source — peek at the C code any time.

Expanding — many new features are sprouting.

Improving — clearer errors, richer standard library, better docs.


Come wander

Curious?
🌐 GitHub:

🍄 Myco Language

A whimsical, mystical programming language rooted deep in the forest floor.
🌿 Think C meets Lua — but with mushrooms.

Discord: https://discord.gg/CR8xcKb3zM


🌟 What is Myco?

Myco is a lightweight, expressive scripting language designed for simplicity, readability, and just a touch of magic. Inspired by every aspect of other languages I hate and my weird obsession with Fungi, Myco is built to be both intuitive and powerful for small scripts or full programs. I did not use AI to code this project, I do not like using AI for my work as it is buggy and does not give me good results.


🍃 Features

  • 🌙 Clean, readable syntax
  • 🔮 Dynamic typing with let
  • 🍂 Functions, control flow, and loops
  • 🌲 List and map support soon lol
  • 🧪 Try-catch error handling
  • 🧙 Mystical and themed syntax highlighting with the Myco VS Code Extension

🔧 Example

let name =

If you’re into language design, parser quirks, or just want a gentler scripting language, Myco might feel like home.

I’ll be around in the comments; ask me anything. :>

Top comments (0)