i had this really weird bug in a C program i wrote once where for some reason running this random function would cause my program to make argv point to garbage data. spent days debuging it. turns out it was because i forgot to allocate memory to an array and it was overwriting the pointer.
It’s not comparable to native languages but it’s faster than any PHP, Python, Lua, or Ruby interpreter/JIT out there afaik. It’s way faster than you would think for a scripting language. Google has put a shit ton of work into optimizing it. If you haven’t experienced it firsthand then you would very likely be surprised
Edit: apparently LuaJIT is close and sometimes faster, I missed that in my googling
i'll give you the other 3 (not that it's a high bar) but from my experience lua is actually blazing fast for an interpreted language. sure as hell blows nodejs out of the water. (and i like nodejs)
i more interpreted it not as a speed thing, but as a "it has a mind of its own" thing, causing ut to do whatever it wants and it'll only do what you want it to do if it aligns with JavaScript's wishes
in javascript (!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]] and "tears" are the same thing, and that was done on accident
Visual Basic is still alive and well. It's the only macro language available for Excel, and I have used it extensively.
As far as I know, HP Rocky Mountain Basic is also still in use, in test & measurement environments. I used it long time ago, and it had builtin support for complex math and matrix math, as well as instrumentation control.
i know what abstraction is. i get the concept. my point being if the only way to make your language fast is to exclusively call functions from C libs then what's the fucking point?
The intent of python as a scripting language is as a convenient wrapper and way to use existing tools. It’s not a language for writing software, it’s a language for performing tasks using said software.
It's surprisingly not, once you learn what the symbols mean. In fact, the symbols become an advantage once you get used to them, sort of like how it is more readable to use "+" rather than "plus" in math expressions
Yup. You want it to write data beyond the bounds of an array? No problem. You asked for it.
I remember a quotation from when Pascal was taught in schools. You could say the same about Python nowadays:
"Pascal gives you a water pistol filled with distilled water. C not only gives you a loaded .357, it points it at your head as a default. Why do you think Pascal is taught in school? And which would you rather have when there is a hungry bear in the area?"
You were already told about the character set it uses, so let me say more about the rest.
APL is the language that pretty much invented the array programming paradigm, like the one you would see in NumPy. In APL, typing 1 2 3 + 4 5 6 gives you 5 7 9, automatically applying addition to each element. It has a lot of other symbols for many different kinds of operations like reversing, sorting, transposing, reducing, scanning, searching, etc. This allows you to write programs very concisely, without using loops or branching
This post can't have been made by a human. Is anyone human in this thread at all? This has to be the most appalling thing I've seen in this sub in years.
Rust: yes, but you will need 5 brazillion dependencies and you won't actually be able to compile it because rustc will get oomkilled or otherwise seize your entire bloody machine.
what is wrong with c++? if we're talking about modern c++ (at least c++11 or even latest c++23) then it's a pretty good language, you can just... use the stl. it's not c with classes anymore, it has lots of lots of actually good features. you can literally just code without worrying about memory management like in c. c++ works on RAII, where object's constructor allocates memory (often automatically now) and destructor frees it (also automatically). it's much more similar to java, but with more features. i think nowdays you need to think more about memory in java, take string comparation or array copying for example, in java str == "meow" is compating the pointers so the result is almost always false, so you have to use ugly str.equals("meow") workaround. in c++, there's a thing called operator overloading, where you don't write the .equals() methods, but just overload the == operator itself for that object, so str == "meow" works as intended. or in java when you do array2 = array1 then it's again copying the pointers, so that array1 and array2 now again point to the exact object in memory. in c++, again, the std::array which you hopefully should use instead of c-style arrays, is again overloaded, so array2 = array1 actually deep copies the data from array1 to array2. if you keep using raw c pointers*, raw c arrays[], raw c malloc/free, raw c strings (char*) then OBVIOUSLY you're going to receive a segmentation fault some day, if you use safe std::unique_ptr/std::shared_ptr, std::array/std::vector, raii principles, and std::string, then c++ is a fucking modern safe language!!!! #stopcppstereotypes
anyways, about the image: c++ should be "On it, boss!" c should be "Segmentation fault (core dumped)
A scripting language used in some videogames (mostly older ones like Garry's mod). Basically it's made to serve designers who aren't full programmers but ended up serving nobody because it's a hassle for both the programmers and the scripters to maintain. Programmers can give it functions (sort of), but you're basically going to be wrestling a stack which will contain some relevant data and some data the scripter defined.
What's a type? What's a definition? Sure you can set that to this, I ain't checking if it exists. Whoops, you did something wrong, do try and read out this stack entire stack! No, why would we implement some kind of intellisense, it's a scripting language so simple!
Hell, Gmod has achievements for getting a thousands of lua scripting errors. And I'm pretty sure they're achievable without ever downloading something from the steam workshop.
It's a scripting language specifically designed to be easy to embed within larger applications. It does that part pretty well, but the language itself can be a little weird (1-based indexing and "everything's a table").
It's useful for allowing less technical users to programmatically alter small parts of a larger program's behavior. That does make it popular in games.
It's a simple scripting language, people don't usually use it to make full apps but instead use it to let users write their own scripts. Roblox uses it (or a fork of it) to let people script in servers and Hammerspoon uses it to let you write automations you can run.
It's a fun language to use, I think. Its fairly limited but it's a step up from bash.
195
u/youtubeTAxel 20d ago
Sure...
Like C wouldn't just segfault
17
u/jediorange 19d ago
These make no sense for the most part. I don't see any humor here.
14
u/svenissimo 20d ago
You know when your old. Developed in all of these
10
u/Stackitu 21d ago
What about HolyC?
371
u/STEMpsych 21d ago
I'm uncomfortable with the implication that the only thing wrong with javascript is its speed.
8
u/read_eet 20d ago
I don't see Delphi in the list
14
u/garlopf 21d ago
TIL I'm the undertaker
7
u/gtiger86 20d ago
Where is a Basic? Any version
24
u/GarThor_TMK 21d ago
Having used rust for a bit, I feel like it should be more like...
Lua should be starts sweating... 😅
799
u/New_Salamander_4592 20d ago •
C++: answer my make file riddle of three if a compiled program you wish to see
4
u/unknown_pigeon 20d ago
Have you ever used python?
There will always be a convenient library written in C that will make your script almost as fast as if it was written in that language.
141
u/Popstar403 21d ago
godotscript:
here, let my child do it:
here, let my child do it:
here, let my child do it:
here, let my child do it:
here, let my child do it:
here, let my child do it:
...
108
u/readf0x 20d ago
I audibly laughed at APL, truly the most illegible programming language
65
u/Daniikk1012 21d ago
If you were to keyboard mash for APL, at least do it with the proper characters:
⌶⍫⍒⊖⍋⍟⍱⍲⌽¨¯<>≠∨=∧⍺⌈∊⌊⍴↑↓⍳○⌈⌊_⊥⍹↑↓⍷⍸⍥⌊∆_∩⍤
45
u/Ben_0 20d ago
Lua: Done!
checks output
Output: nil
39
u/urbanek2525 21d ago
LISP: (((Sure)why)not)?
27
u/LJonReddit 20d ago
SQL: I can, but I really shouldn't. Go ask C#.
27
u/xXHomerSXx 19d ago
No COBOL, if you die the world dies.
25
u/CirnoIzumi 21d ago
Swift: only if you bring my buddy Xcode
25
u/da_dragon_guy 21d ago
Can we get more of those old ‘Star signs in different situations’ shitposts but instead of astrology it’s coding languages?
38
u/Ex_Federa 20d ago
As yes, C. Famously the easiest language to do things in.
10
u/conundorum 21d ago
FORTRAN:
So far away.10
u/ancientstraits 20d ago
What did my goat Lua do...
65
u/Independent-Tank-182 21d ago
Child when making dumbass memes:
45
u/hraath 21d ago
Rust: please call back in 2-4 business weeks for compiling to be completed
8
u/redditor50613 21d ago
i saw something about floppy disks being used in some govt agencies and thought oh probably COBOL.
7
u/SuitableDragonfly 21d ago
Go should say, "I'm not responsible if something goes wrong, k?"
6
u/Just-Signal2379 21d ago
TS: I'm sorry you're not my type, also js come here for a sec
6
u/Cootshk 20d ago
Lua should say nil
15
u/nicodeemus7 21d ago
VBScript: "Please don't use me"
5
u/notexecutive 21d ago
CoaxedIntoBiasedProgrammerHumour
5
u/vanteli 21d ago
sad D language noises
5
u/Smalltalker-80 20d ago
"It's your funeral" LOL
5
u/Selentest 19d ago
Perl:
I guess i'll die
9
u/HeavyCaffeinate 20d ago
I will not accept this Lua slander
8
u/gerbosan 21d ago
well you don't really need Rails for it to work. Perhaps rbenv or mise. Mise is fine.
I think Java could be asking for:
4
u/xX_UnorignalName_Xx 20d ago
Haskell: you want me to WHAT?
4
u/CaptainHawaii 20d ago •
I'm in this image and I don't like it ... Java was my first language and that's literally my usual first question....
7
u/TSCCYT2 20d ago
WTF is APL?
1
u/Natural-Pomelo-4590 20d ago
forth
3
u/ExtraTNT 21d ago
Haskell: i will it evaluate it, once i evaluated, that it’s really needed, to do that, i will use monoids in the category of endofunctors.
3
u/armahillo 20d ago
Ruby stan here — Ruby is actually a really awesome language on its own, without rails.
My day job is predominantly in rails (with some plain ruby scripts) but i write a lot of plain ruby scripts outside of work.
6
u/Sea-Fishing4699 20d ago edited 20d ago
I hate to admit but… python is the only one willing to do the job… python talks to cpython and the job is done
4
u/polandreh 20d ago
If you touching SQL makes you drop the entire database, then you shouldn't do SQL, like at all... leave it to the DBAs...
2
u/meinkr0phtR2 20d ago
INTERCAL: please
2
u/ZookeepergameFew6406 20d ago
Haskell???
2
u/amatulic 20d ago
I would have liked to see Ada in that list.
1
u/SimonsOscar 20d ago
Shouldn't there be some coherent logic behind these? Like a good extended analogy, no?
1
u/MagicBandAid 20d ago
Ada: I'm going to need to see some ID.
1
u/Mountain-Ox 20d ago
Actually, Go doesn't understand what this "try" word means. Do or panic, there is no try.
1
u/Coffee_exe 20d ago
“Lua: no” damn.
1
u/Aelig_ 20d ago
This post can't have been made by a human. Is anyone human in this thread at all? This has to be the most appalling thing I've seen in this sub in years.
1
u/tubbstosterone 20d ago
Correction:
Python: "Hey C, can you come over here for a sec..."
1
u/Mysteryman5670_ 20d ago
Rust: yes, but you will need 5 brazillion dependencies and you won't actually be able to compile it because rustc will get oomkilled or otherwise seize your entire bloody machine.
1
u/sagotly 20d ago
dont get the go one
1
u/JAXxXTheRipper 20d ago
TIL SQL is a programming language
1
u/PossibleAthlete2988 20d ago
Omg lua is here
1
u/[deleted] 19d ago
C#: yeah give me a few years to compile
1
u/[deleted] 19d ago
Python in reality: “Give 3-5 business minutes”
1
u/Hm_bmb 19d ago
Delphi (Pascal): I can do it without any problem
1
u/namitynamenamey 19d ago
To be fair to python, it wanted to do research and development, not service industry code.
1
u/ekipan85 19d ago
Forth: ok
1
u/PrefectedDinacti 18d ago
I'm making a World of Warcraft addon and apparently Lua is indeed saying no
1
u/TSS_Firstbite 21d ago
Damn, I'm a student, have had some experience in a good chunk of these languages and the one that speaks to me the most is Lua refusing to do anything
-3
u/queen-adreena 21d ago
Programmer: Can you do some-
Rust: Done!
-11
u/Choice-Committee203 20d ago
what is wrong with c++? if we're talking about modern c++ (at least c++11 or even latest c++23) then it's a pretty good language, you can just... use the stl. it's not c with classes anymore, it has lots of lots of actually good features. you can literally just code without worrying about memory management like in c. c++ works on RAII, where object's constructor allocates memory (often automatically now) and destructor frees it (also automatically). it's much more similar to java, but with more features. i think nowdays you need to think more about memory in java, take string comparation or array copying for example, in java str == "meow" is compating the pointers so the result is almost always false, so you have to use ugly str.equals("meow") workaround. in c++, there's a thing called operator overloading, where you don't write the .equals() methods, but just overload the == operator itself for that object, so str == "meow" works as intended. or in java when you do array2 = array1 then it's again copying the pointers, so that array1 and array2 now again point to the exact object in memory. in c++, again, the std::array which you hopefully should use instead of c-style arrays, is again overloaded, so array2 = array1 actually deep copies the data from array1 to array2. if you keep using raw c pointers*, raw c arrays[], raw c malloc/free, raw c strings (char*) then OBVIOUSLY you're going to receive a segmentation fault some day, if you use safe std::unique_ptr/std::shared_ptr, std::array/std::vector, raii principles, and std::string, then c++ is a fucking modern safe language!!!! #stopcppstereotypes
anyways, about the image: c++ should be "On it, boss!" c should be "Segmentation fault (core dumped)
-5
u/stupled 20d ago
What the F is Lua?
8
u/Bitter-Fuel-5519 20d ago
a i see Its C circle jerk
1
u/zman0900 21d ago
Lisp: OK, bend over and spread em
1
u/The_Cre4tor 20d ago
Haskell: "Go k*ll yourself"