https://github.com/observeroftime/7segmentdisplays
What's the longest word you can write with seven-segment displays?
https://github.com/observeroftime/7segmentdisplays
benchmarks example-code hacktoberfest multilanguage seven-segment-display tom-scott
Last synced: about 1 month ago
JSON representation
What's the longest word you can write with seven-segment displays?
- Host: GitHub
- URL: https://github.com/observeroftime/7segmentdisplays
- Owner: ObserverOfTime
- License: other
- Created: 2018-11-10T18:03:58.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-08-28T06:53:29.000Z (10 months ago)
- Last Synced: 2025-04-01T02:48:29.289Z (3 months ago)
- Topics: benchmarks, example-code, hacktoberfest, multilanguage, seven-segment-display, tom-scott
- Language: Shell
- Homepage: https://observeroftime.github.io/7SegmentDisplays/
- Size: 1.47 MB
- Stars: 5
- Watchers: 1
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# 7SegmentDisplays [](https://github.com/ObserverOfTime/7SegmentDisplays/actions/workflows/build.yml)
Print the longest [English word(s)][words] that can be written with a [Seven-segment display][SSD].
Based on Tom Scott's [The Basics S2E1][TB21] and implemented in multiple languages.[words]: https://github.com/dwyl/english-words
[SSD]: https://en.wikipedia.org/wiki/Seven-segment_display
[TB21]: https://www.youtube.com/watch?v=zp4BMR88260## Languages
These are the currently implemented languages:
* [Awk](Awk/Awk.awk)
* [Bash](Shell/Bash.sh)
* [C](C/C.c)
* [C++](C/C++.cpp)
* [C#](CSharp/C%23.cs)
* [CMake](CMake/CMake.cmake)
* [CoffeeScript](JavaScript/CoffeeScript.coffee)
* [Crystal](Crystal/Crystal.cr)
* [D](D/D.d)
* [Dart](Dart/Dart.dart)
* [Elixir](Erlang/elixir.ex)
* [Erlang](Erlang/erlang.erl)
* [Fennel](Lua/Fennel.fnl)
* [Gawk](Awk/Gawk.awk)
* [Go](Go/Go.go)
* [Groovy](Java/Groovy.groovy)
* [Java](Java/Java.java)
* [JavaScript](JavaScript/JavaScript.js)
* [Julia](Julia/Julia.jl)
* [Kotlin](Java/Kotlin.kt)
* [LiveScript](JavaScript/LiveScript.ls)
* [Lua](Lua/Lua.lua)
* [MySQL](SQL/MySQL.sql)
* [Nim](Nim/Nim.nim)
* [Octave](Octave/Octave.m)
* [Pascal](Pascal/Pascal.pas)
* [Perl](Perl/Perl.pl)
* [Perl6](Perl/Perl6.p6)
* [PHP](PHP/PHP.php)
* [PostgreSQL](SQL/PostgreSQL.sql)
* [PowerShell](Shell/PowerShell.ps1)
* [Python](Python/Python.py)
* [R](R/R.r)
* [Ruby](Ruby/Ruby.rb)
* [Rust](Rust/rust.rs)
* [Scala](Java/Scala.scala)
* [Sh](Shell/Sh.sh)
* [SQLite](SQL/SQLite.sql)
* [TypeScript](JavaScript/TypeScript.ts)
* [Vala](C/Vala.vala)
* [VimL](VimL/VimL.vim)
* [Zsh](Shell/Zsh.sh)To add an implementation in a new language,
or improve an existing implementation,
check [CONTRIBUTING](CONTRIBUTING.md).## Tests
Tests are included in [`t/tests.t`](t/tests.t). To run them
(`make test`) you will need `perl` with the [`JSON::Parse`][JP]
module, and a compiler/runtime environment for every language.[JP]: https://metacpan.org/pod/distribution/JSON-Parse/lib/JSON/Parse.pod
## Benchmarks
You can see the current benchmarks in [BENCHMARKS](BENCHMARKS.md).
To run your own benchmarks (`make bench`) you will need [hyperfine][hf],
and a compiler/runtime environment for every language.[hf]: https://github.com/sharkdp/hyperfine
## Credits
* [Tom Scott][Tom Scott] for the idea and original implementation.
* [dwyl][dwyl] for the English dictionary ([words.txt](words.txt)).[Tom Scott]: https://twitter.com/tomscott
[dwyl]: https://github.com/dwyl/english-words/graphs/contributors## TODO
* [**More languages.**](https://github.com/ObserverOfTime/7SegmentDisplays/issues/3)
## License
Licensed under [GLWTPL](LICENSE.txt).