News for hackers. Stuff that matters.
Re:Rust for C++ programmers – part 4: unique pointers by pcwalton on Tuesday April 29, 2014 @10:49AM (#7667311)
> How does one do intrinsics (SSE / AVX) in Rust - I guess they're just the exposed functions from emmintrin.h and the compiler calls them directly?

It uses the LLVM support.

> How do you do ASM in Rust?

With the asm! macro.

> Can you align memory in rust?

Yes. Write an allocator that does this and use it. The language doesn't have an allocator "built-in" and has full support for custom allocators.

Re:Rust for C++ programmers – part 4: unique pointers by berkut on Tuesday April 29, 2014 @03:30PM (#7669406)
> It uses LLVM support.

What do you mean by this? 1. Any scaler code might get vectorised by the LLVM if you're luckly.

or 2. You can write the instrinsics yourself in inline code, and the compiler will (almost) obey them verbatim?

In my experience, LLVM's vectorisation is behind GCC and quite a way behind ICC...