[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

Why did the benchmark game drop Scala and Clojure from the comparison,

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 40
Thread images: 2

File: 2017-05-04.png (50KB, 652x407px) Image search: [Google]
2017-05-04.png
50KB, 652x407px
Why did the benchmark game drop Scala and Clojure from the comparison, but keep irrelevant languages like Pascal or Chapel?
>>
>>60208374
>for some languages the 1st and 3rd quartiles' distance to median is larger than the others' combined
>statistically significant
Pick one

>why no scala and clojure
They run in the JVM, whereas these languages run natively.
>>
>>60208402
Also
>boxplots on a logarithmic scale
Indicates that some of them are really, really long-tail distributions I guess. That shit is just confusing.
>>
>>60208374
Because they are either same as Java or slower.
>>
>>60208467
That depends on the benchmark. A recursion test would be significantly faster in Scala than in Java, because the Scala compiler is able to do TCO.
>>
>>60208467
>>60208402
But they include F#, which runs on the CLR and has far less users than Scala.
>>
Why was rust invented when Ada was already around?
>>
>>60208558
CLR works differently than the JVM, it's not a virtual machine in the same sense.
>>
>>60208578
Because webhipsters gonna hip. There's a reason why they prefer writing everything from scratch all the time.
>>
>>60208402
>They run in the JVM, whereas these languages run natively.
Idiot. Scala and Closure are slower than Java
>>
>>60208374
>irrelevant languages
>Pascal
kys
>>
File: 1481732746656.png (216KB, 1712x944px) Image search: [Google]
1481732746656.png
216KB, 1712x944px
>>60208578
Does it make you upset?
>>
>>60208614
See >>60208480

Also
>implying GCJ doesn't compile Java to native code
>>
>>60208628
>>60208626
>>
>>60208615
When even C has aged better, you know your language was objectively shit.
>>
>>60208374
>April, Rust is an awkward middle point between C and C++
>>60208626
>March, Rust strong and faster than C++
What went so right? Is Rust compiler a work of true art?
>>
>>60208578
Ada has some nice features, but it is verbose as fuck and lacks a bunch of modern features.

Compare this rust snippet:
https://rosettacode.org/wiki/Closures/Value_capture#Rust

with the equivalent Ada:
https://rosettacode.org/wiki/Closures/Value_capture#Ada
>>
>>60208667
See >>60208402 and >>60208434


I'm questioning the statistical significance of the benchmarks.
>>
>>60208689
Thanks for quoting yourself. I'm really convinced now
>>
The benchmarks are good if you want a rough idea of how well a language performs. If there's a factor of 2x between two languages with a large user base, that's significant.

Then there are perfectly accurate cases like Fortran, which does really really well on the benchmarks that do stuff that Fortran is optimized for, and terribly on the others.

If two languages are within 20% of each other on most benchmarks, with a few outliers, then it's not statistically significant enough to make solid conclusions. It just states that they are very roughly comparable.
>>
>>60208724
>If two languages are within 20% of each other on most benchmarks, with a few outliers, then it's not statistically significant enough to make solid conclusions. It just states that they are very roughly comparable.
Who said these?
>>
>>60208744
The guy you quoted
>>
>>60208816
Literally who?
>>
>>60208578
Because both trying to be "safe" doesn't mean they're equivalent, Rust has an advantage of being 30 years younger and thus implementing many good ideas from the PL theory what have happened in the last 30 years or so, like ADT and linear types. Ada has to rely on (highly optimized) naive run-time checks.
>>
>>60208685
In real-world programming, closures are very rarely used, so this is a false comparison.
I wish I knew a good word for these imaginary problems that get hyped up to push an agenda. Like global warming.
>>
>>60211080
> In real-world programming, closures are very rarely used
This is where you're wrong, kiddo.
>>
>>60211168
Most real-world programming is embedded code, where dynamic allocation is considered harmful.
>>
>>60211277
> Most real-world programming is embedded code
Embedded programming it too primitive to be considered a proper programming, m8, it's just a branch of EE. You might as well call JS "real-world programming".
>>
>>60211400
It's real programming because it's close to the metal.
JS is the toxic spawn of academia. It's layer on layer of abstractions, totally removed from reality.
>>
>>60211428
How being close to metal makes it more real? Low-level programming, while being hard, is at the same time algorithmically primitive and its design is mostly driven by the underlying hardware.
>JS
>academia
You have no idea, don't you?
>>
>>60208654
Pascal was created mainly for teaching programming to newfags. We'd use interpreted languages like Python or Ruby for that now.
>>
>>60211080
>In real-world programming, closures are very rarely used
Our C++ code at work is full of them
>>
>>60211080
I loled. They are only "rarely used" in languages where they require a lot of boilerplate.

There is a huge class of problems which can be solved in a couple lines with a closure, which would require tons of boilerplate in Ada.

This old paper is a good example: http://haskell.cs.yale.edu/wp-content/uploads/2011/03/HaskellVsAda-NSWC.pdf

Ada and old C++ had no closures, so the solution was long. Lisp, Haskell, and the scripting languages had them, so they solved them trivially.
>>
>>60208374
I'm surprised by the Swift benchmark. I thought that the LLVM backend could generate something equivalent to C++
>>
>>60215667
Swift is slow because it's dynamically typed and reference counted under the hood.
>>
>>60215964
Those are two features of the language, but you cannot prove that those are the main performance detractors.
>>
Swift does really, really well on the benchmark, it beats both Java and Go.

It's just not as optimizeable as C/C++/Rust, and even if it was the benchmarks for those three languages have been crazy microoptimized by the submitters so writing a Swift program that approaches them in speed is far from easy.
>>
>>60216302
Why is Go so shit despite having much fewer language features than Swift or Java?
>>
>>60211080
Rust and C++ now both allow you to return unboxed closures from functions. No heap allocations are required, you can assign them to stack variables.
>>
>>60216366
Because google programmers are too stupid to appreciate a "good" language. They only have experience with Python and Java.
Thread posts: 40
Thread images: 2


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.