Ask HN: Beyond Hello World in multiple languages?

1 points by chrisBob ↗ HN
I work in a lot of different languages on a regular basis, and it can be hard to keep track of some of the syntax between Python, MATLAB, Swift, JS, R, C++, ...

Does anyone have a good resource for "Hello World" type examples in multiple languages that go a little beyond `print("hello world");`?

I would be happy to start with code that at least includes a function definition and a for loop, but my eventual goal would be to fill about 1 page of code in each language with the most common actions.

Does something like this exist? I don't want to recreate it if someone can point me to a good existing project.

Thanks!

6 comments

[ 2.4 ms ] story [ 10.3 ms ] thread
You might be interested in https://hyperpolyglot.org/
That is interesting and certainly has all of the pieces I am looking for. This project isn't anywhere near what I want for a final result, but would make the pieces easy to find as I am putting it together.
Maybe not a starting point because it’s too advanced, but Make A Lisp has example implementations for +80 languages now: https://github.com/kanaka/mal
That is an interesting advanced project, but it is hard to find a consistent 1-page section in all of the languages.