luajit VS reactor

Compare luajit vs reactor and see what are their differences.

luajit

LuaJIT is JIT compiler for the Lua language. (by LuaDist)
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
luajit reactor
1 11
540 612
- -
10.0 7.1
over 4 years ago about 2 months ago
C Python
GNU General Public License v3.0 or later -
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.

luajit

Posts with mentions or reviews of luajit. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-02-08.
  • Back-end languages are coming to the front-end
    16 projects | news.ycombinator.com | 8 Feb 2022
    > No offence, but have you written any compilers or interpreters?

    I have, but nothing sophisticated.

    > The points that you discuss [...] may be performance concerns for application developers [...] but they have very little to do with the optimisations you can make as a compiler/interpreter writer. [...] The only one that's somewhat relevant is 'global scope by default'

    I didn't mean to imply that these where the three common traits that make both Javascript and Lua particularly hard to optimize, I just picked them as examples for how Javascript and Lua are closer to each other than most other dynamic languages.

    But let's dig in a bit on your claim that things like all numbers being doubles or having a array cum map cum record type has very little to do with the optimizations you can make as a compiler/interpreter writer, because it sure seems to me that LuaJIT and V8 do a bunch of optimizations around these things. Both have dual number representations under the hood and will try to avoid representing numbers that remain in the domain of 32 bit integers as double values internally when that gives performance gains. The logic for figuring out if that's the case doesn't seem to be super-straightforward or target architecture independent from looking at the comments in <https://github.com/LuaDist/luajit/blob/master/src/lj_opt_nar...>.

    LuaJIT furthermore uses NaN tagging (as do some JS engines, although not V8), which looks less attractive to me as a representation strategy if your numbers are not all/mostly notional doubles (as is indeed the case in newer version of Lua where 64bit integers are the dominant number type)

    Also, as far as the super-flexible lua tables are concerned, I'm pretty sure LuaJIT goes through some amount of trouble to specialize various common use cases of tables, e.g. as arrays without holes, and surprise, so does V8 (https://v8.dev/blog/fast-properties#elements-or-array-indexe...). I don't think you'd find something equivalent in a high performance scheme implementation.

    > but this doesn't touch the surface of the issues that make JS hard to optimise, such as the fact that your, say, memoisation of an object property or method may be broken by an `eval` call of an arbitrary runtime value somewhere else in the code (which, due to asynchronicity, could take place at more or less any time from the point of view of your given 'peephole').

    Eval belongs to a core set of features that basically all popular dynamic languages share that presents headaches for high performance implementations. How is Javascript's eval particularly problematic in this regard, and specifically much more so than Lua's loadstring/load?

    More generally what do you think makes (pre-ES6) javascript significantly harder to optimize than lua 5.0?

reactor

Posts with mentions or reviews of reactor. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-03-13.
  • Reactor, a LiveView Library for Django
    1 project | news.ycombinator.com | 29 Nov 2023
  • Launch HN: Pynecone (YC W23) – Web Apps in Pure Python
    25 projects | news.ycombinator.com | 13 Mar 2023
  • Django equivalent to Rails Hotwire
    4 projects | /r/django | 4 Apr 2022
  • Back-end languages are coming to the front-end
    16 projects | news.ycombinator.com | 8 Feb 2022
    I'd love to see this approach make more headway in the Django community. Based on the last DjangoCon it seems like the community is coalescing around HTMX.

    This tool does play very nicely with Django's templating engine; you can just have HTMX re-render a particular template block on the server, and send down that updated block. The migration path is quite clean; you just wrap your "HTMX-updated" template block in a `hx-post` div.

    Having not gone too deep on HTMX, I'm interested in folks' thoughts on where it's lacking vs. LiveView and Hotwire. One area I can see is performance; Elixir is going to be faster than Django, and so if you're trying to handle high session counts over websockets. But the impression I get is that HTMX is a bit more light-weight, so I'm wondering if there's usecases that can't be met with it vs. LiveView.

    Other Django libraries that haven't quite seen as much uptake:

    We have https://github.com/edelvalle/reactor, and a port of Hotwire: https://github.com/hotwire-django but both of these don't seem to have much adoption (yet!).

  • Reactive Clojure: You don't need a web framework, you need a web language
    14 projects | news.ycombinator.com | 23 Sep 2021
    Thank you for posting those, I wanted to post them but I don't comment often (). Wanted to chip in another contemporary: edelvalle/reactor, which is inspired by LiveView[0].

    [0]: https://github.com/edelvalle/reactor

    I am using Hotwire for a project, and I'm learning Elixir and Phoenix on the side. Finding edelvalle/reactor was immediately helpful to me though, because I cut my teeth on Python/Django, so reading a Python reference implementation helps me learn nuts and bolts of libraries, faster. (so, I figure that this might help someone else grok how these approaches work.)

  • How to combine Rails's Ajax support and Stimulus
    9 projects | dev.to | 27 Aug 2021
    If this sounds like a barebones version of notable frameworks like Elixir's Phoenix LiveView, Rails's StimulusReflex or Hotwire Turbo, PHP's LiveWire, Django's Reactor... well, you're right! (Bonus: my colleague @jgaskins built a LiveView clone for Crystal)
  • Phoenix LiveView/Laravel LiveWire alternatives for Django
    2 projects | /r/django | 3 Jun 2021
    Reactor
  • HTML over-the-wire is the future of Web Development
    11 projects | dev.to | 4 Apr 2021
    Reactor is a LiveView library for Django. It enables you to do something similar to Phoenix LiveView using Django Channels.
  • Django with htmx for easy and efficient SPAs
    4 projects | /r/django | 25 Feb 2021
    It looks a bit similar to Elixir Live View. Or similar in Django https://github.com/edelvalle/reactor, there are a couple of libraries.
  • StimulusReflex, or LiveView for Rails
    3 projects | news.ycombinator.com | 15 Jan 2021
    Django does: https://github.com/edelvalle/reactor

What are some alternatives?

When comparing luajit and reactor you can also consider the following projects:

wasmer-python - 🐍🕸 WebAssembly runtime for Python

django-unicorn - The magical reactive component framework for Django ✨

diode - Scala library for managing immutable application model

django-htmx - Extensions for using Django with htmx.

htmx - </> htmx - high power tools for HTML

turbo - The speed of a single-page web application without having to write any JavaScript

mumba - Write web-native p2p distributed apps in Swift (and others)

Phoenix - Peace of mind from prototype to production

Scala.js - Scala.js, the Scala to JavaScript compiler

Elixir - Elixir is a dynamic, functional language for building scalable and maintainable applications