How do i learn lua
I do not know any coding languages and i wanted to learn lua since a while.
I heard it is pretty simple.
https://redd.it/1r82lix
@r_lua
I do not know any coding languages and i wanted to learn lua since a while.
I heard it is pretty simple.
https://redd.it/1r82lix
@r_lua
Reddit
From the lua community on Reddit
Explore this post and more from the lua community
Iv'e been practicing lua for a week, how do i keep learning more complex Things?
Iv'e been learning lua for about a week now and iv'e gotten the hang of simple for, while loops aswell As simple functions and the Basic stuff Like print() and so on. Iv'e been following a YouTube Tutorial (codyn) for the whole time trying to understand His Code and when Things got tough iv'e used Chat gpt. Even though Sometimes iv'e feelt His explanaitions unsatisfactory i have still been very satisfied. In Part 8 you learn a "simple Tic Tac toe Game" Its about 80 lines of Code witch i have been only (Up to that Point) written Like 20 max. So now my question. How do i learn stuff Like that? Iv'e tried understanding the parts of it but Its so Long and complicated, It feels Like my head Just wont Take It in. What are my next steps to learn? Any Tutorials? I know of the book wich is free online, should i try IT with that?
https://redd.it/1r7yw63
@r_lua
Iv'e been learning lua for about a week now and iv'e gotten the hang of simple for, while loops aswell As simple functions and the Basic stuff Like print() and so on. Iv'e been following a YouTube Tutorial (codyn) for the whole time trying to understand His Code and when Things got tough iv'e used Chat gpt. Even though Sometimes iv'e feelt His explanaitions unsatisfactory i have still been very satisfied. In Part 8 you learn a "simple Tic Tac toe Game" Its about 80 lines of Code witch i have been only (Up to that Point) written Like 20 max. So now my question. How do i learn stuff Like that? Iv'e tried understanding the parts of it but Its so Long and complicated, It feels Like my head Just wont Take It in. What are my next steps to learn? Any Tutorials? I know of the book wich is free online, should i try IT with that?
https://redd.it/1r7yw63
@r_lua
Reddit
From the lua community on Reddit
Explore this post and more from the lua community
Multiplayer Snake, Game of Life, and Doom Fire, where all game logic runs as Lua noscripts inside the Dragonfly
https://github.com/vyavdoshenko/dragonfly-for-fun
https://redd.it/1rasbm1
@r_lua
https://github.com/vyavdoshenko/dragonfly-for-fun
https://redd.it/1rasbm1
@r_lua
GitHub
GitHub - vyavdoshenko/dragonfly-for-fun: Games & Demos powered by Dragonfly Lua noscripting.
Games & Demos powered by Dragonfly Lua noscripting. Contribute to vyavdoshenko/dragonfly-for-fun development by creating an account on GitHub.
luajit profiler that outputs a timeline with jit traces and a flamegraph view in static html
https://redd.it/1rgbqt6
@r_lua
https://redd.it/1rgbqt6
@r_lua
xml2lua gives me multiple root nodes
I'm trying to parse an arbitrary numbers of XML documents for a Neovim plugin with xml2lua (I use a specially packed version but I can reproduce this issue with the package from luarocks too). The first time I try to parse the document, everything works as expected. The second time, I get a structure similar to this:
{
type = 'ROOT',
children = {
type = 'ROOT',
children = { ---[ ... ] }
}
}
I've written a minimal example here: https://hastebin.com/share/ezadavuhem.lua. It recursively counts the
Why is this? I've already tried moving the
https://redd.it/1rghmee
@r_lua
I'm trying to parse an arbitrary numbers of XML documents for a Neovim plugin with xml2lua (I use a specially packed version but I can reproduce this issue with the package from luarocks too). The first time I try to parse the document, everything works as expected. The second time, I get a structure similar to this:
{
type = 'ROOT',
children = {
type = 'ROOT',
children = { ---[ ... ] }
}
}
I've written a minimal example here: https://hastebin.com/share/ezadavuhem.lua. It recursively counts the
ROOT elements in a parsed DOM for 16 parses. When I run it, I see the numbers 1 through 16 on the console.Why is this? I've already tried moving the
require statements into the function where I parse the XML so that each require statement is run once per document I need to parse, yet I still see this issue.https://redd.it/1rghmee
@r_lua
Why is there NO "continue" in Lua?
I was stunlocked to find out that there is no "continue" instruction for loops in Lua. Why is that? It seems so natural to have it.
I saw some noscripts where goto is used for mimicking continue statements, but It's honestly not the so;ution I would comfortably accept...
https://redd.it/1rfopx1
@r_lua
I was stunlocked to find out that there is no "continue" instruction for loops in Lua. Why is that? It seems so natural to have it.
I saw some noscripts where goto is used for mimicking continue statements, but It's honestly not the so;ution I would comfortably accept...
https://redd.it/1rfopx1
@r_lua
Reddit
From the lua community on Reddit
Explore this post and more from the lua community
Should I learn noscripting with Lua or Python
I know the basics of Python, but it find it somewhat overwhelming to master the functions of each specific module and library. Since I want to learn noscripting to use mainly for automation on my PC and router, I'm considering switching to Lua since it is a small language and being one of the easiest to learn. In which areas of noscripting do Lua and Python excel? Should I learn Lua or stick to Python for automation noscripting?
https://redd.it/1rf6gcj
@r_lua
I know the basics of Python, but it find it somewhat overwhelming to master the functions of each specific module and library. Since I want to learn noscripting to use mainly for automation on my PC and router, I'm considering switching to Lua since it is a small language and being one of the easiest to learn. In which areas of noscripting do Lua and Python excel? Should I learn Lua or stick to Python for automation noscripting?
https://redd.it/1rf6gcj
@r_lua
Reddit
From the lua community on Reddit
Explore this post and more from the lua community
Any advices or Tips to build a good dev team?
Hey everyone,
we’re reaching out here because we’re honestly a bit stuck and could really use some advice from people who’ve been around the FiveM scene longer than we have.
We’re a small team working on a **German hardcore RP FiveM server**. This project means a lot to us — it’s something we’ve been building with a lot of time, motivation, and heart. Our focus is mainly on **civilian RP**, because we truly believe that strong civilian gameplay naturally leads to better crime and law enforcement RP as well.
The problem we’re struggling with is **finding the right developers**.
We’ve already had **two really bad experiences** with paid developers. In both cases, we trusted them, paid them, and ended up with empty promises, unfinished or broken work, and eventually no replies at all. Sadly, this cost us a **four-figure amount of money**, which hurts even more when you’re putting everything you have into a passion project.
Because of this, we’re now extremely cautious and are looking for developers who don’t just see this as a quick job, but who actually want to:
* had experience in Lua/QBCore
* play on the server themselves
* care about the project
* become a **long-term part of the team**
Right now, we’re focusing more on **voluntary collaboration**, ideally with people who enjoy FiveM RP and want to help build something meaningful over time. We already have a motivated game design team and experienced RP players working on systems, support structures, and player-driven concepts — but the technical side is where we’re struggling the most.
So our questions to you:
* Where do you usually find developers who are actually **passionate about RP**, not just freelancing?
* How do you protect yourselves from getting burned like this?
* Are there any red flags you’ve learned to watch out for when talking to devs?
We’re not looking for shortcuts or quick money-makers — just honest people who want to build something solid together.
Thanks a lot for taking the time to read this. Any advice or experiences you’re willing to share would mean a lot to us. ❤️
https://redd.it/1rf6ntt
@r_lua
Hey everyone,
we’re reaching out here because we’re honestly a bit stuck and could really use some advice from people who’ve been around the FiveM scene longer than we have.
We’re a small team working on a **German hardcore RP FiveM server**. This project means a lot to us — it’s something we’ve been building with a lot of time, motivation, and heart. Our focus is mainly on **civilian RP**, because we truly believe that strong civilian gameplay naturally leads to better crime and law enforcement RP as well.
The problem we’re struggling with is **finding the right developers**.
We’ve already had **two really bad experiences** with paid developers. In both cases, we trusted them, paid them, and ended up with empty promises, unfinished or broken work, and eventually no replies at all. Sadly, this cost us a **four-figure amount of money**, which hurts even more when you’re putting everything you have into a passion project.
Because of this, we’re now extremely cautious and are looking for developers who don’t just see this as a quick job, but who actually want to:
* had experience in Lua/QBCore
* play on the server themselves
* care about the project
* become a **long-term part of the team**
Right now, we’re focusing more on **voluntary collaboration**, ideally with people who enjoy FiveM RP and want to help build something meaningful over time. We already have a motivated game design team and experienced RP players working on systems, support structures, and player-driven concepts — but the technical side is where we’re struggling the most.
So our questions to you:
* Where do you usually find developers who are actually **passionate about RP**, not just freelancing?
* How do you protect yourselves from getting burned like this?
* Are there any red flags you’ve learned to watch out for when talking to devs?
We’re not looking for shortcuts or quick money-makers — just honest people who want to build something solid together.
Thanks a lot for taking the time to read this. Any advice or experiences you’re willing to share would mean a lot to us. ❤️
https://redd.it/1rf6ntt
@r_lua
Reddit
From the lua community on Reddit
Explore this post and more from the lua community
Built a local RAG/context engine in Rust – SQLite, FTS5, local embeddings, Lua extensions, MCP server
I kept running into the same issue: AI coding tools are strong but have no memory of my large multi-repo project. They can’t search our internal docs, past incidents, or architecture decisions. Cloud RAG exists but it’s heavy, costs money, and your data leaves your machine. So I built Context Harness – a single Rust binary that gives tools like Cursor and Claude project-specific context.
It ingests docs, code, Jira, Slack, Confluence, whatever you point it at, into a local SQLite DB, indexes with FTS5 and optional vector embeddings, and exposes hybrid search via CLI and an MCP\-compatible HTTP server. So your AI agent can search your knowledge base during a conversation.
Quick start:
# Install (pre-built binaries for macOS/Linux/Windows)
cargo install --git https://github.com/parallax-labs/context-harness.git
ctx init
ctx sync all
ctx search "how does the auth service validate tokens"
# Or start MCP server for Cursor/Claude Desktop
ctx serve mcp
What’s different:
\- Truly local: SQLite + one binary. No Docker, no Postgres, no cloud. Local embeddings (fastembed + ONNX on most platforms, or pure-Rust tract on Linux musl / Intel Mac) so semantic and hybrid search work with zero API keys. Back up everything with
\- Hybrid search: FTS5 + cosine similarity, configurable blend. Keyword-only mode = zero deps; with local embeddings you get full hybrid search offline.
\- Lua extensibility: Custom connectors, tools, and agents in Lua without recompiling. Sandboxed VM with HTTP, JSON, crypto, filesystem APIs.
\- Extension registry:
\- MCP: Cursor, Claude Desktop, Continue.dev (and any MCP client) can connect and search your knowledge base directly.
Embeddings: default is fully offline. Optional Ollama or OpenAI if you want. No built-in auth – aimed at local / trusted network use. MIT licensed.
Links:
\- GitHub: https://github.com/parallax-labs/context-harness
\- Docs: https://parallax-labs.github.io/context-harness/
\- Community registry: https://github.com/parallax-labs/ctx-registry
If you find it useful, a star on GitHub is always appreciated. Happy to answer questions.
https://redd.it/1rf34pr
@r_lua
I kept running into the same issue: AI coding tools are strong but have no memory of my large multi-repo project. They can’t search our internal docs, past incidents, or architecture decisions. Cloud RAG exists but it’s heavy, costs money, and your data leaves your machine. So I built Context Harness – a single Rust binary that gives tools like Cursor and Claude project-specific context.
It ingests docs, code, Jira, Slack, Confluence, whatever you point it at, into a local SQLite DB, indexes with FTS5 and optional vector embeddings, and exposes hybrid search via CLI and an MCP\-compatible HTTP server. So your AI agent can search your knowledge base during a conversation.
Quick start:
# Install (pre-built binaries for macOS/Linux/Windows)
cargo install --git https://github.com/parallax-labs/context-harness.git
ctx init
ctx sync all
ctx search "how does the auth service validate tokens"
# Or start MCP server for Cursor/Claude Desktop
ctx serve mcp
What’s different:
\- Truly local: SQLite + one binary. No Docker, no Postgres, no cloud. Local embeddings (fastembed + ONNX on most platforms, or pure-Rust tract on Linux musl / Intel Mac) so semantic and hybrid search work with zero API keys. Back up everything with
cp ctx.sqlite ctx.sqlite.bak.\- Hybrid search: FTS5 + cosine similarity, configurable blend. Keyword-only mode = zero deps; with local embeddings you get full hybrid search offline.
\- Lua extensibility: Custom connectors, tools, and agents in Lua without recompiling. Sandboxed VM with HTTP, JSON, crypto, filesystem APIs.
\- Extension registry:
ctx registry init pulls a Git-backed registry with connectors (Jira, Confluence, Slack, Notion, RSS, etc.), MCP tools, and agent personas.\- MCP: Cursor, Claude Desktop, Continue.dev (and any MCP client) can connect and search your knowledge base directly.
Embeddings: default is fully offline. Optional Ollama or OpenAI if you want. No built-in auth – aimed at local / trusted network use. MIT licensed.
Links:
\- GitHub: https://github.com/parallax-labs/context-harness
\- Docs: https://parallax-labs.github.io/context-harness/
\- Community registry: https://github.com/parallax-labs/ctx-registry
If you find it useful, a star on GitHub is always appreciated. Happy to answer questions.
https://redd.it/1rf34pr
@r_lua
GitHub
GitHub - parallax-labs/context-harness
Contribute to parallax-labs/context-harness development by creating an account on GitHub.
Introducing silicord: a modern Luau-inspired Discord API wrapper
Introducing silicord. Silicord is a LuaRocks library which uses Luau-inspired syntax to make your own Discord bots with one simple install.
Why you should start coding with silicord:
1. Beginner-friendly syntax: It's perfect for beginners with simple syntax inspired from Luau like
2. Simple installation: All you need to do is ensure you have LuaRocks installed in your computer, and then run
3. Modern support: silicord was made in early 2026, which means it natively supports modern Discord features like slash commands and DAWE voice support (coming soon in versions v1.2.x or higher)
4. Advanced Luau-inspired libraries: Yes, even the
5. Proudly Canadian: well, this isn't a feature to brag about, but i wanted to add this in here cuz why not
Getting started with silicord:
1. Ensure you have LuaRocks installed, if you do not, please use these commands to install:
Windows (you need to get Scoop to install LuaRocks in PowerShell)
Mac (you just need to get it from Homebrew)
2. Once you have LuaRocks installed, then in your Terminal, type:
3. Once you have installed silicord via LuaRocks, make a new file named
Learn more at https://silicord.github.io/ or visit the open-source code at https://github.com/silicord/silicord.github.io
https://redd.it/1resu3r
@r_lua
Introducing silicord. Silicord is a LuaRocks library which uses Luau-inspired syntax to make your own Discord bots with one simple install.
Why you should start coding with silicord:
1. Beginner-friendly syntax: It's perfect for beginners with simple syntax inspired from Luau like
task.wait(), Instance.new(), etc.2. Simple installation: All you need to do is ensure you have LuaRocks installed in your computer, and then run
luarocks install silicord and start coding.3. Modern support: silicord was made in early 2026, which means it natively supports modern Discord features like slash commands and DAWE voice support (coming soon in versions v1.2.x or higher)
4. Advanced Luau-inspired libraries: Yes, even the
DataStoreService actually stores data in a custom JSON file that you can modify in your IDE.5. Proudly Canadian: well, this isn't a feature to brag about, but i wanted to add this in here cuz why not
Getting started with silicord:
1. Ensure you have LuaRocks installed, if you do not, please use these commands to install:
Windows (you need to get Scoop to install LuaRocks in PowerShell)
# Do this if you don't have scoop
iex (new-object net.webclient).downloadstring('https://get.scoop.sh')
# Then do this
scoop install lua-for-windows
# Notice: you might need to get it from the extras bucket of scoop
scoop bucket add extras
# Also you should consider installing gcc as luarocks uses copas and websocket which may have c compiliers
scoop install gcc
# It's recommended to just install luarocks as lua-for-windows gives an old version of luarocks
scoop install lua luarocks
Mac (you just need to get it from Homebrew)
brew install luarocks
2. Once you have LuaRocks installed, then in your Terminal, type:
luarocks install silicord
3. Once you have installed silicord via LuaRocks, make a new file named
bot.lua (or anything, just make sure it ends in .lua) and paste this code. This sample code is a functional economy bot that uses both prefix and slash commands to allow the user to work for money and then check the balance.local silicord = require("silicord")
local client = silicord.Connect({
token = "YOUR_TOKEN_HERE", -- be sure to replace this with your actual token
prefix = "!", -- you can change this and it'll auto-update. if you don't add a prefix handler it will default to '!'
app_id = "YOUR_APP_ID_HERE" -- this is optional, but required if you want to integrate slash commands
})
local db = silicord.DataStore("Leveling") -- no :GetService() required as Roblox stores its GameServices in a separate file, however in silicord its a regular function
-- !work command; uses DataStore (JSON) to update balances
client:CreateCommand("work", function(message)
message:Reply("Working...")
silicord.task.wait(2) -- from Roblox Luau syntax
local newBalance = db:IncrementAsync(message.Author.Id, 10)
message:Reply("Done! You now have " .. newBalance .. " Silicoins.")
end)
-- A Slash Command that builds an Embed via the OOP Instance API
client:CreateSlashCommand("stats", { denoscription = "View your stats" }, function(interaction)
local embed = silicord.Instance.new("Embed")
embed.Title = interaction.Author.Username .. "'s Stats"
embed.Denoscription = "Balance: " .. (db:GetAsync(interaction.Author.Id) or 0)
embed.Color = silicord.Color3.fromHex("#5865F2") -- yay hex strings and Color3!
interaction:Reply(embed:Build()) -- im planning on removing the :Build() thing in v1.2.x because thats just annoying.
end)
silicord.Run()
Learn more at https://silicord.github.io/ or visit the open-source code at https://github.com/silicord/silicord.github.io
https://redd.it/1resu3r
@r_lua
silicord.github.io
silicord | Discord bots for Roblox devs
Silicord is a LuaRocks framework that lets Roblox developers build Discord bots using familiar syntax such as task.wait(), Signals, method chaining, and all.
Guys help
Guys, can someone tell me where I can learn luau to create Roblox games? (Only without options where I need to sit with online teacher).
https://redd.it/1rf7q4q
@r_lua
Guys, can someone tell me where I can learn luau to create Roblox games? (Only without options where I need to sit with online teacher).
https://redd.it/1rf7q4q
@r_lua
Reddit
From the lua community on Reddit
Explore this post and more from the lua community