TypeScriptToLua VS lua-languages

Compare TypeScriptToLua vs lua-languages and see what are their differences.

TypeScriptToLua

Typescript to lua transpiler. https://typescripttolua.github.io/ (by TypeScriptToLua)
SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
surveyjs.io
featured
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
TypeScriptToLua lua-languages
10 13
1,968 560
1.4% -
8.3 3.9
about 1 month ago 21 days ago
TypeScript
MIT License Mozilla Public License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

TypeScriptToLua

Posts with mentions or reviews of TypeScriptToLua. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-11-12.
  • Lang Lua
    8 projects | news.ycombinator.com | 12 Nov 2022
    I've had some success with https://github.com/TypeScriptToLua/TypeScriptToLua

    Luau may be an alternative as well, haven't tried it.

    I love Lua, but at larger scales it's unmanageable.

  • Are there any 3rd party libraries which enables us to write nvim plugins?
    7 projects | /r/neovim | 3 Oct 2022
    There are some plugins (typescript.nvim) that use a Typescript to lua transpiler (TypescriptToLua]
  • Since my driver video was well received last time, here is another: Building an SD Card driver from scratch
    1 project | /r/javascript | 8 Feb 2022
    54:28 reminded me of TypeScriptToLua, so if you wanted to, then you could turn this into Lua :^)
  • Window.js is an open-source JavaScript runtime for desktop graphics programming
    9 projects | news.ycombinator.com | 10 Jan 2022
    One immediate comparison that springs to my mind is the Löve 2D engine [1], which is a tiny game engine written entirely around Lua scripting (so that Lua includes the full game run loop as well).

    Lua is a good scripting language, but it doesn't have the ubiquity of JS (and Löve doesn't have the ubiquitous deployment of the modern browser). Also, Lua doesn't have a static type ecosystem (though there are interesting projects like TypescriptToLua [2] exploring that space, but you can from the name they are following/lagging the JS ecosystem here).

    There probably is a need to package more browser games as "real" games and a lightweight Canvas-focused approach could find a nice like Löve, especially if it were easier, for instance, to maybe port to consoles for small/indie game teams than one of the web views or Electron. (Though certainly Microsoft already has a version of WebView2 running on the Xbox.)

    [1] https://love2d.org/

    [2] https://github.com/TypeScriptToLua/TypeScriptToLua

  • Your favorite mod just added something you've wanted for years. What is it?
    5 projects | /r/feedthebeast | 9 Jan 2022
    Not part of the mods, but using https://github.com/TypeScriptToLua/TypeScriptToLua is quite easy and works surprisingly well. You can find some of the type definitions for computercraft here: https://github.com/Eforen/cc-tweaked-types/tree/master/declarations
  • TypeScript to Lua Transpiler
    2 projects | news.ycombinator.com | 17 Aug 2021
  • LÖVR – An open source framework for rapidly building immersive 3D experiences
    11 projects | news.ycombinator.com | 5 Aug 2021
  • Neovim v0.5
    33 projects | news.ycombinator.com | 2 Jul 2021
  • Forking the typescript compiler and building on it?
    5 projects | /r/typescript | 14 Jun 2021
    It might be helpful to keep in mind: Typescript is a compiler that parses a Typescript AST and prints out whatever you want. So if your goal is to use it in a JS context, the only thing regulating what you do with it is that it outputs valid JS that can be interpreted by the various JS engines. There are projects like TypeScriptToLua which uses the TS compiler to print out Lua code.
  • How can I generate types using AST?
    3 projects | /r/typescript | 26 Feb 2021
    You can take a look at TypescriptToLua which transforms the TS AST into Lua code using the compiler API, however I think you're barking up the wrong tree. The TS compiler works on *it's own\* AST generated from parsed Typescript. You can see how they implement your own type here. What you have some structured data and want to turn it into a type definition. That's just some loops you write yourself over data you've hopefully structured in a sane way. Turn it into a string, write it to a file with the extension `.d.ts`. No libraries needed.

lua-languages

Posts with mentions or reviews of lua-languages. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-09-13.
  • Why Fennel?
    12 projects | news.ycombinator.com | 13 Sep 2023
    This post inspired me to look for an ML-like language that compiles to lua and I found this useful list: https://github.com/hengestone/lua-languages
  • Using other languages
    6 projects | /r/ComputerCraft | 8 Feb 2023
    There's a complete list of languages that compile to Lua available here: https://github.com/hengestone/lua-languages
  • How should i make a lua-based programming language?
    1 project | /r/lua | 11 Jan 2023
    There are a ton of different ways to do this but you haven't given enough information to give useful advice. What kind of language do you want to make? "as a module of smth else" doesn't really mean anything. https://github.com/hengestone/lua-languages
  • Researching Lispy Neovim
    2 projects | /r/neovim | 26 Nov 2022
    There's also gpanders/nvim-moonwalker, which advertises Fennel in it's readme but works for any x->lua language you return the lua code for, ie: teal, moonscript, uh... others?
  • Lang Lua
    8 projects | news.ycombinator.com | 12 Nov 2022
    I went on a several-weeks-long fact finding mission (the longest of its kind I've ever done in my 10 years as a professional software developer).

    The option that won was to write all business logic (a few thousand lines of code) in Lua, then write the GUI in each platform's native language+ui-library combination and re-use the same business logic by embedding Lua.

    Another option that made the shortlist was using Haxe instead of Lua, but after several weeks, it became clear that that was a bad idea, and with Lua, the developer experience is now so much better.

    I definitely plan on continuing to use Lua as my main programming language.

    This comes after 20 years of having python as my main programming language because I'm displeased with feature creep and bloat on python. With lua, I find that I barely miss any features/abilities from the vastly more complex python while the simplicity of lua means my code gets to "go places" where python can't go.

    With lua, you find casual implementers making fully compatible alternative implementations (e.g. NeoLua for C#, Luna for Java, fengari for JavaScript, ...) With Python, alternative implementations seemingly just can't keep up with the pace at which CPython is introducing unnecessary new features and CPython-compatbility is de-facto the only meaningful python standard there is. Jython and IronPython would make the platform so much more appealing, but they appear dead in the water. Python implementations for the browser pop up every couple of years only to quietly disappear again.

    What's more: Once you've settled on Lua as am embedding language, developers of Lua logic are free to use not just Lua, but they can pick from a host of cool transpile-to-Lua languages [1].

    [1] https://github.com/hengestone/lua-languages

  • Hello i am new. Is there a way to use another language than lua for modding?
    3 projects | /r/Minetest | 4 Aug 2022
    However, there are many languages to which this doesn’t apply (before Fennel I’ve tried to write Minetest mods in Haxe without success).
  • What do you think about MoonScript?
    3 projects | /r/learnpython | 15 Jul 2022
    Maybe most of them are also small projects, but there are a lot of projects that compile other languages to Lua: https://github.com/hengestone/lua-languages .
  • Luau Goes Open-Source
    9 projects | news.ycombinator.com | 3 Nov 2021
    Doubtful, but there is TypescriptToLua: https://typescripttolua.github.io/

    Here's a whole list of languages that compile to Lua (many of them statically typed): https://github.com/hengestone/lua-languages

  • Python and Lua (2019)
    8 projects | news.ycombinator.com | 9 Oct 2021
  • Has anybody written Neovim config in Typescript, and transpiled it to Lua?
    3 projects | /r/vim | 20 Jul 2021
    That's just because there are lots of lua transpilers. https://github.com/hengestone/lua-languages

What are some alternatives?

When comparing TypeScriptToLua and lua-languages you can also consider the following projects:

moonscript - :crescent_moon: A language that compiles to Lua

luau - A fast, small, safe, gradually typed embeddable scripting language derived from Lua

love - LÖVE is an awesome 2D game framework for Lua.

LuaJIT - Mirror of the LuaJIT git repository

neovim-ui - Vaporware -- nothing to see here

Fennel - Lua Lisp Language

TypeScript - TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

benchmarks - Some benchmarks of different languages

ttypescript - Over TypeScript tool to use custom transformers in the tsconfig.json

vim9jit - a vim9script -> lua transpiler (written in Rust)

squirrel - Official repository for the programming language Squirrel

ts-to-lua-test - A little experiment using the Typescript to Lua transpiler on a function