u/0x6461726B

Im facing the worst situation. I have the knowledge, but I can’t do anything with it.

Hi guys. For the past 3 weeks, I have been working on a project. I had almost completed 90% of it. Then I was assigned another task, so I thought I would finish the remaining work later.

During the standup, my colleague asked about the progress, and my manager asked us to communicate the deadline clearly to the developers so we could complete the remaining 10% smoothly. But after 2 days, during another standup, my colleague suddenly said, “I finished the entire project. I rewrote the whole code using AI.”

My manager and the others were stunned. I said that I had already completed most of the work and had been discussing the progress in the standups regularly. Then my colleague said, “I asked you to complete it.” After that, the manager stopped both of us and asked us to join a meeting.

In the meeting, the same arguments kept repeating. They said I should have discussed things with them more clearly. But I had been saying every day that most of the work was already completed and only two parts were pending.

The manager is not really managing the situation fairly and instead seems to be supporting the other guy. He kept twisting words. Earlier, he said we needed a clear deadline so we could align with the developers, but during the meeting the conversation completely changed.

I’m tired of this. I’m actually a developer with strong C++ knowledge, but it feels like none of that matters right now. Most job openings seem to focus only on AI and MCP related skills. Even when I find C++ developer openings, they usually needs 5+ years of professional experience. I have skill but I can't use it. It's like having arms but they are paralysed.

reddit.com
u/0x6461726B — 2 days ago

One of the best emotional thriller [The Ugly]

Hi guys, I watched this movie called The Ugly. At first, I thought it was just a normal movie, but by the time I finished it, my eyes were full of tears. It’s one of the most emotionally gripping movies I’ve watched. Trust me, watch it you’ll thank me later. The movie has a deep meaning, and I genuinely think it deserves an oscar. The pacing is slow, but that’s part of what makes the emotions hit harder.

reddit.com
u/0x6461726B — 4 days ago
▲ 55 r/osdev

Baby Steps towards OS dev

Hi guys. Today I set up QEMU on my device and started going through the DTS file to understand the memory layout. I wrote a simple UART driver to print characters, strings, decimal, and hexadecimal values to the screen. I first implemented it in assembly, and then rewrote it in C. It didn’t give the expected output at first, so I went deeper and found that C was using the stack, but I hadn’t set it up in the linker script. After fixing that, everything started working.

I also allocated heap by manually defining a heap start address and managing offsets myself. It was really fun.

u/0x6461726B — 5 days ago
▲ 42 r/osdev

Why everyone here uses software rendering?

I saw many os projects here use software rendering directly to frame buffer instead of creating a gpu driver maybe with virtio gpu by qemu or with any external gpu. I heard gpu driver development is one of the most hardest. Is that the reason? I want to know.

reddit.com
u/0x6461726B — 6 days ago

Need Career advice

Hi guys. Personally I am a C++ developer but professionally I am a devops engineer. I explored so many paths in core CS like compilers, game engines, build systems. But nothing got too serious in my life. I was curious about low level stuff that works behind everything we use. But the problem is I couldn't able to pick a right path. I explore 5 days then after I get bored then I pick someother, look into how it works and so on. So I stopped at some point and thought what am I doing. So I made a decision to switch to a c++ job but in my country all cpp jobs are above 5+ years of professional experience. I am scared and I don't want to end up as a devops engineer. Games, Game engines, Compilers all these take decades before you see the result. What should I do guys???

reddit.com
u/0x6461726B — 12 days ago
▲ 9 r/cpp

Building an LR Parser generator as a hobby….. but losing motivation because “IT ALREADY EXISTS”

Hey everyone,

I have been working on building an LR parser generator as a hobby project. I’m not doing it for a job or anything, just curiosity to understand how parsing actually works under the hood.

I believe I can finish it in about 4 - 5 months with consistency. I already started designing the grammar system.

But recently I’ve been getting stuck mentally.
Every time I make progress, I hit the same thought:

“Why am I doing this? This problem was solved decades ago. Tools like Yacc/ANTLR already exist. Even if I finish this, who would use it?”

And honestly, that thought is starting to drain motivation. It feels like I’m reinventing something that doesn’t need to be reinvented.
So I wanted to ask people who have gone through similar projects.

Should I continue it??

reddit.com
u/0x6461726B — 13 days ago
▲ 6 r/lonely

I have this one friend, and honestly, this situation has been bothering me a lot. Whenever I invite him to hang out, like going for a movie he always gives some excuse or says “let’s see.” But when the movie actually releases, he just goes silent. This has happened multiple times.

What hurts more is that recently we even planned to watch a movie together, but suddenly he told me he’s going with his childhood friends instead. After that, he completely disappeared no calls, no messages, nothing. After few days I started the convo and discussed about this. He called me out for lunch and said "You need to ask how was the movie etc. but you stayed silent what should I assume and how do I know you got hurt".

The weird part is, when it comes to career advice, he’s always interested and takes it seriously. He’ll text me, send reels, or start conversations, but only on his terms. I’m always the one initiating plans to hang out, and those plans never really happen.

I know he has a lot of friends and goes out with them, travels, enjoys but I end up feeling ignored and left out. It’s starting to feel one-sided, and honestly, it’s kind of heartbreaking because he’s my only close friend.

I’ve been thinking of just ignoring him and not putting in the effort anymore, but I’m not sure if that’s the right thing to do.

reddit.com
u/0x6461726B — 18 days ago

I have this one friend, and honestly, this situation has been bothering me a lot. Whenever I invite him to hang out, like going for a movie he always gives some excuse or says “let’s see.” But when the movie actually releases, he just goes silent. This has happened multiple times.

What hurts more is that recently we even planned to watch a movie together, but suddenly he told me he’s going with his childhood friends instead. After that, he completely disappeared no calls, no messages, nothing. After few days I started the convo and discussed about this. He called me out for lunch and said "You need to ask how was the movie etc. but you stayed silent what should I assume and how do I know you got hurt".

The weird part is, when it comes to career advice, he’s always interested and takes it seriously. He’ll text me, send reels, or start conversations, but only on his terms. I’m always the one initiating plans to hang out, and those plans never really happen.

I know he has a lot of friends and goes out with them, travels, enjoys but I end up feeling ignored and left out. It’s starting to feel one-sided, and honestly, it’s kind of heartbreaking because he’s my only close friend.

I’ve been thinking of just ignoring him and not putting in the effort anymore, but I’m not sure if that’s the right thing to do.

reddit.com
u/0x6461726B — 18 days ago

I recently started working on parser combinators and went into some compile time flaws.

#ifndef PARSER_H
#define PARSER_H
#include <concepts>
#include <cstddef>
#include <ostream>
#include <type_traits>

template <class T> class TokenStream {
public:
    constexpr TokenStream(T const* data, size_t size)
        : _stream(data)
        , _first(0)
        , _last(size)
    {
    }
    constexpr T const& operator[](size_t index) const
    {
        return _stream[index];
    }
    constexpr T const& consume() { return _stream[_first++]; }
    constexpr T const& peek() const { return _stream[_first]; }
    constexpr size_t index() const { return _first; }

private:
    T const* _stream;
    size_t _first;
    size_t _last;
};

template <class Fn>
    requires std::invocable<Fn>
    && std::same_as<std::invoke_result_t<Fn>, void>
class ExceptionGuard {
public:
    constexpr ExceptionGuard(Fn&& fn)
        : op(fn)
        , active(true)
    {
    }

    constexpr ~ExceptionGuard()
    {
        if (active) {
            op();
        }
    }

    void release() { active = false; }

private:
    Fn op;
    bool active;
};

struct ParseError {
    const char* msg;
    size_t index;
    constexpr ParseError(const char* msg, size_t index)
        : msg(msg)
        , index(index)
    {
    }
};

constexpr std::ostream& operator<<(
    std::ostream& os, ParseError const& err)
{
    os << "Error: " << err.msg << " at " << err.index;
    return os;
}

template <class Fn> class Parser {
public:
    constexpr Parser(Fn&& fn)
        : apply(fn)
    {
    }
    template <class T>
    constexpr auto parse(TokenStream<T> tokens) const
    {
        return apply(tokens);
    }

private:
    Fn apply;
};

template <char Expected> constexpr auto CharacterParser()
{
    return Parser([&](auto tokens) constexpr -> char {
        if (tokens.peek() != Expected) {
            static_assert(
                [] { return false; }(), "Character Parser failed");
        }
        return tokens.consume();
    });
}

#endif

In this code I only can do static_assert with message "Character Parser failed" but where it got failed I want to print the index too. So is there any way to give a formatted output at compile time???

And also Is my CharacterParser 100% compile time?? If not how to write a 100% compile time parser using this combinator logic. Thanks...

reddit.com
u/0x6461726B — 25 days ago