[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


File: simple lang.jpg (21 KB, 612x290)
21 KB JPG
Which one would be more easier for a non-programmer?
>>
Lua was made for non-programmers iirc.
>>
>>109542346
GNU Guile
https://www.gnu.org/software/guile/
>>
>>109542346
Python.
Lua is for embedding into other programs and its standard library is pathetic so you'd have to implement everything yourself in the host language which you'd also need to learn first.
>>
C
>>
lua is 1-indexed, that is supposedly more natural to count from.
>>
>>109542346
X86 assembly
>>
>>109542410
Binary, you only have to press two buttons.
>>
>>109542346
lua doesnt have the retarded package and venv management
>>
>>109542346
Depends on your goals
>>
>>109542346
>more easier
for you, it's lua saar
>>
>>109543243
But python is the #1 jeet language?
>>
>>109543264
But it's not as niggerlicious
>>
>>109543264
Good morning sirs, Java language can always do the needful
>>
>>109542346
lua. they make roblox games with this
>>
syntax is not the biggest problem of a non-programmer, so anything is good

personally I'd go with python simply because it's more popular
>>
>>109543264
Saar, python is the being high caste language ONLY.
>>
>>109542346
every little kid is using Lua for world of warcraft addons, if lil kids can do it, you should too
>>
File: 1780068255515251.png (152 KB, 2663x1058)
152 KB PNG
>>109543264
not as jeeted as C
>>
Go for python. You’ll have a much easier time finding learning material and a job afterwards
>>
File: lua test001b.png (92 KB, 617x313)
92 KB PNG
>>
>>109542350
python is like pseudo code
>>
>>109546576
>Misunderstands the data this heavily
Good morning
>>
>>109543391
lolwhat
>>
>>109542346
A non programmer should just ask an LLM to write python code (because llms are better at python compared to lua)
>>
>>109542346
Python. Both are relatively easy, but lua is more limiting with its lack of basic features.
I started with lua and switched over to python before long for this reason. Constant friction of not having simple shit like not having a sleep function by default, every little bit of frustration matters when you don't really know what you're doing in the first place. I shit you not, the recommendation I saw when I first encountered this was to call out to a VBS script with a timeout statement.
>>
>>109548714
>I shit you not, the recommendation I saw when I first encountered this was to call out to a VBS script with a timeout statement.
If only lua had some integration with a single letter programming language that it's known for...
>>
>>109547056
I don't know what that's supposed to even mean in this context.
>>
>>109543264
That's java
>>
>>109550073
https://news.ycombinator.com/item?id=1803815
>>
>>109542346
>Which one would be more easier for a non-programmer?
None
To learn programming without having to cope with silly bullshit, there's Pharo, Squeak, even Common Lisp is better. Scheme also qualifies.
>>
>>109547056
>python is like pseudo code
only if the pseudocode is written by a neet
>>
>>109551443
explain
>>
>>109551437
>Pharo
will lock you up into one specific environment and paradigm. if there is any beginner here, don't listen to this guy, lel.
>>
>>109551437
>without silly bullshit
>smalltalk or lisp
I mean I like them both, but come the fuck on. Those languages are silly bullshit incarnate.
>>
>>109542346
AI.
>>
>>109542346
neither, they both suck.
We don't have good languages and it follows that we don't have a good beginner language.

Perl is a bettern beginner language, unironically. The syntax looks scary but it's actually pretty simple and more importantly the semantics are also quite simple compared to Python, but it's not dumbed down like Lua is. Also because referenences are explicit, it gives a better grasp of that fundamental concept than Python.
String processing, regexes and list processing is also a lot simpler than in Python and it's a significant advantage because that's something you will do a lot in scripts.
>>
File: 1784522301610.jpg (1.81 MB, 4513x4517)
1.81 MB JPG
Lua is the better language AND easier to learn, and it's not even close
>>
>>109553994
I've thought about trying Lua, but gay shit like your pic keep me away. Not interested in dealing with a troon lang.
>>
>>109554057
>cute girl mascots... are LE GAY!!!
>>
>>109542346
probably python because it has more features

but if you are serious about programming you should start with C and then move on depending on your use case
>>
>>109554099
Troon coded "art" sure is.
>>
>>109554057
Tell me your favorite language so I can post an anime girl version of it
>>
>>109554126
>but if you are serious about programming you should start with C and then move on depending on your use case
Start with assembly language first, doesn't take long to get the basics down.
>>
>>109554140
AngelScript
>>
>>109553994
Lua mixes up arrays and dictonaries, it's retarded and beginner should DEFINITELY NOT confuse those different data structures
>>
>>109554572
And why not? They're the same abstraction (key = value). Lua's design is very human, and array-like tables become real C arrays anyway as an optimization.
>>
Easier then your english for sure
>>
File: 1771108590447684.png (78 KB, 292x292)
78 KB PNG
>>109546576
>google analytics
>>
File: gnunixoids.jpg (136 KB, 1068x970)
136 KB JPG
Lua is DSL, Python is general purpose. watch "Creator of Lua" recent interview, the answer in the first 10 min.

intedesting view he makes about embeddable VS extendable, but the Lua's future is uncertain because programs with compiled loop will probably extinct
>>
>>109542346
LUA was the first one I learned making WoW addons way back in the day. Python is probably "easier" but its boring. For me its a question of motivation. I'm a first world upper middle class White. I don't imagine I would've stuck with coding if I was doing lame Python dice rolling game or shitty weather app or whatever beginners are learning now. I needed something fun and interesting to keep me coming back and fighting through the initial frustration of it. If I was a greasy jeet drinking dumpster water for dinner in Mumbai, I'd probably be motivated enough to make some data scrapping scam app as my first project but I'm not, so I probably would've just quit after the first indent error.
>>
>>109551565
>Those languages are silly bullshit incarnate.
You must be retarded. Smalltalk and lisp are the least bullshit development environment

Is beyond me why anyone would deliberatively cripple himself to primitive structured text > compile > run > debug instead of a live environment where you can actually develop in a dynamic fashion and be able to inspect, search and modify state online
>>
>>109554651
>And why not? They're the same abstraction (key = value).
Wrong. Arrays are ordered collections. It can support appending, prepend, slices. Dictionaries aren't ordered collection and don't have those function as part of its interface. Exists and delete makes sense for a dictionary but doesn't make sense for an array. You can delete array[0] all you want, the "key" 0 won't cease to exist.

>array-like tables become real C arrays anyway as an optimization.
arrays are logically different than dictionaries, it has nothing do with optimization

sequence data structures and set/associative data structures have different interfaces
https://www.youtube.com/watch?v=76dhtgZt38A
>>
>>109557261
>https://www.youtube.com/watch?v=76dhtgZt38A
at 55s btw
>>
>>109557261
>tism meltdown
I'm not reading all that
>>
>>109557330
>>tism meltdown
meds
>I'm not reading all that
You already have, the only reason you don't reply properly is because I'm 100% right.
It's not like every single language other than Lua also makes the dinsction. Outside of equally shitlangs like Awk and JavaScript.
>>
>>109557261
>Dictionaries aren't ordered collection and don't have those function as part of its interface.

hashmap (the proper word) is based on array, it may not have some functions trimmed or retarded, same as one animal species can fly but another only crawls.

naturally they implode in the high-level language, that is a good design, same as making a linked list object for the userland, there is no point in a singly linked list in the userland's glue code, thats why LinkedList is doubly linked list

same as you dont need to make a bunch of uint8_t, uint16_t, uint32_t, uint64_t in the userland, that would be retarded, high-level language purpose is unification

>arrays are logically different than dictionaries

which arrays btw? segmented lists are different than lists too, they are so different that cannot be mixed with hashmaps, while normie lists can, meaning lists are closer to hashmaps than segmented lists, but lists and segmented lists have the same API, same logic, wow.
>>
>>109557449
>aren't ordered collection

ordered btw, they arent ordered only in academia. it was well-known since JS hashmaps (ordered)
>>
>>109542346
Probably Lua, since it has less functionality, which means there's less shit to learn. Python looks simple and clean, but that design friendliness results in it papering over the cracks in your programming knowledge, which has the potential to result in you being a pretty terrible programmer, if that's your first language. For example, it's pretty bad to use when e.g. learning about programming paradigms, because Python is very fluid and not strict with how it enforces such constraints. This amount of freedom results in you having to be pretty resolute, if you want to write clean code.
>>
>>109557449
>hashmap (the proper word) is based on array
doesn't matter how the memory is represented inside, what matters the fundamental is different. exists and delete don't make sense of an array. dictionaries can't have an insert_before, insert_after and anything related to the order of elements because it's an unordered collection

>segmented lists are different than lists too
in implementation but not in interface. they are all sequence data structures and support all the same functions, it's just the time and space complexity will be different

>lists and segmented lists have the same API, same logic
yes, that's the point. It's the only thing that mattes.

>>109557478
>ordered btw, they arent ordered only in academia
only specific implementations of dictionaries are ordered
the academia/non academia distiction is meaningless, plently of languages have unordered dictionaries
>>
>>109557599
>what matters the fundamental is different
*what matters is that the fundamental interface is different
>>
>>109554057
>>109554129
every day I thank god for not making me a terminally online /pol/ 12 year old that sees trannies in everything
>>
>>109557599
>doesn't matter how the memory is represented

ye, implementation doesnt matter, lets roll back in an armchair, relax and do phylosophical D's (that wont last too long though)

>exists and delete don't make sense of an array.

your proposal for deletion of those methods/funcs will be dismissed with a probability of 99% professor.

> dictionaries can't have an insert_before, insert_after and anything related

sure, if you dont implement them they wont be there, pure logic.

> plently of languages

those are unnamed and forgotten experiments which didnt pass evolutionary barrier
>>
>>109542346
>more easier
Sar...
>>
>>109546576
Should be the C programming language, you fucking dunce.
>>
>>109557959
>ye, implementation doesnt matter
it doesn't because we talking about the language semantics here, try to follow

>sure, if you dont implement them they wont be there, pure logic.
you can't implement in general because dictionaries are unordered collection. This is also true in the case of Lua, the it's does conserve the insertion order.

>those are unnamed and forgotten experiments which didnt pass evolutionary barrier
wrong
>>
*it doesn't conserve the insertion order
>>
>>109558123
>we talking about

i dont know which phylosophy youre talking about, i said the reality defines what phylosophy/model is right. spec doesnt produce implementation, only implementation forges the spec. the pressure measurement device doesnt produce the pressure, the pressure produces measurement number on a device.

these basic understanding has to be digested by any academia astraunaut before he entitles himself to talking about softwares. academia got welfare freebies and may hallucinate as long as it wants without reality clash, that is wrong.
>>
>>109558236
data structures and languages semantics have nothing to with philosophy you absolute brainlet



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.