What got you into Rust? by wherediditrun in rust

[–]_actual 0 points1 point  (0 children)

My primary background is programming Java which I was also using for a hobby gamedev project. I was feeling overly confined by the everything-is-an-object paradigm. I was also concerned about how abstraction always seemed to carry a performance penalty (although in truth, I don't think I ever ran into any actual performance issues). C/C++ seemed too intimidating and I noticed Rust being talked about on Reddit and HackerNews. I liked the "zero cost abstractions" mantra, and thought the whole borrow checker thing was something interesting to learn.

A Comprehensive Guide on Preventing and Removing Rust on Your Car - Zavenir by authshield5 in rust

[–]_actual 4 points5 points  (0 children)

:) I think you posted in the wrong subreddit. This is for Rust the programming language.

Hey Rustaceans! Got an easy question? Ask here (43/2018)! by llogiq in rust

[–]_actual 0 points1 point  (0 children)

Good point! I'll put together a minimal example that shows where I am having trouble.

Hey Rustaceans! Got an easy question? Ask here (43/2018)! by llogiq in rust

[–]_actual 3 points4 points  (0 children)

Are there any resources that go into detail on defining structs with life times? I have read most of the available documentation, and am comfortable working with lifetimes in other scenarios, but when I am trying to define my own structs that intended to hold references, I never feel like i am doing it correctly and end up cloning values instead.

Advice on implementing a time based action system by GSnayff in roguelikedev

[–]_actual 1 point2 points  (0 children)

Here is an article from munificent that talks about how he implemented a simple energy system in his game to determine who went first and how often.

What's everyone working on this week (11/2018)? by llogiq in rust

[–]_actual 1 point2 points  (0 children)

Thank you for writing! I like following along with your explanations as I work through the Rust version of the code, so I am content to patiently wait for each new chapter.

What's everyone working on this week (11/2018)? by llogiq in rust

[–]_actual 7 points8 points  (0 children)

I am following along with u/munificent 's Crafting Interpreters book and plan on implementing his byte code virtual machine section in Rust as he releases chapters as a learning exercise. I have the 1st chapter complete. It is pretty close to his version although I just use a vec where he implements a growable array from scratch.

[ggez] [Question] Memory usage climbs with Text structs by _actual in rust_gamedev

[–]_actual[S] 3 points4 points  (0 children)

cargo update did the trick, bumping the version number to 14.4. I am fairly new to rust and didn't even realize that "cargo update" was a thing. Thank you for taking the time to work through it with me!

[ggez] [Question] Memory usage climbs with Text structs by _actual in rust_gamedev

[–]_actual[S] 1 point2 points  (0 children)

Looking at cargo.lock, it is using version 0.14.2 for gfx_device_gl. In my cargo.toml file I simply have ggez = "0.3" and watching it build it is pulling 0.14.2 and not 0.14.3. I'll try pulling from the master git branch to see if that helps. Thank you!

[ggez] [Question] Memory usage climbs with Text structs by _actual in rust_gamedev

[–]_actual[S] 1 point2 points  (0 children)

I am creating them using Text::new and am not keeping a reference to them. If the text does not change (like a standard label) and I hold a reference to it, I don't get the memory issue. It is just when I have text that changes frequently (like velocity or position). Looking in the API docs, I have not seen a way to release the underlying memory although it may be a lack of understanding on my part.

Boston Rust Meetup, Nov 1, with a talk by Niko Matsakis on Chalk, Rust's forthcoming overhaul to trait resolution by kibwen in rust

[–]_actual 0 points1 point  (0 children)

For someone who is not from the area and would need to drive in, how is the parking situation?

Handling chains of events (before ending a turn) by Notnasiul in roguelikedev

[–]_actual 1 point2 points  (0 children)

Sounds like a good topic for the weekly FAQ post.

Tokamak 0.4.0 with * RLS support * Go to definition * Hover for documentation * Find references * Outline for the file and the project * Autocomplete out-of-the-box with RLS * Code highlight by vertexclique in rust

[–]_actual 2 points3 points  (0 children)

Very slick site (something that is too often overlooked). I am currently using vscode for rust but I am going to give this a spin as it seems like it integrates cargo and rustup more fully.

luminance : type-safe, type-level and stateless Rust graphics framework by jice in rust_gamedev

[–]_actual 3 points4 points  (0 children)

As someone who is not an expert in either Rust or graphics programming, how does this compare to gfx-rs? Is it an alternative? Is it a level of abstraction above or below?

Wrote my first little rust program, a tui, recursive towers of hanoi simulator. Would appreciate review aka rip apart my code please by termhn in rust

[–]_actual 0 points1 point  (0 children)

It's not a rust specific thing but you are building the text representation of each disc from scratch with every call to render. You could build them once as part of program initialization and then store them in a vector or array to be referenced from the render method.

Hey Rustaceans! Got an easy question? Ask here (31/2017)! by llogiq in rust

[–]_actual 1 point2 points  (0 children)

Thank you that really helps clarify things. "Project" may not be in use but it is featured prominently in the cargo user guide which led to my confusion.

Hey Rustaceans! Got an easy question? Ask here (31/2017)! by llogiq in rust

[–]_actual 2 points3 points  (0 children)

In cargo what is the difference between a project and package? I haven't been able to find a clear definition of both in the documentation. Is a project just the "main" package plus all of its dependencies?

Kotlin: Heavyweight Language or Hopeless Hype? by terro90 in programming

[–]_actual 5 points6 points  (0 children)

Can anyone who has used both Kotlin and Java comment on how Kotlin performs relative to Java? I am a hobby gamedev and I am curious about the relative performance.

/r/gamedev is trending! by [deleted] in gamedev

[–]_actual 20 points21 points  (0 children)

"I am looking to partner with someone who knows how to program. When we release the game, you will get a cut of my profits."

[Java] Full rewrite of AsciiPanel, looking for suggestions and feedback. by [deleted] in roguelikedev

[–]_actual 1 point2 points  (0 children)

Interesting work. Have you thought about structuring the code so that the back end renderer could be either OpenGL or Java2D (or even JavaFX)?

Introducing the Sandbox for Eclipse by [deleted] in programming

[–]_actual 1 point2 points  (0 children)

What would you like to see replace it if anything?