blog | ~pranav

a blog about ~pranav

Promote Lua instead of Python for beginners

March 12, 2022 — ~pranav

Python is a mess; check https://imgs.xkcd.com/comics/python_environment.png

I think this one speaks volumes. And there's more I'd like to say about lua: - It's actually faster than Python - It lets you know where your indented block ends Think about this: python # Python code def foo(): return "bar" lua -- Lua code function foo(): return "bar" end If you happen to copy a huge snippet of Python and paste it somewhere that somehow loses indentation on pasting, you're left with a bunch of garbage to clean. Not the case with Lua. Just try it. - You can embed Lua almost anywhere; I have seen solutions for c/c++, go, rust; there maybe some for python as well, but bet you they won't be as lightweight - Lua has less keywords than python (22 for Lua 5.2 vs 33 for Python 3.7)

More facts coming soon! You may mail me your thoughts on it.

Tags: lua, python