Challenge For Programmer

Discussion in 'Programming' started by alok, Jul 26, 2004.

Thread Status:
Not open for further replies.
  1. alok

    alok New Member

    Joined:
    Jul 24, 2004
    Messages:
    127
    Likes Received:
    2
    Trophy Points:
    0
    Occupation:
    S/W Engg
    Home Page:
    http://www.thatsalok.com
    Every programmer starts out with a 'Hello World' programme so it is quite fitting that our first challenge is in a similar vein.

    The Challenge
    To produce the smallest windows executable program that displays Hello World. in a dialog box.

    You must submit a compiled windows executable that displays the text string "Hello World." in a dialog box. This is the minimum visual requirement and the program can include any other control or visual element. The winning entry will be the qualifying submission that is the smallest size. You can use any compiled language you are familar with be it c, vb or Logo.



    How to submit
    To submit your entry, post a reply to this topic attaching your compiled and runable program. It is up to you whether you wish to disclose in your post the method used, the compiled file size or the source code - I will only remove the attachement before I approve the post. So it is up to you to decide if you want other challengers to know how small you have made it or any of your secrets before the challenge ends.

    Tips:
    scripting languages are not allowed

    There are 'notable entry points' available for any entry that fails to win but displays a unique approach.

    You can submit as many entries as you wish - obviously only the smallest will be put forward for the final judging - but all will be eligible for the 'notable entry points'

    Make sure the text you display matches "Hello World." exactly - Ignore the quotes, same case, and remember the period (full stop).
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    Nice competition but I have a query

    The Challenge
    To produce the smallest windows executable program that displays Hello World. in a dialog box.

    does this mean the smallest code or the screen display as minimum.

    If its minimum lines of code
    In VB if I just put a Label and written hello world there will be no lines for codes but it will be auto generated.

    So if its lines of code please do specify and if its display range please do mention that.

    Thanks
    Shabbir Bhimani
     
  3. Amit Ray

    Amit Ray New Member

    Joined:
    Jul 12, 2004
    Messages:
    75
    Likes Received:
    4
    Trophy Points:
    0
    Occupation:
    Software Developer
    Home Page:
    http://www.go4expert.com
    I guess alok is talking about the size of the executable and not the lines of code. Let me know whether am I right or not. Also, will the size of the compiled object code matter while choosing the winner .... and whether anything else matters for that matter ( apart from the prime objective of course, which is very clear !! )

    Amit Ray. :)

    What we do is never understood, but only praised and blamed. (Friedrich Nietzsche)
     
  4. alok

    alok New Member

    Joined:
    Jul 24, 2004
    Messages:
    127
    Likes Received:
    2
    Trophy Points:
    0
    Occupation:
    S/W Engg
    Home Page:
    http://www.thatsalok.com
    Yeah i like to subit mine it is 6.5 kb.
    i have written it in VC++(using MFC)
     

    Attached Files:

    • 1.zip
      File size:
      2.8 KB
      Views:
      737
  5. alok

    alok New Member

    Joined:
    Jul 24, 2004
    Messages:
    127
    Likes Received:
    2
    Trophy Points:
    0
    Occupation:
    S/W Engg
    Home Page:
    http://www.thatsalok.com
    yes Mr.Amit you are Abosolutely right i am looking for Most compact Hello World Program.
     
  6. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    So now the question is clearer but I think we should restrict the language also. VB / C / VC++.

    I think this should have each language as winner because VB exe is based on lots of DLL which can be a bonus for that user so we should have competition for each language. That will make the competition more exiting. So do mention in your post whats the language used.

    Thanks
    Shabbir Bhimani
     
  7. alok

    alok New Member

    Joined:
    Jul 24, 2004
    Messages:
    127
    Likes Received:
    2
    Trophy Points:
    0
    Occupation:
    S/W Engg
    Home Page:
    http://www.thatsalok.com
    Yes Mr. Shabbir you are Right ,
    there should Be Winner For Each category
    1.VC++ (MFC Based)
    2.VC++ (Win32 Api)
    3.VB
    4.Delphi
    5.Other Programming Language
     
  8. boris

    boris New Member

    Joined:
    Jul 21, 2004
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    Software developer
    Location:
    Russia, Moscow
    I have some scruples about the fifth category. It's necessary to be more concrete.
     
  9. alok

    alok New Member

    Joined:
    Jul 24, 2004
    Messages:
    127
    Likes Received:
    2
    Trophy Points:
    0
    Occupation:
    S/W Engg
    Home Page:
    http://www.thatsalok.com
    Hain Why Boris Removed his post,
    there is winner in each category,don't be shy carry on buddy because till this time there is only one Submission.
    is i am going to win ,without being challenged.
    come on all programmer
     
  10. alok

    alok New Member

    Joined:
    Jul 24, 2004
    Messages:
    127
    Likes Received:
    2
    Trophy Points:
    0
    Occupation:
    S/W Engg
    Home Page:
    http://www.thatsalok.com
    So you like to concrete the last Category ok
    let me think,....................... :D
    the 5th Langauge will be Oracle :D joking.

    Yeah Fifth Lanaguge Will be Phython/Java
    ok
     
  11. boris

    boris New Member

    Joined:
    Jul 21, 2004
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    Software developer
    Location:
    Russia, Moscow
    ufff.... It's smallest of all my attempts.
    I have used Microsoft Compiler for WinAPI program (second category).
     

    Attached Files:

  12. boris

    boris New Member

    Joined:
    Jul 21, 2004
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    Software developer
    Location:
    Russia, Moscow
    Here is Delphi program: 13.824 bytes
     

    Attached Files:

  13. boris

    boris New Member

    Joined:
    Jul 21, 2004
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    Software developer
    Location:
    Russia, Moscow
    And VB try: 16.384 bytes
     

    Attached Files:

  14. alok

    alok New Member

    Joined:
    Jul 24, 2004
    Messages:
    127
    Likes Received:
    2
    Trophy Points:
    0
    Occupation:
    S/W Engg
    Home Page:
    http://www.thatsalok.com
    Hian boris you going great,
    may be i beat u in Win32 api Challenege.btu were is your submission for MFC based application
     
  15. boris

    boris New Member

    Joined:
    Jul 21, 2004
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    Software developer
    Location:
    Russia, Moscow
    hm.... Size of my mfc app is about 16kb. How did you make so small app :confused: :confused: :confused: :)
     

    Attached Files:

  16. alok

    alok New Member

    Joined:
    Jul 24, 2004
    Messages:
    127
    Likes Received:
    2
    Trophy Points:
    0
    Occupation:
    S/W Engg
    Home Page:
    http://www.thatsalok.com
    Helloo
    boris how many CLasses are u using in MFC Based Windows.
     
  17. alok

    alok New Member

    Joined:
    Jul 24, 2004
    Messages:
    127
    Likes Received:
    2
    Trophy Points:
    0
    Occupation:
    S/W Engg
    Home Page:
    http://www.thatsalok.com
    Helloo
    boris how many CLasses are u using in MFC Based Windows.
    and About how i created the most smallest MFC Window, i will display my code here.as every winner has to display it
     
  18. boris

    boris New Member

    Joined:
    Jul 21, 2004
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    Software developer
    Location:
    Russia, Moscow
    I have removed almost all classes. In result I'm using one class: App-Class.
     
  19. alok

    alok New Member

    Joined:
    Jul 24, 2004
    Messages:
    127
    Likes Received:
    2
    Trophy Points:
    0
    Occupation:
    S/W Engg
    Home Page:
    http://www.thatsalok.com
    yeah Boris are you using the Precompiles header file ,or tell me which Version Visual Studio you are using
     
  20. boris

    boris New Member

    Joined:
    Jul 21, 2004
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    Software developer
    Location:
    Russia, Moscow
    I don't use precompile headers.
    Version of my Visual Studio is 6 SP6.
    I set optimization by size.
     
Thread Status:
Not open for further replies.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice