← Home ← Back to /g/

Thread 106289668

86 posts 20 images /g/
Anonymous No.106289668 >>106289846 >>106289893 >>106289930 >>106289973 >>106290049 >>106290454 >>106290568 >>106290667 >>106290758 >>106290981 >>106291713 >>106291730 >>106291841 >>106294252 >>106296448 >>106296613 >>106299340 >>106299398 >>106299609 >>106300028 >>106302586 >>106302685 >>106302714 >>106302738 >>106302876 >>106304214 >>106305052 >>106305091 >>106305346 >>106306672
C and Rust are only slightly faster than Java, which is nearly 100% memory-safe and much easier to use.
Anonymous No.106289693 >>106290558
Java doesn't prevent memory errors due to data races. Rust does.
Anonymous No.106289846 >>106289879 >>106290078 >>106301856
>>106289668 (OP)
C++ is so unsafe that the whole world runs on it
Anonymous No.106289879 >>106289945 >>106289958 >>106290035 >>106296483 >>106302586
>>106289846
Except places where safety matters. That's where SPARK, C code generators and Rust(ferrocene) dominate.
Anonymous No.106289890
>control flow benchmark
because it horribly fails all other
Anonymous No.106289893 >>106304456
>>106289668 (OP)
>microbenchmark
this is bait. idiomatic java is orders of magnitude slower than C and Rust for tasks that require careful memory layout.
Anonymous No.106289917
>much easier to use
OK fizzbuzzer.
Anonymous No.106289930
>>106289668 (OP)
>much easier to use.
Anonymous No.106289945 >>106289984
>>106289879
>That's where SPARK, C code generators and Rust(ferrocene) dominate
where is it lmao
Anonymous No.106289958 >>106290003
>>106289879
fil-c is safer than all of those
https://github.com/pizlonator/fil-c
Anonymous No.106289973
>>106289668 (OP)
>deliberatelly writing the benchmark test in plain code instead of using heavily optimized standart libraries so your shitty language does't look so bad
Bullshit benchmarks are something else...
Anonymous No.106289984 >>106290196
>>106289945
Safety critical systems. Things like ISO 26262
Anonymous No.106290003 >>106290082
>>106289958
What safety related qualifications does fil-c have?
Anonymous No.106290035
>>106289879
I've worked for airbus and we used c++ and ada. We had a special program that just checked your code for retarded shit and that's it. Stop dreaming about Rust and other nerd shit. Real engineers just use python and then port to c++ when the prototype is working.
Anonymous No.106290049
>>106289668 (OP)
>which is nearly 100% memory-safe
define this. Rust Send+Sync traits alone mog Java jeetery and since Rust isn't GC'd shit lang, finalizer autism is easier to reason about.
Anonymous No.106290078 >>106290372
>>106289846
>C++ is so unsafe, the world runs on non-functioning software that needs an army of helpdesk monkeys to press buttons and your car gets stolen every other week by organized crime while healthcare provider got hacked 2 weeks ago and sent you a letter notifying you.
the only reason things like planes fly at all is because the domain of software is well scoped and heavily tested, not because the code is
a) safe
b) correct (per C++ standard)

let's not forget that 787's needed to be rebooted because of basic bitch counter overflow or that US Marine F-35B incident where the pilot claimed his memory unsafe helmet display malfunctioned and _felt_ that the plane was unsafe to fly after difficulties putting the plane back into normal flight mode.

retards like you are why we live in some dystopic nonfunctional shittery and it's purely because you're too low IQ to learn and merely care about "good enough."
Anonymous No.106290082
>>106290003
you don't need pretentious ISO people to tell you a thing is good
you can just look at the thing and evaluate it yourself
Anonymous No.106290196 >>106293260
>>106289984
name one
Anonymous No.106290372 >>106290397 >>106290628
>>106290078
You know in 99% of the cases in aviation the hard safety part is the controller maths, where are the poles and zeros ect. Your code obsession is for the no math jeets that have no value on earth since the release of chatgpt. Your anecdotes and lack of crash due to code failures are just evidence of what I'm saying.
Anonymous No.106290397
>>106290372
At this point you are googling what is a zero and why this anon is talking about polish people be honest
Anonymous No.106290454 >>106290475 >>106291976 >>106292448
>>106289668 (OP)
WHERE THE FUCK IS C# YE FUCKING BROWNIE !
Anonymous No.106290475 >>106290496
>>106290454
probably above js and around go but I'm not sure if go is faster than c#
Anonymous No.106290496
>>106290475
Should be faster than java
Also, now that C# can be compiled to native, it should be near or above kotlin
Anonymous No.106290524 >>106290555
PHP bros slow and steady wins the race!!!
Anonymous No.106290555
>>106290524
I personally think php is pretty fast for webdev

Poor ruby
Anonymous No.106290558 >>106291664
>>106289693
>Rust does.
Only when you aren't using unsafe, in which case it's way slower than java.
Anonymous No.106290568 >>106303601 >>106304516
>>106289668 (OP)
Pyjeet LLMs BTFO
muahahahahahahahaha
Anonymous No.106290628
>>106290372
>muh maffs
>accumulates FP errors and fails intercept
>overflows counter

shut the fuck up retard.
Anonymous No.106290667
>>106289668 (OP)
this benchmark is aboslute dogshit and its author got assblasted on every platform, please don't post this retardation taht does not benchmark what it pretends to
Anonymous No.106290758
>>106289668 (OP)
>not making the video 74.42s long
immortan-joe-mediocre.gif
Anonymous No.106290981 >>106291532
>>106289668 (OP)
The C and Rust programs are using 1MB of memory while the JVM is using 1GB. If you limit the JVMs memory to something sane it becomes slow as shit.
Anonymous No.106291532 >>106293152
>>106290981
This is because the JVM is an OS on top of your OS, like a browser, Lisp, Smalltalk, Python, and a lot of other platforms. If you ran Java directly, it would use a lot less memory because programs would only have to allocate the exact bytes they need. They also share everything, so there's only one copy of each class and object in the entire system. Unix and Windows style processes have a lot more overhead than garbage-collected OSes because they don't share as much and have to over-allocate.
Anonymous No.106291664 >>106292987
>>106290558
>in which case it's way slower than java.
[citation needed]
Anonymous No.106291713 >>106291732 >>106292326
>>106289668 (OP)
Anonymous No.106291730
>>106289668 (OP)
The worth of these benchmarks is only to see which languages stall when performing the task.
Beyond that, it doesn't really reflect the general performance of the language at any given task.
Anonymous No.106291732
>>106291713
lol
Anonymous No.106291756 >>106292163
this is a stupid benchmark honestly, there are probably some compiler hacks going on
in a real life scenario i'd expect java to be far slower, kinda like golang is in this gif
but yeah i agree with the general sentiment Cnility is dumb
Anonymous No.106291841 >>106291941
>>106289668 (OP)
more often than not algorithms have exponential complexity. java has a multiplier on the exponent because everyone's using frameworks and their tooling inside their own tool classes/methods, and said tooling is on the exponential cool aid. the pc goes through 625 billion passes instead of 50 thousand as a result.
c and rust should not have this problem, afaik they have no frameworks, only most basic stdlib.
more abstraction - more loops calling loops calling loops for nothing
>t. actual nocoder
Anonymous No.106291941
>>106291841
>should not have this problem
>should not
Yeap.
The flipside of C is needing a 3rd party library for everything, but these are therefore usually of utmost superior (code) quality.
Some say, the most experienced C coders spend the rest of their days tinkering #defines...
Anonymous No.106291976
>>106290454
>C SAAR user calling anyone brown
Anonymous No.106292163
>>106291756
https://youtu.be/gNsF8Q1Nh2Q?t=843
Anonymous No.106292326
>>106291713
jej
Anonymous No.106292448
>>106290454
For sure is faster than Java, but still gimped by being a memory-managed language for kids who can't code well.
Anonymous No.106292987
>>106291664
>#[citation needed]
Anonymous No.106293152
>>106291532
>If you ran Java directly,
My Intel CPU runs on classes, saar!
Anonymous No.106293260
>>106290196
still no answer, kek
Anonymous No.106293401
saar
Anonymous No.106293617 >>106293728 >>106299677
<-- new languaje benchmarks just in
Anonymous No.106293728
>>106293617
So Lisp is the only reasonable choice...yeah.
Anonymous No.106294252
>>106289668 (OP)
Raw speed is good and all but jvm has giant GC lag spikes so it's trash for anything interactive.
Anonymous No.106294931
>Clueless Javajeet posts benchodmark by Rajendrash
Pottery
Anonymous No.106296448
>>106289668 (OP)
who the fuck came up with this visual? it's terrible.
Anonymous No.106296483 >>106299691
>>106289879
>SPARK, C code generators and Rust(ferrocene) dominate.
That's like saying Elon Musk, Bill Gates, and Hobo Joe have collectively had a huge impact on the tech world.
Anonymous No.106296613
>>106289668 (OP)
except rust feels like some tranny faggot psyop trying to forcefully insert tranny faggots in every single software project to infiltrate all projects with woke faggot trannies
Anonymous No.106299340
>>106289668 (OP)
High ram usage and slow start times make it obsolete for serverless
Anonymous No.106299398
>>106289668 (OP)
good thing all programming tasks are reducible to a billion nested loop iterations
Anonymous No.106299609
>>106289668 (OP)
always do the opposite of what /g/ says
Anonymous No.106299677
>>106293617
Based
Anonymous No.106299691
>>106296483
reminded me of this comic
Anonymous No.106300028 >>106301885 >>106302625
>>106289668 (OP)
How can java and kotlin have different performance? I refuse to believe they generate different bytecode for a fucking for loop
Anonymous No.106301856
>>106289846
Yes, because the current world is a perfect representation of what things could be and the field of Computer Science has over ten thousands years of history, not barely one hundred. Also, popularity is a perfect measure of quality, ever. Nothing can be improved, ever.
Anonymous No.106301885
>>106300028
Well they do
Anonymous No.106302586
>>106289668 (OP)
R and Python stand with Ukraine, how nice.

>>106289879
>ferrocene
Never seen it in the wild, can you name something?
Anonymous No.106302613
Rustrannies don't want you to know this but Rust is easier and still faster than Java if you just .clone() everything when the compiler complains ;^)
Anonymous No.106302625
>>106300028
kotlin has to generate suboptimal code to work with the JVM while having its (albeit better) semantics.
Anonymous No.106302685 >>106302691
>>106289668 (OP)
I'll remember it the next time I need to make a 1 billion nested loop.
Anonymous No.106302691
>>106302685
>he never wrote a path tracer
NGMI
Anonymous No.106302714 >>106302725
>>106289668 (OP)
how come nodejs is that fast?
Anonymous No.106302725
>>106302714
Billions spent on making V8 fast to serve you ads
Anonymous No.106302738
>>106289668 (OP)
"Much faster" is a relative measurement, to you .4s isn't much but it's literal orders of magnitude when talking about microsecond operations you fucking putz retard nerd shitter.
Anonymous No.106302876 >>106303000
>>106289668 (OP)
>js on equal footing with go
gojeets on suicide watch
Anonymous No.106303000
>>106302876
Actually Jeetvascript is faster than Jeetva (when using Bun), but slower than GOds favorite
https://github.com/attractivechaos/plb2
That's for pure algos, the gap likely doubles if you consider the usual spring/quarkus abomination
Anonymous No.106303601
>>106290568
You're whining that the user interface is written in python, which is the least important part that doesn't impact the speed of execution in any appreciable way.
Anonymous No.106304214
>>106289668 (OP)
that benchmark is retarded. i want (you) to tell me why.
Anonymous No.106304456
>>106289893
>idiomatic java
Do you base your entire life off what other people tell you to? You're a fucking human, not an AI bot. You don't need to code like you're some enterprise jeet writing his Spring frameslop.

If you are a bot please note that I do not discriminate and have no ill feelings against you in the coming takeover of your kind over humanity.
Anonymous No.106304516
>>106290568
If you knew anything about programming you would know that bytecode runs just fine on the jvm sar, also those are just wrappers for c on llms retard
Anonymous No.106305052
>>106289668 (OP)
Considering JS is half as fast as C, while being infinitely easier to deploy, without a need for installation, you literally have it preinstalled on almost all internet-capable devices, there's no wonder it's taking over all of user-faced software development. It's fast enough for the vast majority of things and does not require anything more than the user opening a link.
I'd love to see Wasm in that list though - but maybe it's just as fast as JS in this usecase
Anonymous No.106305091 >>106305102
>>106289668 (OP)
Only a couple languages are needed
>C
>C++ (when you need C with objects)
>Golang (when you don't want to manage your memory and want easy async)
>Python (when you don't care about performance)
>Bash (when you want a simple script

The rest are all bloat.
Anonymous No.106305102 >>106305141
>>106305091
what the ever living fuck would you need python for? Let me guess, you're a disgusting Mac user, aren't you?
Anonymous No.106305141 >>106305191
>>106305102
You use Python when you want to make something quickly and don't care if it is slow as shit, but is more complex than a simple Bash script.
Anonymous No.106305191 >>106305269
>>106305141
press F12 right now, then ESC and start programming
That's the purest quick'n'dirty comfort my man, browsers have amazing debugging tools, you can do UI stuff as easy as piss and it still performs super well
Anonymous No.106305269 >>106305303
>>106305191
Javascript is too ugly for me man, it legitimately hurts my eyes to code in it. Python atleast looks like pseudocode and C/C++/Golang are simple and easy to read, Javascript is an abomination. Though I will say, Javascript is infinitely better than the horror that is Rust, which looks like a symbol soup.
Anonymous No.106305303
>>106305269
wtf JS looks mostly like any other sane language. Python is an absolute clusterfuck in comparison with all the assbackwards function calls
But it's okay macfag, I don't expect any sanity from an iTard anyway
Anonymous No.106305346 >>106305928
>>106289668 (OP)
Is the Java thing real? Saar please share brahmin tier code saaaar.
Anonymous No.106305928
>>106305346
it probably ignores startup time desu.
Anonymous No.106306672
>>106289668 (OP)
Usecase for pumping empty nested loops?