Remix.run Logo
mrkeen 10 hours ago

Perhaps it's unrealistic in the sense that this is unrealistically-optimisable code.

Real-world code has closures, allocations, and pointer-dererencing. This code is just iterations, additions and modulus.

behnamoh 10 hours ago | parent [-]

> This code is just iterations...

Which is what the average programmer out there writes. Therefore, I think this is actually a good realistic benchmark.

steveBK123 10 hours ago | parent | next [-]

Precisely - its bad code, which is what most code is!

handfuloflight 10 hours ago | parent [-]

What's a Github repository with good code?

intelVISA 3 hours ago | parent | next [-]

Nobody's ever seen it!

steveBK123 6 hours ago | parent | prev [-]

All code is bad, some is useful

handfuloflight 5 hours ago | parent [-]

Useful is good. Ergo transitive property.

elzbardico 9 hours ago | parent | prev [-]

What the average programmer out there writes is just a tip on the iceberg of what gets executed. And an incredibly small tip.