Re: Min: a Nim-based minimalist, concatenative, functional REPL & script lang
**Note to admin**: that post is a full copy of the first (_Libman_'s) post, after the first 2 words.
Re: Min: a Nim-based minimalist, concatenative, functional REPL & script lang
Nice Concept : It was announced on Reddit but not here, whereas I would like to encourage everyone to give priority to this forum instead... So, to get the conversation here going, here's about five minutes worth of my random thoughts about Min: Much of this concat theory stuff is over my head right now, but right off the bat I was able to have some simple RPL fun in the Min REPL shell. Looking at the Min lib code shows how easy it is to wrap Nim code and export it to Min. But examples of how Min can be used (so far just within the hastysite SSG) are very simplistic. It would be interesting to have a discussion on what role Min can have within the Nim development ecosystem. As an imperative philistine, I currently don't understand its value beyond getting a conceptual understanding of a different seldom-used programming paradigm. I do understand the value of having scripting logic in run-time configuration files (especially for large programs like text editors and games), but in what situations is Min preferable to embedding Lua, JS, Python, etc? [aplikasi keuangan](https://www.finansialku.com/aplikasi-keuangan-finansialku/) This is a second homoiconic interpreted language I've heard about written in Nim (not counting NimScript). The first was Spry [GH] (inspired by Smalltalk and Rebol, formerly known as Ni). Let me know if I missed any others. It would be interesting to discuss how they compare.
Min: a Nim-based minimalist, concatenative, functional REPL & script lang
I just came across ** [Min](https://min-lang.org) ** [[GH]](https://github.com/h3rald/min), a [concatenative](https://en.wikipedia.org/wiki/Concatenative_programming_language#Implementations) scripting language written in Nim by [Fabio](https://github.com/h3rald). * * * EMPHASIS ON MAIN LINK: [MIN-LANG.ORG](https://min-lang.org) * * * It was [announced on Reddit](https://www.reddit.com/r/nim/comments/6qkzd9/min_programming_language_implemented_in_nim/) but not here, whereas I would like to encourage everyone to give priority to this forum instead... So, to get the conversation here going, here's about five minutes worth of my random thoughts about Min: * Much of [this concat theory stuff](http://evincarofautumn.blogspot.it/2012/02/why-concatenative-programming-matters.html) is over my head right now, but right off the bat I was able to have some simple [RPL](https://en.wikipedia.org/wiki/Reverse_Polish_notation) fun in the Min [REPL shell](https://en.wikipedia.org/wiki/Read–eval–print_loop). * Looking at the [Min lib code](https://github.com/h3rald/min/tree/master/lib) shows how easy it is to wrap Nim code and export it to Min. But examples of how Min can be used (so far just [within the hastysite](https://github.com/h3rald/hastysite/tree/master/scripts) SSG) are very simplistic. * It would be interesting to have a discussion on what role Min can have within the Nim development ecosystem. As an imperative philistine, I currently don't understand its value beyond getting a conceptual understanding of a different seldom-used programming paradigm. I do understand the value of having scripting logic in run-time configuration files (especially for large programs like text editors and games), but in what situations is Min preferable to embedding [Lua](https://github.com/nim-lang/lua), JS, [Python](https://github.com/jboy/nim-pymod#what-about-calling-python-from-nim), etc? * This is a second homoiconic interpreted language I've heard about written in Nim (not counting [NimScript](https://nim-lang.org/docs/nims.html)). The first was [Spry](http://sprylang.org) [[GH]](https://github.com/gokr/spry) (inspired by Smalltalk and Rebol, formerly known as [Ni](http://goran.krampe.se/2016/04/08/ni-is-now-spry/)). Let me know if I missed any others. It would be interesting to discuss how they compare.
Re: REPL?
@Fungi: Scala and Haskell are both compiled languages that have REPLs. But I can only speculate how they got it to work.
Re: REPL?
@Fungi: Here is a [C++ repl](https://root.cern.ch/cling)
Re: REPL?
Krux02, that is exactly right. As we know, Nim is a fully compiled language (but also supports some runtime features), I haven't seen any REPL for any compiled languages. It is the"eval" part that needs runtime and/or an interpreter, this is a basic REPL in Lisp: (loop ( print ( eval ( read
Re: REPL?
just that you know it, the repl is not the compiled part of the language at all. The repl is the functionality of the language that you have, when you execute code in a static block, therefore it is bytecode compiled and interpreted, similar to python. The bytecode part has a lot of bugs, and therefore your experience might be a bit frustrating. That might be the reason why it is hidden.
Re: REPL?
The VM doesn't handle all Nim imports (but as per nimscript?).
Re: REPL?
@stisa, Why you didn't you say you are serious? I swear I thought you are joking with nim secret, and today when I just typed nim secret I totaly shocked! A REPL FOR A COMPILED LANGUAGE! I love you, REPL.
Re: REPL?
The repl is hidden in `nim secret`, I think because it's not really stable.
Re: REPL?
I have updated the rosettacode page.
Re: REPL?
Why can't compiled languages have a REPL? They don't have any sins
Re: REPL?
That functionality is no longer valid. There are some quasi REPL offerings in nimble (compile and run in the background?)
REPL?
My salution to Nim communtiy. I was very shocked when I saw a Nim REPL (aka Interactive mode) in rosetacode when I was exploring things, find it here [rosettacode.org/wiki/Interactive_programming#Nim](https://forum.nim-lang.org/postActivity.xml#rosettacode-org-wiki-interactive-programming-nim) I have not seen anything about REPL in the documentations. Unfortunatley, my desktop is at the maintenance now, but I am very excited to use it if it is stable and real!
Re: REPL
https://github.com/wheineman/nrpl/issues/11
REPL
Hello, I am trying to compile [https://github.com/wheineman/nrpl](https://github.com/wheineman/nrpl) but I got the following error: nrpl.nim(116, 42) Error: attempting to call undeclared routine: 'map'. TCC is installed and in my windows path. Cheers