Difference between revisions of "Talk:1960: Code Golf"

Explain xkcd: It's 'cause you're dumb.
Jump to: navigation, search
(ADDED A COMMENT TO THE COMMENT PAGE)
(ADDED A COMMENT TO MY COMMENT ON THE COMMENT PAGE IN ORDER TO COMMENT ON SOMETHING ABOUT MY COMMENT)
Line 5: Line 5:
 
Definitely going to have to include a link to the actual longest language: Unary, which is literally just a certain length of 1s. No one actually writes in it: you write in another language and then it gets converted. [[User:Trlkly|Trlkly]] ([[User talk:Trlkly|talk]]) 10:48, 26 February 2018 (UTC)
 
Definitely going to have to include a link to the actual longest language: Unary, which is literally just a certain length of 1s. No one actually writes in it: you write in another language and then it gets converted. [[User:Trlkly|Trlkly]] ([[User talk:Trlkly|talk]]) 10:48, 26 February 2018 (UTC)
 
: You could make a longer programming language by representing "1" with some longer string; perhaps the entire text of Moby Dick. And now the file size can be arbitrarily big. [[Special:Contributions/198.41.230.100|198.41.230.100]] 16:45, 26 February 2018 (UTC)
 
: You could make a longer programming language by representing "1" with some longer string; perhaps the entire text of Moby Dick. And now the file size can be arbitrarily big. [[Special:Contributions/198.41.230.100|198.41.230.100]] 16:45, 26 February 2018 (UTC)
 +
:: Though this idea is still quite compressible. It might be better (?) to make a language where the file size cannot be easily significantly compressed.[[Special:Contributions/172.68.25.106|172.68.25.106]] 16:48, 26 February 2018 (UTC)
  
 
This might be directed at a code golfing challenge currently taking place: https://codegolf.stackexchange.com/questions/152856/write-moby-dick-approximately. The goal is to write a program that outputs a text, that is as closly as possible to moby dick, while no containing it, and of course beeing as small as possible.[[Special:Contributions/141.101.105.150|141.101.105.150]] 13:04, 26 February 2018 (UTC)
 
This might be directed at a code golfing challenge currently taking place: https://codegolf.stackexchange.com/questions/152856/write-moby-dick-approximately. The goal is to write a program that outputs a text, that is as closly as possible to moby dick, while no containing it, and of course beeing as small as possible.[[Special:Contributions/141.101.105.150|141.101.105.150]] 13:04, 26 February 2018 (UTC)

Revision as of 16:48, 26 February 2018

What's the programming language? It seems to me like a special reverse golf variant of Python, where def is replaced by define, just to make it longer. Or is there a real language with that syntax? --172.68.110.106 08:40, 26 February 2018 (UTC)

Lisp/some derivatives (I'm most familiar with scheme) use define<define> as does Slate, however both have a different syntax. Most likely, this is just pseudo-code. Baldrickk (talk) 09:59, 26 February 2018 (UTC)

Definitely going to have to include a link to the actual longest language: Unary, which is literally just a certain length of 1s. No one actually writes in it: you write in another language and then it gets converted. Trlkly (talk) 10:48, 26 February 2018 (UTC)

You could make a longer programming language by representing "1" with some longer string; perhaps the entire text of Moby Dick. And now the file size can be arbitrarily big. 198.41.230.100 16:45, 26 February 2018 (UTC)
Though this idea is still quite compressible. It might be better (?) to make a language where the file size cannot be easily significantly compressed.172.68.25.106 16:48, 26 February 2018 (UTC)

This might be directed at a code golfing challenge currently taking place: https://codegolf.stackexchange.com/questions/152856/write-moby-dick-approximately. The goal is to write a program that outputs a text, that is as closly as possible to moby dick, while no containing it, and of course beeing as small as possible.141.101.105.150 13:04, 26 February 2018 (UTC)

Not sure why JSFuck is included in the explanation. Not sure how it really has any relevance here as it is not mentioned in the text and is not the programming language being used by Randall in the comic. 108.162.216.94 13:18, 26 February 2018 (UTC)

agreed, JSFuck is not relevant in the explanation. moved it to the discussion (see below) Thawn (talk) 13:56, 26 February 2018 (UTC)
Instead of Python, one could use JSFuck though, which is valid JavaScript code - but written with only six different characters. Even mundane variable names like `LowestDenominator` will take up hundreds, if not thousands, of bytes in JSFuck. -- Comment Police (talk) (please sign your comments with ~~~~)

Off Topic: I just realized that statistical thermodynamics is nothing else than reverse molecule golf: The entropy of a given system is equal to the maximum score you can achieve in reverse molecule golf. Thawn (talk) 13:56, 26 February 2018 (UTC)

Someone made everyone's comments monospaced. Please fix this. 198.41.230.100 14:24, 26 February 2018 (UTC)

Fixed 162.158.155.26 15:52, 26 February 2018 (UTC)
They just wanted to play reverse comments golf with the comments section by making the comments take as much space as possible. 162.158.126.76 15:56, 26 February 2018 (UTC)