Better HN
topnewbestaskshowjobs
Log inSign up

khedoros1

3,032 karma · joined Sep 30, 2016 (10y ago) · 2,058 submissions

Submissions

comment 1w ago · link · parent

I know this one: https://www.amazon.com/Tricks-Programming-Gurus-Advanced-Gra...

The examples use an old version of DirectX, but if I'm remembering correctly, it's purely to get a window that you can draw into. When I was working through it, I was translating code to SDL2, with minimal effort.

But the focus was on the math, how to implement it efficiently, and building a full software rendering graphics pipeline from scratch.

So, producing the image, doing animations, rendering shadows.

Raytracing is something you can study on your own. There are a lot of tutorials out there for building a working raytracer.

Collisions and physics would be a separate topic.

Shaders...you're back to one of the graphics APIs, because those are the interfaces that graphics accelerator drivers give us to interface with the GPU itself.

comment 2w ago · link · parent

I see it kind of as a matter of fashion, similar to furniture being made with gouges in the wood or denim sold with holes worn into it.

Over 20 years ago, the case I bought had extraneous blue LEDs (although they were blessedly easy to disable; just don't plug in their power cable). And that's around the time I started seeing LED light strips, liquid cooling kits with fluorescent fluid and UV case lights. Add a few years, and basically anything sold as gaming-related is going to light up colorfully, have a bunch of LEDs on it, and all that. Big, glass-sided aquarium cases, wires tucked behind the motherboard or hidden behind plastic/metal covers.

IMO, it's an aesthetic that looks cool on display items in the store, but that I'd look to disable in my own hardware. My motherboard has one RGB LED, but I think I have it disabled. Kind of a moot point; my case is opaque anyhow.

comment 3w ago · link · parent

Thus the "in a century" part of "first nonconsecutive POTUS in a century." Cleveland's terms in office were 1885-1889 and 1893-1897.

comment 1mo ago · link · parent

I think so, to various degrees, and increasing in sophistication over time.

Valve was talking about using machine learning to recognize cheating back in 2017: https://www.pcgamer.com/valve-wants-to-take-a-machine-learni... and more info from 2018: https://www.youtube.com/watch?v=ObhK8lUfIlc

And this one from 2023 is about using an RNN Deep Learning model for cheat detection: https://www.usenix.org/conference/usenixsecurity23/presentat...

It's a cat-and-mouse game. A detector detects inhuman speed? Aimbots adapt by limiting movement speed and reaction time. Detectors start looking for unnaturally smooth movement? Aimbots add randomness to make the movements less consistent and smooth.

comment 2mo ago · link · parent

> My previous work with PWM relied on being able to set a hardware timer to control when the speaker turns on and off.

I've got an Arduino project where I did that. The output is on a single digital pin, audio encoded as PWM. It turns the output off at the beginning of an audio frame, and sets a timer to trigger an interrupt when it's time to turn the output on.

I've got a memory block of event structs, each event representing a write to NES sound hardware. I emulate enough of the features to support everything that the Legend of Zelda title theme uses. 16MHz is more than enough to decide on the sample for 2 square channels, 1 triangle, and 1 noise, outputting a 6-bit output sample at a 31250Hz sample rate. The output is only slightly scratchy; the polyphony is actually surprisingly smooth.

comment 2mo ago · link · parent

I don't see how the availability of AI has anything to do with whether you have a use for a personal computer.

comment 3mo ago · link · parent

Those are the ones that I learned, from the magic system in Ultima Underworld. I think that H and W are swapped, and that Tolkien's alphabet includes a few more letters. They're both similar to the Elder Futhark runes, if I'm remembering correctly.

comment 4mo ago · link · parent

Outer Wilds is exactly what came to mind for me, too. Made a jump...missed. Thrown into a decaying orbit around the black hole. Absolutely terrifying, and panicking didn't help in the least!

And getting close to the upper atmosphere of Giant's Deep for the first time, staring, thinking about the atmospheres of real-world gas giants, knowing that I need to take the plunge.

That game exposed some phobias that I'd only been vaguely aware of before.

comment 4mo ago · link · parent

> They all have DRM which make it essentially encrypted with no decryption service available.

Not all do. Games for a lot of systems can be read directly from the storage media.

> Likewise, the game isn’t usually 100% contained on disc.

Only for the couple most-recent generations. But even virtually all of my PS4 games (not to mention earlier generations) are actually on the disc, playable without a download.

> So the question in my mind becomes, do game companies have an obligation to support games in perpetuity? I think when phrased that way, the answer is an obvious no.

Agreed, but I also think that if they don't have that obligation, then society doesn't have the obligation to provide copyright protection when they drop support.

comment 5mo ago · link · parent

I had a few reasons, when I tried tackling RE of a DOS-era game a number of years ago. I wanted to document the file formats, look through the data and find unused media, identify and fix some of the more egregious bugs in the game, build modding tools for it, understand the techniques used to build something that was memorable from my childhood, reduce the friction of running it on a modern system, make available optional improvements like higher resolution, texture replacement, and so on.

It ended up being more than I had the patience to finish. It might be doable for me now.

comment 7mo ago · link · parent

A lot. Often a couple dozen for pages that are currently queued up to read, with pages further to the left being older and often forgotten (or they're pages that I would like to have read, but don't want to take the time to read, and I haven't accepted that distinction yet). Another window might have reference material for whatever I'm working on. If I've only got one page open there, it usually means that I'm not deep into the process.

comment 7mo ago · link · parent

The aspect that I especially like is covering the 3-state aspect of the logic. Studying CS, it was kind of vaguely mentioned, and we skipped over to doing logic diagrams with gates and the assumption of 2-state logic really quickly...and it seems like most games do that kind of skip too. Working at the transistor level grounds it better to the actual components.

comment 7mo ago · link · parent

https://news.ycombinator.com/item?id=1139580 (2010) https://news.ycombinator.com/item?id=10867791 (2016) https://news.ycombinator.com/item?id=14697789 (2017) https://news.ycombinator.com/item?id=19068962 (2019)

Here are a handful of past discussions that might be interesting.

comment 8mo ago · link · parent

I went from a 19" CRT capable of 1600x1200@75Hz to a 17" LCD capable of 1280x1024@60Hz, basically because that CRT would've taken up a huge chunk of desk real estate in my dorm.

My first impressions were that the screen was bright as hell, sharp (but I was torn on whether that was good or bad, given the blockiness that it introduced), thin and light (awesome!), and sucked to run at anything but the native resolution. After a few hours, I realized that my eyes weren't getting tired looking at it, and that it was nice not to have the subtle hum around anymore.

The CRT was a decent screen (for 1999), and the LCD was a decent screen (for 2003). Of course, I just got used to the differences, since the LCD was much more practical in my life. I still have it in storage right now.

comment 8mo ago · link · parent

Probably because they're advertising their product, and the comment also sounds like it was written/edited by AI itself.

comment 9mo ago · link · parent

I definitely only care about a handful. I've got categories like "beaten", "in-progress", "maybe someday", and "meh". You accumulate a lot of free stuff over the years, things you got because they were in a cheap bundle with what you wanted, the thing you bought to play with a friend and did exactly once, etc.

GOG's similar. I've got so many things that I bought for $0.80, got for free, or bought for the memories and haven't actually picked up.

That's just on PC. I have a lot of physical media for a lot of different game systems. I think I'd probably have enough games on hand for the rest of my life if Steam and GOG both disappeared tomorrow.

comment 9mo ago · link · parent

> ANYWAY, people have lost the ability to write in cursive, or even write in print neatly.

By 2nd grade, I had good, clean print handwriting. Third grade is when they started teaching (and requiring us to use) D'Nealian cursive. My cursive never has been attractive, but its influence crapped up my print too. I do my best to slow down just a bit if I think someone else will have to read it.

> a) Memorize Times Tables.

My kid was taught the tables last year. They went up to 12x12. They also did a bunch of multiplying numbers specifically by 2, but I'm not sure exactly how high. Maybe 2^15, or so?

comment 10mo ago · link · parent

Wow. Your old PC is more powerful than any computer I own. Faster version of my CPU, double the RAM, newer generation GPU. A fraction of the storage, though. I built it in 2020 to replace the desktop that I built in 2008.

comment 11mo ago · link · parent

There was one "Walking through the graveyard at midnight" ("stitching up some zombies" ?) or something, with a necromancer collecting zombie parts. To the tune of "walking in a winter wonderland".

Not what I was looking for, but I found these: https://www.youtube.com/playlist?list=PLJtJNNXaEYrrZP99qBx-k...

From this guy's page: https://www.paperspencils.com/category/my-projects/dd-christ...

Ah! I think I found the ones that I was thinking of:

https://archive.org/stream/netbookofbardsongs/BardSongsNetBo...

Nothing about Jack Frost or "ripping", unfortunately.

comment 11mo ago · link · parent

Since friction in creating a new account is so low, the only real signal about the controller of the account is their behavior on the platform. Bots trying to sell things are rampant. Advertising (including self-promotion) is seen as a kind of spam by most of Reddit.

That being said, anyone can start a subreddit. You start your own and post whatever you want, or you spend some time in the individual communities, learn their norms, learn what each one considers acceptable to post. Something completely normal in one subreddit will be completely unacceptable in another.

comment 11mo ago · link · parent

I think I found, and memorized, that about 25 years ago. There was a list of other songs in the file too.

comment 1y ago · link · parent

I remember getting "The Complete Ultima VII" on CD and never figuring out how to get it running. I think I've still got the box, but I think the disc has been missing for years. I bought it on GOG some time ago, though.

comment 1y ago · link · parent

I went from Ubuntu to Mint around the same time on my laptop. I took my desktop from Ubuntu to Fedora. A later laptop followed it, because I was tired of the little differences.

Ubuntu is completely off my radar too. So many dumb things that often lasted a few releases. Like ads for their cloud services, Unity for a while, window controls on the left for a while...

My biggest problem with Mint was that upgrading the OS became a hassle if I put it off for too long (which I started doing after a not-so-smooth upgrade experience, one release).

comment 1y ago · link · parent

My first thought was "How is this different from Exult?" (which is a relatively vanilla reimplementation of the game).

Some of the video segments here make differences clearer: https://www.youtube.com/watch?v=2mbJcOEwKJ4

While Exult basically matches the graphics of the original game, this is closer to "3D Ultima VII", with rotatable views and more interactivity in the game. It gives it what looks like a kind of voxel-ish look, mixing in original sprites with newly-modeled 3D objects.

comment 1y ago · link · parent

I'm not quite old enough to have needed to use this while writing my own software. But I've come back to it repeatedly while learning enough about the operation of DOS PCs to try my hand at reverse-engineering some games. That was at least 10 years ago. (It became clear that I'd bitten off more than I could chew, so no full game RE, but I documented a couple more file formats, wrote some file viewers, and learned a lot).

comment 1y ago · link · parent

"Video card" was the more general word. "VGA" is one of the IBM video cards for PCs that later became a de facto standard, as its behavior was cloned by other companies. It's sometimes used descriptively to talk about the 640x480 resolution, or the DE-15 connector that remained a standard connection for analog video output on personal computers for a long time.

comment 1y ago · link · parent

I've got a desktop that I built in 2008 that I only replaced in 2020 because I wanted to play newer games. That 2020 desktop is still going strong. My laptop was produced in 2016. I bought it for about $80 to replace my previous 2016-vintage laptop when its display started to fail. The last computer that I replaced due to performance in everyday tasks was a 2009 netbook.

In the 90s, it was easy to build/buy a machine that would be thoroughly limiting in its capabilities 2-3 years later. Now? I've got a 9-year-old laptop, 5-year-old desktop, and a 2-year-old workstation-class work laptop, and there's very little practical difference in power between them. The newer computer just has some conveniences like USB-C ports+charging.

comment 1y ago · link · parent

I was recently working on some x86 emulation code. This is one of the best links that I found to summarize how it works, skipping the giant Intel instruction set references.

comment 1y ago · link · parent

Algorithmically-generated remasters? No. That sort of thing (e.g. upscaling algorithms) was really cool when I was first getting into emulation, but I'm pretty much over it. Even handmade remakes often dampen the magic of the original.

comment 1y ago · link · parent

I've got a computer that I built in 2008 and upgraded in 2012. It's pretty solid for higher-requirement games up until about 2015, and can still handle lower-requirement indie stuff today.

I built its successor in 2020, using a GPU from 2017. The longevity of the PS4 has given that thing serious legs, and I haven't seen the need to upgrade yet. It still runs what I want to run. It's also the first post-DOS x86/64 machine I've owned that has never had Windows installed.

12345
69