Get the latest tech news

Polyglot Maxxie and Minnie


Continuing my theme of learning all the languages, I took the opportunity of a programming puzzle to try out the same approach in a handful of different languages to compare how they work.

I ended up using R, (Dyalog) APL, Julia, Haskell, Python, and Rust; someone provided a J solution; and I’ll add in any others shared with me. Try pasting the code into the{webr} online editor here; I’m not sure if it’s possible to link to an existing state, but when it asks if you want to install {purrr} to the interface, respond that you do. I’m no stranger to the quirks of different languages, but every time I try to do something functional in python I end up angry that the print method for generators shows the memory address instead of, say, the first few elements.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Minnie

Minnie

Photo of Polyglot Maxxie

Polyglot Maxxie

Related news:

News photo

Mickey, Minnie, Donald and Goofy file for union vote at Disneyland