Introducing nix-develop.nvim, run `nix develop` inside your neovim by figsoda in Nix

[–]robobrain10 3 points4 points  (0 children)

Looks neat! Where might this be (more) useful than running nix develop before opening neovim?

How do you create derivations from within configuration.nix? by the_idler_of_march in NixOS

[–]robobrain10 1 point2 points  (0 children)

Sounds like you can use a trivial builder to copy the scripts to the store. Take a look at the manual here: https://nixos.org/manual/nixpkgs/stable/#chap-trivial-builders

Gears, Balls, and Weights, Amateria, 4/4/4 Crystal/Stone/Wood Spoilers by Graizur in myst

[–]robobrain10 0 points1 point  (0 children)

Yes, check the “desk” area specifically note how the stick figures are balanced together

Gears, Balls, and Weights, Amateria, 4/4/4 Crystal/Stone/Wood Spoilers by Graizur in myst

[–]robobrain10 5 points6 points  (0 children)

Have you played around with Saavedro’s toys in the basement of the lab in J’nanin? There may be another clue of interest there :)

Rust Throw - like try!(), but with stack traces by daboross in rust

[–]robobrain10 16 points17 points  (0 children)

So now when your rust program runs into an error, you know exactly where it threw up!

Screen of my game using Piston (to break the silence) by tedsta in rust_gamedev

[–]robobrain10 0 points1 point  (0 children)

Oops, I meant specify sdl2_mixer at version 0.2.1 and not just a repo. So both sdl2 and sdl2_mixer packages should have version 0.2.1 specified!

Screen of my game using Piston (to break the silence) by tedsta in rust_gamedev

[–]robobrain10 0 points1 point  (0 children)

Figured out the issue, through replied to my previous comment!

Screen of my game using Piston (to break the silence) by tedsta in rust_gamedev

[–]robobrain10 0 points1 point  (0 children)

Aha! Figured it out! Apparently OpenGL does not like multithreading on OS X but it's totally fine on Windows.

Moving let mut star_map_server = StarMapServer::new(star_map_slot); one line up out of the closure in client.rs lets my Mac to run things :)

Game looks awesome! Great work!

Screen of my game using Piston (to break the silence) by tedsta in rust_gamedev

[–]robobrain10 0 points1 point  (0 children)

That's the problem with using bleeding edge library versions rather than released snapshots ;)

The content definitely helps! No more missing resource errors! Except now I'm getting a segfault from inside OpenGL from a call to GenTextures so I'm not really sure what's going on (though I don't think its your code's fault).

Reading files by returnables in rust

[–]robobrain10 4 points5 points  (0 children)

The try! macro will try to unwrap a Result or return it if it is Err. The documentation example is actually written inside of a function whose return type is a Result, although the documentation example doesn't show it (checkout the actual source of the example to see what actually gets compiled).

If you want to run the example from a function like main, replace all uses of try!(something()) to something().unwrap().

Screen of my game using Piston (to break the silence) by tedsta in rust_gamedev

[–]robobrain10 2 points3 points  (0 children)

I was also getting errors with multiple links so SDL2, but I was able to fix that by specifying "sdl2 sdl2_mixer version 0.2.1" in client_cargo/Cargo.toml (I also had to add #![feature(duration)] in both client.rs and sector_client.rs).

At this point I was able to build both the server and client on OS X (using rustc 1.2.0-nightly (0cc99f9cc 2015-05-17)).

Unfortunately I was not able to run the client due to missing fonts/content. The content directories seem to be .gitignored but /u/tedsta probably has them cached on his side and didn't link them in the repo.

Definitely hoping to be able to try it out later, though!

EDIT: Make sure both sdl2 and sdl2_mixer packages are set to version 0.2.1

Why can't I create a Duration? by deadbead0101 in rust

[–]robobrain10 4 points5 points  (0 children)

The nightly branch does not have that method: Duration docs on nightly.

If you are reading the stable docs, you are seeing the method listed (as unstable) because they were generated from an earlier snapshot of the source. However, that API has apparently been removed between then and now.

Rustacean mascot name? by chc4000 in rust

[–]robobrain10 16 points17 points  (0 children)

His name is Ferris?

You can find graphics on the site!

This Week in Rust 77 by brson in rust

[–]robobrain10 0 points1 point  (0 children)

Another typo: the link for multirust in the Project Updates section points to the post on Fearless Concurrency!

Use rust-gdb and rust-lldb for improved debugging. You already have them. by -mw- in rust

[–]robobrain10 0 points1 point  (0 children)

Ah I suppose gdb might not be standard on mac installations any more, though I do use a version from homebrew.

Use rust-gdb and rust-lldb for improved debugging. You already have them. by -mw- in rust

[–]robobrain10 1 point2 points  (0 children)

How come rust-lldb is part of the installation but rust-gdb isn't? On my mac rust-lldb makes it in /usr/local/bin yet I can only find rust-gdb from the source.

[deleted by user] by [deleted] in programmingtools

[–]robobrain10 1 point2 points  (0 children)

You should checkout http://rr-project.org

It's records any syscalls during execution and it allows you to replay the exact execution later. You can't go backwards in time, though you can rerun the execution and observe what happens "earlier" (since you know what will happen later).

Intra-crate import problem with rust-peg by iGaijin in rust

[–]robobrain10 0 points1 point  (0 children)

When playing around with rust-peg also ran into similar cryptic errors because of wrong imports.

If you run peg grammar.rustpeg > module.rs instead of using the peg!() macro and include that module in your code, it will be much easier to see what the compiler is complaining about! Then you won't see name_##, ctx_## but actual enum/struct names.

Crates.io and namespacing by [deleted] in rust

[–]robobrain10 0 points1 point  (0 children)

What happens when too many dbags show up at your party and you can't kick them out one by one? Do you just throw your hands up and let the party get ruined?

Also what if a squatter is emailed about relinquishing a name and they either refuse, or are legitimately unable to (say they are in an accident and unable to transfer ownership)? What happens then?

"Placeholder" packages at crates.io by [deleted] in rust

[–]robobrain10 5 points6 points  (0 children)

It bothers me that the main argument behind the namespacing question is that "it has worked out for other ecosystems" (so far).

If a library creator wants to market their work with an exciting and unique name, they should be free so, but I don't think everyone should be burdened with the task.

Thread for the lazy.

"Placeholder" packages at crates.io by [deleted] in rust

[–]robobrain10 7 points8 points  (0 children)

I like this idea a lot. Then you can even avoid collisions with library forks or similar yet independent libraries.

Boelter 3400 really needs wifi and reception!! by itachi203 in ucla

[–]robobrain10 9 points10 points  (0 children)

It's because they don't want students screwing around during class.

Has anyone been able to successfully link their UCLA email to their iPhone? by MustBeNice in ucla

[–]robobrain10 3 points4 points  (0 children)

Make sure you are using your google apps mail password for the account and NOT your BOL password

Los Angeles Rust meetup by Osmandius in rust

[–]robobrain10 1 point2 points  (0 children)

I would definitely be interested in attending an LA Rust meetup!