Recent submissions

Comment · 2 years ago
I always think about programming and CS concepts, I am currently reading the OSSTEP books, I’ve one of those minds that obsess over the things they find fun or enjoyable so my mind is always lingering with things I’ve learned or done. I’m very curious about how everything works, all the way down to this finer details. I’m usually never satisfied with just knowing that something does what it does, I have to know why, how and what mechanisms are in place to allow this to happen. Yes, you are right, I do need to get over myself and as you said, it seems that I lack self esteem and confidence. I’m not sure how I’d fix that especially since programming more seems to make it worse. Also I think you misunderstood what I meant by research and high paying job, what I was trying to say is that if my goal to be a researcher doesn’t work out, I wanted to know what jobs would be high paying and not require a significant amount of intelligence, and since I believe I don’t have the required intelligence to do what it is I want to do, I asked what other jobs there were I could do. Thank you for your words and advice!
Comment · 2 years ago
I was thinking I had imposter syndrome, but it says self doubt in one’s abilities compared to others, despite evidence to support the contrary. There is no evidence to show I am competent in my craft, as in not as less competent than I really am. But as for the brain fuck interpreter I’ve already done it, it’s about 95% complete and I did it in rust. It’s just part of it was not programmed the way it should have been so I now need to do the entire thing over and that really upset me. I also can’t solve anything without going to friends on discord or people in discord servers to get help when I’m stuck. I could never have done any of this without constant help and feedback. If you left me by myself I’m useless. Also what are the other tech roles I could do that aren’t porgramming? Honestly I just want to make a decent wage and live a modest life, atleast that’s my plan now that I realize my initial goals are out of reach / unrealistic.
Comment · 2 years ago
This is very interesting and I appreciate your insights. Perhaps for a moment I can share to you the problem I am trying to solve, and do this sort of debugging you mention. I will try my best to make it as language agnostic as possible.

I have an array of bytes (u8’s) (let’s just say integers for now). The first 8 bytes is the signature of that particular sequence of bytes. I compare and check that signature (if it’s not there or doesn’t match the signature I am comparing it too) then we exit the reading operation.

The array of bytes / integers insist to communicate information through 4 byte sequences. So after reading the signature, I would collect the next 4 bytes. I take those bytes and read them, these 4 bytes indicate the length of the upcoming data segment, the next 4 bytes after that contain the data segment type. I read this to determine the type of data segment I am dealing with.

The next read operation is preformed using the length I gathered early. Let’s assume the length said 15, so after reading the data segment type, I read +15 bytes, and store them in some data structure (A Vector). After this, the next 4 bytes mark the end of the data segment. Rinse and Repeat.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton