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
So did I. When I was first learning JavaScript, I recall getting frustrated by things not happening in the order I expected. The OP's characterization as "I'll do it when I feel like it" is appropriate.
in javascript (!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]] and "tears" are the same thing, and that was done on accident
This is the most cursed thing I've seen since I read how numbers are defined in set theory. Javascript has no right to approach set theory with broken casting.
it's called JSFuck (because it looks like BrainFuck) and not only can you write any string with it, but you can also make the function constructor, meaning you can execute any string.
I think it’s much more than that. It’s single threaded so its concurrency model is about scheduling not parallelism. The way it handles microtasks and its internal queues is kinda counter intuitive. And callbacks and timers in general are also kinda weird.
console.log("A");
setTimeout(() => console.log("B"), 0);
Promise.resolve().then(() => console.log("C"));
//this one is more node specific but still process.nextTick(() => console.log("D"));
Just for your future reference, I cannot tell if you mean "If you are concerned about speed, use Rust" or if you mean, "If you think JS is bad, you should get a load of how bad Rust is, whooo-eee". Not asking you to disambiguate, because the odds of my using Rust at this moment approach zero, but thought you should know.
I'm a developer and have been using Delphi since it was first released for Windows back in the 90s by Borland. I continue to use it on and off but it's now from Embarcadero. I like it and wonder what others think about it.
You could say that I guess 🤣 but my first languages were Fortran and C. In the 90's developing Windows Forms application was a fucking nightmare, Borland came up with their IDE that allowed for graphical form design which was very intuitive and powerful for that time. Fast forward to today and Embarcadero has RAD studio which allows for native cross platform development which supports coding in either Delphi or C++.
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.
wasn't aware that basic and VB were actually related. however i still question if it's usage stacks up to the others. although i also listed APL so who am i to judge.
Yeah, those old BASIC programs from the 1970s tutorials, you can put into Visual Basic and they'll work mostly (with the GOTO and GOSUB statements and all), although the behavior of the PRINT command in those days was different than it is now.
Sometimes I miss GOTO. The C language has it. I used to use it for things like dropping through a switch() statement for more compact compiled code, back in the days when memory was valuable -- even before the days when Bill Gates famously said 640K is enough computer memory for anyone. (And look at Windows now, needing gigabytes just to hold the OS in an idle state.)
It's more like the developers are deeply paranoid, and have hired Rust to inflict their paranoia on users. So yeah, the Rust compiler doesn't "sweat" with anxiety (though it arguably makes your CPU "sweat" with effort), it tries to make you sweat (with anxiety).
(For transparency, I love Rust and think the "paranoia" of Rust devs is actually fully justified caution based on decades of programming bugs.)
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.
The logo is pretty recent actually, there was a vote for a vendor-agnostic APL logo, and this was the one that won. APL as a language did not have a logo before that, only specific implementations did
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
So in APL, to create an array you just type a bunch of values (In this case numbers) next to each other, so 1 2 3 results in a 3-element array containing 1, 2, and 3. Numbers are written as you normally would, except negative numbers use ¯ prefix instead of - (Cause - is instead a function), so you write ¯5 to get negative 5.
Next, how functions are parsed. All functions in APL use infix notation, with only one precedence rule - functions take everything to the right of them, and only the closest thing on the left. So 1-2-3 parses as 1-(2-3), 2*2+2 parses as 2*(2+2). You need explicit parentheses for left side to be evaluated first: (1-2)-3. That is, function calls are right-associative, or in other words, APL is evaluated right to left.
Each function has two ways it can be called - with one argument (monadically, which happens when there is no value on the left of the function) or with two arguments (dyadically). For same function these two variants usually perform closely related operations, but not necessarily. For instance, dyadic ÷ is division, so 4÷2 is 2, while monadic ÷ is multiplicative inverse, so ÷2 is 0.5.
Now, primitive functions like + are defined to operate on whole arrays instead of just individual elements. For arithmetic functions, if you use them on arrays of same shape, they will apply to each corresponding element, so 1 2 3+4 5 6 is 5 7 9 like was already shown. You can also use arithmetic on an array and a single number, which will apply it to every element of the array and that number, so 1 2 3+5 is 6 7 8. Same for monadic arithmetic of course, it just applies to each element, so -1 2 3 is ¯1 ¯2 ¯3.
There are more functions of course, like monadic ⌽ for reversing an array, monadic ⍉ for transposing a matrix (Arrays in APL can be multidimensional), ⍴ for reshaping an array (Or getting its shape if used monadically), etc.
Then there are operators, which take functions and result in new functions. They are parsed differently than functions, being left-associative. For instance, / operator takes a function on its left and produces a function that reduces an array by inserting that function in-between each element. For example, +/1 2 3 is equivalent to 1+2+3 and results in 6.
For more info I'd visit something like tryapl.com, it is a good playground to learn APL, and has some tutorials too. If you wish to download an interpreter locally, the most popular and feature rich one is Dyalog APL, which is free for personal, non-commercial use.
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)
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 21d 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)