Better HN
topnewbestaskshowjobs
Log inSign up

sehugg

6,024 karma · joined Apr 25, 2011 (15y ago) · 1,368 submissions

@sehugg from @8bitworkshop

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

Submissions

comment 2d ago · link · parent

Asyncify works but no goto means no setjmp, exceptions, etc. without Emscripten tricks And mmap generally needs TLB. So you may as well do a JIT emulator.

comment 1w ago · link · parent

Carmack developing DOOM on a NeXT and porting it to PC was a very good advertisement for C.

comment 1w ago · link · parent

It was removed in the II+ to make room for AppleSoft BASIC. But there was a relocated version you can run out of RAM: https://savagetaylor.com/TIL/TIL00005.pdf

comment 1w ago · link · parent

Dialog is an interactive fiction programming language with Prolog-style evaluation, but rules are sort of S-exprs: https://dialog-if.github.io/manual/dialog/1c04-dev/lang/exec...

comment 1w ago · link · parent

The 6502 has a more narrow and diabolical version of the 6809's PSHS trick. The BRK instruction pushes the PC and status register to the stack in three consecutive cycles, and is pretty much the only non-interrupt instruction that writes more than twice.

The Atari 2600 has horizontal object counters that you can't set directly, but they latch when you write to them, and they set the corresponding object to the X position of the beam at that cycle. Pole Position requires three of these objects to draw the left/right side of the road and center line, and they are supposed to meet at the horizon.

But the beam moves to the right 3 pixels for every CPU cycle, and writing with STA would result in each being separated by 9 pixels. What's the fix? Move the stack pointer to where the object pointers live (the 2600 maps the stack to zero page, where the RAM and registers live) and invoke BRK, making sure the BRK vector returns you to the next instruction. The object pointers are adjacent, so BRK writes to each object pointer on successive cycles, and now each of them is 1 cycle = 3 pixels apart.

comment 2w ago · link · parent

Funny, I was just thinking about JIT'ted blitters the other day. I'm pretty sure the Windows 3.1 BitBlt function was a JIT, probably building a blitter routine from templates, as they had to handle different src/dest ops, different bits-per-pixel and also linear/planar frame buffers.

Symbolasm looks neat.

comment 2w ago · link · parent

Apparently there is a crowd still using 2.79b, the last version with the old UI (current LTS is 5.2)

My baby duck fingers could probably pick up LightWave 3D again in an hour or two. I could never gel with Blender.

comment 3w ago · link · parent

Even more important if your devices are dialing into a modem bank. We spent a lot of time designing retry schedules and such when I worked on these (ironically for energy storage/demand management devices)

comment 1mo ago · link · parent

Also check out: https://github.com/catseye/SixtyPical

Assembly with an effect system and flow typing.

comment 1mo ago · link · parent

Check out Wiz too: https://github.com/wiz-lang/wiz

People have ported Atari 2600 games to it with the resulting ROM being byte-exact.

comment 1mo ago · link · parent

Befunge yeah, anything ASCII-art-adjacent would probably be tricky. Also Pyramid Scheme: https://esolangs.org/wiki/Pyramid_Scheme

I think the space hasn't been explored fully, after all spreadsheets are a very popular two-dimensional programming language

comment 1mo ago · link · parent

This goes for any medical expense, but also beware of the "Coordination of Benefits (COB) Questionnaire" required by your insurance company. They want to confirm your other coverage (e.g. Medicare) once a year, and sometimes the only way you know they are expecting it is when you get a call from your doctor's office that your claims are being silently denied. The insurance company won't send you an email, a call, or a ding in the portal, the language is buried at the bottom of a page of one of those PDFs you have to explicitly download.

I've had luck with just calling once a week or sending nastygrams asking why my claims are still denied, they usually say "oh that didn't go through I'll manually process that" and approve a few more each time. Incompetence vs maliciousness etc.

comment 1mo ago · link · parent

It'd be funny if Kirk just sent the gibberish and it worked and they could have skipped the time travel

comment 1mo ago · link · parent

Dialog is pretty fun, kind of like a lite Prolog. It compiles to Z-code or its own VM (Å-machine) which can run on C-64 and Apple II.

comment 1mo ago · link · parent

I once built a basic fuzzer for the Z-machine and tried it on Mini-Zork (a promotional game). It found at least one bug. I wonder if a smarter fuzzer could find the Infidel bug.

Article: https://8bitworkshop.com/docs/posts/2020/fuzzing-the-z-machi...

comment 1mo ago · link · parent

Glad to see Kingdom Rush is still there, even after half a dozen iPad apps: https://www.newgrounds.com/portal/view/587194

comment 1mo ago · link · parent

I recall the turning point was when id used the Watcom compiler for DOOM. Watcom had the 32-bit flat model DOS extender and were starting to add the difficult optimizations. Turbo/Borland Pascal was built for compile and link speed, not even getting a real -O option until Delphi (except for turning off range and stack checking)

comment 2mo ago · link · parent

Clarion and Paradox thought one of them was going to win the tontine.

comment 2mo ago · link · parent

I initially added the MOS 6502 support by hacking the HC08 backend. It was awful, someone else (Gabriele Gorla) cleaned it up and got it merged to the mainline. There are other options these days for optimized 6502, like llvm-mos or Oscar64.

comment 2mo ago · link · parent

Dibs on Otisburg.

comment 2mo ago · link · parent

$80/month that becomes $120/month and then $200/month within a year or two, and they mail you a postcard to tell you about it. I guess that's another nice perk of the business.

comment 2mo ago · link · parent

I wrote a conversational insult generator in AppleSoft BASIC, inspired by a program called "Abuse" that I saw advertised in a magazine, and of course by Eliza.

comment 2mo ago · link · parent

I did a PWM demo on the Apple II using a format similar to the DPCM samples on the NES. Those samples have a pretty simple format: a 1 bit raises the amplitude, a 0 bit lowers it. So you're kinda approximating the waveform with a bunch of triangles.

The NES has a 7-bit DAC, but since we're bit-banging with the CPU we only have enough time between samples for about 13 levels. Each level has its own toggle-wait-toggle-wait routine, and then we shift another bit and decide whether to branch to the next (level+1) routine or the previous (level-1) routine.

https://8bitworkshop.com/v3.12.1/?platform=apple2&file=delta...

comment 2mo ago · link · parent

And also the hamster has two mouths

comment 2mo ago · link · parent

The CE40-HX1K iCEstick has inexplicably increased to $158 on the Lattice Store. Pretty spendy for 1280 LUTs. The Olimex Ltd. ICE40HX1K-EVB might be a good substitute at $21.

comment 3mo ago · link · parent

Compile this, GOTO breath!

comment 4mo ago · link · parent

Are you planning to feed the info back into OSM?
12345
46