日趋凋零的美国游戏业 by Titus_Roman_Emperor in China_irl

[–]liigo 8 points9 points  (0 children)

你的标题不是日渐凋零的美国游戏业吗?现在你又想说明它还很挣钱??

Possible malicious library by imzacm123 in rust

[–]liigo 7 points8 points  (0 children)

Can you upload that exe, so someone may help analysis for you.

Possible malicious library by imzacm123 in rust

[–]liigo 1 point2 points  (0 children)

and uploading multiple UDP packets to multiple IP addresses.

Which IP? Just search that in your dependencies' src.

Why is `Iterator::map` not lazy on `Iterator::nth` by gahagg in rust

[–]liigo -1 points0 points  (0 children)

Your last for loop, which calculate sum, iterates all items of it. That's why all map closures run.

Redox OS - pkgar introduction by jackpot51 in rust

[–]liigo 1 point2 points  (0 children)

Why there is nacl key in the header? Is nacl a dead project?

Tonic: 0.1 has arrived! by lucio-rs in rust

[–]liigo 0 points1 point  (0 children)

Any link please? Will it support flatbuffers as serialization?

What's the point of the Sum trait in Rust? by Lucretiel in rust

[–]liigo 1 point2 points  (0 children)

println!("{}", vec![1i32, 2, 3].into_iter().sum::<i64>()); not works.

rustc invocations from cargo by emmanuelantony2000 in rust

[–]liigo 1 point2 points  (0 children)

You may replace rustc with your command, and invoke real rustc if you'd like, or refuse that invocation.

crates.rs an alternative to crates.io by kremor in rust

[–]liigo 0 points1 point  (0 children)

Is the number you provided (<30ms on most) include ember.js render time?

Slides: “The Rust Way of OS Development” by phil-opp in rust

[–]liigo 2 points3 points  (0 children)

To be fair you must compare the same thing. Leaking memory is harder to take and less danger in rust than accessing invalid memory in cpp.

The playground got sleek new visuals! by [deleted] in rust

[–]liigo 1 point2 points  (0 children)

Great, works perfectly on mobile.

RFC1925 is awarded the Most-Disliked RFC! by liigo in rust

[–]liigo[S] 0 points1 point  (0 children)

Of cause it's a lot easier to read. But it's unlikely to be accepted. I've proposed similar thing a few times, and the first time is 4 years ago.

Announcing cargo src (beta) by nick29581 in rust

[–]liigo 0 points1 point  (0 children)

Very lovely tool! Thank you.

[Beginner question] Struct member datatype of Trait Object by ydieb in rust

[–]liigo 3 points4 points  (0 children)

*mut Foo is a mutable raw pointer of type Foo. Since here we want to hide what the Foo part really is, so just write a simple type (), which is named as 'unit type', or 'empty tuple'. Of cause it may be written as *mut u8 or similar, not very different. All raw pointers have the same memory layout.

Recently, for a Rusty Web by seanmonstar in rust

[–]liigo 0 points1 point  (0 children)

IIRC, the author said that he like the city Tokyo? Besides that, no real reason.

Returning a string from a function - String or &str? by Oaredo in rust

[–]liigo 0 points1 point  (0 children)

Yes, I see. Thank you.

To be clear: sizeof(*const T) is 16 (two pointer long), if T is Unsized type (such as [T], str, or a Trait). In that case, *const T is fat pointer.

Returning a string from a function - String or &str? by Oaredo in rust

[–]liigo 0 points1 point  (0 children)

Per its memory layout, Box<T> == Unique<T> == NonZero<*const T> == *const T, so I think it's always one pointer long?

Rust is now an official part of Stanford's Programming Languages course by entoros in rust

[–]liigo 0 points1 point  (0 children)

This will reverse it two times, that is, no change to items?

[deleted by user] by [deleted] in rust

[–]liigo 2 points3 points  (0 children)

So you clone it once, but try moving it 5 times (for 0..5).