middleclass VS moonscript

Compare middleclass vs moonscript and see what are their differences.

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
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
middleclass moonscript
9 35
1,685 3,126
- -
0.0 4.4
about 1 year ago 6 months ago
Lua Lua
MIT License -
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.

middleclass

Posts with mentions or reviews of middleclass. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-05-31.
  • Is there a way to create namespaces/hierarchy in the documentation with LDoc?
    3 projects | /r/lua | 31 May 2023
    I am trying to document my code and I am using LDoc for that and for OOP I am using the library middleclass. All of my classes are in a main framework folder and inside that I have each namespace as a folder and then classes that are specific to that namespace in those folders.
  • Lua: The Little Language That Could
    16 projects | news.ycombinator.com | 28 May 2023
    The ConTeXt typesetting system tightly integrates Lua. One aspect of Lua that I dislike is its inability to easily write OOP-ish code. What's impressive about the language is that it can be extended to do so in astonishingly little code:

    * https://github.com/kikito/middleclass

    With OOP in place, I was able to typeset a hexagonal grid and a symbolic representation of a neural network on top, using a more OOP-like approach. The classes are straightforward.

    A vertex defines a point in 2D space:

    * https://github.com/DaveJarvis/keenwrite-themes/blob/main/bos...

    An edge connects two vertices:

    * https://github.com/DaveJarvis/keenwrite-themes/blob/main/bos...

    A graph connects edges:

    * https://github.com/DaveJarvis/keenwrite-themes/blob/main/bos...

    A priority queue serves for ordering graph edges by weight of adjoining vertices:

    * https://github.com/DaveJarvis/keenwrite-themes/blob/main/bos...

    With these concepts in hand, we can typeset a grid and a "neural network" on top:

    * https://github.com/DaveJarvis/keenwrite-themes/blob/main/bos...

    Here's an example of the output for chapter 1:

    * https://i.ibb.co/19DCDZy/ch-1.png

    And chapter 14, where the "network" has grown in complexity:

    * https://i.ibb.co/ncf16vg/ch-2.png

    This is for my near future hard sci-fi book on AGI. I'm looking for alpha readers to give me feedback. See profile for contact details.

  • Doing what you love when the money won’t follow
    4 projects | news.ycombinator.com | 4 Nov 2022
  • To all plugin authors: standard class realization
    3 projects | /r/neovim | 1 Sep 2022
    To reduce the amount of boilerplate code, I created the fork of middleclass repo suitable for Neovim plugin managers: it just adds a symlink to middleclass.lua file in lua/ directory. middleclass is well known and tested, so I suggest using it as a standard class realization. I also open a pull request to merge it upstream.
  • Is doing OOP in lua considered bad practice?
    1 project | /r/lua | 11 Mar 2022
    Not exactly what op asked, but if you want classes in Lua definitely check out https://github.com/kikito/middleclass
  • Alternative to Love2d
    7 projects | /r/love2d | 10 Jul 2021
  • OOP in Love2d
    4 projects | /r/love2d | 25 Mar 2021
    Like /u/TheMightyHUG pointed out below, there are patterns you can use to do OOP without any extra help. In the past I have used some libraries to improve the ease of doing so, specifically middleclass: https://github.com/kikito/middleclass
  • A complete implementation of the Set data structure in Lua
    2 projects | /r/lua | 3 Jan 2021
    Same, but when I do I like when authors include everything in one file so it's easy to manage. Here we have the library, some small 10 line file with helper functions that's required and we also need to remember about the licence. Take middleclass as an example, one file, license included, ready to plug and develop.

moonscript

Posts with mentions or reviews of moonscript. 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
    Now I like lua, and think single pass is the way to go for interpreted, since you don't have the disadvantage of a slow compile time no matter how big your codebase gets, BUT its not great to write in. things like +=, ++, are not possible, which means the only solution is to transpile into it, which has led to some good languages like moonscript[0], teal[1] which offers static type checking, an absolute must as your codebase grows.

    [0]: https://moonscript.org/

  • Forth: The programming language that writes itself: The Web Page
    7 projects | news.ycombinator.com | 16 Jul 2023
    That can be very productive and clever, but be - and stay - aware that such polyglot solutions tend to be maintenance headaches in the longer run.

    There is a really nice open source project out there that allows you to train your hearing and your sightreading, but it's written in the authors own language which in turn compiles to JavaScript and the headache to set up their toolchain is such that I haven't bothered fixing any of the bugs that I'm aware of (and there are plenty).

    https://sightreading.training/

    https://github.com/leafo/sightreading.training

    It's written in a language called 'Moonscript':

    https://github.com/leafo/moonscript

    Which compiles to Lua. Which compiles to JS.

    Madness. Nice madness, but still, it stopped me from being a contributor.

  • Lua: The Little Language That Could
    19 projects | /r/programming | 28 May 2023
    RE: the cost of switching at this point, what about languages that compile to Lua? Like https://moonscript.org/. That would let you keep the legacy code, no?
  • Trying to make a website with Lapis
    2 projects | /r/lua | 25 Mar 2023
    In the case of Lapis, it is actually written in Moonscript, which needs a few more things.
  • Launch HN: Moonrepo (YC W23) – Open-source build system
    12 projects | news.ycombinator.com | 21 Feb 2023
  • Using Lua with C++
    9 projects | news.ycombinator.com | 14 Feb 2023
  • Using other languages
    6 projects | /r/ComputerCraft | 8 Feb 2023
    There's also some languages made to compile straight to Lua: - MoonScript is the most popular Lua wrapper - it's built to be more Python-like, featuring indentation-based scopes, function calls without parentheses, lambda syntax, list comprehension, and much more. - Yuescript is a modern update to MoonScript that adds more features (I haven't used it myself, so I'm not entirely sure exactly how it differs from MS). - Teal is a version of Lua that adds static typing for better code standards.
  • Best Websites For Coders
    51 projects | dev.to | 25 Jan 2023
    A programmer-friendly language that compiles to Lua.
  • data types in function definition
    12 projects | /r/lua | 13 Jan 2023
  • A MiniTron In 47 Lines
    2 projects | dev.to | 11 Jan 2023
    This is a sample code for learning, written in Moonscript for TIC-80:

What are some alternatives?

When comparing middleclass and moonscript you can also consider the following projects:

awesome-lua - A curated list of quality Lua packages and resources.

Yuescript - A Moonscript dialect compiles to Lua.

pyxel - A retro game engine for Python

nelua-lang - Minimal, efficient, statically-typed and meta-programmable systems programming language heavily inspired by Lua, which compiles to C and native code.

classic - Tiny class module for Lua

TypeScriptToLua - Typescript to lua transpiler. https://typescripttolua.github.io/

TIC-80 - TIC-80 is a fantasy computer for making, playing and sharing tiny games.

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

CC-Tweaked - Just another ComputerCraft fork

set-lua - `set-lua` is a complete implementation of the Set data structure in Lua

LuaJIT - Mirror of the LuaJIT git repository