Hacker News new | past | comments | ask | show | jobs | submit login

Interesting to see the author shipping a DOS binary instead of something web based with Javascript.

I had a relative do exactly the same a while ago for a standalone program, which made me curious about such a choice.

In a nutshell: DOS can be seen as a lightweight runtime, it's reasonably secure (easy to isolate from the web), has low requirements, doesn't require updates, and the tools to build the program are small, free and reproducible (ex: Turbo C) so he can come back to it in a few years and be confident everything will build the same.

So he treats DOS as an autonomous, lightweight container with graphic capabilities. A bonus is that it can run on basically anything, with stellar efficiency if baremetal. The main disadvantage is that programs look dated.




> Interesting to see the author shipping a DOS binary instead of something web based with Javascript.

Of course if you want it web-based, you can no doubt run it easily in one if the several enscriptm/wasm compiled versions of DOSBox.


I was considering making my current game in DOS for these reasons. Basically you get a graphics-capable VM that runs on virtually any platform with stable tools. I wanted multiplayer/networking to be a big part and seamless though, so I went a different direction.


I think this is sometimes missed when considering why Flash was so popular.

The rich all in one tooling is one part, but the packaging, and sandboxed nature of them is what spawned the ecosystem.

An author could just focus on their experience, without getting bogged down in any Web complications (or indeed requiring any web specific knowledge at all), compile out an .swf, and share a simple file. Those hosting could then easily embed them knowing they were completely confined to their little box, and couldn't escape.

Similar Solution here


You can treat Web browsers themselves the same way—the "Web" part is optional. They run single-file programs quite capably.

(What's nuts is that all the Web developers don't get this. They end up writing all their tooling against NodeJS, instead of the JS runtime everyone already has and that, for that reason, is the entire basis for how their field is actually able to produce things that users can actually use.)


I'm really curious what you decided on in the end. Can you tell us?


I ended up using js/html5. For stylistic purposes, I created my own VGA-esque framebuffer and drawing functions. I'm looking into packaging for native downloads for when people don't have access to the website. The lack of typing in javascript is really annoying, but otherwise it's been fine.


A lot of great points you mentioned.

Also, the author of this is the creator of FreeDOS.


I think the 2nd stage must have a lot of issues to switch away from ncurse.


There's conio.h (console IO), which used to be very popular on DOS for TUI apps (think edit.exe).

It's probably more straighforward to use than curses:

https://opensource.com/article/21/9/programming-dos-conio




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: