Why aren't you using Lua, user?

Why aren't you using Lua, user?

Attached: signal-2018-08-04-161351.png (573x892, 213K)

Other urls found in this thread:

github.com/luarocks/luarocks
roblox.com/catalog/23220518/Lua-Cap
twitter.com/NSFWRedditVideo

too few libraries. I don't want to rewrite things that are already solved problems.

She's extremely dangerous and needs to be apprehended immediately.

Attached: 1538266891487.jpg (444x470, 40K)

But I do

lapchan.moe

I used to use lua then I made my own embedded language that was better

What libraries do you need?

nice

Attached: Screenshot from 2018-09-30 23-00-29.png (1166x482, 41K)

Because I have no use for it. I work on web and mobile systems and I've literally never found Lua to be useful. I've seen it used for configuration of desktop software, and for scripting. I think some editors like scintilla use it but I work almost exclusively from the command line with software that doesn't need lua

berry nice

it's fucking annoying to use

i tried to write some cards for YGOPro with it and couldn't make it past the third day

> Get into lua by modding some indie game
> try to port favourite old ass mod to the steam workshop
> code is one steaming pile of shit

why does lua just enable shit coding?
tables were a mistake

Attached: cancer.png (2560x1503, 293K)

Too far

Attached: file.png (638x227, 37K)

>arrays start at 1
>nil is truth value
>IEEE 754 for integers
>no static typing

lol no

Shitty Luna porn game Dev here, can you expand on how I could prevent my code from being table fests?

lua allows you to write code fast, not well

data defintion isn't bad coding

I haven't done a second of research into Lua, but is it an actual coding language or another scripting language being pushed to do programs?

well there are no other solutions to store values as an array or list. I myself try to figure out how to combine the whole idea of only having tables with the principles of OOP

there's several guides out there on how to imitate OOP with tables, it's not too difficult

Moonscript is a language with OOP that compiles to Lua

It's the latter. Technically a configuration language that became a programming language.

Hmm. Is it worth learning for someone who wants to do hobby stuff and isn't interested in a career in programming?

yes

If your into gamedev/ gamemodding it is worth taking a look

fennel lang is a lisp that compiles to lua

Cool. I've been tossing around the idea of learning something like C or Haskell but would rather start off with something smaller/easier just to motivate me. Are there any good books/guides you could recommend?

Eh not something I've though about before but could be fun. Wonder if I could mod nethack with lua. Most people just fork it though, instead of mod it.

looks interesting
yeah i looked at those and cooked up my own oop thing. however i kinda fail at implementing inheritance and implementing whacky hacks, making everything worse. If the language offers "oop" why do i have to fuck around with metatables?

Because of Tcl.

>If the language offers "oop" why do i have to fuck around with metatables?
it's really easy dude
I haven't used it in a while
but inheritance is as simple as copying the class table you're extending from

Based and redpilled.

It's my favorite language for hobby shit along with C. Shit is just very raw, very simple, and very fast. Its C API is rather simple but I prefer the LuaJIT ffi now.

A good alternative with more popular languages is C++, Python, and using pybind11 for interfacing. I use that at work and am quite happy with that as well.

Shell++ is a fucking gross "language". I have to use it a lot because every fucking hardware simulator from the early 00's used it because it was the new meme. Its aged like steel in seawater.

>1-based indexing
Either way I have no choice to use it at work sometimes.

Attached: 1508875954753.png (792x1000, 1.15M)

It's more like Lisp-- or (Shell + Lisp)/2. What do you dislike about it?

aren't you that guy who's making a loli VN in Lua by any chance?

Error

/usr/share/lua/5.1/lapis/application.lua:665: ./controllers/catalog.lua:58: attempt to index field 'op' (a nil value)
stack traceback:
./controllers/catalog.lua: in function 'filter'
/usr/share/lua/5.1/lapis/application.lua:38: in function 'run_before_filter'
/usr/share/lua/5.1/lapis/application.lua:626: in function

Traceback

stack traceback:
[C]: in function 'error'
/usr/share/lua/5.1/lapis/application.lua:665: in function 'handler'
/usr/share/lua/5.1/lapis/application.lua:399: in function 'resolve'
/usr/share/lua/5.1/lapis/application.lua:408: in function
[C]: in function 'xpcall'
/usr/share/lua/5.1/lapis/application.lua:406: in function 'dispatch'
/usr/share/lua/5.1/lapis/nginx.lua:205: in function 'serve'
content_by_lua(nginx.conf.compiled:26):1: in function

Because I use a custom scripting language.

Does it have a package manager?

If I want to parse X, I am not going to fucking parse it myself.

If I want to communicate with redis, ssh, xdcc, I am not going to code it myself!

Because I use Python. I only use Lua when forced to.

Are you dumb boy?
github.com/luarocks/luarocks

LPEG for parsing, and it can parse more complex languages than regular expressions too, but it contains a PCRE-esque regex library implemented with the underlying PEG library.

As so those specific technologies, that's on the users of the language (i.e. YOU) to implement, not the language itself (I remember seeing a redis lib, idk about the others).

i am

but I am, it's so easy to embed and extend
lua has really nice syntax compared to python and ruby

whoops

as for code it in native and extend lua

but how do you add device support? linux has the device tree system, what does haiku have?

Wrong thread?

I use it all the time!

Attached: love2d.png (179x179, 7K)

Nice to see another lover

Attached: tumblr_nw7xhlwJSJ1so2yzzo1_1280.png (640x1000, 154K)

gross

>lua has really nice syntax compared to python and ruby

>being this fucking retarded

Yeah nevermind I'm not using it anymore.

Because it isn't 2003 user

I do use Lua a bit.
the error messages kind of suck
>attempt to index field '?'
fucking fuck ass, at least tell me what I tried to access, there were a bunch of table accesses on the line and this shit keeps happening and I bet it's because some other shit in a table doesn't fucking exist because I fucked up somewhere else and this is where it's fucking dying
tell me where on the line I'm fucking up too, jesus

still constantly find myself wishing for += and -= too

it's not all bad, it's really clean and easy
also, I want to fuck this qt lua anime grille

it's mainly for embedding into other programs
nothing is stopping you from using it standalone, but the primary use case is to add extensibility and programmability

>If the language offers "oop"
the language doesn't really
it provides enough to let you implement oop with it, and there's a relatively standard idiomatic way of doing it
but lua isn't really an oop language

it's the nature of the beast
lua is very table driven

Why not? We have toys!

Attached: lovetoys.png (178x237, 11K)

i need my curly braces

I can't find a use case for lua that isn't done better by another language.

an interpreted very fast language with curly braces

>configuration language
Markup languages aren't shit in comparison, xml has schemas but isn't programmatic, yaml is honestly horrible
>embedable scripting language
I really don't know. tcl? Lua is more readable and more general-purpose without being any heavier. It's also faster than tcl.
>dynamically typed general-purpose programming language
Okay, maybe something like Python or Ruby is more developed in this respect, but both are rather big to be embedding in anything beyond the largest applications and are definitely not meant to be configuration languages. Not to mention most of the available libraries are also available for Lua. The important ones that is.

Lua is a good go-to unless you need something only a Python library fulfils, or can be granted in performance or reusability by writing in C++ or C and distributing as a compiled application or library.

Like I said above, I use LuaJIT + ffi + C at home and Python + pybind + C++ at work. Both stacks are pretty solid when it comes to covering everything general-purpose.

roblox.com/catalog/23220518/Lua-Cap