News for hackers. Stuff that matters.
Re:Clio: A functional, distributed programming language that... by capableweb on Thursday March 18, 2021 @08:14AM (#26501849)
This language compiles to JavaScript, so it's 0x slower than JavaScript. Comparing similarly named functions between Clio and vanilla JS obviously wouldn't be fair as the feature-set between the two are not equal.
Re:Clio: A functional, distributed programming language that... by elwell on Thursday March 18, 2021 @09:00AM (#26502192)
The benchmark should be based on idiomatic code in both languages for a same (or similar) input -> output.
Re:Clio: A functional, distributed programming language that... by capableweb on Thursday March 18, 2021 @09:20AM (#26502354)
You could do that but then your comparison is obviously biased and not very useful.
Re:Clio: A functional, distributed programming language that... by dandellion on Thursday March 18, 2021 @09:25AM (#26502410)
Picking a language is very subjective, so that's exactly the kind of biased comparison that I want to judge something like this.
Re:Clio: A functional, distributed programming language that... by kangalioo on Thursday March 18, 2021 @09:24AM (#26502390)
Arguing that two programming languages must be considered to have the same performance just because they compile down to the same technology, is flawed.

Otherwise you couldn't make performance comparisons between C, Rust, Go, Haskell, Julia, because they all compile to assembly

Re:Clio: A functional, distributed programming language that... by capableweb on Thursday March 18, 2021 @09:26AM (#26502423)
I'm not saying you can't, I'm saying that since the code that eventually gets executed the same way just one layer down, it's not useful to JUST consider the performance.

You're not using TypeScript to get faster JS execution. You're using TypeScript to get types in JS. Compare development speed and avoiding bugs together with performance in that case. Same for Clio.

Re:Clio: A functional, distributed programming language that... by spenczar5 on Thursday March 18, 2021 @10:07AM (#26502825)
Ok, but I still want to know how much of a performance tax I am paying to know whether it’s the right tool for the job. If it’s a thousand times slower, maybe that overwhelms the benefits of extra features.
Re:Clio: A functional, distributed programming language that... by Fellshard on Thursday March 18, 2021 @11:44AM (#26503847)
And what if every statement I write in the upper language compiles down to one loop that runs a hundred times? The target language is a lower bound, not an upper bound.
Re:Clio: A functional, distributed programming language that... by path411 on Thursday March 18, 2021 @01:27PM (#26505171)
Every language compiles to assembly so it must be as fast as assembly?