These are chat archives for rust-lang/rust

29th
Jul 2016
Reto Trinkler
@retotrinkler
Jul 29 2016 10:06
how would one obtain the maximum of a i64 vec
maximum of value
Reto Trinkler
@retotrinkler
Jul 29 2016 10:08
sry beginner here, for:
let mut vec: Vec<i64> = vec![2, 1, 3];
this would be vec.max_value()
Reto Trinkler
@retotrinkler
Jul 29 2016 10:11
awesome thanks @ozkriff
mhsjlw
@mhsjlw
Jul 29 2016 16:29
What do you guys think about using Rust to build a multiplayer game that runs cross-platform including Android?
Andrey Lesnikov
@ozkriff
Jul 29 2016 17:07
@mhsjlw This is my plan for https://github.com/ozkriff/zoc so i think it's good idea :-)
mhsjlw
@mhsjlw
Jul 29 2016 17:08
@ozkriff That ... looks ... awesome!
I was going to write a Voxel-style game, much like Minecraft, that uses the same (original, 2009 'classic') protocol.
I think I may, it looks like it'd be fun
mhsjlw
@mhsjlw
Jul 29 2016 18:00
@ozkriff where do you recommend I get started for a 3D block-based game in Rust?
Any engines, or should I straight up use opengl bindings.
I'd also like cross-platform Mac/Linux/Windows/Android support
actually windows doesn't matter as much but yeah
Lilian Anatolie Moraru
@lilianmoraru
Jul 29 2016 18:01
@mhsjlw There are a few engines, sec
@mhsjlw Probably the oldest: http://www.piston.rs/
Active community
mhsjlw
@mhsjlw
Jul 29 2016 18:05
thanks!
kiss3d looks cool. If I tried compiling any of these with the NDK toolchain (android) do you know if any of them have Android support out-of-the box?
Lilian Anatolie Moraru
@lilianmoraru
Jul 29 2016 18:10
Not sure about that. Some use SDL2, so, in theory they could, but not sure
At least Rust doesn't have issues running on Android
mhsjlw
@mhsjlw
Jul 29 2016 18:10
yeah
mhsjlw
@mhsjlw
Jul 29 2016 18:19
for server-side, is Rust a much better alternative then C in terms of speed, reliability and security? ex. I can handle more people on the Rust version of a server than C version of the server (assuming they're both written properly) and I can know that I have the safety and security that rust provides while still maintaining threading security and overflow/underflow security?
mhsjlw
@mhsjlw
Jul 29 2016 23:52
I've got some C++ code I've got to use :( any recommendations for what I should do? C glue code, or maybe https://github.com/mystor/rust-cpp ?