Live data from Hacker News

The Janet Language

janet-lang.org

1–10 of 203 posts

Re: The Janet Language

#3
this is really cool. I love how small it is. with the Windows package for example, you actually only need "janet.exe", which is only 791 KB.

Re: The Janet Language

#8
post #7

Janet is really powerful. Here's a small TUI text editor I'm writing in it, if you want to see a non-trivial example: https://www.github.com/CFiggers/joule-editor

Thought the link was broke but GH looks broken now?

Edit: Back up now

Re: The Janet Language

#9
Oh hey! Nice to see this on the front page here. I love Janet -- I've been using it for about year and a half, and it's now my go-to scripting language when I need something more powerful than bash, or when I want to hack on goofy little side project (some examples in my profile).

Parsing expression grammars (think, like, declarative parser combinators?) are a really great feature for ad-hoc text parsing -- and nicer than regular expressions, in my opinion, for anything longer than about ten characters.

The language itself is also a great introductory language-with-lots-of-parentheses, so you can explore compile-time metaprogramming with familiar runtime semantics -- think JavaScript plus value types minus all the wats. The embeddability and easy distribution (compiles to a static binary on any platform) is a huge plus as well.

Honestly I like Janet so much that I'm writing a book about it, because I think it's a shame that the language isn't more well-known. It's great! You should check it out right now!

Re: The Janet Language

#10
post #4

Syntax looks a whole lot like Clojure. I immediately appreciate the optional immutability built in too.

Make a note though that the immutable counterparts are not persistent, as the Clojure ones are.
Post reply on HN