HNHacker News
TopNewBestAskShowJobs

sehugg

6,020 karma · joined April 25, 2011

@sehugg from @8bitworkshop

Making 8-bit dev tools since 2016: https://8bitworkshop.com/

submissionscomments
sehugg··on Two Slice, a font that's only 2px tall
The Atari 2600 had pretty good vertical resolution (assuming you could set up the next line in 76 cycles) but limited horizontal resolution. A 3x5 font is possible, but good luck distinguishing N from M.

This font seems to use characters up to 5 pixels wide, which helps with its near-legibility.

sehugg··on A quick look at OS/2's builtin virtualization
OS/2 was pretty boss. I could fuzz test multiple DOS apps while running two Windows 3.1 sessions that communicated over a null modem cable.
sehugg··on Stephen King to shut down his 3 radio stations in Maine
Also WWOZ (https://wwoz.org/) from New Orleans.
sehugg··on Tweaking Stunt Island's 30-year-old 3D engine
You could probably monitor the DOS VM to scrape camera/object matrices, render the static world in a huge GL (or what have you) display list, and then the other objects. The mesh formats were reverse engineered long ago.
sehugg··on Tweaking Stunt Island's 30-year-old 3D engine
The engine only copied pixels from fast main RAM to slow VGA RAM when they changed value, so using flat shading for most of the objects was a necessity for performance. IIRC all of the planes used Gouraud shading.
sehugg··on Vintage digicams aren't just a fad. They're an artistic statement
I really like my old 2010 pictures on my Canon PowerShot, I wish I had shot in RAW mode. I even miss my iPhone X, the AI upscaling has gotten out of hand.
sehugg··on Tweaking Stunt Island's 30-year-old 3D engine
It's difficult to impress how cool it was to have a open world flight sim / 3D movie editor in 1995. There's not much like it even today; GTA V's movie editor is close. A small "scene" grew up around it, and there were lots of mods/hacks in the 2000s: https://armknechted.com/sicentral/newpage/hacksi.html
sehugg··on Back to the future: Writing 6502 assembler with Amazon Q Developer
And if you write an assembler in C#, you could have an assembler in an assembly.
sehugg··on Back to the future: Writing 6502 assembler with Amazon Q Developer
I've noticed that LLMs have a hard time remembering all the constraints of 8-bit programming. Like sometimes it assumes that 6502 registers can have a value above 255, or in C it assumes that ints have 32/64 bits.
sehugg··on US Government memo shows Ethel Rosenberg was not a spy but executed her anyway
TFA mentions the Venona files and the cable that was the basis for this memo.
sehugg··on Jaywalking legalized in New York City
Good riddance. Crosswalks at intersections are nearly obsolete due to the thick A-pillars in modern cars. I would rather have mid-block crosswalks with warning lights and traffic calming devices.
sehugg··on Apple is turning The Oregon Trail into a movie
Many years ago, someone made a pretty good PoC:

https://www.youtube.com/watch?v=CHps2SecuDk

sehugg··on setBigTimeout
GetTickCount() still exists and still returns a DWORD.
sehugg··on The Atari 7800
The 7800's video architecture is almost/maybe more difficult to program than the 2600. The MARIA chip reads Display Lists from RAM, which tell it what to draw on each scanline. These can contain a combination of bitmaps and indirect bitmaps (i.e. tiles). You only get so many DMA cycles per scanline, so you have to track cycles yourself -- and these cycles eat into your CPU time too.

But wait, there's more. Display Lists are grouped into Display List Lists which are <= 16 lines high, so any moving object higher than 1 pixel is going to need multiple copies.

And if you don't want garbage above and below your sprite, you're going to have to learn about "DMA holes" and arrange your bitmaps carefully in memory space. I didn't mention that some of these structures need to live in 7800's static RAM area, did I?

It's kind of amazing that programmers of the era hacked out a dozen high-quality arcade games. Today things like 7800basic exist to ease the pain. And it's a shame the sound quality wasn't upgraded, C64's SID had set the bar higher by then.

sehugg··on Testing Generative AI for Circuit Board Design
How does this compare to Flux.ai? https://docs.flux.ai/tutorials/ai-for-hardware-design
sehugg··on Beyond velocity and acceleration: jerk, snap and higher derivatives (2016)
Jerk (time derivative of acceleration) had an important role in the Apollo missions. It was used to compute TGO (Time-To-Go) for the lunar module's landing program. TGO is the primary variable for the quadratic function, and it is combined with the current/desired state vectors to compute the throttle setting and thrust vector.
sehugg··on I learned Vulkan and wrote a small game engine with it
ANGLE is the (certified compliant) OpenGL ES -> Vulkan/Metal/Direct3D/etc translation layer used by your friendly neighborhood web browser. There are docs about how the Vulkan translation layer works: https://chromium.googlesource.com/angle/angle/+/HEAD/src/lib...
sehugg··on Social networks are getting stingy with their data
This could have been a headline from 2011
sehugg··on 1970s mainframe RPGs we can no longer play
Also check out https://irata.online/ which has terminal clients for several 8-bit machines, like you can log in from your C-64 or NES.
sehugg··on Silice: A language for hardcoding Algorithms into FPGA hardware
You can play around with Silice in 8bitworkshop: https://8bitworkshop.com/v3.7.2/?platform=verilog&file=coppe...
sehugg··on Cores that don’t count [pdf]
Maybe we need something like SMART but for CPU cores?
sehugg··on Parsing in JavaScript: all the tools and libraries you can use
I'd also suggest using jsfuzz to find sharp corners in your parser. I used it extensively for my recursive-descent BASIC interpreter (along with a test suite) and it found tons of issues.
sehugg··on Amazon is reportedly negotiating to acquire MGM for about $9B
Motorcycles have forks too, but if they resonate at 440 Hz you have got issues...
sehugg··on Exploring the software that flies SpaceX rockets and starships
FWIW, the NASA Technical Reports Server is a good resource for technical docs from Apollo to Shuttle. Many of them have enough detail to implement the algorithms.

https://ntrs.nasa.gov/search?q=shuttle%20guidance

sehugg··on 1984: The Hitchhiker's Guide to the Galaxy
The Digital Antiquarian has a two-part series on HHGG and the events leading up to the Infocom game:

https://www.filfre.net/2013/11/the-computerized-hitchhikers/

sehugg··on Ask HN: What are some “10x” software product innovations you have experienced?
My first 3DFX Voodoo card.

And maybe jumping from a 286-12 to a 486DX-33.

sehugg··on Don Lancaster's Guru's Lair Home Page
Which used the same technique as the Apple 1 video terminal, though Woz claims not to have known about it when designing it. Probably true, because there weren't many inexpensive options for RAM besides shift registers!

https://www.willegal.net/appleii/apple1.htm

sehugg··on Sega Master System Architecture: A Practical Analysis
The VDP's Mode 4 was the secret sauce; it made the SMS graphics almost on-par with the NES. You still have 8x8 tiles, but with a single 16-color palette instead of four different 3-color palettes. For scrolling, the NES has 2-4 screen buffers, but the SMS just lets you hide one single row and column of tiles offscreen. This isn't as bad as it sounds since -- on SMS you can write to VRAM at any time during the frame, as opposed to NES where you can only write during vertical blank.

I've ported a simple NES game written in C to the SMS (https://8bitworkshop.com/projects/?n=sms-sms-libcv/chase) and I think it'd be feasible to write a translation layer between the two platforms. Sound might be a little tricky, since NES's APU is more advanced.

sehugg··on 'Pandemic ventilator' could offer solution in potential 'worst case' scenario
IANAD, but my understanding is that minimal sedation leads to better outcomes, so patients may be partially awake some of the time, varying the dose of propofol and fentanyl. During these low-sedation times they may do breathing trials to try to wean off the ventilator. (They called this "sedation vacation" in the ICU I visited.) Not sure if this is how COVID victims will be treated, though.
sehugg··on How Popular Is “Sign in with Apple”?
Doing it through Firebase might be easier: https://firebase.google.com/docs/auth/ios/apple
← PreviousPage 4 of 34Next →