Manos Ragiadakos
rm4n0s.bsky.social
Manos Ragiadakos
@rm4n0s.bsky.social
I want to bring back waterfall methodologies and the development of monolithic servers.

Blog: https://rm4n0s.github.io/
Reposted by Manos Ragiadakos
Something advanced for the Sunday?
Cross-compiling C and Go via cgo with Bazel
#golang

popovicu.com/posts/cross...
Cross-compiling C and Go via cgo with Bazel
Walkthrough for cross compiling a mixed C and Go binary for another platform using cgo and Bazel. Example is done with x86_64/Linux compiling for RISC-V/Linux.
popovicu.com
June 1, 2025 at 5:40 AM
Reposted by Manos Ragiadakos
Completely convinced the software engineering discipline required to write #rustlang is higher than that required to write #golang which is higher than that required to write #python.
April 22, 2025 at 9:57 PM
April 18, 2025 at 4:39 AM
Reposted by Manos Ragiadakos
It's a trap! Don't listen to him!
@golang.org link your binaries to me you dumb fuck
April 17, 2025 at 1:21 PM
Reposted by Manos Ragiadakos
OK #golang experts! Without running this code, how many of these modify their parent's data value?

Playground: go.dev/play/p/FThEw...

Mutability of the caller's data is soo important, which is why #rustlang has a `mut` keyword. Without it, and without interior mutability, you can't.

#footgun
April 9, 2025 at 8:19 PM
Reposted by Manos Ragiadakos
So many #golang #footgun code snippets, so little time. Quick! What does this print?

Playground: go.dev/play/p/cw_HO...
April 8, 2025 at 6:14 PM
Reposted by Manos Ragiadakos
Many C developers won't like this #KubeCon keynote.
Greg Kroah-Hartman pitching moving to #Rust programming language in the #Linux OS kernel.
I like that he highlights the benefits not for programming but for reviewing and maintaining the #opensource codebase.
@linuxfoundation.org @cncf.io #rustlang
April 2, 2025 at 9:26 AM
March 19, 2025 at 11:18 AM
Reposted by Manos Ragiadakos
When you see Pattern Matching on it's finest 🦀

#rust #rustlang
March 11, 2025 at 6:58 PM
Reposted by Manos Ragiadakos
enjoy this post from niko; I like the framing of "foundational software" much better than "systems programming" #rustlang smallcultfollowing.com/babysteps/bl...
Rust in 2025: Targeting foundational software · baby steps
smallcultfollowing.com
March 11, 2025 at 5:04 PM
Reposted by Manos Ragiadakos
Today's #golang fiasco was when someone found a hashmap that wasn't properly protected by a lock. The next time someone says #rustlang takes longer to write I will agree but then ask how long it takes to debug these problems at runtime that are not detected by the compiler. #rust ftw.
March 6, 2025 at 12:52 AM
Reposted by Manos Ragiadakos
Tech is kindergarten. All devs are children. And we need adults in the room to clean up all their toys.
February 28, 2025 at 2:53 PM
Reposted by Manos Ragiadakos
What surprises me is that I spent 4 years at Uber mostly writing #golang and didn't notice all these footguns until switching to #rustlang #rust
February 14, 2025 at 3:40 AM
#rustlang has 'thiserror' that makes Typed Stack Traces a bliss.

For ex:
// after putting [from]
enum Function2Error{
Function1Error(#[from] Function1Error)
}

// then we can replace this line
let res = function1().map_err(Function2Error::Function1Error)

// with this line
let res = function1()?
February 9, 2025 at 6:18 PM
I like Ntex more than Axum or Actix in #rustlang
The reason is that I don't have to use Tokio and the documentation + examples are very easy to understand.
ntex.rs
Ntex
ntex.rs
February 3, 2025 at 6:59 PM
February 2, 2025 at 10:40 PM
At last! I finished Rustlings!

Now it is time to learn full-stack in #rustlang, like async/await, HTTP, DBs, frontend, websocket and WebRTC.

After small demos for each one of them, I will be able to work on an MVP project that will combined and designed with what I was promoting the last 3 months.
February 1, 2025 at 2:29 PM
This article makes so much sense. Now I understand why people are so hyped about this language for 8 years straight. This style of concurrency is really a pleasure to work with. Also, I can see now how #golang bad practices have influenced #rustlang in a bad way.

emschwartz.me/async-rust-c...
Async Rust can be a pleasure to work with (without `Send + Sync + 'static`)
Async Rust is powerful. And it can be a pain to work with (and learn). Async Rust can be a pleasure to work with, though, if we can do it without `Send + Sync + 'static`.
emschwartz.me
January 26, 2025 at 5:43 AM
#rustlang is capable of Typed Stack Traces.

I didn't realize it before because no Rust documentation says that it has Discriminated Unions, and yet it has.
Its Discriminated Unions are its Enums.

Why the Rust's creator named it Enum, when OCaml and F# name it DU?

github.com/rm4n0s/error...
github.com
January 22, 2025 at 7:06 PM
Reposted by Manos Ragiadakos
AFAIK #ocaml never forces GC. As long as you don't allocate, GC won't be running.
January 20, 2025 at 9:46 PM
Reposted by Manos Ragiadakos
Why #csharp NO, #fsharp YES?

Here you have one: #csharp is a BRAIN SUCKER!

It requires thinking about things (here: specifying TPs) that a good language should already know - thus keeping me away from thinking of more important things and disrupting my flow (no, disruption isn't always good).
January 21, 2025 at 8:20 AM
Reposted by Manos Ragiadakos
How I built my markdown blog with F# + Giraffe - https://hamy.xyz/blog/2023-12-fsharp-giraffe-markdown-blog

#fsharp
January 20, 2025 at 3:41 PM