arendjr, to rust
@arendjr@mstdn.social avatar

Starting tomorrow, @rustnl will be taking place in Delft. I’ll be attending, so if you like to discuss things related to @biomejs or in general while there, hit me up!

timClicks, to rust
@timClicks@mastodon.nz avatar

A tip: Parsing CLI arguments without 3rd party dependencies https://timclicks.dev/parse-cli-args-without-3rd-party-crates/

Sometimes, bringing in a third-party dependency, such as clap, to your project can feel like a bit of a burden.

For example, to improve your prospective users’ first impressions, you might want your examples to compile as quickly as possible.

That's admirable. But messages from crashing apps are not user friendly.

orsvarn, to rust
@orsvarn@peoplemaking.games avatar

I’m writing a “database” lib where each entry is a file, to avoid having to load the entire DB for most operations.

I think it might be a good fit for the rewrite of my time tracking app. 🤔

Writing this DB feels illegal. Please let me know why this won’t work. 😆

#RustLang #Database

TehPenguin, to rust
@TehPenguin@hachyderm.io avatar

When posting your programming language comparison article, can you please include the context of your comparison?

"Rust vs Python, which is better? "
"Sir, this is a kernel"

"Why I switched from C++ to Go"
Taps sign: "No GC or green threads in the kernel"

Sincerely, a systems dev who'd like to remind you that APIs existed before REST...

mackuba, to rust
@mackuba@martianbase.net avatar

New word learned: "monomorphization" 🤨 https://doc.rust-lang.org/book/ch10-01-syntax.html

(Please tell me there are no monads here 😛) #🦀

claras_universe, to rust
@claras_universe@ieji.de avatar

I am now working on my own chess API and it’s actually pretty fun. I learned that using bitboards is apparently very efficient. So I now use 8 64bit bitboards, 2 for the color and 6 for the pieces (I thought about just using 7 because you COULD theoretically represent the colors in one bitboard, but using 2 makes it faster at the expense of an extra 64 bit, which is neglegible). Gonna continue on this in the upcoming days :3

playdaters, to windows
@playdaters@gamedev.social avatar

I repeat, from today #Windows Support #milestone is completed 🎉
This is means that all crates works on that OS as expected, tests going on CI regularly and that CI-checks marked as required for merge from now.

https://github.com/boozook/playdate/milestone/3?closed=1
#RustLang #Rust #Playdate

dekirisu, to gamedev
@dekirisu@mastodon.social avatar

🐋 added camera anchors one can set anywhere
🐳 ..might be nice to have things like shrines

I thought of focusing shrines on activation, but I think its better to make it optional and more flexible! 🦄

video/mp4

janriemer, to rust

If you're not yet convinced of 's strengths, you should give this talk a watch:

RustConf 2023 - Rust in the Wild: A Factory Control System from Scratch:
https://farside.link/https://www.youtube.com/watch?v=TWTDPilQ8q0
(or YT: https://www.youtube.com/watch?v=TWTDPilQ8q0)

Absolutely amazing presentation! So much ! I love it! ❤️

alice_i_cecile, to gamedev
@alice_i_cecile@mastodon.gamedev.place avatar

Hi! Do you do in ( or not) and have cool gameplay footage to show off?

I've gotten a request from the organizers for clips to roll between talks! This seems like a fun idea, so I'm putting out a call for short, appealing gameplay clips with some form of credits on them. Get them to me (maybe post them as a reply?) within the next 24-48 hours and I'll get them to the organizers.

bram,
@bram@gamedev.lgbt avatar

@alice_i_cecile We use #RustLang under the hood for a lot of our stuff in #CraftCraft! You can use our Steam trailer if you'd like. I can maybe get the video file for you if you'd like :)

https://store.steampowered.com/app/2226430/CraftCraft_Fantasy_Merchant_Simulator/

bram,
@bram@gamedev.lgbt avatar

@alice_i_cecile We use it to parse and run our exports for Articy (https://www.articy.com/en/), but since there was no support at the time when we started, I wrote it in Rust, so that I didn't have to worry about runtime problems, since compiling gave a lot of security for free ✨

Recently we've been using as a way to guarantee safe relationships between items when a player crafts or disassembles an item. Keeping track of this in would've been very error prone :)

mackuba, to rust
@mackuba@martianbase.net avatar

"Does anybody remember Usenet? Usenet was like Twitter but over email" 😂 - watching this talk by @steveklabnik.com 😉 🦀 https://www.youtube.com/watch?v=CMB6AlE1QuI

lesley, to rust
@lesley@mastodon.gamedev.place avatar

noob question: is there a way to "catch one kind of error and propagate the other" with something cleaner than this?

amiya_rbehera, to rust
@amiya_rbehera@mas.to avatar
RogerBW, to raku
@RogerBW@emacs.ch avatar
mackuba, to ruby
@mackuba@martianbase.net avatar

Current status: I opened about 100 links to articles and threads from Google results comparing , and and I'm planning to read them 🫠

(no, I'm not really considering Go, mostly just trying to convince myself that I'm not making a mistake starting to learn Rust and not Go 🦀😛)

alice_i_cecile, to rust
@alice_i_cecile@mastodon.gamedev.place avatar

Hi ! I ran a quick survey last week examining the state of Rust Gamedev in 2024. There were 410 responses in five days: thanks a ton for all of your replies!

Most interesting bits to me were that 70% of respondents use Bevy, people seem generally happy with Rust, and that about 20% of respondents have commercial aspirations. Everyone hates compile times, wants engine features and tools for artists: useful to confirm but not news!

https://www.reddit.com/r/rust_gamedev/comments/1cka6n8/informal_rust_gamedev_in_2024_survey_results/

Setzer22,
@Setzer22@mastodon.gamedev.place avatar

@alice_i_cecile I see lots of people advocating for hot reloading of code in the comments. Definitely agree on that one, and I'm happy to confirm people actually care about this!

But honestly I'm not sure what it would take for to get this and there doesn't seem to be generalized interest in taking those steps on the compiler side...

royal, to python
@royal@theres.life avatar

I think in PowerShell and can manage in Python. I want to learn Rust to the degree I can write in it directly, rather than prototyping in PowerShell and then converting.

A lot of what I do is data manipulation and analysis. (Take several CSV files as input, and output new CSV files that answer business questions based on the inputs.) I'm seriously impressed with Rust's performance here.

If you've made this transition, advice on where to begin?

AdeptVeritatis,
@AdeptVeritatis@social.tchncs.de avatar

@royal

From the Rust Cookbook:
https://rust-lang-nursery.github.io/rust-cookbook/encoding/csv.html

You will probably have to deal with Serde:
https://docs.rs/serde/latest/serde/

And / or the csv crate:
https://docs.rs/csv/latest/csv/index.html

with its tutorial:
https://docs.rs/csv/latest/csv/tutorial/index.html

I am using Kate text editor in Linux. Installing 'rust-analyzer' enables code completion and checking with the integrated LSP server.

I decided to use Egui for the UIs, because I do not need to deal with CSS. And I am still satisfied with it.

AdeptVeritatis,
@AdeptVeritatis@social.tchncs.de avatar

@royal

The csv crate tutorial is really great. Very detailed for beginners.

Thanks to all, who contribute to such a nice piece of work.

wrstscrnnm6, to programming
@wrstscrnnm6@mastodon.social avatar

I was getting an error "failed to allocate XXXXXX b"

I copy the number into wolfram alpha to see how much data that really is.

5.3 Zettabytes.

How the hell is this program trying to allocate the equivalent of ... all of the data sent over the internet in a year, five times over?

Somewhere between my terminal and the browser the string of numbers got doubled.

Never have I been so relieved to find out my program was only trying to allocate 53Gb of ram.

#programming #rustlang #debugging

wrstscrnnm6,
@wrstscrnnm6@mastodon.social avatar

With a few tweaks I got this working on my desktop. A 16 character puzzle computes in 195s. But it does in-fact use a ton of memory.

like, around 124Gb of ram.

#programming #rustlang #RAM #optimization #threading

wrstscrnnm6,
@wrstscrnnm6@mastodon.social avatar

The CPU intensive part of the job finishes in less than two minutes. It then takes 6-12 additional minutes back on the main thread to handle all the data that those other threads produced.

kubikpixel, to rust
@kubikpixel@chaos.social avatar

Have any of you Rust developers ever used Skytable and been satisfied so far? Is it also 100% open source or do I have to pay attention to something like SurrealDB and can GraphQL or something similar also be used on it?

🦀 https://skytable.io
⚙️ https://surrealdb.com
⚙️ https://graphql.org


kubikpixel,
@kubikpixel@chaos.social avatar

Which of these databases is probably more practical and faster for a fast project in pure , which database would you prefer?

(The question about is not meant seriously, because depending on the task and the desired solution, the results will be different.)

🦀 https://skytable.io
🦀 https://www.polodb.org

kubikpixel,
@kubikpixel@chaos.social avatar

🧵 …I ask this above to integrate a on a / project, this make sense:

📺 vs. Explained (in 4 Minutes)
https://www.youtube.com/watch?v=_Ss42Vb1SU4

  • All
  • Subscribed
  • Moderated
  • Favorites
  • anitta
  • everett
  • magazineikmin
  • Youngstown
  • thenastyranch
  • rosin
  • slotface
  • ngwrru68w68
  • Durango
  • PowerRangers
  • kavyap
  • cisconetworking
  • tsrsr
  • DreamBathrooms
  • modclub
  • mdbf
  • tacticalgear
  • khanakhh
  • ethstaker
  • vwfavf
  • InstantRegret
  • tester
  • osvaldo12
  • cubers
  • GTA5RPClips
  • Leos
  • normalnudes
  • provamag3
  • All magazines