Sign inSign up

100hellos/fennel

By 100hellos

•Updated 4 months ago

"Hello World!" Written in fennel

Image
0

3.4K

100hellos/fennel repository overview

⁠Hello World! From fennel.

Language page⁠ — context, influences, and learning notes on the 100hellos site.

Source on GitHub⁠ (100hellos/fennel)

⁠Trying it

docker run --rm --platform="linux/amd64" 100hellos/fennel:latest

⁠Modifying it

Read the repo README⁠, or fork the project⁠ and customize it.

For an interactive shell:

docker run --rm --platform="linux/amd64" --entrypoint="" -it 100hellos/fennel:latest zsh

⁠Fennel

Fennel is a programming language that brings together the simplicity and elegance of Lisp with the ubiquity and performance of Lua. It's a Lisp that compiles to Lua, giving you the expressive power of parentheses with the practicality of one of the most embedded scripting languages in the world.

⁠What makes Fennel special?

šŸŒ™ Lua's Little Lisp: Fennel compiles down to readable Lua code, making it perfect for game development, embedded scripting, and anywhere Lua is used.

šŸš€ Zero-cost abstractions: All Fennel code compiles to efficient Lua with no runtime overhead.

šŸŽÆ Gradual adoption: You can use Fennel alongside existing Lua code, making migration painless.

⚔ Macros that matter: Real Lisp macros let you extend the language itself, not just write functions.

⁠Fun Facts

  • Fennel was created by Phil Hagelberg (technomancy), who also created Leiningen for Clojure
  • The name "Fennel" comes from the herb, continuing the botanical theme of many Lisp dialects
  • It's used in the Lua ecosystem where people want Lisp's power but Lua's reach
  • You can write entire game scripts in Fennel and compile them to vanilla Lua

Fennel proves that sometimes the best way forward is to go back to the elegant fundamentals of Lisp while embracing the practical world of modern runtime environments.

;; Simple and beautiful
(print "Hello World!")

Tag summary

Content type

Image

Digest

sha256:4a76dae76…

Size

35.2 MB

Last updated

4 months ago

docker pull 100hellos/fennel