3 ms·
It does have a REPL called inim. It seems OK, but I'm not sure how it compares to python/julia if you're a REPL power user.
by badjeans 6y ago
It does have a REPL called inim. It seems OK, but I'm not sure how it compares to python/julia if you're a REPL power user.
- ziotom78 6y agoIt's much rougher IMO. It has no autocompletion yet [0], and you cannot copy-and-paste code in it like IPython and Julia's REPL, as it does not respect the original indentation. (Tried to copy-and-paste the first example in Nim's webpage [1] and it failed because it inserted indentation at wrong places.) For the record, IPython has the `%paste` command, and Julia's REPL automatically detects when code is being pasted (this would however be less relevant, since Julia's language is not indent-based). I am not sure if it supports plotting libraries à la matplotlib, however. If it has this capability, it might be still interesting in its present state. [0] https://github.com/inim-repl/INim/issues/14 https://github.com/inim-repl/INim/issues/14 [1] https://nim-lang.org/ https://nim-lang.org/
- cb321 6y agoA plotting library: https://github.com/Vindaar/ggplotnim https://github.com/Vindaar/ggplotnim
- ziotom78 6y agoThanks for the link! Do you know if "inim" supports it (like IPython with matplotlib)? I believe this is the important point when comparing the REPL experience in Nim vs Python/Julia.
- cb321 6y agoI am not an INim user. [0] covers INim as of a few months ago, though. You might need to write to a .jpg and point a web browser at it, but perhaps that could be made auto-magic (EDIT: or is already). [0] https://www.youtube.com/watch?v=Qa_9vut4TzQ&list=PLxLdEZg8DRwTIEzUpfaIcBqhsj09mLWHx&index=4 https://www.youtube.com/watch?v=Qa_9vut4TzQ&list=PLxLdEZg8DR...