Cross compilation on windows x64 bit machine for windows x86 bit machine nim

2018-07-19 Thread frogEye
How can I compile for windows x86 bit machine on windows x64 bit machine?

Re: Compiling nim/ui in linux

2018-03-22 Thread frogEye
Araq I checked again to see if that issue exist but now I am not able to replicate it. It happend when I was setting up my workspace in a new linux machine. Cant say for sure wt happened but it does work now.

nim/ui

2018-03-15 Thread frogEye
Hi have been working with nim/ui for a month or so now. I can see a peice of code in which I dnt understand in the wrapper. proc `margined=`*(t: Tab; page: int; x: bool) = tabSetMargined(t.impl, page.cint, cint(x)) and how to use it. The signature resembles to operator

Compiling nim/ui in linux

2018-03-15 Thread frogEye
I have developed a Tool for managing my driver using nim/ui. There two options below which i used to compile my tool on linux. 1\. nim c --cc:gcc --threads:on driver.nim 2\. nim c --threads:on driver.nim option 2 works but option 1 doesnt compile the libui library. Its strange anyways gcc

Re: Concatenate string and int

2018-01-29 Thread frogEye
@Stefan_Salewski, I was trying to read a num value from jsonNode using proc getNum(n: JsonNode; default: BiggestInt = 0): BiggestInt {..} which is a part of json module. Hence when you concatenate without converting it to string it doesn't work. As I am new to nim I thought I

Re: Concatenate string and int

2018-01-29 Thread frogEye
It will never work fine. As & operator doesn't work with integers. Integer need to be stringified. echo "abc" & $2 the above one works. Just figured that out.

Concatenate string and int

2018-01-29 Thread frogEye
I want to concatenate a string and int. I tried doing echo "abc" & 2 But it doesn't seem to work. One possible solution is to convert int to string and then do the concatenation. But the value which I have is BigInt not int. So conversion is not possible.

Re: Json key names encoding

2018-01-29 Thread frogEye
Thanks @dom96

Re: Json key names encoding

2018-01-25 Thread frogEye
Thanks yglukhov for the reply. It just an observation as I have just started with nim-lang. So may be I was looking at things which I could do really fast in go to be in nim. I will take some time to get used to nim

Re: Json key names encoding

2018-01-25 Thread frogEye
Thanks, dom96 . But still, the ease with which we can unmarshal and marshal json into a data structure in Go-lang is uncomparable.

Json key names encoding

2018-01-24 Thread frogEye
I have looking for a way to encode the json keys, but has not been able to find anything on that. For example Go lets us do this type Response2 struct { Page int json:"page" Fruits []string json:"fruits" } I want to unmarshal a json object but not able to encode the json keys. As my key

Re: Thread vs Async for long running task

2017-12-02 Thread frogEye
No I am using this. But I have a driver written in nim which uses thread extensively. I making a tool to give a UI interface to the driver. So when click many UI widgets the UI frezzes as the firmware takes time to get the status of the device. So I am not able to decide what is write way to do

Thread vs Async for long running task

2017-11-29 Thread frogEye
I working with libui-nim wrapper. On some event in UI, I need to perform a long-running task let say it takes 5s and then update UI accordingly. What is the recommended way to do that nim?

Re: nim-lang ui not working with vcc on windows

2017-11-20 Thread frogEye
I have the solution. It was a silly mistake. I had placed libui library at the wrong place. Thanks for the response.

Re: nim-lang ui not working with vcc on windows

2017-11-20 Thread frogEye
To which folder did u copy the libui.h file? I have cloned the libui from git completely into my repository and it exists in the UI folder.

nim-lang ui not working with vcc on windows

2017-11-16 Thread frogEye
I am trying to run nim-lang ui wrapper for libui on windows. I am using vcc compiler as suggested by araq on git [nim-lang ui !](https://github.com/nim-lang/ui) But I am getting issues while trying to run it. "C:\Windows\system32\cmd.exe" /C ""C:\Program Files (x86)\Microsoft

cannot import windows

2017-11-13 Thread frogEye
I have installed oldwinapi and it exists in .nimblepkgs folder. But when I am trying to import windows its giving me an error as Error: cannot open 'windows' Run Any help will be highly appreciated.

Re: ANSI vs ASCII in Windows Shells?

2017-11-08 Thread frogEye
I have installed oldwinapi and it exists in .nimblepkgs folder. But when I am trying to import windows its giving me an error as Error: cannot open 'windows' Any help will be highly appreciated.

Re: Nimble: Refresh failed

2017-11-08 Thread frogEye
Thanks. I figured out that yesterday and nimble got installed. But still nimble refresh wont work. Do we have any fix for it?

Re: Nimble: Refresh failed

2017-11-07 Thread frogEye
I have placed packages.json in .nimble folder but I am still getting the same problem.