News for hackers. Stuff that matters.
Re:Nim vs Rust Benchmarks by isofruit on Monday February 07, 2022 @09:27AM (#30245275)
How can such a benchmark be in any way informative? How much am I allowed to optimize the nim code? How much am I allowed to optimize the Rust code? Am I allowed to just change nim's GC to ARC/ORC? I'm sorry but this just does not make any sense to me.
Re:Nim vs Rust Benchmarks by onebot on Monday February 07, 2022 @09:34AM (#30245372)
It is more informative than nothing. It shows different languages implementing the same functions and the performance of those. It is something to compare to. Maybe they can all be optimized, etc. But you need to have some kind of starting point. I think people tend to poo-poo benchmarks (unless their fav language at top) and claim they don't represent real world. But I always argue that they at the very minimum give you some context for comparison. If you look at how they are implemented you can get further context. I only wish the benchmarks had some metric for how idiomatic the implementation is compared to normal developers.
Re:Nim vs Rust Benchmarks by igouy on Monday February 07, 2022 @01:26PM (#30248903)
Yes.

https://benchmarksgame-team.pages.debian.net/benchmarksgame/...

https://benchmarksgame-team.pages.debian.net/benchmarksgame/...

----

> I only wish the benchmarks had some metric for how idiomatic the implementation is compared to normal developers.

Maybe the benchmarks game website kind-of does — source code size.

Otherwise "I only wish…" so — wishful thinking.

Otherwise "how idiomatic" seems to mean — how I would implement the program today, if I didn't care [goldilocks] too much about performance?

(Incidentally "normal developers" doesn't seem to be stretching towards inclusive.)

Re:Nim vs Rust Benchmarks by gameswithgo on Monday February 07, 2022 @09:45AM (#30245515)
All benchmarks are informative, also all benchmarks are imperfect and incomplete, for reasons you have specified and many others.

However it is a mistake to then suppose that nothing can be known and just go ahead and use Python to make a AAA first person shooter.

Re:Nim vs Rust Benchmarks by Mikeb85 on Monday February 07, 2022 @09:54AM (#30245623)
On the flipside slow languages (Python included) are used to script some AAA games.

And no language other than C++ has really found traction for stuff like engines; not even Rust...

Re:Nim vs Rust Benchmarks by loeg on Monday February 07, 2022 @10:07AM (#30245810)
What AAA games use Python?
Re:Nim vs Rust Benchmarks by Verdex on Monday February 07, 2022 @11:26AM (#30246971)
I think Eve Online uses python.
Re:Nim vs Rust Benchmarks by dragonwriter on Monday February 07, 2022 @01:50PM (#30249241)
IIRC, Eve used Stackless Python, not normal CPython.
Re:Nim vs Rust Benchmarks by gameswithgo on Monday February 07, 2022 @11:46AM (#30247333)
They do, and its caused them a lot of headache, probably was a mistake. If they would have at least used something like C#/Java/Go (go didn't exist at the time) they might not have had to do time-slowdowns to make large battles possible.

Then again maybe it would have slowed down development and never gotten off the ground at all!

Re:Nim vs Rust Benchmarks by planetis on Monday February 07, 2022 @12:57PM (#30248459)
Civ6 btw
Re:Nim vs Rust Benchmarks by ryl00 on Monday February 07, 2022 @01:44PM (#30249139)
I thought only Civ IV used python.