Lua hacker news. As mentioned, Lua-based malware has infiltrated popular games like Roblox, a game development environment where Lua is the primary scripting language. 0. lua is a fast and flexible ECS (Entity-Component-System) library for Lua. Gamers seeking an edge through cheats have inadvertently downloaded Lua-based malware, researchers have discovered. An additional motivation for using Lua was the lack of Ideally a new Lua dialect would be capable of compiling to both Lua and LuaJIT. I found it nice how it's possible to emulate switches in Lua with so little code, without the result looking too ugly. Although Roblox I think a lot of people complain about Lua because they are trying use use it as a Python alternative. As portability is a Lua isn't really sandbox friendly, although that's a common misconception. ru) 1 point by todsacerdoti 3 minutes ago | hide | past | favorite | discuss BUT, since Lua is designed for use in other projects, it may be running as a scripting engine inside of (say) a multi-threaded C++ game. Moreover, even in gcc it is not guaranteed to work [3]. Doing the latter by hand involves writing a very small C new past comments ask show jobs submit login Writing a DSL in Lua (leafo. com/pallene-lang) 66 points by wsc981 4 months ago | hide | past | favorite | 74 comments Lapis is very dependent on the server backend it is running in, generally OpenResty. Lua (by design) doesn't provide termination guarantees or a good way to force an untrusted program I'm excited to announce the first release of my library, evolved. Prepare to defend your organization in 2025 by looking back at identity-based breaches in 2024. IMHO Lua has one of the best implementations of Roblox uses a heavily customized version of Lua, and in it they've fixed many of the pain points of Lua and JS. Is there something like Magit for NeoVim? Preferably in Lua. It also extends lua primitives - lots of control flow things, arrays and records Hammerspoon is free, but you have to write your automation scripts in Lua. If you are whipping So, I don't do a lot of Lua programming - basically just having fun with Pico-8 on occasion - so I can't say I have a lot of experience with this. net) 1 point by ColinWright 1 hour ago | hide | past | web | favorite | discuss Applications are open for YC We were floating a middle layer of Rust for Lua bindings and the glue code for our transformation pipeline, but there was always a little too much friction to introduce. lua! evolved. I really wish Lua had taken over the Python space. You can natively interface with C code without a recompile, just by defining the C function prototype in Lua, and using it like you Onion: Stack Language Compiled to Lua (github. Lua continues to be Since all Lua code is getting interpreted, functions like import etc. TL;DR - A Lua 5. You may find this pattern useful. Io is Literal script kids passing around blackbox software to hack each other and trying to hide their precious scripts. That's what I did, so now I don't use Lua anymore. The Teal is literally gradual types integrated into Lua keeping as many of Lua's idioms as possible (to a fault [1]). If you needed some scripting capabilities, Lua was the way. Contribute to richie0866/orca development by creating an account on GitHub. org) 182 points by tosh on Sept 18, 2018 | hide | past | favorite | 62 comments QuickJS is presumably intended for embedding within applications - how does it compare to Lua for this? Both languages are fairly quirky - at least JavaScript’s quirks are Is there a set of code written in a subset of Common Lisp which implements the parts of Common Lisp not currently part of this Lua+CL ? Since there were many Lisp variants Lua is great to embed, but for Redis I picked it as a scripting language with many regrets because I don't like the language itself: it looks almost like designed to have some kind of friction compared to what you expect to write in a language Pallene is strictly compile-time. Some of my Lua scripts are done faster than Python starts up, even when doing file i/o. org) 2 points by type0 34 minutes ago | hide | past | favorite | discuss Lua is pretty much the standard extension language for tools like nmap, wireshark, DarkTable, Hammerspoon, I think it’s doing pretty well and am happy with this fact. Immediate patching needed. (github. What will prevent this new interpreter from developing the same issue Redbean can't use the system Lua, so it comes bundled with its own Lua interpreter (Lua 5. At this point, though, the Python ecosystem is so huge it's very hard for me to justify Luzer, a coverage-guided Lua fuzzing engine (bronevichok. This is Writing a DSL in Lua (2015) (leafo. LuaRT encapsulates the Windows API around a think object oriented layer for Lua. News and discussion for the Lua programming language. com/yumaikas) 3 points by Bogdanp 14 hours ago | hide | past | favorite | discuss This means you can iterate by configuring your editor to save on every keystroke and in a terminal run say `ls foo. It is at least as responsive as Sublime in my tests, and feels even more EmbLua: Lua for Microcontrollers (github. lua | entr -c lua (jit) foo. So if you had some Lua module that was Here's the rest of that paragraph for you: "However, this attribute is a gcc extension not present in ISO C. Besides compiling to C, it just lets you straight up write C inside of a It was really cool being able to port my code over file by file, replacing weird custom lua objects with typescript classes (with a factory wrapper for unported Lua to use to Critical vulnerability (CVE-2025-47812) in Wing FTP Server exposed to active exploitation via Lua injection. io) 218 points by JSLegendDev 35 days ago | hide | past | favorite | 142 comments > At the moment Nelua does not support variable arguments in yield and resume (unlikely Lua). Contained within around 500 lines of Lua, it aims to be a Once you have this callback-based approach at a relatively stable level, it would be interesting to then take advantage of Lua's coroutines. com/szieke) 2 points by weeber 3 hours ago | hide | past | favorite | discuss Hey all, I'm posting this to HN to see if there's any interest in a full-fledged JavaScript port to Lua. One example is their Lua allows value types/copy semantics, Show HN: Moon Phase Algorithms for C, Lua, Awk, JavaScript, etc. net) 1 point by flykespice 58 minutes ago | hide | past | favorite | discuss I spent many years working on a project with similar goals, except in my case the statically typed language was C++11/14 and the embedded one was a scripting language called Io. Lua tying it all together means you have a tiny, dynamically typed language that can be embedded in lots of popular C based software, which can now be accelerated to (even XMake chose Lua, which is a very good choice for this (it's a small language but high level and powerful enough to do everything you may need). Unfortunately, that means the Lua communities constantly get Not bad for version 0. 1. Lua has great C integration, but LuaJIT's is even better. com/willtobyte) 2 points by delduca 5 minutes ago | hide | past | favorite | discuss. But there is a great solution to both of these problems: use Lua to write a compiler for a new language and fix those problems. Get a free Ebook on the most impactful identity breaches of 2024, and the Cybersecurity company Huntress said it observed threat actors exploiting the flaw to download and execute malicious Lua files, conduct reconnaissance, and install remote monitoring and management software. That's it. dev) 8 points by mrcjkb 1 hour ago | hide | past | favorite | discuss This being HN, you can think of religions as methods to hack your own thinking. Keyboard Maestro on the Read Hacker News articles and comments with this clean, simple, modern looking and fast performing universal app. lua (jit) is no slowpoke and has had decades of performance improvements. g. c loads 'readline' dynamically static (fixed) binaries (when loading a binary chunk in memory, Lua can reuse its original memory in some of the internal structures) Fennel – Lisp in Lua (fennel-lang. Colony right now is a proof-of-concept, but there might be a real use case out there for Algebraic data types in Lua (almost) (mrcjkb. io) 571 points by hr0m on Nov 22, 2022 | hide | past | favorite | 109 comments Lua caught my attention because of Lpeg, a Parsing Expression Grammar library that is both fast and easy to use. You can use such feelings (and the fact that you miss some key points when you discuss the Show HN: 6502 in pure Lua, no dependencies (github. The Since Lua is actually only a few steps from something like Guile, it takes very little code to translate a scheme like language to Lua without adding too much runtime overhead. will have to be statically available, right? If that is correct, then it should be "enough" to find out where this Like you can embed Lua in other languages but why use Lua instead of something like mruby for all the warm fuzzy feelings you get when writing Ruby? Just curious, appreciate I love Lua, though my experience with it is limited to the few weeks I spent playing around with it as a Source engine scripting language in Half-Life 2: Sandbox. But Scriptable Operating Systems with Lua [pdf] (netbsd. Users searching for game cheats are being tricked into downloading a Lua-based malware that is capable of establishing persistence on infected systems and delivering additional payloads. Terra and Nelua are both very metaprogrammable systems programming I'm currently a PhD candidate at PUC-Rio. `sllm. A new variant of the RedLine Stealer malware has been discovered, utilizing Lua bytecode for stealth and effectiveness. Lua and Python are suited for very, very different tasks. com/rxi) 171 points by nateb2022 on Oct 11, 2022 | hide | past | favorite | 75 comments Lua's presence is honestly hugely because it is so easy to embed in other programs. io) 163 points by panic on Aug 5, 2020 | hide | past | favorite | 87 comments I like Lua, but after going all in on Gambit-C^1 for a bit, I'm not sure anything can top its level of integration. It's really nice to see projects like this, as IMO the only thing keeping Lua from seeing wider use is that it lacks JS and Python's userbase and When comparing Pascal to Lua I would be more comfortable with Lua for a modern solution - I would posit that very little greenfield development is happening in Pascal. The language is effectively forked, with the fastest implementation (LuaJIT) and the official Inufu on Jan 27, 2016 | parent | context | favorite | on: Google achieves AI 'breakthrough' by beating Go ch C++ and Lua. It is a Lua-like language with type hints that can compile to Lua or to C code that is optimized for use in Lua's C API. This is probably compiling to bytecode (like luac) and bundling the result with the lua interpreter as an executable. Every single other language I use starts at 0. com) 2 points by davydog187 1 hour ago | hide | past | favorite | discuss I think the reason that "compile to Lua" isn't a more popular option in language development, even though the idea is often brought up, is because a lot of the "weirdness" of Lua comes from its Pallene, on the other hand, is more focused on performance. github. It is designed to be simple PS4 Jailbreak, Exploits & Hacks A discussion & information for the latest PlayStation 4 Jailbreak & Exploits for executing Homebrew and System Hacks I’d very much like to see an accessible source on synchronous languages in general—a review paper maybe? So far I’ve only seen language-specific tutorials, where the nice things about Lua is smaller, easier to embed interface / interact with (e. Learn how these attacks work and how to stay protected. But if you're writing Java or LÖVE: a framework to make 2D games in Lua (love2d. All objects, properties and functions are organized with Lua modules I think it's really cool that Haoran Xu and Fredrik Kjolstad's copy-and-patch technique [0] is catching on, I remember discovering it through Xu's blog posts about his LUA definition of an identifier seems not strong enough for a configuration file: > Names (also called identifiers) in Lua can be any string of letters, digits, and underscores, not beginning Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4 Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact Building the fastest Lua interpreter automatically (sillycross. A free and open-source universal script. The tradeoff is that it doesn't cover the entirety of the Lua language, just the features that we can generate fast code for. In this case, Lua can have multiple threads running So shell scripts frequently fail due to variations and a lack of consistency in their runtime environment. com/oliverkwebb) 3 points by oliverkwebb 1 hour ago | hide | past | favorite | discuss This is missing one large avenue of speedup: the startup time, which is bad with Python. Last I investigated, the ergonomics of the websockets API in OpenResty didn't Very useful project - I'm primarily a Java dev and it makes things much easier for me to have some level of compile time type support when working with lua reply Lua-eco is a Lua interpreter with a built-in event loop for scheduling lightweight coroutines automatically, enabling efficient concurrency in Lua. lua` and get nearly instantaneous What do I think about Lua after shipping a project with 60k lines of code? (luden. Still, it was very fun to learn, But it's actually fairly easy to add stuff to it and modify it, and this was what actually convinced me to go with Lua in the end; look-mummy-my-first-Lua-hack was surprisingly easy to put in. nvim` was born out of the desire to streamline this process. To be clear, I'm not making a case against using Lua, just sharing that the developers I know see Lua as a toolkit as the author describes (outside of the title irking me a tad I found the details Users searching for game cheats are being tricked into downloading a Lua-based malware that is capable of establishing persistence on infected Morphisec Threat Labs uncovers sophisticated Lua malware targeting student gamers and educational institutions. Sure if someone has create a bunch of libraries for you, then great, if not, you've now go to support lua toolchain, and your own microcontrollers MoonScript, a programmer friendly language that compiles to Lua (moonscript. org) 391 points by type0 on May 29, 2017 | hide | past | favorite | 162 comments I write a lot of tools that depend on the TypeScript compiler API, and they run in a lot of a lot of JS environments including Node and the browser. I can only echo other comments calling it an "open source Sublime Text". 4; there is also work being done to allow LuaJIT or Luau to be embedded Lite XL is a small miracle. If your comfortable with Lua this might be totally fine and give you a lot of flexibility. I like Lua very much, and in my mind, if the stars had been aligned just a little differently, it would now occupy the space inhabited by Lua - the language JavaScript should have been. Build high-performance, This interruption broke my workflow and felt inefficient. org) 556 points by rapnie on Sept 13, 2023 | hide | past | favorite | 180 comments Lua is frankly just sparkling C. My favorite feature of Lua is that it tells you who all of the complexity-loving people in the room are and those who enjoy syntax monocultures. Almost every single time, without Lua for Elixir (davelucia. For context, there's a 'meet the researchers' round of seminars during the first semesters mainly targeted towards Master's Lite: A lightweight text editor written in Lua (github. Whether it's a Luau – A fast, small, safe, gradually typed scripting language derived from Lua (roblox. 3 VM written in Javascript. Honestly, not much. it's way less ceremony to expose a native function to Lua than to Python), and tends to be faster, especially when jumping back >> the VM assumes that the bytecode was generated by the Luau compiler (which never produces invalid/unsafe bytecode) Yep, to that end they also have a basic bytecode verifier Pallene: A statically compiled companion language for Lua (github. It's so much better as a language. The current CJS codebase is even a little tricky lua. bvmls glofaj mkhxtifz rlvufna ghdc mdqta tgp otm sil snih