#Rust Programming
Explore tagged Tumblr posts
Text
been a long time since I posted anything about coding, probably because I haven't been doing much of anything for a while since I had a really bad experience at my job which burned me out so bad I had to switch industries.
but I just implemented an amazing feature for my library, untwine, which is a parser generator macro enabling extremely easy parsing of any format (and it's even capable of doing context-sensitive parsing!).
look at how a boolean parser would be defined before:
this isn't so bad, but it's duplicating the string equality check, so it will check if the string is equal to "true" twice - once when it parses the pattern, and once when converting the data in the code block.
this approach also doesn't scale. in the case where you're matching weekdays, you end up needing a match statement inside your code block:
this gave me the ick for a long time because you have to repeat yourself and you have an ugly unreachable case which will trigger if you ever forget to add a case to the match statement after adding it to the pattern (which is very easy to do).
so now I've implemented a parser type which looks and acts like a match statement, allowing you to express things like that much more elegantly:
it's also extremely handy for command parsing, allowing me to express branching parsing paths that evaluate to the same type very cleanly. you can capture the values of the patterns you parse, which is perfect for grabbing arguments:
for all my 2 (± 1) followers who understand and care about parsing, you can see the full project up at https://crates.io/crates/untwine
30 notes
·
View notes
Text
Guys wish me luck
37 notes
·
View notes
Text
Dipping toes back into gamedev for a school project is just making me foam at the mouth for better tooling. Unity is great and so is csharp but I'm quite sure a decent chunk of lag spikes are caused by the garbage handler and you can't really get rid of it.
Making game engines is fun so I might finally commit to making a little one in rust, we will see
5 notes
·
View notes
Text
More Refactors, More Features
Day 165 - Apr 18th, 12.024
Again, not a lot for today, but now the .mdparser can manipulate Markdown's frontmatter, so that's neat.
Today's artists & creative things Music: Ruler Of My Heart | Alien Stage - by STUDIO LICO
© 2024 Gustavo "Guz" L. de Mello. Licensed under CC BY-SA 4.0
4 notes
·
View notes
Text
the thing i find with rust is that things never compile first time (it’s expected so the errors are quite helpful most of the time) but the flow is usually compile to see if you got things right and change if not. however, running first time is downright common, and i love it
#lizabeth talkabeth#rust#rustlang#rust programming#i’ve been writing a little lib to make http/websocket apis easy to make#and i’ve finally got the proc macro generating all the code it needs#and a test with channels works brill :3#i’m so happy#it’s the http and websocket transports next :]
3 notes
·
View notes
Text
using diesel with rust is like
3 notes
·
View notes
Text

So rust will no longer have a twitter account and if you look at the replied you can clearly see why




Most of this are baseless accusation, half conspiracies or just mean.
30 seconds of twitter and I already had enough.
1 note
·
View note
Text
why is installing rust from a .tar file such a pain in the ass. dont make me use msvc please
0 notes
Text
youtube
0 notes
Text
you would not believe the amount of joy it brings me to have pretty errors. I'm insane I'm losing my mind I spent at least a dozen hours on this. but LOOK!!!!
these are all auto generated!! all I did was *describe* the syntax of json with a formal grammar and this is what I get from that. I could now make ANY custom syntax and get these beautiful errors ����
28 notes
·
View notes
Text
Honestly if @typescript-official had enums with values inside like rust does I might just fall in love
6 notes
·
View notes
Text
Going deeper with Rust
Day 169 - Apr 22nd, 12.024
It is actually kinda scary, the power that the Rust programming language can have. Today I experimented just a little with its macros, more specifically the functional ones, and even knowing that they are the easiest ones, it stills surprises me the power that they can have. I probably won't go deeper into them any time soon, since I do have a problem of doing unnecessary abstractions and "quality-of-life" features and functions in my code, instead of just doing my actual job and finishing the project. However, at least know that they are there is useful, even more when I need to write some repetitive code.
Today's artists & creative things Video: The Mind Electric (no glitch + original ending) (lyrics) - by MONO
© 2024 Gustavo "Guz" L. de Mello. Licensed under CC BY-SA 4.0
2 notes
·
View notes
Text
Why I’m Adding Rust to My Tech Arsenal: A Deep Dive Into This Modern Programming Powerhouse
💻 Just started diving into Rust! 🚀 It’s safe, fast, and empowering my workflow like never before. 🔧 Building robust apps with memory safety & zero compromises. 🦀 #RustLang #Programming #TechSkills #Developers #CodeLife #RustLang #Rust
In the ever-evolving world of programming, staying ahead of the curve means embracing tools that redefine the way we write and manage code. Enter Rust, the modern programming language that has quickly gained a reputation for being safe, fast, and reliable. After exploring its capabilities, I’ve decided to integrate Rust into my skill set and workflow, and in this blog post, I’ll share why Rust…
#Modern Development#Programming Languages#Rust Programming#Software Development#Tech Skills#Workflow Optimization
1 note
·
View note
Text
My Rust Nation 2024
I've finally had a chance to pause after getting back from London. An immeasurable thank you to Ernest Kissiedu for the invitation to present.
Because I suck at selfies, but selfies are extremely popular, here is a selfie of me not looking at the camera:

A real business
Seeing my logo next to many others definitely made me take a breath and realise that I have created something meaningful. So many people have supported Tim Clicks, via financial contributions and positive messages during difficult times.

For people who have been following me for a while will know that my Rust consultancy, Accelerant, is less than a year old.
I decided to use the flagship Tim Clicks brand as the logo and it looks amazing. The branding work for Tim Clicks is all done by John at Underscorefunk Design and I recommend them wherever I can.
The conference began for me before the conference
If you're interested in podcasts, you should consider listening to the recording of the Twitter Space that I recorded with Ernest in the lead up to the event. It was wonderful to have the opportunity to chat about Rust and the opportunity that Rust offers the world:
Four talks in a week (including a full day workshop)
Rust London
Giving an impromptu lightning talk at Rust London was a fun highlight. I was able to rehearse a few lines from my talk, which was a nice bonus.

Rust in Enterprise workshop
I wasn't too sure what to expect when Ernest pitched the idea of hosting a workshop for the conference. I was already quite busy and overworked. In the end, it was a really incredible day.

Photo: Rust Nation via LinkedIn.
Talk: Unwrapping Unsafe
I spent weeks on this. Possibly more than 100 hours of research. After all of that time though, I decided to change the focus of talk radically to focus on explaining unsafe for the audience. It's strange to see that condensed down to 30 minutes or so. But there's bound to be another talk or two on this topic in the future.
youtube
Talk: 4 levels of error handling in Rust
Unfortunately, a speaker had to pull out. I offered to step in and am quite happy with the result.
youtube
The conversations are the best part
The talks are amazing, but the best part of a tech conference is the ability to shake hands. It was also really wonderful to connect with many people who I have only met online.
Possibly one of the most exciting points was to agree to start a partnership with Ben Wishovich, co-maintainer of Leptos, to provide full stack web development to clients.
Reflecting on a year
[Content warning: mental illness]
Flying home, I spent lots of time writing in my diary. Lots of that time spent coming back to my guilt at missing many deadlines for projects, such as my in-progress courses, which are very late. Suicidal thoughts have been a near-constant part of my background noise as an adult, and that background noise is much louder when I only have my own head to listen to.
Travel also imposes a large cost on my kids. I am almost constantly worried about my impact that my trips have on my girls. But I also know that we have lots of wonderful time together. I tend to work from home most the the time as well, which means that I get to spend more time with them than most Dads.

Connecting with me
I want to keep the discussions going, whether that means helping you with Rust or something else. Here are a few links:
Join my Discord server, CLICKS LOUNGE. This is the best way to keep a conversation going.
Find me on LinkedIn. If you would like to add me as a connection though, please send me a note rather than sending an anonymous request.
Support me on Patreon.
At some point, I would like to expand this into a fuller post but I've promised myself to time-box this one and make progress on some other tasks.
Wishing you all the best!
0 notes