Skip to content

IdarV/short-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

short-code

This is a project where i try to list anagrams from a word list with the least amount of characters in different languages. This is called code golfing. Feel free to improve a language or add a new one, and send a pull request :)

In Linux, OSX and Windows(GitBash) you can count the file size with wc -c [filename]

Results:

  1. Ruby: 61
  2. Perl: 87
  3. Scala: 100
  4. Kotlin: 104
  5. Haskell 118
  6. Python: 122
  7. PHP: 133
  8. Javascript: 135
  9. R: 152
  10. Elixir: 239
  11. Go: 276
  12. Java: 333

Rules:

  • New languages should follow the same folder and naming conventions
  • All languages should have a readable example (how it would look as a readable, normal program)
  • New languages should have a information file containing language version and how to run the script
  • Passing the filename as an argument is allowed
  • The output have to comma seperate the words (see Example of expected output below)

Example of expected output:

canters, scanter, nectars
case
decimal, claimed, medical
alerted, treadle, related
calendar
chill
dealing, aligned
allergy, gallery
gravy
general, enlarge, gleaner
created, reacted
mitered, merited
topical, capitol
dormant
hardest, trashed, threads
instead, detains, sainted, stained
rerun
earnest, eastern, nearest
retards, darters, starred
blaze
landscape
gymnastic
exhibit
iron