Linux + Opera here: After one has inputted a fifth line, the window will scroll to the top whenever one presses a key to type a statement.
I appreciate the effort by people creating repls for various languages. It was a similar repl for Haskell that was my entry point into Haskell and the wonderful world of functional programming.
I have always been frustrated by tutorial REPLs that make me copy and paste example codes. I simply don't write them manually to CLI and I believe many people do so. Therefore maybe a link to directly paste and execute code on tutorial steps would be quite useful. Like "run this".
Nice to see this submission getting traction, especially given that the first submission got none at all. Clever of llambda to use the trailing question mark on the URL to confound PG's duplicate detection mechanism.
So just to give you some background. In any Lisp, when you evaluate a list, the first element is treated as an operator, and the remaining items are treated as arguments. Moreover, there is no distinction between graphic characters or alphabetic characters for the purposes of defining variable names. So '+' is a valid name for a variable (which is bound to the addition function), and so is '+3'. So without the space, it thinks you are trying to call the function '+3' with the argument '3'.
And when I click the tutorial's "(+3 3)" grey box, it inserts what looks like no space between the + and 3, and lo and behold, it works (6). And when I type it in now with no space (+3 3) it works too. :/
I found it fun to see division results returned as fractions. Has anyone here switched from Python to Clojure for data analysis? What has been their experience?
Not recommended. Matrix multiplication is really slow, even with Incanter. I doubt you'll get very far with data analysis without multiplying a few matrices so avoid.
I'm in the process right now. I didn't want to use Incanter since I don't like the kitchen sink reinvent R style, but there aren't any Clojure-esque matrix libraries around.
You, flatly, gain the language advantages of Clojure but have absolutely none of the Numpy/Matlab/R-like environments.