rustlang emoji

Posts tagged with :rustlang:

zrl
@zrl0
spent some of the weekend learning rust!
https://cloud-9re8d699r-hack-club-bot.vercel.app/0screen_shot_2022-08-01_at_1.23.43_pm.png
summer-of-making emoji
rustlang emoji
ferrisbongo emoji
khalby786
@khalby7867+
Trying out Rust for the first time! After a few days of struggling with move-before-use situations and just Rust in general, I managed to have a triangle move around my screen when arrow keys are pressed. I have possibly written really bad code, but I'm just happy I managed to give a triangle wings. Would love it if y'all could give me feedback on my messy code: gist.github.com/khalby786/c4211667fd399a96ba39c0d3a1eb377b.
https://cloud-ff1oe62sn-hack-club-bot.vercel.app/0ttlsgx1854.gif
goose-honk-technologist emoji
github emoji
spring-of-making emoji
rustlang emoji
rithul
@rithul0
Reading the rust lang book
https://cloud-nl2jsbr1c-hack-club-bot.vercel.app/0img_20220505_150155.jpg
spring-of-making emoji
rustlang emoji
Andrew
@Andrew0
I followed a tutorial on how to create CLIโ€™s in rust, and I created cat-say ๐Ÿฑ
https://cloud-8vsov0qf1-hack-club-bot.vercel.app/0screen_shot_2022-04-16_at_10.18.54_am.png
matt
@matt1
matt
@matt1
porting a driver written in python to rust!
https://cloud-81pmskvwd-hack-club-bot.vercel.app/0screen_shot_2022-03-13_at_6.45.46_pm.png
python emoji
wom emoji
rustlang emoji
ced
@ced0
I think the last time I posted here neither the physics nor the sword were a thing. well. they are now! I also wrote like a six paragraph summary in DMs with someone somewhere about what I'm doing differently this time 'round other than simply writing it in C. it's a neat overview of some of the things I've learned about making games in the past year+ since the Rust version. could probably turn that into a neat blog post at some point. I also got the game working on mac. still looking for someone to try it on Windows to see if DirectX has the rendering bug I think it might have. now all that's left to do for feature parity with the original version is um, I guess, physics for the sword, enemy AI, combat, then the bow and arrow, inventory ui, then quests. I want to add cool things you can interact with in the forest like pots you can break, grass you can cut, other assorted RPG tropes.
ced
@ced0
the C port is coming along nicely :) :c: ๐ŸŒณ ๐ŸŒณ ๐ŸŒณ it can render the same forest, but with much better fps than the Rust version because of a handful of graphics programming tricks I've picked up since then. similarly to @AakankshaRangdal-U02F16CHZA4's post, also made mostly with circles! (okay, nonagons, but still hehe) actually, on that note, I've attached a picture of the original version I made in Rust: do you prefer its circles to the nonagons? let me know by reacting with ๐ŸŸข or :stop-green: (technically an octogon, but close enough) repo here: :githubparrot: github.com/cedric-h/rpgc if anyone has a second and would like to try to build and test the native executable on windows, shoot me a DM. I suspect I might have some depth sorting issues on DirectX but want to make sure. ๐Ÿšง :blender: I've also attached a picture of what the map looks like in Blender, as well as a tiny glimpse of the script I wrote to export it. if you've played the Rust version then maybe you can guess what each line, diamond, square and circle means ๐Ÿ˜
https://cloud-k8bkszz7v-hack-club-bot.vercel.app/0image.pnghttps://cloud-fsqfnzqml-hack-club-bot.vercel.app/0image.pnghttps://cloud-onn7kpj09-hack-club-bot.vercel.app/0image.png
matt
@matt1
goose-honk-technologist emoji
hardware emoji
github emoji
rustlang emoji
ferrisbongo emoji
wom emoji
ced
@ced0
as I port a game I wrote a while ago in Rust to C to try and see how much smaller I can get the WASM bundle size, I've found that what has the biggest impact is the "culture" of the languages. for example, the maps in the game I made are laid out in blender, and then exported to JSON with a custom python script I wrote using blender's API. it's easy to add a Rust dependency to parse the JSON for you, but that bites you in the ass later; serde can inflate your compile times AND your WASM bundle size. in C, however, package management looks different; there are single header libraries that are pretty easy to include, but using libraries isn't very C-like, and unlike Rust, C has a stable ABI. that means that if I change my python script to dump a bunch of floats into the file as binary, I can fread those directly into a bunch of C structs. (I do have to handle endianness for integers, though) in Rust, even if I used #[repr(C)] to force a stable ABI for those structs, I'd still have to jump through a bunch more hoops (unsafe) or pull in a dependency like bincode (which would in turn pull in serde ...). anyway, so I quickly wrote a python metaprogram to generate a C header that can fread (or just memcpy) in all of the binary data into the fields in the game map object that the first python script pulls out of blender
https://cloud-265bwmhxm-hack-club-bot.vercel.app/0image.png
ian
@ian7+
Finally learning rust! Just wrote a hello world
https://cloud-5upsj7wut-hack-club-bot.vercel.app/0image.pnghttps://cloud-h60lm9l17-hack-club-bot.vercel.app/0image.png
caleb
@caleb0
#adventofcode day 2 :wahoo-fish:
https://cloud-5880o9jxl-hack-club-bot.vercel.app/0screen_shot_2021-12-02_at_10.54.48_am.png
aom-21 emoji
wahoo-fish emoji
rustlang emoji
aoc emoji
Andrew
@Andrew0
https://cloud-nsu0zwhye-hack-club-bot.vercel.app/0screen_shot_2021-11-27_at_2.42.30_pm.png
github emoji
rustlang emoji
aom-21 emoji
JinmayJhaveri
@JinmayJhaveri0
After some hardwork got folder based project query to work for github.com/Borrus-sudo/Zeus It now can filter out stuff based on whether a folder is a git,node,rust (and many more!)project. Now adding support for time based filter for it! . Edit: So if you wanna see all your node projects which have git intialized in your sea of files, the filter can help it for you. It uses a technique to find if the folder is that project or any of its direct children is one or any of its depth is one. In this way it decides whether to show or remove that directory.
https://cloud-qs2kjadlq-hack-club-bot.vercel.app/0image.png
aom-21 emoji
github emoji
yay emoji
rustlang emoji
caleb
@caleb0
doin' what i do best (code, that is)
https://cloud-ofdd4a4n7-hack-club-bot.vercel.app/0screen_shot_2021-09-23_at_9.19.24_pm.png
goose-honk-technologist emoji
aom-21 emoji
rustlang emoji
Andrew
@Andrew0
i did some stuff on github.com/gem-app, getting closer to finishing the waitlist page for it I also read up on rust docs since Im still learning that :cooll-thumbs:
https://cloud-751k40zch-hack-club-bot.vercel.app/0img.png
beachball emoji
aom-21 emoji
github emoji
rustlang emoji
Andrew
@Andrew0
Not that much coding today other then my current rust project but I made a pan cookie :kekw:
https://cloud-cwpa95nd6-hack-club-bot.vercel.app/0image_from_ios.jpg
aom-21 emoji
rustlang emoji
syn
@syn0
It's not much, but it's honest work.
https://cloud-d54bb9ogn-hack-club-bot.vercel.app/0image.png
matt
@matt1
rust analyzer is drunk
https://cloud-96d3d4bra-hack-club-bot.vercel.app/0screen_shot_2021-08-25_at_11.33.17_pm.png
rustlang emoji
summer21 emoji
eggsdee emoji
caleb
@caleb0
https://cloud-llzwysnlk-hack-club-bot.vercel.app/0screen_shot_2021-08-19_at_9.32.18_pm.png
spring-of-making emoji
rustlang emoji
amy7296
@amy72960
Trying to learn rust the same way i learnt c++: by osdev
https://cloud-kv8cbjpw1-hack-club-bot.vercel.app/0image.png
summer21 emoji
rustlang emoji
warren
@warren1
time to learn rust because yes
https://cloud-999awe4js-hack-club-bot.vercel.app/0image.png
summer21 emoji
ferrisbongo emoji
rustlang emoji
caleb
@caleb0
https://cloud-dt63holy8-hack-club-bot.vercel.app/0image.png
github emoji
summer21 emoji
graphql emoji
rustlang emoji
Skye
@Skye0
Just started learning Rust. I kinda like it!
https://cloud-3u8guzuns-hack-club-bot.vercel.app/0image.png
rustlang emoji
yay emoji
summer21 emoji
JonathanTao
@JonathanTao0
trying out rust for the first time, seems interesting
https://cloud-adzos7tf8-hack-club-bot.vercel.app/0image.png
rustlang emoji
ferrisbongo emoji
spring-of-making emoji
kognise
@kognise0
Made a super simple tool to automate fixing up this documentation I have to take from a shittily formatted PDF and put in my Rust code, since I realized that was taking a lot of time.
https://cloud-nxmbifjz7-hack-club-bot.vercel.app/0image.png
rustlang emoji
spring-of-making emoji
goose-honk-technologist emoji
kognise
@kognise0
First scrapbook entry, somehow! Also, woooo cursed Rust macros go brrr
https://cloud-drhcwgcwp-hack-club-bot.vercel.app/0image.png
rustlang emoji
spring-of-making emoji
parrot_upvote emoji
Odyssey346
@Odyssey3460
Gonna try learning Rust by making a Discord bot with it.. Clearly going well
https://cloud-fabgzp0m8-hack-club-bot.vercel.app/0image.png
matt
@matt1
https://cloud-o0hup49jb-hack-club-bot.vercel.app/0img_0060.jpg
spring-of-making emoji
ferrisbongo emoji
rustlang emoji
github emoji
upvote emoji
caleb
@caleb0
woooooooooooo i got a svelte app embedded in a Rust binary ๐ŸŽ‰ :ferrisbongo: ๐ŸŽ‰ (for clb.li/shorty of course)
https://cloud-r1m9x6l9w-hack-club-bot.vercel.app/0screen_shot_2021-04-12_at_12.30.13_am.png
spring-of-making emoji
svelte emoji
rustlang emoji
matt
@matt1
Over the past few days I have been rewriting my first GitHub action,ย profile_stackย , in rust from python! The action now runs 4 times faster, has some rock solid unit tests, improved documentation, aย superย clean codebase, and an army of crabsย :ferrisbongo:! Super glad that I am finally getting comfortable with rust :)ย ~I am starting to see why there is a rust cult~ github.com/Matt-Gleich/profile_stack
https://cloud-qr1a883oc-hack-club-bot.vercel.app/0screen_shot_2021-04-08_at_11.00.37_pm.jpg
python emoji
ferrisbongo emoji
github emoji
spring-of-making emoji
rustlang emoji
matt
@matt1
got my docker install of cargo-make to install the existing binary so my images donโ€™t take 8 minutes to build!
https://cloud-gic8xnkzq-hack-club-bot.vercel.app/0screen_shot_2021-04-04_at_11.18.00_pm.jpg
eggsdee emoji
yay emoji
spring-of-making emoji
rustlang emoji
docker emoji
matt
@matt1
~I write the best unit tests~
https://cloud-5p6r4amr7-hack-club-bot.vercel.app/0screen_shot_2021-04-04_at_5.40.14_pm.jpg
upvote emoji
rustlang emoji
spring-of-making emoji
Khushraj
@Khushraj0
lets go, I'm rewriting repl.deploy in rust and I HAVE TESTS! A 100 LINES OF TEST CODE FOR 96 LINES OF CODE
https://cloud-aglnn4kdq-hack-club-bot.vercel.app/0screenshot_2021-04-03_at_10.36.11_pm.png
rustlang emoji
goose-honk-technologist emoji
spring-of-making emoji
replit emoji
matt
@matt1
https://cloud-ffwi0neza-hack-club-bot.vercel.app/0screen_shot_2021-04-01_at_8.56.41_pm.jpg
rustlang emoji
spring-of-making emoji
upvote emoji
ferrisbongo emoji
matt
@matt1
compiling a rust binary :sad-rat:
https://cloud-njrof835x-hack-club-bot.vercel.app/0screen_shot_2021-03-29_at_8.57.30_pm.jpg
rustlang emoji
spring-of-making emoji
aaryan
@aaryan0
Continuing my rust journey :luggage:
https://cloud-hzpdiicqv-hack-club-bot.vercel.app/0image.png
ferrisbongo emoji
spring-of-making emoji
rustlang emoji
upvote emoji
aaryan
@aaryan0
Reading "Ray Tracing in C++ in One Weekend" this weekend. 10/10 worth a read. I'll try to re-implement this book in rust after I'm done with this!
https://cloud-tjgc16pep-hack-club-bot.vercel.app/0image.png
c++ emoji
spring-of-making emoji
rustlang emoji
matt
@matt1
The PRs I made to the cargo book and crates.io website got merged today!
https://cloud-rh8mv7jjd-hack-club-bot.vercel.app/0screen_shot_2021-03-14_at_7.54.58_pm.jpg
pullrequest emoji
spring-of-making emoji
ferrisbongo emoji
rustlang emoji
github emoji
caleb
@caleb0
i made that previous snippet โฌ†๏ธ look nicer
https://cloud-1uckvg9we-hack-club-bot.vercel.app/0uploaded_using_raythis_extension_4_.png
spring-of-making emoji
rustlang emoji
caleb
@caleb0
rewriting my link shortener in rusty rust
https://cloud-b4519tz1c-hack-club-bot.vercel.app/0ferris_bongo.png
spring-of-making emoji
rustlang emoji
caleb
@caleb0
Slack request verification in Rust (please ignore the horrendous error handling lol)
https://cloud-5mdgwphno-hack-club-bot.vercel.app/0uploaded_using_raythis_extension_3_.png
rustlang emoji
spring-of-making emoji
slack emoji
matt
@matt1
ok just started reading the rust book and damn cargo is sooooo much better than go modules. Excited to learn more about rust!
https://cloud-hzca5f70h-hack-club-bot.vercel.app/0screen_shot_2021-03-07_at_9.26.36_pm.jpg
rustlang emoji
upvote emoji
wom emoji
caleb
@caleb0
Iโ€™m doing some macro-backed GraphQL queries in Rust :ferrisbongo:
https://cloud-qbp263i31-hack-club-bot.vercel.app/0uploaded_using_raythis_extension.png
rustlang emoji
wom emoji
caleb
@caleb0
:ferrisbongo:
https://cloud-ku5a2szd1-hack-club-bot.vercel.app/0screen_shot_2021-02-27_at_3.55.14_pm.png
wom emoji
rustlang emoji
WilliamLane
@WilliamLane0
Got diesel orm models and migrations set up for rust and postgresql, wrote a server for a link shortener to test it out.
https://cloud-fbwd20ywk.vercel.app/0screen_shot_2021-02-09_at_09.52.29.png
WilliamLane
@WilliamLane0
Just learned you could implement your own lazily loading in rust.
https://cloud-jhgbsmi4n.vercel.app/0screen_shot_2021-02-06_at_22.20.02.png
rustlang emoji
wom emoji
upvote emoji
benjamin
@benjamin0
I mAdE a RuSt SeRvEr
https://cloud-mixeccvoc.vercel.app/0image.png
rustlang emoji
pogchamp emoji
wom emoji
upvote emoji