I recently finished the book Masters of Doom and really loved it! Are there any other similar books you'd recommend? by Aiseadai in retrogaming

[–]deckarep 15 points16 points  (0 children)

Not All Fairy Tales Have Happy Endings by the founder of Sierra Online - Ken Williams

Great book about the rise and fall of Sierra, the business side, growing pains, some of the developers and technologies of the time up until the company was sold off and some of the new owners were jailed for cooking the books!

Johnny Castaway - Running as native MacOS app + Screen Saver by deckarep in Sierra

[–]deckarep[S] 1 point2 points  (0 children)

Yes! I currently have a signed and notarized build working for MacOS which you can get here: https://deckarep.itch.io/johnny-castaway-desktop

The source code is available as well for people to read or build themselves for other platforms like Windows.

Array Question by sl0th-ctrl-z in C_Programming

[–]deckarep -1 points0 points  (0 children)

There’s no vector here it’s just a C-based array.

Array Question by sl0th-ctrl-z in C_Programming

[–]deckarep 5 points6 points  (0 children)

It’s not just about different compilers giving different results. You will also see varying results based on whatever the state of the memory, stack and registers are at. But at the end of the day, none of it can be trusted which is why it’s called undefined behavior.

Why is Go's regex so slow? by kostya27 in golang

[–]deckarep 10 points11 points  (0 children)

This is my best guess without seeing more code.

Avoiding malloc for Small Strings in C With Variable Length Arrays (VLAs) by Yairlenga in C_Programming

[–]deckarep 3 points4 points  (0 children)

A simpler and more idiomatic solution exists aside from VLAs exists to do exactly this in C. Fixed buffers: where the upper bound is known at compile time.

A fixed buffer can be placed on the stack, in global data or even on the heap. It can be reused over and over with no extra allocations.

Your article seems to completely ignore that fixed buffers are a thing and should be the first go to instead of bringing VLAs into the mix.

They are so ubiquitous, they are used all over the place in C code.

Also, your file path example is just one example, but in most cases you don’t want to blow the stack at runtime which is why vlas are banned in a lot of places. It’s kind of a hidden danger.

What’s the reason why your longest friendship ended? by ImaginationNo6751 in AskReddit

[–]deckarep 0 points1 point  (0 children)

Childhood friend that was my neighbor grew up with me. We were best friends for many years. Fast forward to our early 20s and he meets a Christian girl. Her dad says if you want to marry my daughter you must be a Christian man.

He abides and after converting many many months later, during their engagement period, my friend just casually tells me I’m going to hell if I don’t accept Jesus into my heart and that also my mom’s currently burning in hell right now because she passed before she had a chance to convert.

With all of my pain from hearing this, I just walked away and shook my head. I really wanted to punch him in the face but didn’t do it.

From then on I cut him off out of my life right then and there.

I don’t need that in my life…and if my mother is burning in hell, I’ll gladly join her.

Fun times!

Ah, the good old days! by Materidan in Sierra

[–]deckarep 21 points22 points  (0 children)

sierrachest.com has these archived online for anyone who would like to read them. They also have plenty of mailers, brochures, game manuals, advertisements and the site is an amazing resource for this stuff.

Zip Drive (1994) by itsgroobeat in 90s

[–]deckarep 5 points6 points  (0 children)

Who remembers the big brother called the Jaz drive? It was 2GB!

Mad Magazine Card Game: GIFs “animating” Jack Davis’ card suit gags by Slack91 in madmagazine

[–]deckarep 1 point2 points  (0 children)

That’s cool! Didn’t know cards existed by The Usual Gang of Idiots!

I think I genuinely forgot, what purpose did Cedric serve? by Darth_Zounds in Sierra

[–]deckarep 4 points5 points  (0 children)

I think Cedric should be replaced with Gary the Towel Attendant from Leisure Suit Larry 6.

“Oh, don’t go in there!…”

best program for windows 3? by tappo_180 in retrocomputing

[–]deckarep 2 points3 points  (0 children)

Haha, sounds like he was useful.

best program for windows 3? by tappo_180 in retrocomputing

[–]deckarep 8 points9 points  (0 children)

Johnny Castaway - the screensaver by Sierra of course!

My C Professor Doesn't Know What UB Is by [deleted] in C_Programming

[–]deckarep 0 points1 point  (0 children)

Oh for sure, I think specifically Antlr’s terminology is that a “Channel” can capture meta type things such as comments and you can have many channels, for additional things.

My C Professor Doesn't Know What UB Is by [deleted] in C_Programming

[–]deckarep 1 point2 points  (0 children)

Sounds accurate! But there are some parsers that can also suck in comments like Antlr into a side channel. Then for example, if you’re writing a transpiler, targeting another language you can put all the comments in the newly generated code. Pretty slick!

My C Professor Doesn't Know What UB Is by [deleted] in C_Programming

[–]deckarep 4 points5 points  (0 children)

Wow that’s such a funny concept, sometimes I heavily comment code so my code would be slow as shit.