figuring out why a game keeps crashing

I'm trying to run a +20 year old game on a windows 11 computer. I click on the executable. The process briefly appears in the task manager and then it disappears. I've tried different compatibility modes. I've tried searching online specifically for the game. I don't get any feedback from the operating system on why it's crashing/dying. It just dies. Event Viewer shows an exception code, but I'm not sure what to do with that.

This is a general question: is there a tool on windows to get more verbose feedback on why a process (game) keeps silently crashing? I don't expect to be able to fix it, but it would be nice to have more than "Exception code: 0xc0000005".

For reference: this is age of empires 2.

reddit.com
u/011011100101 — 2 days ago
▲ 90 r/compsci

what is the alternative to object-orientation?

A long time ago I went to school for computer science and I remember a big push towards functional programming at the time. I saw a little bit of Scheme and logic programming and I thought it was neat. I can appreciate those different ways of writing code, but I'm still not sure how any of those other styles actually replace object-orientation. I've started to look at Scheme again and I'm noticing that textbooks and libraries will actually build an object-oriented system on top of Scheme using macros. That has pedagogical value, but it seems like we're back at square one?

If you look at chapter 2 in SICP, one of the topics they cover is message passing. They don't use an explicit object-oriented system. Instead, they have an inner dispatch function that operates on local/private data. That seems like the behavior that classes are trying to model in other languages.

Getting to the point... my feeling is this: bundling state and functions seems like a basic thing in programming. This behavior seems to emerge even in systems which don't explicitly call themselves object-oriented. So my question is this: is there a real alternative? Are there large software systems which don't recreate the behavior of classes?

reddit.com
u/011011100101 — 6 days ago
▲ 21 r/scheme

which scheme implementation includes the most batteries?

I get that the language is minimal by design. But it would be nice to have a similar ecosystem to python. Like if I wanted to read from a CSV, it would be nice to have that functionality already built and accessible. Which implementation provides the most out-of-the-box functionality?

reddit.com
u/011011100101 — 11 days ago

method overloading with wrapper classes

I'm a little bit surprised that there isn't a way to do this natively in Python. I'm creating a wrapper class W to support the kind of features I want out of a pre-existing class C. This new wrapper class W should still support some of the same operations in C. For example, if C has a method "foo(self, <argument of type C>)", then I would want an equivalent method "foo(self, ...)" in class W. At this point I've immediately hit a wall because Python doesn't support method overloading. I want W to have a method foo which works just as well on arguments of type W as on arguments of type C. So I want two methods with the same name:

foo(self, <argument of type C>)

and

foo(self, <argument of type W>)

Manually checking the type using isinstance is ugly and apparently not Pythonic. Plus, what if I have to do this for several functions? I would be repeating the same argument checking logic within each function? That's terrible. The best solution I can find online is to use singledispatch from functools?

How would you handle this particular implementation?

reddit.com
u/011011100101 — 3 months ago