CARVIEW |
Select Language
HTTP/2 200
date: Wed, 23 Jul 2025 09:50:20 GMT
content-type: text/html; charset=utf-8
cf-ray: 963a45e06f428a2a-BLR
cf-cache-status: DYNAMIC
cache-control: private
set-cookie: prov=50675b4f-a100-4b82-8fa3-c7affeb93121; expires=Thu, 23 Jul 2026 09:50:20 GMT; domain=.stackexchange.com; path=/; secure; httponly
strict-transport-security: max-age=31536000; includeSubDomains
vary: Accept-Encoding
content-security-policy: upgrade-insecure-requests; frame-ancestors 'self' https://stackexchange.com
x-frame-options: SAMEORIGIN
x-request-guid: 3bbca9e7-083f-4a51-8ced-a281ec2b2d43
x-worker-origin-response-time: 439000000
x-dns-prefetch-control: off
set-cookie: prov=50675b4f-a100-4b82-8fa3-c7affeb93121; Path=/; HttpOnly; Domain=stackexchange.com
set-cookie: __cf_bm=_9uyzDlr3_YtWkA3BfGKdCfwxQ2ZPPq4SySvXqmP9Lc-1753264220-1.0.1.1-v4.e8CR4yehalgO3uAvkxFu80rKaQwI5wyTa._XGfU_UlAaK1Dlj9JHsSUE.vC05H0kZJcaXxn8TVwVM0bzS0sRMBi2pr0Ta4uGtaJ5CdsQ; path=/; expires=Wed, 23-Jul-25 10:20:20 GMT; domain=.stackexchange.com; HttpOnly; Secure; SameSite=None
set-cookie: _cfuvid=Gmo1_zfWg.Vz0misuCBWL_ewCVJ_mXlnMZDRNafREJc-1753264220677-0.0.1.1-604800000; path=/; domain=.stackexchange.com; HttpOnly; Secure; SameSite=None
server: cloudflare
content-encoding: gzip
Newest 'lua' Questions - Code Review Stack Exchange
Skip to main content
Stack Exchange Network
Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Visit Stack ExchangeTeams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Learn more about TeamsQuestions tagged [lua]
For code written in Lua, or built to interface with Lua (e.g. native code providing Lua functions).
107 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
3
votes
0
answers
106
views
Autoshooter game in Love2d
I ported a little game I originally made in Macroquad to Love2d. But I have also added additional features, like additional animations and screen shake. I have used HUMP for various utilities. shack ...
3
votes
1
answer
88
views
<Programming in Lua - 4th> exercise 2.2 - place 8 queens
About exercise 2.2
Place N queens on N*N board, 1 queen per line, so that all queens are safe.
Use permutation to improve the provided implementation from book.
The ...
0
votes
0
answers
47
views
Roblox Lua - System for grabbing ingredients and making a pizza
I have started creating a system that allows players to grab pizza ingredients from a table, and and make a pizza with them. (Currently is just dough and pepperoni). However, despite it all working, ...
3
votes
1
answer
64
views
Run UNIT TEST automatically from NeoVim
Still working on my neovim configuration.
I use Google test to write my unit tests. Which means that all the unit test begin with ...
3
votes
0
answers
47
views
Add DAP debugging to NeoVim on Mac
Upgrading from vim to neovim (on the mac).
Part of this is to get the DAP debugger working from inside neovim.
I have "Lazy&...
5
votes
1
answer
90
views
RandomNumber wrapper in Lua
This is a wrapper I wrote for math.random(). I have a larger program that will create a JSON file to 'load' from when I want to resume. However my program heavily ...
0
votes
2
answers
91
views
Try to not repeat function in Lua
There is a way to not rewrite the same part (the cycle for i = 1...end) twice?
...
4
votes
1
answer
5k
views
Inverting a boolean in Lua
Is there a more elegant way to set this boolean value?
SetScript() is a game API, while "OnClick" is its handler. What ...
1
vote
2
answers
311
views
function to print any type in Lua?
I'm learning Lua for about a week now and I've built (I hope) a function to print any type in Lua. As I'm new to Lua I don't quite understand:
if there is a more succinct way to achieve this
if ...
4
votes
0
answers
240
views
First Lua program - Print external IP and VPN status
I started learning Lua yesterday and wanted to write a quick program as a practice.
It queries an external service for the IP address and country code, and naively check for the existence of network ...
3
votes
1
answer
113
views
Trailing delimiter string splicing, implemented for Lua in C
I've been writing with C for a couple days, so this is a relatively advanced function compared to the simple things I've been doing previously. It's written for the Lua API, but it's still C.
...
1
vote
2
answers
6k
views
Get list of buffers from current neovim instance
The function below is written in Lua and returns the list of buffers from the current neovim session, it also allows the option to specify a optional table (object) as a parameter, with a ...
8
votes
2
answers
304
views
3D torus in Lua
I'm a total beginoob in Lua. The aim is to display a 3D Torus in dots (see Figure1), or at least compute the positions, privileging clarity over performance. Pseudocode link.
Don't hesitate to be ...
6
votes
1
answer
328
views
Complex number class in Lua
This is my first attemp with Lua.
I decided to create this class, because it have lots of "tweaks" and "tricks".
I want to know if I did it as best practices Lua ways.
My Lua ...
4
votes
2
answers
644
views
I wrote my first pathfinding algorithm
I'm currently writing a small game in Lua, using the Love2d framework. I guess I'm doing it as a practice of sorts, but it did give me the opportunity to write my first pathfinding algorithm. I wrote ...
- The Overflow Blog
-
-
- Featured on Meta
-
-
Related Tags
beginner × 13
lua-table × 12
performance × 11
game × 10
strings × 9
algorithm × 6
c × 6
parsing × 5
c++ × 4
object-oriented × 4
redis × 4
api × 3
opengl × 3
adventure-game × 2
.net × 2
ffi × 2
freetype × 2
nvim-configure × 2
macros × 2
random × 2
regex × 2
serialization × 2
more related tags
Hot Network Questions
- Why does contact with the ground make my touch-activated LED brighter?
- What is the consistency strength of Russell & Whitehead's ‘Principia Mathematica’?
- Praesul meorum tattoo
- Can you identify this shell case from Flanders?
- Sum of ranks of blocks
- Meaning of「えっ、えぇ……」here (spoiler warning for kanokari fans)
- Mother in Law has overstayed her schengen visitor visa by 9 days. I am applying for the same visa this year, what should we take care of?
- How do mechanical gyros maintain rotational speed?
- When is XLOOKUP() faster than VLOOKUP()?
- Will I lose my seat reservation on Deutsche Bahn EC if I skip the first leg?
- Distribution of a dot product of multinomial variables
- I wonder whether there exists a book of "Formal power series" and "Formal infinite products"?
- TeX development in C instead of Pascal
- Why does my door knob bolt catch in the retracted position?
- Where did the baby AT motherboard format come from?
- What does this "lightbulb-ish" symbol mean in figure 1 of the Diffie Hellmann paper?
- Why were two 2x6 boards installed on top of a window rough sill?
- What was intestacy law in 1852 London?
- Can I still get the pacifist ending if I use the fight option in a boss fight, but miss every time?
- Active space characters
- How much power does the Fed chair have over interest rates?
- Prevent equation label from shifting down
- Error when sending an email with attached PDF using Google Script
- Which domain (time or frequency) does filtering actually occur in real-life?