Python programmer vs C programmer (speedrun)

Python programmer vs C programmer (speedrun)

Virbox

1 год назад

467,896 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

lazyDev
lazyDev - 11.08.2023 20:31

Shut up😂😂😂😂😂

Ответить
Alwayslg
Alwayslg - 19.07.2023 11:56

use map xd

Ответить
Spaze (Unofficials)
Spaze (Unofficials) - 17.07.2023 15:32

this is hilarious

Ответить
Friendly Neighbourhood A.I.
Friendly Neighbourhood A.I. - 16.07.2023 15:30

Hands down best explanation of time dilation on the internet.

Ответить
ADL_LEO_02
ADL_LEO_02 - 04.06.2023 01:50

For those who dont understand why C was written faster than python:
Actually it was a bot (programmed by the language of the vid's moment) that coded those files, and how we all know that C is faster than python, the C code was done faster.

underrated vid

Ответить
MrMahankumar
MrMahankumar - 01.06.2023 17:46

C is bullshit.

Ответить
Emme Ayoub
Emme Ayoub - 01.06.2023 15:58

I love ❤ that you only appear to write C code while listening to Heavy Metal 😂

Ответить
Freddy Fazbear
Freddy Fazbear - 19.05.2023 17:53

Man i just wanted to learn how to make pizza like chica does

Ответить
pod1425
pod1425 - 08.05.2023 08:32

Lets modify the technical task: write the same thing, but it should take less than 10ms to execute

Ответить
Peter Sagitarius
Peter Sagitarius - 26.04.2023 12:51

Maybe it could be a good idea to compare a running time also for larger arrays (with approx. 10000 numbers). In my experience, python is perfect for his ability to fast development; But the C language is perfect for fast execution (usually it is running time of C approx. 8 times shorter than python ) with solid development time. Lets imagine, that you need to covert video (some movie) and this conversion takes 10 hours by C code.. Are you really able to wait 80-100 hours to conversion of video with python code ? It is extremely wasting of time and electric energy.

Ответить
mech653
mech653 - 17.04.2023 16:24

No wonder C is a popular language. Not only it makes you type faster, but it also plays doom music!

Ответить
George Genderfluid
George Genderfluid - 02.04.2023 23:58

The length of the array containing the intersection can't be bigger than the smallest array.

Ответить
Abram Hunsberger
Abram Hunsberger - 16.03.2023 18:39

f = lambda a, b: list(set(a) & set(b))

Ответить
Gena Jok
Gena Jok - 07.03.2023 18:34

set(a).intersect(set(b)). There half a second.

Ответить
TonkoFonko
TonkoFonko - 28.02.2023 11:48

Brutal difference betveen PY and C like code length

Ответить
Arrman Anicket Saha
Arrman Anicket Saha - 21.02.2023 12:01

all you had to do was
print(*({8, 3, 1, 5}.intersection({5, 3, 4, 6, 9})))
in python
which has clearer, simpler, shorter code that is more efficient for larger sets, with no weird memory leaks.

Ответить
Elizabeth Taylor
Elizabeth Taylor - 06.02.2023 21:57

kids: using python
doom guy: typical C enjoyer

Ответить
Ramo Mehmedovic
Ramo Mehmedovic - 04.02.2023 20:02

the music in C is worth it

Ответить
Watts UpWithThat
Watts UpWithThat - 31.01.2023 02:01

I've never heard the crappy music when I write code. Geesh

Ответить
Trojan 85
Trojan 85 - 30.01.2023 22:33

We all know that python is a very nice C/C++ application.

Ответить
Don Key
Don Key - 29.01.2023 18:33

why is the c video part played back faster? (nobody types that fast, without errors, even with tab completion)

Ответить
jaideep khaira
jaideep khaira - 25.01.2023 07:55

C - takes 1 sec to run the code
python - takes 1000000000000000000000000000000 centuries to run the code
who cares pythons easy to write, right?
btw python is kinda like a library in c so tehnically they are both c one is just easier to write and wastes more time.

Ответить
Cyan Uranus
Cyan Uranus - 23.01.2023 09:46

I Learn Cython

Ответить
Cyan Uranus
Cyan Uranus - 23.01.2023 09:46

Just like Jython. Jython is a Python Programming Language Compiled in Java. It's Also a Python Programming Language Family

Ответить
Cyan Uranus
Cyan Uranus - 23.01.2023 09:45

Cython is a Python Programming Language Compiled in C. Cython is Just a Python Programming Language Family

Ответить
Cyan Uranus
Cyan Uranus - 23.01.2023 09:44

I'll be a Cython Programmer Someday

Ответить
RHL X
RHL X - 03.01.2023 05:19

The fact is you’ve typed so much in C that your speed has become Godspeed. On the other hand python programmers need typing master pro.

Ответить
theloniousMac
theloniousMac - 19.12.2022 02:05

openAI Python in 9 seconds:

def intersection(arr1, arr2):
# Find the intersection of the two lists
result = list(set(arr1) & set(arr2))

return result

arr1 = [3, 7, 1, 9, 2]
arr2 = [4, 1, 9, 5]

result = intersection(arr1, arr2)
print(result) # Output: [1, 9]

Ответить
devwing
devwing - 16.12.2022 11:47

Wow I never heard that you type 2x faster in C

Ответить
Serijas
Serijas - 11.12.2022 15:02

Generally curious what are the applications of finding the intersection of two unsorted arrays to begin with

Ответить
BPS
BPS - 10.12.2022 15:26

Ok so C is faster I guess

Ответить
kris
kris - 09.12.2022 15:11

😁 Nice joke... I really appreciate the fact that you type 10 times faster in C than in Python 😂😆

Ответить
Petar Jocic
Petar Jocic - 03.12.2022 02:44

All languages are equal, i don't see syntax

Ответить
Ted Jerin
Ted Jerin - 01.12.2022 00:07

“All languages are equal” some are just less equal than others! 😂

Ответить
Birdy9k
Birdy9k - 30.11.2022 13:43

Speedran in programming , it's interesting 🤔

Ответить
Nikl Kelbon
Nikl Kelbon - 28.11.2022 23:31

C++
using namespace std::ranges;
auto intersect(range auto&& a, range auto&& b, auto out) {
std::unordered_set s1(begin(a), end(a));
std::ranges::copy_if(b, out, [&](auto& v) { return s1.contains(v); });
return out;
}
int main() {
std::vector a{1, 2, 3, 4, 5};
std::vector b{3, 16, 2, 1, 0, -5};
intersect(a, b, std::ostream_iterator<int>(std::cout));
}

Ответить
Foxxo
Foxxo - 25.11.2022 21:45

Definatley not sped up (sorry for the spooling mistake)

Ответить
Ярослав Павлов
Ярослав Павлов - 25.11.2022 10:01

Python version:
a = [8, 3, 1, 5, ]
b = [5, 3, 4, 6, 9, ]
c = list(set(a) & set(b))
print(*c)

Ответить
Siddharth Golecha
Siddharth Golecha - 24.11.2022 22:01

Well, you could have used set in python. Much simpler answer

Ответить
Takeno Nya
Takeno Nya - 23.11.2022 19:20

Python Single : 1.0s
Python Thread : 1.0s 🤔

C Single :1.0s
C Thread : 0.5s 😎

Ответить
Nicolas T
Nicolas T - 22.11.2022 05:36

set(a) & set(b)

Ответить
MetalGearPony
MetalGearPony - 21.11.2022 19:42

Write python libraries in C, and then use Python for higher level tasks.

Ответить
Ky
Ky - 21.11.2022 08:13

Even using vi, 😩😩

Ответить
HamzerPanzer
HamzerPanzer - 20.11.2022 21:57

I am extremely new to C, can someone explain how the int arr in the intarr structure can be used as an array if it's not defined as an array?

Ответить
Samuel Zuzák
Samuel Zuzák - 20.11.2022 20:04

Lord Almighty

Ответить
Andrew N
Andrew N - 20.11.2022 11:03

Javascript console.log(a.filter(arr=>b.includes(arr)))

Ответить
Lucho Piehl
Lucho Piehl - 20.11.2022 08:47

dreams music. This video is a masterpiece

Ответить
Manuel Ernesto Tijerino Mayorga
Manuel Ernesto Tijerino Mayorga - 20.11.2022 07:18

Le gusta hacerlo ver complicado

Ответить