Re: GTK 3.20 Nim wrapper

2016-10-30 Thread Stefan_Salewski
You may try first

[https://github.com/ngtk3/nim-chess2](https://github.com/ngtk3/nim-chess2)

The readme contains the instructions, which I tested recently with Nim v 0.15.2 
on Linux.

For Linux you can copy the commands to a file and run the script, bash 
script.sh.

I know that it does not work for OSX, can not help. Of course a nimble install 
would be more nice, but I can not provide that currently, and I think there are 
indeed no users.


Re: GTK 3.20 Nim wrapper

2016-10-30 Thread vlad1777d
How to make it work? (I'm a newbie in this)

test.nim(1, 8) Error: cannot open 'gtk3'

I downloaded from github archive and tried to compile: nim c 
'/home/vlad/Programs/programming/libraries/Nim/nim-gtk3-master/test/test.nim'


Re: Nim in Action is now available!

2016-10-30 Thread Stefan_Salewski
> IMO your rewording of the explanation of forward declaration also leaves 
> something to be desired.

Yes, it is difficult to explain, for me, in english. I just tried, as only 
complaining is sometime too easy.

For the forward declaration, I think there is already a secret pragma to make 
it unnecessary, I once tried it, was working, but have never really used it. 
Relaxing forward declarations was mentioned a few times, some people would 
really love it. Recently someone in IRC talked about new problems when forward 
declarations would be relaxed, I think it was related to templates or macros 
and their order 


Re: Nim in Action is now available!

2016-10-30 Thread bpr
@Stefan_Salewski

IMO your rewording of the explanation of forward declaration also leaves 
something to be desired. I'd immediately introduce the distinction between 
`declaration` and `definition`, and then introduce Nim's rules, hint at why 
they make sense, and mention the **possibilty** that they may be relaxed in the 
future. In your explanation you contradict yourself by first saying

> it has to be defined in advance

when really it has to be at least declared in advance, and then saying

> When it is necessary to call a procedure before it can be defined

after you've just declared (ha!) that that can't be done. By making the 
distinction clear at the outset I think the explanation is simpler and more 
accurate.

BTW, I don't see in todo.txt any mention of the relaxation of forward 
declaration rules. One of the off-putting aspects of Nim's development model 
IMO is the lack of visibility into the priorities and future plans. Following 
forum posts and IRC chats is not a realistic option; it would be great if the 
book could point to a place where all of these future issues are discussed.

Looking forward to holding the physical book in my hands (yeah I'm old 
fashioned) and seeing Nim reach a 1.0 milestone soon. 


Re: Nim in Action is now available!

2016-10-30 Thread dom96
@StefanSalewski My editor assured me that the book will be copyedited 
thoroughly by Manning. I am currently looking for factual issues or misleading 
sentences. You mentioned some of those, but unfortunately I disagree with most 
of them.

I will consider improving the explanation of forward declarations in chapter 2 
if the other chapters don't teach it sufficiently well.


Re: Nim in Action is now available!

2016-10-30 Thread dom96
In case anybody is still looking to purchase [the 
book](https://www.manning.com/books/nim-in-action?a_aid=niminaction&a_bid=78a27e81),
 code `wm103016lt` will get you half off today!