So I feel a little sheepish now, as I tried the C++ code again with LTO turned
off, and it’s now slightly faster than the Rust version. I guess it’s a
performance regression that gets triggered by LTO in this specific case.
Here are the results I get now:
clang PerformanceTest.cpp dsp.cpp -std
Hi, Kevin!
> * What would be the replacement for a struct-scoped static constant, so I
> could put a static inside a struct instead of making it a global?
It is not possible now. There are some suggestions on associated items, but I
don’t think they are active. Currently Rust module system is us
On 11/06/14 07:42, Steve Klabnik wrote:
Rust doesn't have prefix/postfix increment? Or, I just didn't find the right
syntax of using it?
It does not. x = x + 1. Much more clear, no confusion about what comes
back. Tricky code leads to bugs. :)
FWIW, primitive types offer `x += 1`, and #5992 c
Hi Steve,
Ah, that makes sense. Really looking forward to the 1.0 release; I don't
know if it's on the roadmap, but if there's a way to plug it into Android
or iOS builds via LLVM, that would be really neat. Also went ahead and
posted on Reddit. ;)
Cheers, and thank you to you and the team for yo
> Ah, that makes sense. Really looking forward to the 1.0 release; I don't
> know if it's on the roadmap, but if there's a way to plug it into Android or
> iOS builds via LLVM, that would be really neat. Also went ahead and posted
> on Reddit. ;)
Builds are already tested against Android, and I th
Hey Kevin!
Thanks so much for sharing! This is the right place, though the Reddit
may be interested, too.
I don't have a lot to say, but I _do_ have one or two things:
> Rust doesn't have prefix/postfix increment? Or, I just didn't find the right
> syntax of using it?
It does not. x = x + 1. M
Hi all,
With the recent release of Swift, I've been interested in modern
alternatives to C & C++, and I've recently been reading more about Rust;
I've been especially encouraged by the comments and posts about it by
Patrick Walton. I develop primarily in Java for Android, but I also do some
C & C+