Weird import issue

2021-08-11 Thread solo989
Your example isn't generic. Replace this proc text*(page: var Page, text: string): void = page.page.add (text: text).to_json proc image*(page: var Page, data: JsonNode): void = page.page.add (image: data).to_json Run with this proc

Help with saving model - Arraymancer

2021-08-11 Thread Niminem
Will do Araq

Help with saving model - Arraymancer

2021-08-11 Thread Araq
Please also create a PR improving arraymancer's documentation.

Help with saving model - Arraymancer

2021-08-11 Thread Niminem
Because someone, someday may have this problem: In order to save/load weights and biases of your model, you'll first need to define these manually- 1. Layer types 2. Network type 3. weight and bias initializations 4. Network init proc 5. forward proc working test example:

what is positive number in nim called

2021-08-11 Thread ynfle
`abs` in nim uses `float``s not ``int` and `uint` can accept 0.

Nim earns mention in the news (unfortunately?)

2021-08-11 Thread tmsa04
The article talks about droppers and loaders. The malware could be some binary catted to a txt file then encrypted and hidden in something else which gets unpacked by the dropper, or it might be downloaded at a later stage from elsewhere. The nim code could be delivered uncompiled and the user i

what is positive number in nim called

2021-08-11 Thread tmsa04
An absolute number is the distance of a number from 0. 0 is 0, 1 is 1, -1 is 1. abs is often used to make all numbers positive.

Weird import issue

2021-08-11 Thread alexeypetrushin
> Please have a look at > Thank you! As far as I understand the example above should work then? Because `to_json` (defined in std/jsonutils) is a **generic** that uses overloaded **open symbol** `to_json_hook` (defined

Help with saving model - Arraymancer

2021-08-11 Thread Niminem
For those of you working with Arraymancer, Can someone show me an example of saving and loading a model? I've been banging my head against a wall all day trying to figure this out lol. I could careless if it's csv, numpy file, etc. I just have a DQN model that's training properly and I want to

what is positive number in nim called

2021-08-11 Thread Yardanico
You're a bit wrong - a **positive** number is Positive, Natural also includes 0 which is not a positive number :)

what is positive number in nim called

2021-08-11 Thread Kalbhairab
thanks it is Natural.

Nim is just so great, works first try

2021-08-11 Thread martin
AMEN to that! works like a charm

Weird import issue

2021-08-11 Thread Araq
Please have a look at

Love nim but at the same time starting to hate it...

2021-08-11 Thread Araq
> this thing works like a charm compared to just about anything I ever saw Thank you! It's been 5 years of improvements. ;-)

Love nim but at the same time starting to hate it...

2021-08-11 Thread martin
Well, as a two day newbie, I can tell it still sucks in this field. When I learned pascal three decades ago, I did so completely from the builtin help. Coming from php lately, I sorely miss more examples of real world usage.. getting query string, parsing it, doing anything useful with it. To be

what is positive number in nim called

2021-08-11 Thread juancarlospaco
https://nim-lang.github.io/Nim/system.html#Positive

convert methods to input

2021-08-11 Thread Kalbhairab
https://images.app.goo.gl/Hq55SMQkGhN25HEU7

what is positive number in nim called

2021-08-11 Thread Kalbhairab
as int and float support -ve and positive value. what pure positive number is called in nim. I have read somewhere but forget.

Generic way to set discriminant value that works on both C and VM backends

2021-08-11 Thread haxscramper
I decided to publish RFC with this and earlier example

convert methods to input

2021-08-11 Thread juancarlospaco
I do not understand the question, but check Fidget...

convert methods to input

2021-08-11 Thread Kalbhairab
lets take a function proc button*(width,height:float): float = ... name is only for illustration i want to know a method which makes input in gui style and convert it to proper way as in case of gui designer properties width: [.] height: [.] here [] is text input or combob

compiling and running nim progam via wine on osx: almost works, help welcome

2021-08-11 Thread timothee
=> see PR