@vexamologist

"What is the fastest programming language?"
"C"
Assembly Language: Am I a joke to you?

@ioneocla6577

I don't really like the argument of modern hardware. A lot of people nowdays can't afford a crazy computer. I remember when i still had a 4gb 2 cores laptop i couldn't even run discord or teams without lagging
Now that doesn't mean you should learn low level languages and frameworks like c++ or qt to make your app faster, but you should consider twice using a framework that will bundle the entire chrome codebase (electron) just because you wanted to save time and put it under the "modern hardware" excuse

@af2828

I programmed for one of the big agencies. In military programming for example for rockets or drones even milliseconds make a big difference.

@TuanAnhNguyen-qp6uc

C might be fast but is your C code fast?

@gordonfreimann

It started to matter with the growth of the microservices. Companies realized that especially scripting languages such as python or php use a lot more cpu than compiled languages such as Go. When you have hundreds of nodes running heavily, it really starts to add up and they can cut down the expenses significantly with faster languages because cloud companies mostly charge by the cpu usage along with other things.

@airman122469

It ALWAYS matters. A programmer that doesn’t care about cpu and memory usage shouldn’t be in the field.

@Rudxain

It doesn't matter, but for a different reason. In most cases, the speed of a lang highly depends on how it is executed by the target machine:

Statically compiled (C, Rust), AOT compiled (Python, Java, Kotlin), JIT compiled (Java, V8 Javascript, some implementations of Python), interpreted real-time (shells and some esolangs), interpreted bytecode (CPython, Java, Javascript), and some more approaches.

If all langs were executed in the same way, the question "which is faster" starts to make sense and becomes fair. Statically typed langs will be usually faster than loose/dynamic/duck typed langs, especially if the dynamic langs do runtime type-checks and implicit type-coercion and casting.

One of the reasons why a lang might be faster is its ease of memory management (auto and manual). Every global function that you call in JS, could be modified by some external code and change the behavior of your program at runtime, so the engine has to keep both the original copy of the bytecode and the optimized JIT version, just in case something changes, and then recompile the bytecode to generate new machine code at runtime. Langs like Java and Rust have "very localized" variables, and prevent you from directly tinkering with built-in libraries, this makes them easier to optimize

@mkpanda

Another important question is "Will your C implementation be faster than a Python one?". Because no matter how fast the language is, if you write bad code in it because you aren't experienced, it may be much slower than if you rewrote it in a language you are comfortable with.

@gamingthesoy702

Isn't assembly faster than C

@bradvan8156

The example my CS professor gave was say you have a SpaceX rocket launching where in this case you need the system software to run at very specific times so everything works accordingly. 

C is great for that since it closely works with the memory and you know exactly what’s going on. You don’t want Java or Python to run their garbage collection to free up memory space right at the time you need to boost your engines for example

@MeloDyZzy

Well, this is the best channel for new developers I discovered 😃

Greeting from México 👋

@nosehad5486

At the End even C can be slower than Python if the programmer doesn't know what he is doing.

@AnnasVirtual

it matter when you build games, os, browser, vm, and any other high performance apps

@raydragon799

U can always do ur complicated algos in c then use python wrapper over it to make it fast.... Like pandas / numpy

@kayakMike1000

Deterministic behavior is also important

@RickB3n

Assembler 👌

@FelonyVideos

This video is proof that modern programmers arent really programmers.

@kinershah464

Slow program means more instructions and more energy. Energy is being wasted because of slow technologies. Energy needs to be saved and for that optimization is needed. Either use a fast language or optimize the tech too much. Former is better I think.

@AcidiFy574

Always optimize for lower end hardware

ALWAYS

 it makes your apps better
Put yourselves in the shoes of the user

@MI08SK

The fact that C is the fastest programming language is a total misconception, first of all the fact of a  language being fast depends on the fact of it being compiled or interpreted(compiled languages are translated into mashine code directly, so they are generally faster), second of all in compiled languages a language may have multiple compilers and the speed of their generated code depends on how well the compiler is able to generate the most efficient instructions, for example a conditional move is faster than a conditional jump + a move, the compiler has to be really efficient at generating as much branchless programs and as much simd as possible in situations in witch it is possible