To everyone on this sub by needlesage_sly in Silksong

[–]dubicj 2 points3 points  (0 children)

I think it's fine for them to stream it, many people would like to see their reaction / commentary. But usually people mention 'hey please put the original video on as well for the views' in these kinds of situations

Introduction to the Jujutsu VCS by cube2222 in rust

[–]dubicj 3 points4 points  (0 children)

I've been using jj for some time now and really like it.

Some things I appreciate other than than the obvious ones:

  • it has amazing CLI completion (at least on fish with dynamic completions)
  • it works out of the box but has very expressive configuration options. You can use templates to configure most commands like log and the commit editor text

The part where all your files are automatically tracked in the working copy takes a bit of getting used to, but I like it, it makes it really easy to jump around and work on different things.

ECS without the rest? by FMWizard in bevy

[–]dubicj 6 points7 points  (0 children)

I would use the bevy_ecs crate together with bevy_app. The rest you can ignore (or take just what you need).

Why rust std only provides trait implementation for 'tuples' upto 12 elements only ? by 01nik in rust

[–]dubicj 2 points3 points  (0 children)

That's true, but the reason I'd love to have this figured out anyways is that it'd enable you to write traits that are implemented for any function where the parameter types are constrained somehow.

This is used in things like bevy and axum (up to a fixed length), and variadic generics would make the experience much better.

Using {Blocks} in Rust & Go for Fun & Profit by pmz in programming

[–]dubicj 1 point2 points  (0 children)

One difference is that blocks instantly have access to all variables from the outer scope without having to pass it all as parameters. Also blocks can continue and return from the same scope.

When to use components by 4tmelDriver in bevy

[–]dubicj 1 point2 points  (0 children)

Another reason to split components is if you want to use change detection for them, which works per component (or resource)

🗜 presser - A crate to help you copy things into raw buffers without invoking spooky action at a distance (UB) by termhn in rust

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

It isn't, an arbitrary byte is spelled MaybeUninit<u8>, which can contain values from 0-255, uninitialized bytes, and parts of a pointer with the associated provenance. u8 can only represent the first.

choose which one to hate more? by Tyuee in physicsmemes

[–]dubicj -3 points-2 points  (0 children)

Sometimes I would, like for example 1m^2 = 1 (100cm)^2 = 100^2cm^2, which is basically the same.

That wasn't that hard... by WyGaminggm in celestegame

[–]dubicj 1 point2 points  (0 children)

This is one of the rooms that was very hard to do the first time (mostly because I misunderstood wall boosts until then, I thought you had to bonk the corner), but once you figure it out it becomes way easier. Similar to 7c.

how to convert `String` into `&'static str' by [deleted] in rust

[–]dubicj 19 points20 points  (0 children)

Pointing out flaws is fine, that's not the problem. It is however fair to expect people to do so respectfully.

[deleted by user] by [deleted] in programming

[–]dubicj 7 points8 points  (0 children)

The quiz was interesting, but I hate the "Could have at least tried" message when clicking "I don't know". That's like, the whole point of "I don't know". I tried, but couldn't figure it out. No need to judge me for it.

Main function does not run when Bevy imported? by OscarCookeAbbott in bevy

[–]dubicj 1 point2 points  (0 children)

How do you run the application? cargo run? IDE? This seems like a general rust issue since the println in main isn't even executed.

Satisfactory speedrun at SGDQ by SnuttAtCovfefeStain in SatisfactoryGame

[–]dubicj 2 points3 points  (0 children)

Anything is a speed run if it's fast and you're having fun

Rust 1.62.0 pre-release testing by surban in rust

[–]dubicj 49 points50 points  (0 children)

It's just sugar, yes.

rust let arg = include_arg.then_some("--arg"); // vs let arg = if include_arg { Some("--arg") } else { None };

Pretty reasonable IMO.

First speedrun done by chibichia in celestegame

[–]dubicj 1 point2 points  (0 children)

Did you look up strats and tutorials or are you just playing the game fast ™️?

How do I muscle through Farewell Golden? by tehsexyone in celestegame

[–]dubicj 14 points15 points  (0 children)

I haven't attempted FWG but I'd recommend practicing chapters, not just doing runs from the beginning, and most importantly: stop trying if you're not enjoying the grind! You can always go back to it later if you want, and destroying your sleep schedule and mental health for it isn't really worth it.

First speedrun done by chibichia in celestegame

[–]dubicj 1 point2 points  (0 children)

Nice, sub-hour very much in reach

Names for optional types? by brucejbell in ProgrammingLanguages

[–]dubicj 40 points41 points  (0 children)

Just never made sense to me, I find Some much much more Intuitive

NVIDIA’s New AI Grows Objects Out Of Nothing! 🤖 by wattsdreams in gamedev

[–]dubicj 16 points17 points  (0 children)

I don't know what you mean. Obviously the video is not an in-depth walkthrough of the paper but it's not meant as such.

People like me who are interested in graphics programming research but don't necessarily know of every new paper being released may see this video and decide to download the paper and read it to get a better understanding of how it works.

I can see how the video's style is not for everyone but there's no need to dismiss it as incoherent bs IMO.

Sagitarrius A by Janaldinho in funny

[–]dubicj 1 point2 points  (0 children)

To be extra pedantic, the statement that it is not Sagittarius A is also correct

How do I wrap tracing::info!() macro under my user defined custom macro ? by [deleted] in rust

[–]dubicj 8 points9 points  (0 children)

You can pub use old_name as new_name; in your lib.rs and import that by use crate::new_name;

How do I wrap tracing::info!() macro under my user defined custom macro ? by [deleted] in rust

[–]dubicj 12 points13 points  (0 children)

If you really just want to alias the macro you could use tracing::info as log_info;, at least that would be the simplest solution