can we do another 512byte challenge?

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
User avatar
piranha
Member
Member
Posts: 1391
Joined: Thu Dec 21, 2006 7:42 pm
Location: Unknown. Momentum is pretty certain, however.
Contact:

Re: can we do another 512byte challenge?

Post by piranha »

Simple poll to decide the winner?

-JL
SeaOS: Adding VT-x, networking, and ARM support
dbittman on IRC, @danielbittman on twitter
https://dbittman.github.io
jtokarchuk
Member
Member
Posts: 26
Joined: Fri Oct 14, 2011 4:32 pm

Re: can we do another 512byte challenge?

Post by jtokarchuk »

I like the poll, looks like it's what was done in the past too.
Darwin
Member
Member
Posts: 43
Joined: Sun Jan 16, 2011 6:58 pm
Location: United States

Re: can we do another 512byte challenge?

Post by Darwin »

All in favor of a poll, rotate your head 270 degrees counterclockwise.
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: can we do another 512byte challenge?

Post by Combuster »

rotate your head
*spins office chair* :mrgreen:
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
shikhin
Member
Member
Posts: 274
Joined: Sat Oct 09, 2010 3:35 am
Libera.chat IRC: shikhin
Contact:

Re: can we do another 512byte challenge?

Post by shikhin »

I see a bunch of rules and the way to decide the winner but no real incentive for the winner to participate in the first place? #-o
http://shikhin.in/

Current status: Gandr.
Darwin
Member
Member
Posts: 43
Joined: Sun Jan 16, 2011 6:58 pm
Location: United States

Re: can we do another 512byte challenge?

Post by Darwin »

Shikhin wrote:I see a bunch of rules and the way to decide the winner but no real incentive for the winner to participate in the first place? #-o
You're right.

We could crown the winner Champion of OSDev.org, but I'm afraid Brynet-Inc already holds that title. The main prizes from the last contest were Amazon.com gift certificates, so perhaps something similar?
shikhin
Member
Member
Posts: 274
Joined: Sat Oct 09, 2010 3:35 am
Libera.chat IRC: shikhin
Contact:

Re: can we do another 512byte challenge?

Post by shikhin »

Hi,
smcerm wrote:
Shikhin wrote:We could crown the winner Champion of OSDev.org, but I'm afraid Brynet-Inc already holds that title. The main prizes from the last contest were Amazon.com gift certificates, so perhaps something similar?
Reasonable enough. :)

I was also wondering if the rules could be narrowed down, thus having a minimum requirement as to what the entry should (minimally) do. For example, you could ask to load some sort of a file and just jump to it.

Then, people could expand on the minimal rules, and perhaps do things like music in the background while they load the file or something?

Regards,
Shikhin
http://shikhin.in/

Current status: Gandr.
jtokarchuk
Member
Member
Posts: 26
Joined: Fri Oct 14, 2011 4:32 pm

Re: can we do another 512byte challenge?

Post by jtokarchuk »

I would like the finished product to be open ended. I want to see creativity, not stifle it.

There will be prizes, again, I am just brainstorming in this thread. When it begins, I will kick off a new topic.

So please, suggest away. I am noting all suggestions and will formulate a whole in the end.
Gigasoft
Member
Member
Posts: 856
Joined: Sat Nov 21, 2009 5:11 pm

Re: can we do another 512byte challenge?

Post by Gigasoft »

Could you clarify what exactly you mean by "live within a single segment in 16bit real mode"? Does it mean that the segment registers must contain the same value at all times, or does it just mean that all the RAM addresses ever accessed by the system must be addressable using a single real mode segment? Does this mean no BIOS calls, since that would cause memory locations outside this range to be accessed? Or are BIOS calls allowed as long as they don't access memory locations outside of the allowed range (except EBDA and shadow RAM)? Can the OS itself access BIOS memory (for example, ROM fonts?) Any restrictions on the use of video memory?
jtokarchuk
Member
Member
Posts: 26
Joined: Fri Oct 14, 2011 4:32 pm

Re: can we do another 512byte challenge?

Post by jtokarchuk »

BIOS calls are certainly allowed, and encouraged.

To clarify:

I would like the segment registers to remain unchanged. BIOS calls are fine, and accessing video memory is fine.

However, kernel, disk operations, and application entry point can only be within the single segment.

Keep in mind that I am not an all encompassing guru, and if this sounds like jackassery, I would like to be let known.
evoex
Member
Member
Posts: 103
Joined: Tue Dec 13, 2011 4:11 pm

Re: can we do another 512byte challenge?

Post by evoex »

You can use an entire segment? And it doesn't have to fit in a single boot sector? In that case, wouldn't that allow one to use the entire memory from 0x7C00 to 0xFFFF (probably even more), or am I missing something here? I really can't be bothered to code anything that is allowed to be that big, it's simply too much work. Heck, I reckon that with some clever memory swapping techniques you could write epic 3D games (though probably way too slow) without using more than that amount of memory by constantly saving/loading anything you need. As in; you could use the disk as memory, rather than using the memory itself.
Or am I missing something here?
Even if you wouldn't be allowed to write on the disk, it's a LOT of instructions. Too much for me.

I do like the idea of a 512 byte challenge. It's not too much work, and it will be a nice puzzle to try to get something amazing down to that size...
User avatar
GAT
Member
Member
Posts: 75
Joined: Wed Nov 30, 2011 9:51 pm
Contact:

Re: can we do another 512byte challenge?

Post by GAT »

Personally I like the idea of doing it all in one segment. It just gives us more space to do something cool with than a 512 or 502 byte challenge.
d3: virtualizing kernel in progress
https://github.com/WizardOfHaas/d3/
evoex
Member
Member
Posts: 103
Joined: Tue Dec 13, 2011 4:11 pm

Re: can we do another 512byte challenge?

Post by evoex »

GAT wrote:Personally I like the idea of doing it all in one segment. It just gives us more space to do something cool with than a 512 or 502 byte challenge.
Yes, but then it's more a contest on whoever has the most time on their hands... And that would not even be worth competing for me.
Maybe, if this contest were to be held, I'd build a POC to show that you can as well remove the size constraint completely in this case. Because I do think you can write *any* application in one segment.

I'd actually say 510 bytes; anything that fits in the boot sector only. Minus the two magic bytes of course.
User avatar
GAT
Member
Member
Posts: 75
Joined: Wed Nov 30, 2011 9:51 pm
Contact:

Re: can we do another 512byte challenge?

Post by GAT »

Compromise? Maybe two challengers, on 510 byte, and one 1 segment?
d3: virtualizing kernel in progress
https://github.com/WizardOfHaas/d3/
jtokarchuk
Member
Member
Posts: 26
Joined: Fri Oct 14, 2011 4:32 pm

Re: can we do another 512byte challenge?

Post by jtokarchuk »

I recognize that a single segment for space would take an inordinate amount of time, and most of us don't have it to spare.

I have decided to then do a 512b challenge, and if others are interested in more, we can run something afterward.

Give me a couple days to put the thread together (very busy at work) and we will get this started.
Post Reply