Smallest kernel +ramfs+apps+GUI+keyboard+mouse support ....

Programming, for all ages and all languages.
User avatar
dc0d32
Member
Member
Posts: 69
Joined: Thu Jun 09, 2005 11:00 pm
Location: Right here

Smallest kernel +ramfs+apps+GUI+keyboard+mouse support ....

Post by dc0d32 »

:shock:
I couldn't understand a single line :roll:

Hats off to this guy.

btw, lets talk about maintaining this kernel :wink: Who's in?

[note : it _does_ compile and run]

edit : maybe wrong forum. My mistake. Mods, could you please move this if required?
Attachments
gavin.tar.gz
Taken from IOCCC.org
(14.05 KiB) Downloaded 208 times
User avatar
AJ
Member
Member
Posts: 2646
Joined: Sun Oct 22, 2006 7:01 am
Location: Devon, UK
Contact:

Post by AJ »

Topic moved as requested.

Cheers,
Adam
User avatar
dc0d32
Member
Member
Posts: 69
Joined: Thu Jun 09, 2005 11:00 pm
Location: Right here

Post by dc0d32 »

maybe "general programming" is a better place?
DeletedAccount
Member
Member
Posts: 566
Joined: Tue Jun 20, 2006 9:17 am

Gee i think its more readable ....

Post by DeletedAccount »

Wow cool!! Hats of to Gavin ... 8)

But it is more readable after the macors are expanded ....

I just tried cpp gavin.c -ogavin.mac after #defining the -D flags

Still it is very unreadable ...
User avatar
B.E
Member
Member
Posts: 275
Joined: Sat Oct 21, 2006 5:29 pm
Location: Brisbane Australia
Contact:

Post by B.E »

You can than put that output into indent:

indent gavin.mac -gnu -br --brs -l1024 -npsl

Should me it 'easyer' to read

Edit: also if you chuck it though eclipse's formatter, than you get it even more readable, though it's still unreadable though (because of all of the casts).
Image
Microsoft: "let everyone run after us. We'll just INNOV~1"
User avatar
JamesM
Member
Member
Posts: 2935
Joined: Tue Jul 10, 2007 5:27 am
Location: York, United Kingdom
Contact:

Post by JamesM »

Guys,

Gavin actually works in my office. I in fact used to sit opposite him. It is indeed an awesome obfuscation entry ;)
DeletedAccount
Member
Member
Posts: 566
Joined: Tue Jun 20, 2006 9:17 am

Say Congrats from me

Post by DeletedAccount »

:lol: Say congrats from me 8) 8) He is indeed a master programmer
User avatar
bloodhound23
Member
Member
Posts: 115
Joined: Wed Jan 23, 2008 7:13 pm
Contact:

Post by bloodhound23 »

I didn't take much time to try to read it. Insanely greek to me. comments look like they are off some weird planet. Utterly, confused. :shock:
I thought I wasn't thinking, I thought wrong.
User avatar
os64dev
Member
Member
Posts: 553
Joined: Sat Jan 27, 2007 3:21 pm
Location: Best, Netherlands

Re: Say Congrats from me

Post by os64dev »

SandeepMathew wrote::lol: Say congrats from me 8) 8) He is indeed a master programmer
The code is unmaintainable, unreadable and after macro expansion and compilation the code will be just as large if fully written out, so explain to me why he is a master programmer and not just a geek.
Author of COBOS
User avatar
AndrewAPrice
Member
Member
Posts: 2299
Joined: Mon Jun 05, 2006 11:00 pm
Location: USA (and Australia)

Post by AndrewAPrice »

Does anyone mind uploading a binary? I really don't want to go through each of the dependencies and rebuild them as elfs.
My OS is Perception.
User avatar
JamesM
Member
Member
Posts: 2935
Joined: Tue Jul 10, 2007 5:27 am
Location: York, United Kingdom
Contact:

Re: Say Congrats from me

Post by JamesM »

os64dev wrote:
SandeepMathew wrote::lol: Say congrats from me 8) 8) He is indeed a master programmer
The code is unmaintainable, unreadable and after macro expansion and compilation the code will be just as large if fully written out, so explain to me why he is a master programmer and not just a geek.
If it hasn't clicked yet, I'll explain again for the particularly slow: the intention of the competition is to recieve the most obfuscated C code possible.

Gavin is a geek, but as are >90% of people in our profession. He is also an unbelieveably good programmer and software architect.
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re: Say Congrats from me

Post by Solar »

JamesM wrote:If it hasn't clicked yet, I'll explain again for the particularly slow: the intention of the competition is to recieve the most obfuscated C code possible.
Funny enough they never made a contest of obfuscating C++. As a comittee member once put it, "that would be like shooting fish in a barrel." :twisted:
Every good solution is obvious once you've found it.
User avatar
JamesM
Member
Member
Posts: 2935
Joined: Tue Jul 10, 2007 5:27 am
Location: York, United Kingdom
Contact:

Re: Say Congrats from me

Post by JamesM »

Solar wrote:
JamesM wrote:If it hasn't clicked yet, I'll explain again for the particularly slow: the intention of the competition is to recieve the most obfuscated C code possible.
Funny enough they never made a contest of obfuscating C++. As a comittee member once put it, "that would be like shooting fish in a barrel." :twisted:
:D :D Love it!
User avatar
bloodhound23
Member
Member
Posts: 115
Joined: Wed Jan 23, 2008 7:13 pm
Contact:

Post by bloodhound23 »

Who wants to try it?
I thought I wasn't thinking, I thought wrong.
DeletedAccount
Member
Member
Posts: 566
Joined: Tue Jun 20, 2006 9:17 am

Okay ....

Post by DeletedAccount »


The code is unmaintainable, unreadable and after macro expansion and compilation the code will be just as large if fully written out, so explain to me why he is a master programmer and not just a geek.
This is an entry for an obscufarated C Coding contest . It appears that he has
achieved an admirable result .. :lol: It requires the coder to be familiar with
all the quirks and other subtilities to write code in this fashon . That way i genuinely restate that Gavin is indeed a master programmer . Also most of the C fans (like me ) like terse but readable code ( but unreadability is an objective here ) .
Post Reply