Dipping my toe into the Rust lake... Any good starter tutorials, video or otherwise, that will get me started on the right path?
#rust
Dipping my toe into the Rust lake... Any good starter tutorials, video or otherwise, that will get me started on the right path?
#rust
basic version of my site generator in #rust
make sure sqlite is in your path to run
@jet what happened to #stopify?
I roll out custom implementations based on #stripe left and right.
It's quite easy with #rust, #specta and #typescript.
Here is a fresh generic ecommerce demo where I was learning #vike for frontend – https://github.com/cognivore/thegoodshop
Feel free to fork and run with it
Memory safety for web fonts: Skrifa is written in Rust, and created as a replacement for FreeType to make font processing in Chrome secure for all users. Skifra takes advantage of Rust's memory safety, and lets us iterate faster on font technology improvements in Chrome. Moving from FreeType to Skrifa allows Google to be both agile and fearless when making changes to our font code. https://developer.chrome.com/blog/memory-safety-fonts Does anyone know how Firefox handles web fonts security?
I kind of with #Rust #RustLang canonical formatting would put a space after the boolean not operator (!). In other words:
if ! filename.exists() {...}
instead of
if !filename.exists() {...}
This would make the negation a little easier to spot.
I don't wish this hard enough to even check if it's been discussed, never mind make a formal proposal. I'm just waiting for my test run to finish.
The neat thing about Rust are those moments when you feel like you know how the borrow checking system works, only for it to find a new way to mess with you and leave you baffled for days, weeks, months or even years.
Hey! Want to earn a little bit of spare cash and help out #bevy and the #rust #gamedev ecosystem? Take a look at https://github.com/gltf-rs/gltf/issues/346 and try and fix it.
Malek, who I can only describe as a lovable VR-obsessed gremlin, has put a $100 bounty on a fix for GLTF imports. Bother him with questions!
Yes or No: #Rust is a fad language and #C will continue to evolve and out live it. #Programming
took a couple minutes to update descriptions on #tek, #vestal, #taggart, and #tengri, developed at https://codeberg.org/unspeaker/tek
#foss #rust #basspistol #codeberg #ratatui #daw #tui #linux, and, most importantly, #thanksfedi !
I'm going to make make Rust my first AI-only language. I learned some #rust but have never built anything significant with it BY HAND. I intend to keep it that way, and apply CHOP (CHat Oriented Programming as coined by Steve Yegge) only with anything I produce in Rust.
We had a discussion today about the future of programming languages with LLMs becoming good.
Do we need "AI Native" languages and what would they look like? My intuition would be that Rust is actually is a good fit, for a few reasons:
1. Safety
2. Performance
3. Easy to read, but hard to write. And if the LLM does the writing, that's actually not a problem.
4. Very strongly typed, which I think benefits LLMs a lot because it gives itself a very quick feedback loop — if it compiles, it's probably correct.
I've spent the better part of the day with Claud Code writing a program that otherwise I would probably have hacked in TypeScript or Python. Instead, I had Claude Code generate Rust code and it went really well. The result feels very robust, and it is fast.
Although I don't know Rust intimately, I do assume general programming principles apply like in any other language. I can read the code the LLM writes and to challenge it with general engineering practices. On many occasions have I asked it to write tests, refactor the code, take a completely different implementation approach. I may not know the subtleties of Rust as a language, but I'm not sure that it matters.
And picking a language I can't easily write myself has proven to be a very effective strategy to fight the urge to step in and do it myself.
Formant is hiring Frontend Engineer
#rust #typescript #react #css
Remote
Full-time
Formant
Job details https://jobsfordevelopers.com/jobs/frontend-engineer-at-formant-io-nov-14-2022-38503d?utm_source=mastodon.world&utm_medium=social&utm_campaign=posting
#jobalert #jobsearch #hiring
I am not really comfortable with uutils, sadly.
Even thou a rewrite in Rust is a nice idea, and I do like the initiative - I do not like the MIT-licensing at all.
tried writing something to generate a website from a data base in #rust, it's possible but i honestly don't see much of a benefit compared to just using m4 macros or something like that
howdy folk first passing #ci build of #tengri just now:
https://codeberg.org/unspeaker/tengri
this is the framework code ripped out of #tek, my #tui #daw. currently, it wrapps #ratatui and provides main loop, generic layout logic, and an #sexpr-based mini-#dsl for describing stuff
(some ci run, not even outputting coverage like it ought to, but i don't feel like debugging that right now - PRs welcome!)
#Ubuntu will replace #GNU Core utilities with #Rust. https://www.youtube.com/watch?v=N2dbyFddcIs
Here’s a cache friendly dockerfile that downloads only new cargo packages
arg CARGO_BUILD_JOBS limits the threads used during build
https://gist.github.com/lil5/7b644dff7f77133e0543e0e85a5ccb76
I was convinced at first that the output couldn't be right. I was sure that *somehow* I'd written code that depended... somehow... mysteriously... on the debug stuff somehow???
But it writes out 500 checkpoints as it does it's job. So I grabbed two points, plugged into my Python code... waited.. waited... waited... and they checked out (same two states take seconds for the #rust code to generate).
So... Yea... "--release" makes a *huge* difference.
Wow.. So I was trying to #optimize some Rust code that would take six hours to run.
My goal was to get that down to 3.5 hours (something I'd achieved previously with lost code). Some tweaking got it down to 5 hours estimated runtime.
Then I thought to do:
"cargo build --release" instead of just "cargo build" for the first time.
And we're down to 3 minutes.... not 3.5 hours... 3 minutes.
Ok.. Good to know. Debug adds just a tiny bit of overhead on some code ;-).
#Rust: "unwrap_or_else()" makes me smile every time I use it.
I feel like I'm putting threats in my code.
"Alright Computer. Unwrap this.... Or Else."