RetroBASIC

Offtopic => Offtopic => Topic started by: Tomaaz on September 27, 2016, 10:05:47 PM

Title: Nim
Post by: Tomaaz on September 27, 2016, 10:05:47 PM
Nim has been recommended to me by John (ScriptBasic) while we were discussing Pike and I finally decided to try it.  I build it from source (in Ubuntu's repository there is still an older version) and the whole process was quick and easy. It seems to be fast and well documented. Has anyone tried Nim?
Title: Re: Nim
Post by: B+ on September 28, 2016, 03:24:28 AM
I have tried Nim, too clever for me.

Text based copy in SmallBASIC Code library:
http://smallbasic.sourceforge.net/?q=node/1613
Title: Re: Nim
Post by: ScriptBasic on September 28, 2016, 03:37:14 AM
Nim has been recommended to me by John (ScriptBasic) while we were discussing Pike and I finally decided to try it.  I build it from source (in Ubuntu's repository there is still an older version) and the whole process was quick and easy. It seems to be fast and well documented. Has anyone tried Nim?

There are a bunch of posts on the All BASIC forum about Nim lead by AIR in most cases. I wish he would chime in and say hi.
Title: Re: Nim
Post by: Tomaaz on October 07, 2016, 10:27:55 AM
I have tried Nim, too clever for me.

Text based copy in SmallBASIC Code library:
http://smallbasic.sourceforge.net/?q=node/1613

I was referring to the programming language called Nim (http://nim-lang.org/), not the game.  ;)

Unfortunately, like with many new/unpopular languages, problems appear when you want to go beyond the core library and use something external. It may be just a matter of time and soon using external library with Nim will be more straightforward, but at the moment it's to problematic (at least for me and on the Linux distro I use).
Title: Re: Nim
Post by: ScriptBasic on October 08, 2016, 02:18:18 AM
Nim is a translator to C and not a language in itself.
Title: Re: Nim
Post by: Tomaaz on October 08, 2016, 08:08:07 AM
Nim is a translator to C and not a language in itself.

Of course, it is a language in itself. I'm really surprised that someone with your experience and knowledge doesn't know the difference between a language (specification, syntax, philosophy behind it) and this language implementation (compiler/interpreter/translator).
Title: Re: Nim
Post by: ZXDunny on October 08, 2016, 08:53:26 AM
Heh, I'm surprised you lot took as long as you did to figure that one out. C is not a language! It's just a translator to asm!
Title: Re: Nim
Post by: Tomaaz on October 08, 2016, 08:56:27 AM
Heh, I'm surprised you lot took as long as you did to figure that one out. C is not a language! It's just a translator to asm!

 ;D
Title: Re: Nim
Post by: Cybermonkey on October 08, 2016, 02:21:13 PM
And ASM is a translator to binary code? 01000111100011100111  ;)
Title: Re: Nim
Post by: ScriptBasic on October 08, 2016, 05:34:16 PM
Nim is a translator to C and not a language in itself.

Of course, it is a language in itself. I'm really surprised that someone with your experience and knowledge doesn't know the difference between a language (specification, syntax, philosophy behind it) and this language implementation (compiler/interpreter/translator).

I'm surprised you missed my point.

Nim is a translator to C, JavaScript, ... with helper libraries to get that done.

I'm not surprised what you are willing to call a language. The landscape is littered with half baked BASIC attempts.
Title: Re: Nim
Post by: Tomaaz on October 08, 2016, 06:43:32 PM
I'm surprised you missed my point.

Nim is a translator to C, JavaScript, ... with helper libraries to get that done.

No, Nim is a language. nim.exe and nim are translators. BaCon is a language. bacon.bash and bacon (compiled bacon.bac) are BASIC to C translators. Tcl is a language, tclsh is a Tcl language interpreter. Python is a language. python is a Python language interpreter and pypy is a Python language JIT compiler.
Title: Re: Nim
Post by: ScriptBasic on October 08, 2016, 08:55:57 PM
@Tomaaz - Do you consider markdown a language?

Quote from: Paul
C is not a language! It's just a translator to asm!

I don't believe C translates to ASM before generating native machine code.
Title: Re: Nim
Post by: Tomaaz on October 08, 2016, 10:04:19 PM
@Tomaaz - Do you consider markdown a language?

Yes. Of course, it's not a programming language.

I don't believe C translates to ASM before generating native machine code.

Doesn't matter. It's still not a language in itself. It's a translator to machine code. ;)
Title: Re: Nim
Post by: ZXDunny on October 08, 2016, 10:58:55 PM
@Tomaaz - Do you consider markdown a language?

Quote from: Paul
C is not a language! It's just a translator to asm!

I don't believe C translates to ASM before generating native machine code.

That's implementation dependent. Many C compilers use "as" as a back-end assembler for their final build phase before linking.