In how many languages can you count to 10?
In how many languages can you count to 10?
Ok, Lemmy, let's play a game!
Post how many languages in which you can count to ten, including your native language. If you like, provide which languages. I'm going to make a guess; after you've replied, come back and open the spoiler. If I'm right: upvote; if I'm wrong: downvote!
Bonus question: do you ever do your counting in a non-native language, just to make it more interesting?
1. Python
2. R
3. C/C++
4. Java
5. Lua
6. Bash (Shell Script)
7. Batch (Windows Command Script)
8. Go
9. Rust
10. Zig
11. Scala
12. Fortran
13. Haskell
14. Julia
If you didn't cheat that's actually pretty impressive.
It is astonishingly easy to get basically any LLM to output a simple iteration from one to ten function in all of those languages, and more.
Here's Assembly:
Here's FORTRAN
Here's COBOL
Yes I cheated. To be fair, I used each of those languages at one point and knew how to do it but was to lazy to look it up again.
Edit: except Fortran
Nice. Surely you could manage Lisp (or Scheme)?
God. Haskell's monads give me nightmares.
I might be missing something, but don't most of these count from 0 to 10, not 1 to 10 as was requested?
Yes, that was on purpose
class CountToTen
is the perfect example of why I dislike Java.