I like technology, computers, programming, solving problems, math, science, motorsport, traveling... Jack of all trades, master of almost none.
No more try/catch/throw spaghetti code again. Makes TypeScript a bit more palatable for Rust lovers.
#rustlang #typescript
No more try/catch/throw spaghetti code again. Makes TypeScript a bit more palatable for Rust lovers.
#rustlang #typescript
Add support for TOPIC, RPL_TOPIC and RPL_NOTOPIC
Add support for ERR_CHANOPRIVSNEEDED
Add support for ERR_ERRONEUSNICKNAME
Add support for ERR_NOSUCHCHANNEL
Add support for ERR_NOSUCHNICK
#ziglang
github.com/vascocosta/z...
Add support for TOPIC, RPL_TOPIC and RPL_NOTOPIC
Add support for ERR_CHANOPRIVSNEEDED
Add support for ERR_ERRONEUSNICKNAME
Add support for ERR_NOSUCHCHANNEL
Add support for ERR_NOSUCHNICK
#ziglang
github.com/vascocosta/z...
dieterplex.github.io/rust-ebooksh...
dieterplex.github.io/rust-ebooksh...
OK #golang experts who don't know #rustlang! Without running this code and with one eye closed, how many of these modify their parent's data value?
Playground: play.rust-lang.org?version=stab...
OK #golang experts who don't know #rustlang! Without running this code and with one eye closed, how many of these modify their parent's data value?
Playground: play.rust-lang.org?version=stab...
There's a good balance between useful abstractions (like tagged unions) and overly abstracted code which you struggle to unpack when reading.
Zig nails the sweet spot in this area like no other language in my opinion.
#ziglang
There's a good balance between useful abstractions (like tagged unions) and overly abstracted code which you struggle to unpack when reading.
Zig nails the sweet spot in this area like no other language in my opinion.
#ziglang
The small mistakes it catches right away, like an enum variant missing on a match/switch statement saves a lot of time, by avoiding compilation to find out.
#rustlang
The small mistakes it catches right away, like an enum variant missing on a match/switch statement saves a lot of time, by avoiding compilation to find out.
#rustlang
It's like travelling back in time and remember what was my thought process back then. Helpful.
#ai #llm
It makes FP fun again for people like me that tried other FP languages but didn't feel like it was their cup of tea.
Thank you so much @lpil.uk. 🙂
#gleamlang
It makes FP fun again for people like me that tried other FP languages but didn't feel like it was their cup of tea.
Thank you so much @lpil.uk. 🙂
#gleamlang
Being used to so much pointless arguing in other platforms, from IRC to X, I can't help but notice how civilised and enjoyable @bsky.app is.
Remember, it's OK to disagree and constructively debate, but waste no time with senseless fights.
Being used to so much pointless arguing in other platforms, from IRC to X, I can't help but notice how civilised and enjoyable @bsky.app is.
Remember, it's OK to disagree and constructively debate, but waste no time with senseless fights.
Nah, not really, used sparingly where it makes sense it's both faster and acceptable.
It's a pleasure to use both languages for recreational programming, depending on my mood.
#rustlang #gleamlang
Nah, not really, used sparingly where it makes sense it's both faster and acceptable.
It's a pleasure to use both languages for recreational programming, depending on my mood.
#rustlang #gleamlang
We were not able to create your project as `reverse-args` does not have the
correct format. Project names ... may
only contain lowercase letters, numbers and underscores.
Would you like to name your project 'reverse_args' instead?
I love how strict gleam is.
#gleamlang
We were not able to create your project as `reverse-args` does not have the
correct format. Project names ... may
only contain lowercase letters, numbers and underscores.
Would you like to name your project 'reverse_args' instead?
I love how strict gleam is.
#gleamlang
Tell me a few reasons for learning Gleam.
Right now I'm a Rust coder who finds some Gleam concepts remarkably similar, albeit from a garbage collected perspective. It feels like a higher level, cousin of Rust.
How mature is the ecosystem around it?
#rustlang #gleamlang
Tell me a few reasons for learning Gleam.
Right now I'm a Rust coder who finds some Gleam concepts remarkably similar, albeit from a garbage collected perspective. It feels like a higher level, cousin of Rust.
How mature is the ecosystem around it?
#rustlang #gleamlang
fn fizz_buzz(n: u32) -> &'static str {
match (n % 3, n % 5) {
(0, 0) => "Fizz Buzz",
(0, _) => "Fizz",
(_, 0) => "Buzz",
_ => "None",
}
}
#rustlang
fn fizz_buzz(n: u32) -> &'static str {
match (n % 3, n % 5) {
(0, 0) => "Fizz Buzz",
(0, _) => "Fizz",
(_, 0) => "Buzz",
_ => "None",
}
}
#rustlang
pub fn take
where
T: Default,
For when you need to take ownership of some non-copyable struct field, like when you must use a function that cannot take a reference. This is better than cloning, since it's just a move without a new allocation.
#rustlang #rusttips