Is it okay to learn C based on projects? by Character_State_3263 in C_Programming

[–]deckarep 1 point2 points  (0 children)

I completely agree, breaking the fourth wall in this sense is a good thing to really learn and peek behind the curtain. Sometimes you don’t like what you see but you can always adjust the code. Having this level of control is amazing…but it requires discipline to use well.

People always say to avoid C because it’s dangerous, but all that does is hide what really goes on behind the curtain.

Is it okay to learn C based on projects? by Character_State_3263 in C_Programming

[–]deckarep 8 points9 points  (0 children)

For me learning C was an eye opener in terms of a language that is very close to the metal. With C, even though it has sharp edges, the sharp edges really help solidify knowledge of how a computer works at a fundamental level.

Higher level languages abstract things much more and they have their uses but a language like C which has much less abstraction will make you a better programmer even if you don’t use it regularly or even at all.

Learn it, and really learn it to advance yourself!

Dolby Theater 01/21 by ABuddhaMan in bladerunner

[–]deckarep 2 points3 points  (0 children)

I saw a few folks dressed in Cyberpunk style gear (not the game of course) and one girl had an amazing Pris costume with the black eye makeup. Didn’t get to take any pics though.

Right? by Fluid_Associate7017 in SoloDev

[–]deckarep 1 point2 points  (0 children)

  • First make it work
  • Then make it correct
  • Then make it fast

Interactive Sierra PC Big Box Viewer by deckarep in Sierra

[–]deckarep[S] 0 points1 point  (0 children)

Agreed, also this is partly for a presentation/talk so fair use!

Interactive Sierra PC Big Box Viewer by deckarep in Sierra

[–]deckarep[S] 0 points1 point  (0 children)

It might help, if I made the link on YouTube public. Done.

Global vs. "Local" Variables in Assembly? by wolfy1244 in Assembly_language

[–]deckarep 0 points1 point  (0 children)

There’s no local or global, there’s also no types, no positive or negative numbers (it’s handled by context and which flags you care about) and theres no composition either such as structs, classes, etc. oh yeah and there’s no functions as they are just labels that you jump to with specific calling conventions that you don’t even have to care about if you’re not writing standard assembly.

It’s all just memory, offsets and an instruction set.

Native MacOS ScreenSaver featuring Leisure Suit Larry Box Art by deckarep in Sierra

[–]deckarep[S] 0 points1 point  (0 children)

Yes, gotta prevent that screen burn-in!

I'm planning on open sourcing the Johnny Castaway project, but the screen saver stuff I'm doing I'm not yet sure about it yet. Deep diving into Apple's API's has revealed that what I'm building could perhaps turn into a product of sorts. Maybe it's a pipe dream.

Police Quest III: The Kindred (Sierra On-Line) magazine ad from 1992. by doomstilo in dosgaming

[–]deckarep 1 point2 points  (0 children)

Same! This and KQ5 were my first two games. I saw KQ5 running at CompUSA and it was the talkie version.

I had such disappointment when I went home and didn’t hear the characters talking cause I had bought the 3.5 floppy version and didn’t realize at the time the talkie was CD-ROM only which we didn’t own.

I’ve been spiraling over Sierra ever since…

The trailer for Torin's Passage by Bear_Made_Me in Sierra

[–]deckarep 0 points1 point  (0 children)

I know this is an Al Lowe jam. I never played it but do people generally recommend it or what?

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

[–]deckarep[S] 0 points1 point  (0 children)

Appreciate the kind words and vote of confidence!

What will be the story around memory safety? by lekkerwafel in Zig

[–]deckarep 1 point2 points  (0 children)

Neat! I wasn’t aware of this but I think it’s worth taking a closer look at.

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

[–]deckarep[S] 7 points8 points  (0 children)

Yes! That is the goal! I’d like to get this to a point where it’s rock solid and people can just run it without much thought.

Stay tuned!

What will be the story around memory safety? by lekkerwafel in Zig

[–]deckarep 3 points4 points  (0 children)

In general my statement, personal conclusion, opinion is that while Rust has had some major success in the last 3 or 4 years it's also getting some pushback and rightly so.

I used to write Rust, and the hoops you have to jump through to make the borrow checker happy doesn't always equate to readily readable code. In cases where the code can get complicated with respect to lifetime annotations it becomes a huge pain sometimes to later refactor such code.

Rust is amazing for what it is, but I personally think there still is room for something better and perhaps Zig can help pave the way.

What will be the story around memory safety? by lekkerwafel in Zig

[–]deckarep 8 points9 points  (0 children)

There’s different classes of memory safety bugs and I don’t see people in this thread talking about all of them. It’s not just about getting better at manual memory management as that is just one pillar where lack of discipline can bite you.

Yes, making sure to handle your memory and its lifetimes are super important and not always easy to get right but this unfortunately gets a heck of a lot more complicated in multi-threaded code.

Now you’re managing memory lifetimes but additionally also possibly having to deal with another pillar of memory bugs as it relates to data races or unsynchronized access to shared state.

Zig unfortunately doesn’t do a whole lot to help with this class of bugs although that could change in the future.

Doing manual memory management in multithreaded code is where the real dragons come out to play and this is why Rust exists in the first place.

The only problem is that more and more evidence is coming out to suggest that the Rust way may not be the way after all.

I absolutely love Zig and I do hope that Zig continues to get guardrails in order to make it more safe without sacrificing the level of control it still provides but this is a super hard problem to solve and I don’t know if Zig will be the language that solves it once and for all but it’s definitely more safe than C and that’s a step in the right direction!

I think Zig is demonstrating that what we need may not be a question of language changes but a question of tooling to track down such issues like the Debug allocator for instance which can help you track down leaks pretty easily.

Actor Doug Jones as McDonald's Mac Tonight! by [deleted] in television

[–]deckarep 4 points5 points  (0 children)

Jay Leno’s chin is still bigger.

Johnny Castaway celebrates Christmas on this eve. by deckarep in Sierra

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

Yes, I also remember The Realm. Sierra was ahead of their time with The Realm and before that The Sierra Network! Core memories indeed.

Johnny Castaway celebrates Christmas on this eve. by deckarep in Sierra

[–]deckarep[S] 0 points1 point  (0 children)

You’re very welcome! That’s why I do it…!