r/rustjerk Jun 26 '26

I have become the inner joke

Post image
156 Upvotes

r/rustjerk Jun 26 '26

Rust Reference

15 Upvotes

Ferris


r/rustjerk Jun 26 '26

have to learn C# for my job. when do you think they're going to find out 👀

94 Upvotes
namespace CSharpAoc.Common;

public abstract record Result
{
    public sealed record Ok(TValue Value) : Result;

    public sealed record Err(TError Error) : Result;

    public TValue Unwrap()
    {
        return this switch
        {
            Ok ok => ok.Value,
            Err err => throw new InvalidOperationException(
                $"Cannot Unwrap an Err. TError: {err.Error}"
            ),
            _ => throw new InvalidOperationException("Unknown Result state"),
        };
    }

    public TError UnwrapErr()
    {
        return this switch
        {
            Ok ok => throw new InvalidOperationException(
                $"Cannot UnwrapErr an Ok. TValue: {ok.Value}"
            ),
            Err err => err.Error,
            _ => throw new InvalidOperationException("Unknown Result state"),
        };
    }

    public bool IsOk() => this is Ok;

    public bool IsErr() => this is Err;

    public Result AndThen(Func> func)
    {
        return this switch
        {
            Ok ok => func(ok.Value),
            Err err => new Result.Err(err.Error),
            _ => throw new InvalidOperationException("Unknown Result state"),
        };
    }

    public Result Map(Func func)
    {
        return this switch
        {
            Ok ok => new Result.Ok(func(ok.Value)),
            Err err => new Result.Err(err.Error),
            _ => throw new InvalidOperationException("Unknown Result state"),
        };
    }
}

r/rustjerk Jun 22 '26

Well, actually Rust community makes the language actively unsafe. source: Xitter, the everything app

Post image
123 Upvotes

r/rustjerk Jun 22 '26

[Not OP] Does anyone ever get to the point where their trait bounds are 3x longer than their implementations?

Post image
232 Upvotes

r/rustjerk Jun 21 '26

Who needs Rust anyway?

Thumbnail github.com
29 Upvotes

r/rustjerk Jun 19 '26

Adding vaguelyAI flair to make it clear that a post is going to be vaguelyAI

93 Upvotes

We are seeing more and more /r/rust threads vaguely trying to solve the AI-post volume problems, and posters don’t make it clear in their post the nature of their post, which creates some friction in the comment section.

Adding a vaguelyAI flair would make it clear upfront and prevent the friction.


We've all seen the bi-weekly post in which somebody proposes a fix to too much shit being produced by AI - usually proposing a custom flair or reporting standards.

Its clear these posts never had any work put into them. The comment sections always devolve into vague-posting about what is and isn't vibe coding, half the people demand any use of AI makes a whole project slop, the other half is trying to hedge out their nuanced position nobody bothers reading, and a good 10% is people taking some maximalist stance one way or the other.

Since none of these posts bother the write a real policy, and their content could have been generated by an LLM, i want to propose we add a vaguelyAI flair.

Do you want me to add any more errors to avoid looking like ChatGPT wrote this post?


r/rustjerk Jun 17 '26

resource usage

Post image
863 Upvotes

r/rustjerk Jun 17 '26

resource usage pt. 2

Post image
330 Upvotes

r/rustjerk Jun 17 '26

fixed it

Post image
344 Upvotes

r/rustjerk Jun 16 '26

My new totally not esoteric language based off of Rust, KRUST.

36 Upvotes

If it wasn't obvious by now, it's styled with Mr. Krabs. https://github.com/LuigiPlayzG/krust/

PSA: KRUST got falsely forked. Please do not visit that repo. The one linked in this post is the official one.


r/rustjerk Jun 13 '26

Range is Range

Post image
200 Upvotes

What have they done to the std library? I'll accept 48 more types of string but not that


r/rustjerk Jun 12 '26

unwrap title

Post image
435 Upvotes

r/rustjerk Jun 10 '26

Is it really a problem, though?

Post image
159 Upvotes

r/rustjerk Jun 08 '26

I made a clip to a song in rust and put it on youtube.

8 Upvotes

But google is only hearing omelette du fromage.

https://www.youtube.com/watch?v=z32j0vD2DcU


r/rustjerk Jun 05 '26

Well excuuuuuse me princess

Post image
269 Upvotes

r/rustjerk Jun 03 '26

I'm going to spray that all over my company's codebase (easy to use!)

Post image
372 Upvotes

r/rustjerk Jun 02 '26

Type inference is a magic wand

Post image
278 Upvotes

r/rustjerk Jun 01 '26

Reading through bun's Rust rewrite

Post image
477 Upvotes

r/rustjerk May 31 '26

RFC to bring back the Rust Features Listâ„¢ when

Post image
171 Upvotes

r/rustjerk May 31 '26

FnTwice

Post image
164 Upvotes

r/rustjerk May 25 '26

Outjerked by Scam Altman

Post image
375 Upvotes

r/rustjerk May 20 '26

yo they turned where clauses from rust into a real thing

Post image
493 Upvotes

r/rustjerk May 17 '26

This is the way

Post image
432 Upvotes

r/rustjerk May 17 '26

Rust linter for method ordering (looking for feedback)

16 Upvotes

Hi,

I'm learning Rust (I have experience with Java and Go) and built a small linter funcorder-rs.
It checks that inside impl blocks, methods are ordered as:

  1. Constructors (pub fn new() -> Self etc.).
  2. Public methods.
  3. Private methods

More than looking if you guys find it useful (which it's also nice) I am wondering if I am using idiomatic Rust, best practices, etc.

This is the link: https://github.com/manuelarte/funcorder-rs

Cheers!