Earlier quoted context omitted.
We already allow arbitrary code to execute by clicking a link, in the form of JavaScript. You may argue that JS is sandboxed, but so is DOSBox. At least DOSBox can’t easily connect to remote servers over the internet.
Correct me if I'm wrong, I haven't used DOSBOX for a decade but doesn't it have the ability to access hard drives and mount them? Given that, it's not much of a sandbox. Or does that require intervention from the host system rather than auto-mounting home and similar?
Memories – 256 bytes demo winner of Revision 2020
91–100 of 123 posts
Re: Memories – 256 bytes demo winner of Revision 2020
#92Since these are so small I don't see why we couldn't have a "demoscene launcher" with a "mailto:" style protocol handler and just let people click on base64 encoded links to start the demo.
http://dosify.me should be fairly easy to modify to read the binary from url fragment instead of zip file
Re: Memories – 256 bytes demo winner of Revision 2020
#93This is amazing! Here's another awesome 256b demo that I love: http://www.pouet.net/prod.php?which=66372
Re: Memories – 256 bytes demo winner of Revision 2020
#94I've always thought the demo scene looked cool. Problem is, I don't really care about graphics and sound and am not an especially creative person. Are there are competitions that are purely objective? As in, the objective criteria is quantitative?
Re: Memories – 256 bytes demo winner of Revision 2020
#95Tiny binaries probably relied heavily on the native OS's system libraries.
A common complaint on tiny demos. Here the OS is only used for setting graphics mode and setting up a timer. Plus all the boot code of course. Not much really, with 512 bytes you can probably do it on the bare metal, if someone didn't already. There is even more debate in 4k. After all, most rely on graphics drivers that take hundreds of megabytes. But the thing to understand is that in any case, the intro ships all…
Re: Memories – 256 bytes demo winner of Revision 2020
#96Normally these demos are filled with all kinds of 'tricks' to make things smaller. Things like self modifying code, using bits of the bios or video ROM in ways they weren't intended by jumping into the middle of them, saving space by using code as data or vice versa, tiny packers which compress or uncompress the code, massive pregenerated buffers to do runtime lookups to generate data in one order but use it in anoth…
May I please have a list of demos that do all those things? That sounds really cool. - Jumping into the middle of video ROM and/or the BIOS - Using substantial amounts of code as data - Pregenerated buffers and data reordering oooooo.
But all that doesn't really cut the space down in something as "big" as 256 bytes, it's the approach and the algorithms that do =)
Re: Memories – 256 bytes demo winner of Revision 2020
#97256 bytes is in the "let's try every combination" range, I think. So, write a program that tries all of them and determines if any do something interesting enough to forward to a human for review.
Wouldn’t that be 256^256? That’s certainly a hell of a haystack
I think of it just slightly differently -- 256 bytes, 2048 bits -- so 2^2048 (same result as your 256^256).
To give people (who don't spend time with these numbers all the time, I do b/c of cryptography): 2 ^ 256 is on the order of the /number of atoms in the entire universe/ -- every star, moon, comet, black hole, galaxy, etc. across the entire known universe)
Now consider this: 2^512 -- take every single atom in the universe, and imagine that that atom //contains a universe of atoms//. Congratulations, you're only at 2 ^ 512.
Imagine how large 2 ^ 2048 is!
Re: Memories – 256 bytes demo winner of Revision 2020
#98This is amazing! Here's another awesome 256b demo that I love: http://www.pouet.net/prod.php?which=66372
That one is really amazing! I still don't understand how this didn't win the "Meteoriks" award (my "hypnoteye" did https://www.pouet.net/awards.php#2015tiny-intro ) Sadly, Baudsurfer has not been "around" for quite a while now ...
Re: Memories – 256 bytes demo winner of Revision 2020
#99The best demo I've found, also 256 bytes, is Pyrit by Řrřola (Jan Kadlec, a Czech developer). It's frankly incredible, something I wouldn't have believed was possible: https://www.pouet.net/prod.php?which=78045 I ported it to a boot sector so you can run it with a single (rather long!) Linux command line in qemu: https://rwmj.wordpress.com/2019/12/08/pyrit-by-rrrola-incred... The source code for Pyrit is worth readin…
Re: Memories – 256 bytes demo winner of Revision 2020
#100Earlier quoted context omitted.
Correct me if I'm wrong, I haven't used DOSBOX for a decade but doesn't it have the ability to access hard drives and mount them? Given that, it's not much of a sandbox. Or does that require intervention from the host system rather than auto-mounting home and similar?
I would clearly prefer a web browser with a dosbox to the "real" dosbox when it comes to safety...
If we want to run code in browser there is WASM.
So is the proposal that it would it be beneficial to have a DOS-like OS or x86 emulator in WASM for running COM files?
Yes, that would be better and more sandboxed than dosbox running outside the browser.