Talk:International Obfuscated C Code Contest: Difference between revisions
very capable |
m Maintain {{WPBS}}: 2 WikiProject templates. Keep majority rating "Start" in {{WPBS}}. Remove 2 same ratings as {{WPBS}} in {{WikiProject Computing}}, {{WikiProject C/C++}}. Tag: |
||
(23 intermediate revisions by 16 users not shown) | |||
Line 1: | Line 1: | ||
{{Talk header}} |
|||
{{WikiProject banner shell|class=Start|1= |
|||
{{WikiProject Computing|importance=Low}} |
|||
{{WikiProject C/C++|importance=Low|c=yes}} |
|||
}} |
|||
==Visual Studio== |
==Visual Studio== |
||
Article says: |
Article says: |
||
Line 6: | Line 12: | ||
:: I agree. I've re-written to be NPOV and explain itself a bit better. -- [[User:Jdowland|Jon Dowland]] 30 June 2005 15:03 (UTC)reqallt u have done well |
:: I agree. I've re-written to be NPOV and explain itself a bit better. -- [[User:Jdowland|Jon Dowland]] 30 June 2005 15:03 (UTC)reqallt u have done well |
||
==Notable Contributions== |
|||
:''Worst abuse of the rules. In several years...'' |
|||
This entry is poorly written. I'd correct it myself, but I'm not sure exactly what it's trying to say. Could someone who knows what this is referring to edit it? 01:25, 28 June 2006 (UTC) |
|||
== Code doesn't work == |
|||
By the way, if you compile the provided code (or even take it directly from the website itself), it doesn't appear to work. All i get for output is "0.250", which, unless there have been significant changes in mathematics in the past few years, is NOT equal to PI. -([[User:Simulcra|Simulcra]] 17:34, 2 November 2006 (UTC)) |
|||
* If I remember correctly, the approximation is not very accurate but gets better for larger circles. <span style="font-size: 10px">— [[User:Brighterorange|<span style="padding : 0px 1px 1px 1px; border : 1px solid #FFE7B0; background: #FFFFFF ; color: #FF9600">brighterorange</span>]] ([[User_talk:Brighterorange|talk]])</span> 18:58, 3 November 2006 (UTC) |
|||
* OK, I did find what is wrong: |
|||
Actualy the programmer thinks "-_" is replaced by "--F<00||--F-OO--;". But gcc replace it by "- -F<00||--F-OO--;". |
|||
If you name the source file "r.c", use this: "gcc -E r.c | sed 's/- -/--/g' > r2.c ; gcc -o r2 r2.c" |
|||
Now, run "./r2", the result is "3.141". |
|||
--[[User:Vspaceg|Vspaceg]] 17:27, 22 November 2006 (UTC) |
|||
Interpretation of the program: |
|||
Each first "_" decrement F and OO. Each "-_" decrement only F. |
|||
At the end of "FF_OO" procedure, F contains minus the aproximation of an area of a circle. OO contains minus the diameter. |
|||
The area of a circle is pi * square of radius, so pi = area / (diameter / 2)² = 4 * area / diameter / diameter . |
|||
Pi is aproximated by "4. * -F / OO / OO" . |
|||
--[[User:Vspaceg|Vspaceg]] 17:43, 22 November 2006 (UTC) |
|||
* Yeah that example should be replaced since it doesn't work with current ANSI C compilers, as is mentioned in the hint that accompanies the code: http://www0.us.ioccc.org/1988/westley.hint (nor does the method suggested on that page make it work either, might be fun to try and figure out how to update it) [[User:Rickb235|Rickb235]] 03:14, 7 December 2006 (UTC) |
|||
<pre> |
|||
#define _ F-->00||-F-OO--; |
|||
int F=00,OO=00;main(){F_OO();printf("%1.3f\n",4.*-F/OO/OO);}F_OO() |
|||
{ |
|||
_-_-_-_ |
|||
_-_-_-_-_-_-_-_-_ |
|||
_-_-_-_-_-_-_-_-_-_-_-_ |
|||
_-_-_-_-_-_-_-_-_-_-_-_-_-_ |
|||
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ |
|||
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ |
|||
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ |
|||
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ |
|||
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ |
|||
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ |
|||
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ |
|||
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ |
|||
_-_-_-_-_-_-_-_-_-_-_-_-_-_ |
|||
_-_-_-_-_-_-_-_-_-_-_-_ |
|||
_-_-_-_-_-_-_-_ |
|||
_-_-_-_ |
|||
} |
|||
</pre> |
|||
== Error in source == |
|||
The reference at http://www.ioccc.org/2004/vik2.hint lists a 2.0MHz p4. [[User:Smallman12q|Smallman12q]] ([[User talk:Smallman12q|talk]]) 01:20, 27 October 2010 (UTC) |
|||
:That section of the source in question doesn't seem to be cited in the article anyway, so for the purposes of the article it probably doesn't matter. --[[User:ais523|ais523]] 15:21, 27 October 2010 ([[User:ais523|U]][[User talk:ais523|T]][[Special:Contributions/Ais523|C]]) |
|||
::please reffer ''your reference'' with relations in main article; as it lacks proper external reference in the bottom section. putting it straight |
|||
what`s w your reference? |
|||
:it matters to me as a 6.8mips relates to "6.8million times to run" when looking for some prime numbers <span style="font-size: smaller;" class="autosigned">— Preceding [[Wikipedia:Signatures|unsigned]] comment added by [[Special:Contributions/188.25.53.154|188.25.53.154]] ([[User talk:188.25.53.154|talk]]) 04:39, 1 March 2012 (UTC)</span><!-- Template:Unsigned IP --> <!--Autosigned by SineBot--> |
|||
== cpp == |
|||
by using cpp for some time i say code from #cite-15 |
|||
can not run. reason is because each line has to end with a\ symbol |
|||
else it`s returning error. tag my observation as personal research for main article |
|||
good looks[[Special:Contributions/188.25.53.154|188.25.53.154]] ([[User talk:188.25.53.154|talk]]) 04:31, 1 March 2012 (UTC) |
|||
== Sources == |
|||
Article is lacking independent sources. Here are book sources mentioning IOCCC, including support for it starting out on USENET. |
|||
*[http://books.google.com/books?id=4vm2xK3yn34C&lpg=PA225&dq=International%20Obfuscated%20C%20Code%20Contest&pg=PA225#v=onepage&q=International%20Obfuscated%20C%20Code%20Contest&f=false Expert C programming: deep C secrets]. p. 225. Peter Van der Linden. |
|||
*[http://books.google.com/books?id=q--Ic9AB2HUC&pg=PA133&dq=International+Obfuscated+C+Code+Contest&hl=en&ei=2kG9TfK7M4W6sQPVm8nABQ&sa=X&oi=book_result&ct=result&resnum=1&ved=0CDYQ6AEwAA#v=onepage&q=International%20Obfuscated%20C%20Code%20Contest&f=false C/C++ treasure chest: a developer's resource kit of C/C++ tools and source code]. p. 133. Victor R. Volkman. |
|||
--[[User:Lexein|Lexein]] ([[User talk:Lexein|talk]]) 14:14, 1 May 2011 (UTC) |
|||
:: i doubt google books as prime. |
|||
== Description of program function == |
|||
Could someone include a description of what the flight simulator program does, for us non-programming plebs? <small><span class="autosigned">— Preceding [[Wikipedia:Signatures|unsigned]] comment added by [[User:Rikeus|Rikeus]] ([[User talk:Rikeus|talk]] • [[Special:Contributions/Rikeus|contribs]]) 07:27, 13 April 2013 (UTC)</span></small><!-- Template:Unsigned --> <!--Autosigned by SineBot--> |
|||
== External links modified == |
|||
Hello fellow Wikipedians, |
|||
I have just modified one external link on [[International Obfuscated C Code Contest]]. Please take a moment to review [[special:diff/813211278|my edit]]. If you have any questions, or need the bot to ignore the links, or the page altogether, please visit [[User:Cyberpower678/FaQs#InternetArchiveBot|this simple FaQ]] for additional information. I made the following changes: |
|||
*Added archive https://web.archive.org/web/20130210081342/http://pcworld.co.nz/pcworld/pcw.nsf/how-to/beyond-the-command-line to http://pcworld.co.nz/pcworld/pcw.nsf/how-to/beyond-the-command-line |
|||
When you have finished reviewing my changes, you may follow the instructions on the template below to fix any issues with the URLs. |
|||
{{sourcecheck|checked=false|needhelp=}} |
|||
Cheers.—[[User:InternetArchiveBot|'''<span style="color:darkgrey;font-family:monospace">InternetArchiveBot</span>''']] <span style="color:green;font-family:Rockwell">([[User talk:InternetArchiveBot|Report bug]])</span> 12:51, 2 December 2017 (UTC) |
Latest revision as of 15:17, 15 February 2024
This is the talk page for discussing improvements to the International Obfuscated C Code Contest article. This is not a forum for general discussion of the article's subject. |
Article policies
|
Find sources: Google (books · news · scholar · free images · WP refs) · FENS · JSTOR · TWL |
This article is rated Start-class on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | ||||||||||||||||||||||||
|
Visual Studio
[edit]Article says:
- (most notably the otherwise very stable Visual Studio)
I don't want to unlaterally make this edit since it seems POV, but this parenthetical remark is problematic to me. I belive "otherwise very stable" is just factually incorrect; visual C++ (which is what the author must be referring to here, since visual studio is not a compiler) has a large number of known bugs (one could see the workarounds in [boost] for examples). These are mostly in the C++ support, to be fair. Removing "otherwise very stable" makes this a dig against VC++, which I think is POV unless there is some way to verify that this compiler dies the most. Perhaps removing the whole parenthetical is the best move. Brighterorange 05:45, 22 Jun 2005 (UTC)
- I agree. I've re-written to be NPOV and explain itself a bit better. -- Jon Dowland 30 June 2005 15:03 (UTC)reqallt u have done well
Notable Contributions
[edit]- Worst abuse of the rules. In several years...
This entry is poorly written. I'd correct it myself, but I'm not sure exactly what it's trying to say. Could someone who knows what this is referring to edit it? 01:25, 28 June 2006 (UTC)
Code doesn't work
[edit]By the way, if you compile the provided code (or even take it directly from the website itself), it doesn't appear to work. All i get for output is "0.250", which, unless there have been significant changes in mathematics in the past few years, is NOT equal to PI. -(Simulcra 17:34, 2 November 2006 (UTC))
- If I remember correctly, the approximation is not very accurate but gets better for larger circles. — brighterorange (talk) 18:58, 3 November 2006 (UTC)
* OK, I did find what is wrong: Actualy the programmer thinks "-_" is replaced by "--F<00||--F-OO--;". But gcc replace it by "- -F<00||--F-OO--;". If you name the source file "r.c", use this: "gcc -E r.c | sed 's/- -/--/g' > r2.c ; gcc -o r2 r2.c" Now, run "./r2", the result is "3.141". --Vspaceg 17:27, 22 November 2006 (UTC)
Interpretation of the program: Each first "_" decrement F and OO. Each "-_" decrement only F. At the end of "FF_OO" procedure, F contains minus the aproximation of an area of a circle. OO contains minus the diameter. The area of a circle is pi * square of radius, so pi = area / (diameter / 2)² = 4 * area / diameter / diameter . Pi is aproximated by "4. * -F / OO / OO" . --Vspaceg 17:43, 22 November 2006 (UTC)
- Yeah that example should be replaced since it doesn't work with current ANSI C compilers, as is mentioned in the hint that accompanies the code: http://www0.us.ioccc.org/1988/westley.hint (nor does the method suggested on that page make it work either, might be fun to try and figure out how to update it) Rickb235 03:14, 7 December 2006 (UTC)
#define _ F-->00||-F-OO--; int F=00,OO=00;main(){F_OO();printf("%1.3f\n",4.*-F/OO/OO);}F_OO() { _-_-_-_ _-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_ _-_-_-_ }
Error in source
[edit]The reference at http://www.ioccc.org/2004/vik2.hint lists a 2.0MHz p4. Smallman12q (talk) 01:20, 27 October 2010 (UTC)
- That section of the source in question doesn't seem to be cited in the article anyway, so for the purposes of the article it probably doesn't matter. --ais523 15:21, 27 October 2010 (UTC)
- please reffer your reference with relations in main article; as it lacks proper external reference in the bottom section. putting it straight
what`s w your reference?
- it matters to me as a 6.8mips relates to "6.8million times to run" when looking for some prime numbers — Preceding unsigned comment added by 188.25.53.154 (talk) 04:39, 1 March 2012 (UTC)
cpp
[edit]by using cpp for some time i say code from #cite-15 can not run. reason is because each line has to end with a\ symbol else it`s returning error. tag my observation as personal research for main article good looks188.25.53.154 (talk) 04:31, 1 March 2012 (UTC)
Sources
[edit]Article is lacking independent sources. Here are book sources mentioning IOCCC, including support for it starting out on USENET.
- Expert C programming: deep C secrets. p. 225. Peter Van der Linden.
- C/C++ treasure chest: a developer's resource kit of C/C++ tools and source code. p. 133. Victor R. Volkman.
--Lexein (talk) 14:14, 1 May 2011 (UTC)
- i doubt google books as prime.
Description of program function
[edit]Could someone include a description of what the flight simulator program does, for us non-programming plebs? — Preceding unsigned comment added by Rikeus (talk • contribs) 07:27, 13 April 2013 (UTC)
External links modified
[edit]Hello fellow Wikipedians,
I have just modified one external link on International Obfuscated C Code Contest. Please take a moment to review my edit. If you have any questions, or need the bot to ignore the links, or the page altogether, please visit this simple FaQ for additional information. I made the following changes:
- Added archive https://web.archive.org/web/20130210081342/http://pcworld.co.nz/pcworld/pcw.nsf/how-to/beyond-the-command-line to http://pcworld.co.nz/pcworld/pcw.nsf/how-to/beyond-the-command-line
When you have finished reviewing my changes, you may follow the instructions on the template below to fix any issues with the URLs.
This message was posted before February 2018. After February 2018, "External links modified" talk page sections are no longer generated or monitored by InternetArchiveBot. No special action is required regarding these talk page notices, other than regular verification using the archive tool instructions below. Editors have permission to delete these "External links modified" talk page sections if they want to de-clutter talk pages, but see the RfC before doing mass systematic removals. This message is updated dynamically through the template {{source check}}
(last update: 5 June 2024).
- If you have discovered URLs which were erroneously considered dead by the bot, you can report them with this tool.
- If you found an error with any archives or the URLs themselves, you can fix them with this tool.
Cheers.—InternetArchiveBot (Report bug) 12:51, 2 December 2017 (UTC)