rustlang emoji

Posts tagged with :rustlang:

dav
@dav7
Day 7 of #10-days-in-public Implemented all the fixes I mentioned yesterday. Unlike yesterday, the game is actually stable, so I can jump around like a monkey. Spent around 30 minutes wondering, "why does my variable keep magically changing." "Ah! It must be UB or a memory violation" (unspoken words of a rust programmer). Long story short, it was because I set a variable as true when it should have been false :peefest:.Tomorrow there are two big features I've been putting off since day 1. Sound: trowel doesn't support sound, and although I gave it a crack on day 4, I made no progress. Optimization (which will be my next main focus): I can jump around smoothly, but not on hardware. This will involve trimming out floating point numbers (which aren't natively supported on RP2040), caching/reusing rendering data, and some screen drawing optimizations suggested on the trowel github. Another black magic option is to try out unlocking the second RP2040 core, but I have no clue how to do that. EDIT: You can completely disregard my last sentence. embassy.dev is a rust async executor for embedded systems (meaning easy multithreading) and it has a module for RP2040 :tw_smile:, so excited to try it out. Long live the crab language.
https://scrapbook-into-the-redwoods.s3.amazonaws.com/0d426e67-1f8a-4af8-a83f-f59222eb47e1-bruh.pnghttps://scrapbook-into-the-redwoods.s3.amazonaws.com/538c18dc-ab39-45dc-a7c7-f8b87e087db4-game.gif
Rice7th
@Rice7th0
It's been a while since I touched my C compiler! Hopefully I'll get an AST before the end of January...
https://scrapbook-into-the-redwoods.s3.amazonaws.com/ebd28070-a1ac-4f37-b8cd-26ab90aca2d2-image.png
rustlang emoji
c emoji
Ishaaq
@Ishaaq1
Rust does take a long time to initially compile. Im currenty playing around with bevy
https://scrapbook-into-the-redwoods.s3.amazonaws.com/24268075-dd7c-46f4-8d51-4c4978732328-img_20231221_223454.jpg
rustlang emoji
Marios
@Marios0
Well well well, what do we have here, TAURI! I've started using tauri again (and rust!) and its honestly super great. My end goal for now is to try to run sinerider inside of a tauri application and see if the performance is better
https://scrapbook-into-the-redwoods.s3.amazonaws.com/f19b8c29-f86b-4460-8a40-772b9cd5cb75-image.png
rustlang emoji
sprig-dino emoji
ultrafastparrot emoji
polypixeldev
@polypixeldev0
i heard you like rust so i forked a repo that uses rust to make your sprig rusty and made my sprig rusty: github.com/polypixeldev/trowel also did some stuff in #nest like setting up a new server go check it out go picasso #100-picasso :picasso:
https://scrapbook-into-the-redwoods.s3.amazonaws.com/14f081f8-6e28-4ea4-b927-f6b3bbfde2ad-sprigrust.jpg
CameronKnauff
@CameronKnauff0
I finally got building with stillBuild fully functional. This is a Rust tool that wraps around rpm-ostree compose to make it simpler and more reliable for building rpm-ostree repos. This is how stillOS will work. #project-still #100-days #100-picasso
https://scrapbook-into-the-redwoods.s3.amazonaws.com/e2130874-b372-49e1-abee-6f09d843a94c-img_3799.jpg
CameronKnauff
@CameronKnauff0
Struggling to finalize the build system for stillOS... I should have picked Python instead of Rust 😢 #100-days #project-still #100-picasso
https://scrapbook-into-the-redwoods.s3.amazonaws.com/c25358cb-7a62-402c-bcdd-80233854e6b6-image.png
Marios
@Marios0
Creating an API with :rust: because why not! CLion + Rust Plugin works great
https://scrapbook-into-the-redwoods.s3.amazonaws.com/81c8a4df-5d8f-42fd-b32b-f3aba03644c4-image.png
rustlang emoji
CameronKnauff
@CameronKnauff0
Stumbling my way around Rust Enums for my SIPM package tool, with help from @dav
https://scrapbook-into-the-redwoods.s3.amazonaws.com/13d4d282-b309-4e43-ba69-56f4d5e7c80b-image.png
tw_heart emoji
rustlang emoji
JosiasAurel
@JosiasAurel0
wrote something to evaluate math expressions using the Pratt parser technique in Rust :rustlang:
https://scrapbook-into-the-redwoods.s3.amazonaws.com/d2ba3808-9ba5-4d9e-854c-5157f54961a0-image.png
rustlang emoji
Marios
@Marios0
My rust todo application is going so well! The CLI is done and I need to add the delete todo functionality on the GUI! Regardless everything is going so perfectly! Tauri is awesome to work with. Here is a quick demo.
https://scrapbook-into-the-redwoods.s3.amazonaws.com/7309c4dd-879b-43f1-9c0a-c16f3dd1ad49-image.png
awesome emoji
rustlang emoji
noscrappy emoji
Marios
@Marios0
Working on a todo cli with Rust! I like Rust so far
https://scrapbook-into-the-redwoods.s3.amazonaws.com/1c083cb5-8341-440e-960e-9c1621a6d2f2-image.png
rustlang emoji
Marios
@Marios0
Today was pretty good, learned a bit of rust and worked on some server billing while I had an internet outage and forgot to charge my phone :eggsdee: Internet is still recovering so upload speeds are so bad I can't upload a normal image :nooo:
https://scrapbook-into-the-redwoods.s3.amazonaws.com/9a95d224-8ef8-40fa-ad07-591067cebbe3-img_20230624_075736.jpg
rustlang emoji
Marios
@Marios0
Learning RUST :rustlang:!
https://scrapbook-into-the-redwoods.s3.amazonaws.com/04a1f820-173e-470e-b9a0-aa2136ba8005-image.png
rustlang emoji
summer-of-making emoji
SuperKingCrimson
@SuperKingCrimson0
Learning Rust. I get distracted easily, so I'm making a GitHub Repo for every lesson and taking notes with examples. Kinda embarrassing that I've been programming for 3 years and didn't know what the stack and the heap was, but hey we chillin we vibin
https://scrapbook-into-the-redwoods.s3.amazonaws.com/630e2c05-17f4-4f3d-a0c2-1bd0c0018d34-rustup.png
github emoji
rustlang emoji
spring-of-making emoji
arav
@arav0
learning rust! (frankly because I'm procrastinating doing school work)
https://scrapbook-into-the-redwoods.s3.amazonaws.com/5e1b9f8e-a710-4393-b7c2-4eda0d586c06-image.png
ZeroQL
@ZeroQL0
#w-of-the-day day 141 Not how I wanted to end my day on, My Laptop blue screened for the first time ever and has gone on a endless windows update loop, got it fixed just now (eugh can’t wait to get rid of this bloatware) Other than yeah not much, I’ve got a good knack for rust and have been practicing it for the past few days, also attended the #burrow weekly call which was insightful
https://scrapbook-into-the-redwoods.s3.amazonaws.com/da029269-d838-4b4c-b49c-9d95bcfc5cec-img_1219.jpg
rustlang emoji
Andrew
@Andrew0
hi im building my own “load balancer”, already built out the round robin algo (www.cloudflare.com/learning/performance/types-of-load-balancing-algorithms you can learn more about it here :3 ) and weighted round robin, currently its just a small hyper server that runs and you have to use it like this (localhost:8081 and localhost:8082 are two expressjs servers & localhost:8080 is where the load balancer runs so it can distribute requests across these 2 servers). planning to make a small interface using yew.rs so you can use it on a UI too github.com/anddddrew/juggler (code is here, still a wip!)
./target/release/juggler --port 8080 --servers <http://localhost:8081>,http:/localhost:8082
https://scrapbook-into-the-redwoods.s3.amazonaws.com/a67c4e1e-6661-48a6-8bb6-6a83c18eea59-floss.png
rustlang emoji
malted
@malted0
I've been exploring browser rendering after @zrl mentioned Ladybird, including giving it a shot in Rust. The internals of SpiderMonkey are especially interesting; Mozilla wrote an overview of how its components work here: firefox-source-docs.mozilla.org/js/index.html
https://scrapbook-into-the-redwoods.s3.amazonaws.com/0b22c345-e137-4df7-9b13-2bf53067151c-image.png
rustlang emoji
spring-of-making emoji
firefoxlogo emoji
js emoji
parkalex380
@parkalex3800
Create performance task progress? For my CPT my goal was to learn Rust in as little time as possible, and I think it worked.
https://scrapbook-into-the-redwoods.s3.amazonaws.com/101e2721-2c86-48a0-89bf-8491f17edd3b-image.png
rustlang emoji
spring-of-making emoji
jzaleta
@jzaleta0
#burrow! This is an awesome project! Maybe I'll learn Rust to help with it one day! :rust: I wasn't able to stay the full call but I'm definitely joining again next time. Also I read a bit on SineRider's code, I'll try to get back at working on the translations as soon as possible.
https://scrapbook-into-the-redwoods.s3.amazonaws.com/7314903d-6d77-4958-8c0f-cdb6d070e2a2-captura_de_pantalla_2023-04-10_a_la_s__19.33.53.pnghttps://scrapbook-into-the-redwoods.s3.amazonaws.com/47654753-561a-4801-aeec-5d9649b41144-captura_de_pantalla_2023-04-10_a_la_s__19.12.57.png
rustlang emoji
awesome emoji
spring-of-making emoji
goose-honk-technologist emoji
thatrobotdev
@thatrobotdev0
Created a Jellyfin to store my YouTube archive + music on my network in a nice UI and learned a lot about Hack Club’s burrow on the project call (and kind of started a sort of journal to track my rust journey from 0, I really want to join as many of the weekly calls as possible since it’s a really cool project!).
https://scrapbook-into-the-redwoods.s3.amazonaws.com/ea9d7203-3825-4339-aea6-5b6556676481-captura_de_pantalla_2023-04-10_a_la_s__22.20.53.pnghttps://scrapbook-into-the-redwoods.s3.amazonaws.com/b6954f69-fd6c-43b5-96ad-299eb0a21e87-captura_de_pantalla_2023-04-10_a_la_s__22.19.37.png
spring-of-making emoji
goose-honk-technologist emoji
hackclub emoji
music emoji
cooll-dino emoji
rustlang emoji
provsalt
@provsalt0
13/3/2023 Day 2/30 of Rust! I learnt more about data types specifically in rust! It's pretty cool that defining a char is a ' while strings are " because I hate ' in js. Ooh but I didn't get to do much! I got myself a new little macbook to get things done on the go faster!
https://cloud-n4i5lfyzt-hack-club-bot.vercel.app/020230313_185611_lmc_8.4.jpg
wom emoji
rustlang emoji
Arpan
@Arpan0
Let's write an OS in Rust coz why not?
https://cloud-lase65ayb-hack-club-bot.vercel.app/0screenshot_2023-03-09_at_6.17.26_pm.png
wom emoji
eyes_shaking emoji
rustlang emoji
ShaneCelis-U04F7QE6H41
@ShaneCelis-U04F7QE6H410
Ported a rust raytracing demo for w4, a minimal wasm target, running on the sprig. Had a funny bug where all my input seemed to be going backwards. I hit right, I turn left. Turns out I was thinking high pins on sprig were button presses when actually low pins are. So the game was operating as though all the buttons were pressed all the time, but it’s just up, down, left, right, so they all canceled out. When I pressed the right button, it stopped applying the right turn code but the left turn code was still being applied so it’d turn left. It was like countersteering.
Arpan
@Arpan0
Learning a bit of rust with the new version of the book even tho I have my maths final on Monday
https://cloud-pnlmju3a8-hack-club-bot.vercel.app/0screenshot_2023-03-03_at_4.59.42_pm.png
rustlang emoji
wom emoji
cfanoulis
@cfanoulis0
well i mean its time i posted something for the winter wonderland project heh. So I setup my raspi, setup the printer & ended up rewriting my nextjs template to... rust & handlebars. eh. At least the kiosk index page works now! (as well as the done page, not pictured)
https://cloud-5wt8v7jdp-hack-club-bot.vercel.app/0image.png
wom emoji
nextjs emoji
winter-hardware-wonderland emoji
rustlang emoji
ShaneCelis-U04F7QE6H41
@ShaneCelis-U04F7QE6H410
github emoji
wom emoji
pr emoji
rustlang emoji
ShaneCelis-U04F7QE6H41
@ShaneCelis-U04F7QE6H410
wom emoji
rustlang emoji
sprig-dino emoji
Arpan
@Arpan0
https://cloud-kstjzp0vu-hack-club-bot.vercel.app/0navigating_the_fundamentals_of_rust_programming_language__from_installation_to_community_participation..png
wom emoji
rustlang emoji
Arpan
@Arpan0
Starting to learn Rust (by building a CLI)!
https://cloud-qon8hqfmz-hack-club-bot.vercel.app/0screenshot_2023-01-13_at_8.17.45_pm.png
wom emoji
rustlang emoji
ferrisbongo emoji
m04
@m040
Since I have this week off (fall break) I'm finally learning rust, after &gt;4 years of wanting to do so
https://cloud-dxd6nymvm-hack-club-bot.vercel.app/0image.png
Andrew
@Andrew0
i made a script called janitor that updates a bunch of stuff on my mac machine like: • brew packages • rust • pip • and so on i made an alias so I can just type janitor in my terminal and it runs the script, it feels like a real cli to me even though its like 20 lines of bash code 😂
https://cloud-e2pdmtl63-hack-club-bot.vercel.app/0screen_shot_2022-10-17_at_5.46.54_pm.png
rustlang emoji
goose-honk-technologist emoji
HenryBass-U02KEJ8T6D8
@HenryBass-U02KEJ8T6D80
*What's Henry™ Been Up to After Assemble?*™ --------------------------------------------------- The question on all of your minds: What's Henry™ Doing With His Time After Assemble™? Ever since the groundbreaking release of his team's Assemble™ project, the world has awaited his next ship™. When asked about this, he will say: "_I'm working on a few different projects_" What he means to say is that he currently has 12 windows open, 5 of them Firefox™ instances, each with more tabs then can fit on the navigation bar. One of those browser windows is entirely devoted to Wikipedia™ pages that he opens, and then refuses to close until he fully reads, despite the fact that he has no interest in doing so. In another window, he has everything from Ben Eater 8-bit breadboard CPU schematics, to Rust™ documentation, to TensorFlow™ docs and a partially written auto-encoder. He also has 3 Sprig ™windows, and article on how BitTorrent™ works, and a random CVE™. There is also an article on TradeMark™ Law, that he has clearly not read. There is even the skeleton of a 6502™ Emulator™ that he may or may not finish. There's a few 3Blue™1Brown™ videos that he's stuck trying to follow. There is an article on how memory works that he does not remember if he has read. In another window, we have 1 Gig of raw Wikipedia™ data, and a Visual™ Studio™ Code™ window with code for an GO™ algorithm he is trying to use to compress said 1 Gig of Wikipedia™ data. Beyond that he has a Logisim™ window, with a partially designed ALU™ that he is trying to work on. Each time he makes progress on one project, he gets interested in something else and opens 100 tabs for that. He is secretly hoping for his computer to crash and wipe his computer he can reorganize. He is spending large amounts of time studying useless aspects of computer science™, and math™. It has been like this since Assemble™ ended, and will continue indefinitely. This has been What's Henry™ Been Up to After Assemble?™. --------------------------------------------------------------------------------------- Thank you for skimming over: _What's Henry™ Been Up to After Assemble?_™
https://cloud-8deag5n5g-hack-club-bot.vercel.app/0what_s.png
warren
@warren0
decided to work on a cool new project using two of the most based languages: go and rust (i have never coded in rust before so i am quite happy at how well this is going)
https://cloud-nm2i19q84-hack-club-bot.vercel.app/0image.png
rustlang emoji
cooll-dino emoji
bongo emoji
summer-of-making emoji
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
@khalby7860
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
@matt0
matt
@matt0
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
@matt0
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
@ian0
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