Author Topic: Nim  (Read 706 times)

Tomaaz

  • Guest
Nim
« on: 28. September 2016, 00:05:47 »
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?

B+

  • Sr. Member
  • ****
  • Posts: 417
    • View Profile
Re: Nim
« Reply #1 on: 28. September 2016, 05:24:28 »
I have tried Nim, too clever for me.

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

John

  • Sr. Member
  • ****
  • Posts: 361
    • View Profile
Re: Nim
« Reply #2 on: 28. September 2016, 05:37:14 »
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.

Tomaaz

  • Guest
Re: Nim
« Reply #3 on: 07. October 2016, 12:27:55 »
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, 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).

John

  • Sr. Member
  • ****
  • Posts: 361
    • View Profile
Re: Nim
« Reply #4 on: 08. October 2016, 04:18:18 »
Nim is a translator to C and not a language in itself.

Tomaaz

  • Guest
Re: Nim
« Reply #5 on: 08. October 2016, 10:08:07 »
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).

ZXDunny

  • Full Member
  • ***
  • Posts: 130
    • View Profile
Re: Nim
« Reply #6 on: 08. October 2016, 10:53:26 »
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!

Tomaaz

  • Guest
Re: Nim
« Reply #7 on: 08. October 2016, 10:56:27 »
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

Cybermonkey

  • Administrator
  • Hero Member
  • *****
  • Posts: 573
    • View Profile
    • Home of EGSL
Re: Nim
« Reply #8 on: 08. October 2016, 16:21:13 »
And ASM is a translator to binary code? 01000111100011100111  ;)
Best regards,
Cybermonkey

John

  • Sr. Member
  • ****
  • Posts: 361
    • View Profile
Re: Nim
« Reply #9 on: 08. October 2016, 19:34:16 »
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.

Tomaaz

  • Guest
Re: Nim
« Reply #10 on: 08. October 2016, 20:43:32 »
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.

John

  • Sr. Member
  • ****
  • Posts: 361
    • View Profile
Re: Nim
« Reply #11 on: 08. October 2016, 22:55:57 »
@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.
« Last Edit: 08. October 2016, 23:53:40 by John »

Tomaaz

  • Guest
Re: Nim
« Reply #12 on: 09. October 2016, 00:04:19 »
@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. ;)

ZXDunny

  • Full Member
  • ***
  • Posts: 130
    • View Profile
Re: Nim
« Reply #13 on: 09. October 2016, 00:58:55 »
@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.