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

Explain xkcd: It's 'cause you're dumb.
Jump to: navigation, search
Line 6: Line 6:
  
 
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)
 +
  
 
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. [[Special:Contributions/108.162.216.94|108.162.216.94]] 13:18, 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. [[Special:Contributions/108.162.216.94|108.162.216.94]] 13:18, 26 February 2018 (UTC)
Line 12: Line 13:
  
 
:: Instead of {{w|Python (programming language)|Python}}, one could use {{w|JSFuck}} though, which is valid {{w|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.
 
:: Instead of {{w|Python (programming language)|Python}}, one could use {{w|JSFuck}} though, which is valid {{w|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.
 +
  
 
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. [[User:Thawn|Thawn]] ([[User talk:Thawn|talk]]) 13:56, 26 February 2018 (UTC)
 
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. [[User:Thawn|Thawn]] ([[User talk:Thawn|talk]]) 13:56, 26 February 2018 (UTC)

Revision as of 14:02, 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)

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.


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)