News for hackers. Stuff that matters.
Re:Rust web framework, Iron by vitalyd on Tuesday August 18, 2015 @08:33AM (#10078817)
Language vs implementation is Sufficiently Smart Compiler phrased differently. The main difference between Rust (and say C++) and .NET/Java is the former has a stronger performance model baked into the language which makes it easier to make an implementation fast.
Re:Rust web framework, Iron by pjmlp on Tuesday August 18, 2015 @09:39AM (#10079110)
However not all implementations are made alike.

For example, when one speaks about Java, are you aware that IBM's J9 compiler supports value types via the packed objects extension?

Or that Mono cannot compete with Visual C++'s backend for .NET native code generation?

Or that any commercial Common Lisp runs circles around the open source offerings?

So speaking of language X, always matters to refer to implementations.

Re:Rust web framework, Iron by vitalyd on Tuesday August 18, 2015 @10:05AM (#10079230)
I'm aware of PackedObjects. Note it's not a value type in the sense it doesn't get allocated on the stack (if used as a local), it's a flattened object graph on heap with a shared header.

More to the point, implementations are interesting to compare when they're for the same language, but not so much across languages as languages have different semantics and features that dictate how amenable they are to optimization with today's compilation techniques.

Re:Rust web framework, Iron by pjmlp on Tuesday August 18, 2015 @10:50AM (#10079485)
I disagree.

There is a good reason why we don't use e.g. Tiny C to discuss C performance vs other languages.

Re:Rust web framework, Iron by vitalyd on Tuesday August 18, 2015 @11:59AM (#10079893)
Maybe I didn't make myself clear. If you want to compare speed cross lang, take fastest impl of each and compare that; so long as we're talking about real compilers existing today.

Also, fundamentally C# and java aren't designed on zero-cost abstractions as core principle, which is fine in and of itself. Implementations try to recover performance but it's an uphill battle as compilers will always be limited by various constraints.

Re:Rust web framework, Iron by pjmlp on Tuesday August 18, 2015 @12:45PM (#10080278)
> Maybe I didn't make myself clear. If you want to compare speed cross lang, take fastest impl of each and compare that; so long as we're talking about real compilers existing today.

I agree.

> Also, fundamentally C# and java aren't designed on zero-cost abstractions as core principle,....

Sure, but then again Ada, Delphi and D are also on my language list.