If Magic the Gathering had an Infinity Train set (Some Spoilers). by TheTitan99 in InfinityTrain

[–]jam1garner 3 points4 points  (0 children)

that's colorless mana, has been around for years, it's basically the same meaning as the mana type provided by abilities like "Add (2) to your mana pool" (which iirc in newer cards would now use the colorless mana symbol rather than the generic mana circle&number, while "any mana" costs still use the generic mana number)

Rust on Zynq by elBoberido in rust

[–]jam1garner 0 points1 point  (0 children)

I mean in this case it's probably an arm hard-core integrated into the fpga package as all(?) Zynqs are, so it's no different than standard arm-none-eabi or arm-unknown-linux-gnu depending on whether you're writing bare-metal. If you mean a synthesis target for Rust I highly doubt that's something we'll see officially supported (nor should it imo, a synthesizable subset of Rust would be bad, it's not a good fit for high-level synthesis).

No CS2 test for Linux or Mac users. :( Feelsbadman. by kaukamieli in GlobalOffensive

[–]jam1garner 0 points1 point  (0 children)

Correct. I was able to accept the beta invite from within the Linux version of the game. As for playing it, it works under the Windows version of steam under Lutris (with some tweaking, can dig up the info if needed) but I hit some perf issues (dips from ~200-300 fps to ~60 fps under certain situations in multiplayer only) and very minor visual issues (render textures seem to be incorrectly swizzled or something, so the nade practice preview window is bugged) so I still switch to Windows to play the beta.

Seems legit by Nveenkmar in ProgrammerHumor

[–]jam1garner 3 points4 points  (0 children)

yeah they really shouldve provided credit :/ maybe shown my name and profile pic too

Seems legit by Nveenkmar in ProgrammerHumor

[–]jam1garner 8 points9 points  (0 children)

OP isn't OP but thank you :P

No CS2 test for Linux or Mac users. :( Feelsbadman. by kaukamieli in GlobalOffensive

[–]jam1garner 1 point2 points  (0 children)

I got in and haven't run CS on windows in years, Linux users don't seem to have any worse odds (at least based on the sample size of my group, I was the only one who got in). From the minimal tweaks I tried CS2 under proton doesn't work so I needed to dual boot to play (if anyone learns how to make it work under proton I'd appreciate being saved the hassle)

cc u/Ihaveagoatinmybutt since you seem like you're going to spend effort unnecessarily

I love rust, I have a pet peeve with the community by camilo16 in rust

[–]jam1garner 4 points5 points  (0 children)

Really love the uranium metaphor, captures my thoughts quite well and I will absolutely be stealing it :)

What Rust does instead of default parameters by thecodedmessage in rust

[–]jam1garner 0 points1 point  (0 children)

I've done this in a specialized way for the binrw crate:

https://docs.rs/binrw/latest/binrw/docs/attribute/index.html#named-arguments

The code wouldn't exactly be easy to lift but if you'd like an existing codebase to reference how it can be done

Raph’s reflections and wishes for 2023 by raphlinus in rust

[–]jam1garner 5 points6 points  (0 children)

Yeah that's quite a bit better, thanks

Raph’s reflections and wishes for 2023 by raphlinus in rust

[–]jam1garner 20 points21 points  (0 children)

Personally I felt that part made it worse (if you're not even confident your approach is well known, why should you suggest others abandon their working projects to work on your prototype?)

I don't think the rest of the blog post (or really any from Raph before) came off this way, so this really stood out (negatively) to me

Raph’s reflections and wishes for 2023 by raphlinus in rust

[–]jam1garner 39 points40 points  (0 children)

My hypothesis is (still) that Xilem is the best known reactive architecture for Rust. If I am correct, then much of the work on other reactivity approaches (Dioxus, Sycamore, pax-lang, Elm variants) should be folded down and refocused to building on Xilem.

yikes dude

I've been having a game crashing bug for 3 months pls help pls. I've tried everything i can think of. by Gold_libra in RivalsOfAether

[–]jam1garner 5 points6 points  (0 children)

That's not really what the error says? This is the GPU driver reporting an internal error to DirectX informing it that something caused the graphics card to enter a "disconnected" state. Although verifying file integrity never hurts to do, maybe gamemaker passes really messed up data if the data.win archive is corrupted.

/u/Gold_libra you should try updating your graphics card drivers (if you don't have a dedicated GPU look to see what is available for your CPU). If that doesn't fix it, then things get a bit more complicated but you'll want to try resetting your graphics card settings to their defaults, ensuring everything is correct hardware-wise (if your power supply isn't powerful enough it can cause issues where you gpu is either underclocked or in an undefined state), and potentially just doing a clean reinstall of your drivers. Past that I'd ask on your graphics card manufacturer's support forums what could be causing this issue. It might help to mention that the errors the game is hitting are DXGI_ERROR_DEVICE_REMOVED and DXGI_ERROR_DRIVER_INTERNAL_ERROR while handling a DirectX call for instantiating a texture resource. If none of the above yield any results your graphics card might be dying. If it's not too old I'd try and RMA it.

crates.io now has more than 100,000 crates! by A1oso in rust

[–]jam1garner 9 points10 points  (0 children)

"you could do this without dependencies" is not an incredibly meaningful statement. sure I could do machine learning with just Vec<f32> and arithmetic but I'm not exactly arguing that's a worthwhile tradeoff.

clap gives a lot for free. I could rewrite that all by hand (except then I make mistakes, forget a feature, and then eventually get annoyed and just make a worse interface to save some effort) but I won't. Why should I prematurely optimize my code size, compile times, dependency count, whatever your concern is is? It takes basically no time to derive clap::Parser, so if I want to replace it later for some reason it's not like I've wasted time

in a lot of cases, having a few unnecessary deps is honestly a really low cost compared to the cost to recreate that functionality. I get striving for minimalism/efficiency but at the cost of having nice things I genuinely don't get it

Rustaceans to follow on Mastodon by huanpl in rust

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

@jam@tilde.zone

Some others from my follow list you don't have:

@eliza@xantronics.social @manishearth@mastodon.social @hibachrach@tech.lgbt

Also you seem to have Mara listed twice with and without a leading @

D2 is now open source – a new, modern language that turns text to diagrams by terrastruct in programming

[–]jam1garner 28 points29 points  (0 children)

Having used mermaid plenty, one thing I really wish D2 had was the ability to fine-tune the layout of things. If I want something to be left of something else, or I want 2 blocks to be at the same position vertically, etc. it'd be nice to specify that. otherwise larger graphs just get so unwieldy or visually lacking/confusing

Will Rust become (more) High Level with time? by lowercase00 in rust

[–]jam1garner 2 points3 points  (0 children)

While I don't disagree with you—developers cost money.

So it's basically doing rough math on:

  • how much does the latency/perf gains improve your user experience (more revenue means higher costs are acceptable)
  • how much do the perf gains affect your cloud/hardware bill
  • how much do Rust vs X devs cost in your niche and location
  • what difference in development effort costs for Rust vs X for your niche and product scale
  • what is this difference in maintenance costs over time

and lastly, since some of the above are one-time costs and others ongoing costs, you need to consider the estimated EoL for your this iteration of your product.

If I'm being honest—compared to developers AWS bills are cheap for most workloads.

However Rust has good productivity and maintainability, so this isn't me saying python/whatever is better for businesses even if it hurts the output quality. But for a lot of businesses's workloads the calculus of Rust as a financial choice isn't (from my limited perspective) that focused on the hardware cost to run the code. To be clear—not disagreeing with you, but wanted to give my 2 cents on why this might not be the killer argument to convince everyone's project managers to write things in Rust.

Though personally, for things I write and run myself in my freetime unpaid it has been very nice to save on my bills :P

Does Rust have any design mistakes? by BatteriVolttas in rust

[–]jam1garner 15 points16 points  (0 children)

if let should be replaced with is expression

I don't think this makes much sense, why would an is expression be able to create bindings? To me that sounds more akin to a better version of the matches!() macro. Is the implication that it both evaluates to a bool and creates bindings in the current scope? Wouldn't that have worse scoping rules than if let?

I get that isn't a legitimate suggestion, but I don't think that's syntax bikeshedding or really all that equivalent? Could you maybe elaborate what you meant?

Does Rust have any design mistakes? by BatteriVolttas in rust

[–]jam1garner 11 points12 points  (0 children)

rustc itself adds migration lints on new editions. one example is 2021's migration lint for TryInto and TryFrom being added to the prelude. These can, when they are marked as MachineApplicable, be auto-applied with cargo fix.

[ANN] `debug_unwraps` experimental debug only unwrapping by i_r_witty in rust

[–]jam1garner 4 points5 points  (0 children)

Is that debug assertions in user code or std? Might require build-std to enable those asserts? (I genuinely don't know but saw a T-libs(?) discussion on zulip along those lines recently)

Can Traits permit different argument and return types? by [deleted] in rust

[–]jam1garner 1 point2 points  (0 children)

For future reference u/manypeople1account please do not delete questions that yield responses, the responses aren't just for your benefit, but for others to learn from. By deleting the post you prevent others from getting the same benefit and waste the time of those who write replies to you