Thread 105654867 - /g/ [Archived: 846 hours ago]

Anonymous
6/20/2025, 10:42:42 PM No.105654867
file
file
md5: 035ffb8af10666e3a13094a29907cf3e🔍
KWAB
Replies: >>105654962 >>105655136 >>105655180 >>105655521 >>105655557 >>105655694 >>105655937 >>105655956 >>105655974 >>105656131 >>105656478 >>105656517 >>105657081 >>105657185 >>105657488 >>105657500
Anonymous
6/20/2025, 10:52:48 PM No.105654962
>>105654867 (OP)
>R (73.16s)
>Python (74.42s)
Dios mio...
Anonymous
6/20/2025, 11:10:25 PM No.105655136
>>105654867 (OP)
what do the colored balls represent
Replies: >>105656111
Anonymous
6/20/2025, 11:14:30 PM No.105655180
>>105654867 (OP)
>JVM 8% slower than C
Why in the world would anyone bother with pajeet language at this point?
I'm talking about C of course
Official Cnile bait post
Anonymous
6/20/2025, 11:52:46 PM No.105655521
>>105654867 (OP)
what about assembly?
Replies: >>105655694
Anonymous
6/20/2025, 11:55:56 PM No.105655557
>>105654867 (OP)
And yet python is the superior choice
Anonymous
6/21/2025, 12:12:52 AM No.105655694
1721783779152279
1721783779152279
md5: 409aec0b7ac4829a9f85f0ed85dbbc78🔍
>>105654867 (OP)
This shouldn't surprise anyone? Python is an interpreted language, not a compiled one, so of course it's going to be slower because of the interpretation overhead. You don't use Python for speed, you use it because it's a braindead language that simplifies a lot of shit.

>>105655521
Assembly languages could theoretically be the fastest but it depends on how skilled the assembly programmer is and if they can use all the little register/stack tricks and weird bitwise/math wizardry. To give an example of what I mean by that is that some processors don't have bare-metal instructions for things like multiplication or division (although most assembly editors have macros for that kind of thing) and if the programmer doesn't use bitwise operators to perform multiplication or division, and if they don't use hacky math wizardry either, then you might be looking at unironic O(n) time for something as simple as multiplication through incremental addition. Most modern instruction sets have multiplication though and assembly programmers hopefully know how to do math with bitwise operations.
I don't think most assembly programmers could write code that is faster than what the C/C++ compiler writes though. Those have had decades of work put into them to make the most optimized asm code.
Replies: >>105655718
Anonymous
6/21/2025, 12:16:06 AM No.105655718
>>105655694
Java is also interpreted, tranny
Replies: >>105655744 >>105655846
Anonymous
6/21/2025, 12:18:55 AM No.105655744
1720880576952355
1720880576952355
md5: 19365bd791a22e1dcc4e4155a3367555🔍
>>105655718
Java uses bytecode though, which isn't the same as a scripting language like Python. It's basically compiled into it's own assembly language that runs on the Java Virtual Machine (JVM), which is why it's faster than pure scripting languages like Python. You are a retarded nigger.
Replies: >>105655752
Anonymous
6/21/2025, 12:19:33 AM No.105655752
>>105655744
Least retarded anime watching tranny shitskin
https://docs.python.org/3/library/dis.html
Replies: >>105655784
Anonymous
6/21/2025, 12:22:32 AM No.105655784
>>105655752
then why cant python be as fast as java?
Replies: >>105655819 >>105655855 >>105655872 >>105655883 >>105656011 >>105656110 >>105659060
Anonymous
6/21/2025, 12:26:32 AM No.105655819
>>105655784
Because the JVM is an amazing piece of software.
Anonymous
6/21/2025, 12:30:10 AM No.105655846
>>105655718
No it's not.
Replies: >>105655890
Anonymous
6/21/2025, 12:31:51 AM No.105655855
>>105655784
Believe it or not but some languages are just inherently bad.
Replies: >>105656110 >>105656945
Anonymous
6/21/2025, 12:33:27 AM No.105655872
>>105655784
It might be possible, it just hasn't been done yet. CPython's design is infamously outdated even though Python is widely used.
Anonymous
6/21/2025, 12:34:10 AM No.105655883
>>105655784
Python supposed to be for teaching people, hence the cpython implementation is supposed to be sufficiently simple that you could study it to learn c programming.

I'm not joking.
Anonymous
6/21/2025, 12:35:13 AM No.105655890
>>105655846
What does the JVM do with bytecode?
https://www.cs.cornell.edu/courses/cs2112/2015fa/recitations/13jvm/
Replies: >>105655913 >>105655928
Anonymous
6/21/2025, 12:38:36 AM No.105655913
>>105655890
Interprets it once, profiles then compiles it with a JIT, that's why neither Java nor C# are true interpreted languages or fully compiled. With AOT you're getting closer to compiled languages doughbeit.
Anonymous
6/21/2025, 12:39:59 AM No.105655928
>>105655890
>What does the JVM do with bytecode?
The JIT compiler converts the bytecode into corresponding machine code to be used instead.
Anonymous
6/21/2025, 12:41:17 AM No.105655937
>>105654867 (OP)
impressive, very nice
lets see fortran score
Replies: >>105656126
Anonymous
6/21/2025, 12:43:23 AM No.105655954
Retard vibe/no coder here
What other languages let me just run the scripts without compiling or fucking around
Replies: >>105656073
Anonymous
6/21/2025, 12:43:29 AM No.105655956
>>105654867 (OP)
Stop posting this shit.
Anonymous
6/21/2025, 12:45:56 AM No.105655974
>>105654867 (OP)
luajit beats them all but c
Anonymous
6/21/2025, 12:49:55 AM No.105656011
>>105655784
Python doesn't ahead of time compile it's bytecode like JVM langs do, also it's VM is utter garbage.This billion nested loop is a total b/s benchmark. In theory the JVM langs should be faster than C/Rust here because if the JIT/VM was any good it would realize it's doing no work and just return 0 instead of executing the program beyond how long it takes the runtime to realize the program does nothing but instead it seems it's taking 0.4s to compile the loops to native and then executing them.
Replies: >>105656042 >>105656110
Anonymous
6/21/2025, 12:53:03 AM No.105656042
>>105656011
>Python doesn't ahead of time compile it's bytecode like JVM langs do
It has since 3.13.
Replies: >>105656440
Anonymous
6/21/2025, 12:56:15 AM No.105656073
>>105655954
Why are you so adverse to compilation? The compiler can be your friend if you let it be. It can point out mistakes for you before they would be caught by an interpreter.
Anyways, Emacs Lisp and Perl are some other scripting languages not in that image. Emacs Lisp will send you down the Emacs rabbit hole though and you'll come out as a changed man.
Replies: >>105656447 >>105656601
Anonymous
6/21/2025, 1:00:25 AM No.105656110
>>105655784
>>105656011
Believe it or not but >>105655855 is right, Fundamentally Python's design makes is nearly impossible to achieve anywhere close to Java's performance regardless of technology, types in particular are a huge fucking problem.
Replies: >>105656440 >>105656572 >>105656945
Anonymous
6/21/2025, 1:00:28 AM No.105656111
>>105655136
It's a screen cap from an animation where the balls slide back and forth across the screen at a speed relative to the speed of the language at that task.
Anonymous
6/21/2025, 1:01:25 AM No.105656126
1740347893558789
1740347893558789
md5: 6d7563a7cec8805f995a80e13662a44b🔍
>>105655937
>fortran (1ms)
>bouncing ball is a blur
Anonymous
6/21/2025, 1:01:52 AM No.105656131
>>105654867 (OP)
>Go slower than Java
>Deno slower than Node
>PHP much faster than Ruby
those surprised me the most
Anonymous
6/21/2025, 1:36:44 AM No.105656440
>>105656042
He's not talking about jitting. He's talking about having a compile to bytecode step separate from an execute step. He's mostly wrong, since python generates .pycs.

>>105656110
java and python are both dynamic languages. Both need a jit in order to get good performance. Python has conventionally not had a jit, whereas java has. If you write a good jit for python (like pypy) it will be competitive with java.
Anonymous
6/21/2025, 1:37:23 AM No.105656447
>>105656073
>Why are you so adverse to compilation?
It takes way too long.
I would prefer it to fail quickly and paste over the debug error/print statements
Anonymous
6/21/2025, 1:41:57 AM No.105656478
>>105654867 (OP)
remember when rusttrannies used to be rubytrannies? I remember
Anonymous
6/21/2025, 1:47:16 AM No.105656517
>>105654867 (OP)
I fucking hate this image and its video so much. Wtf are the billion loops doing? If they're doing nothing the compiler will just optimize them away. actual dogshit "benchmark"
Replies: >>105656589
Anonymous
6/21/2025, 1:52:57 AM No.105656572
>>105656110
>types in particular are a huge fucking problem.
This is not necessarily true. Lisp literally invented dynamic typing, but SBCL is well-known for holding its own against the JVM.
Making a fast Python would not be impossible, it would just be a massive pain in the ass.
Anonymous
6/21/2025, 1:54:46 AM No.105656589
1000032433
1000032433
md5: bc24c9d4b69d30ad3b0d898aeca1a1c1🔍
>>105656517
>I fucking hate this image and its video so much. Wtf are the billion loops doing? If they're doing nothing the compiler will just optimize them away. actual dogshit "benchmark"
t. python dev
Replies: >>105658964
Anonymous
6/21/2025, 1:58:17 AM No.105656601
>>105656073
Because I'm more important than the users of my code. The time saved by not needed to deal with compilation is saved by me. That's my time. If things take longer for the users, well, they should have learned to code themselves. Their time is worth far less than my time is worth.
Replies: >>105657038 >>105657329
Anonymous
6/21/2025, 2:40:52 AM No.105656945
>>105655855
>>105656110
samefag
Anonymous
6/21/2025, 2:54:31 AM No.105657038
>>105656601
Go complies 100k lines a second. For most projects its going to compile and start faster than it takes your shitty vm to cough into life. Compiled languages won.
Anonymous
6/21/2025, 3:01:29 AM No.105657081
>>105654867 (OP)
Im still just gonna use python. I'm just gonna.
oppaithon
6/21/2025, 3:16:57 AM No.105657185
1743853119590952
1743853119590952
md5: 5e1d62e624c84fd7da710f5ef0598d0d🔍
>>105654867 (OP)
you should build 1000% faster ASICs only for useless loop fucking tsukuyomi
Anonymous
6/21/2025, 3:38:40 AM No.105657329
>>105656601
You'd save even more time by not writing software you have no intention of using
Replies: >>105657667
Anonymous
6/21/2025, 4:04:28 AM No.105657488
>>105654867 (OP)
what does C in C mean?
Replies: >>105657538
Anonymous
6/21/2025, 4:06:19 AM No.105657500
>>105654867 (OP)
dishonest assessment different programming languages are designed for different purposes
a screwdriver cannot be used to hammer
Anonymous
6/21/2025, 4:10:15 AM No.105657538
1727281255026751
1727281255026751
md5: 0c9597416539c3348d33ee101c5eec2e🔍
>>105657488
The C doesn't mean anything. It's just named C because it's the successor to the 'B' programming language. This sounds made-up and silly but it's true.
Replies: >>105657679
Anonymous
6/21/2025, 4:32:21 AM No.105657667
>>105657329
Bossman won't give me a paycheck that way.
Replies: >>105657852
Anonymous
6/21/2025, 4:33:58 AM No.105657679
>>105657538
And 'B' likely was due to it being developed by Bell Labs though some sources say it might be due to 'B' being inspired by BCPL (Basic Combined Programming Language).
Anonymous
6/21/2025, 5:07:20 AM No.105657852
4cfef2853857f317874961ad8a773221
4cfef2853857f317874961ad8a773221
md5: 12dd901a0bcd6618f604f626c53599a9🔍
>>105657667
>having a job
Anonymous
6/21/2025, 8:28:06 AM No.105658964
>>105656589
I avoid python like the plague. I'm more butthurt about kotlin being "faster" than golang.
Replies: >>105659146
Anonymous
6/21/2025, 8:45:39 AM No.105659060
>>105655784
Conspiracy to force people to buy more powerful hardware
Anonymous
6/21/2025, 9:05:31 AM No.105659146
>>105658964
Kotlin can compile down to C.