Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can Flask (Python) be ported to Lua?

Is there anything Flask (the Python webframework) does that Lua as a language doesn't support?

I'd like to re-implement Flask, which is developed in Python, over to Lua to create a new Lua webframework similar to Flask. But before I attempt to create a new Lua webframework, based on Flask as a reference, I'd like to know from the start if certain features Flask provides won't transition over to Lua because of the differences between Python and Lua.

like image 674
nickb Avatar asked Apr 14 '26 14:04

nickb


1 Answers

I can't think of any language features you'd be missing in Lua that may prevent you from implementing something similar to Flask.

I'm sure you checked this already, but just in case: there are several webframeworks already available for Lua, some under active development (and some haven't been updated for a while):

  • Orbit
  • Flea
  • Lapis (Lua and Moonscript)
  • Tir
  • LuaMVC
  • Webylene
  • Mercury
like image 66
Paul Kulchenko Avatar answered Apr 17 '26 05:04

Paul Kulchenko



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!