Skip to content

Write code in the smallest amount of bytes possible

Notifications You must be signed in to change notification settings

daniero/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. R: 152
  8. Javascript: 138
  9. Elixir: 239
  10. Go: 276
  11. 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

About

Write code in the smallest amount of bytes possible

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 23.1%
  • Go 15.1%
  • Elixir 9.5%
  • JavaScript 8.3%
  • Perl 7.7%
  • R 7.1%
  • Other 29.2%