how to increase velocity for merging PRs?

2021-03-06 Thread Hlaaftana
A lot of recent PRs have been minor refactoring/documentation fixes though, some of which explode line counts despite how simple they are (like single backticks). Standard library inclusions also usually mostly help to save lines from user code because they get written a lot, which would also im

How to segment the code into different files?

2021-03-06 Thread kobi
if you're new to Nim, perhaps you don't know about making a proc public? add * to the proc name

need help about a proxy server

2021-03-06 Thread humbertomcneary
I have a similar problem, can someone help?

how to increase velocity for merging PRs?

2021-03-06 Thread timothee
Revisiting this thread after 2 years: Some interesting stats on number of PR's merged etc over past 30 days, for several popular language's github repos: Nim isn't doing too bad compared to other languages; but we should continue encouraging mor

How to embed objects in another objects

2021-03-06 Thread hugogranstrom
You're welcome :)

How to embed objects in another objects

2021-03-06 Thread SebastianM
It works! I'm back on track. Thank you for your answer.

How to segment the code into different files?

2021-03-06 Thread mrhdias
Thanks @exelotl works. It is amazing. So it is much easier to manage the code as in php.

How to segment the code into different files?

2021-03-06 Thread exelotl
Hey! Yes, Nim has an `include` keyword which behaves much like in C or PHP. See: [include statement](https://nim-lang.org/docs/manual.html#modules-include-statement) So you could do this: import fastkiss import tables from strutils import `%` include "routes/func

How to segment the code into different files?

2021-03-06 Thread mrhdias
I created a simple web framework that uses the FastCGI protocol and works well. But, it is being complicated to manage so many route functions in a single file. I was wondering if there is a keyword in Nim like in php to insert code from another file in the main code. Example: im

Channel / Actors based parallelism? Are there such Web Servers?

2021-03-06 Thread alexeypetrushin
> What's your reasoning for disliking the Async approach? Is it specifically > Nim's implementation of it or do you dislike async I/O in general? I dislike Async in general. Used it for many years in JavaScript UI and Node.JS Web Servers. It works more or less well in JS, because it's the only

How to embed objects in another objects

2021-03-06 Thread hugogranstrom
When you initilize your car it expects you to pass in an object of type `Battery` to the electric car's `battery_size` parameter (because that is what you defined it to be). So you must wrap your `70` in a `Battery` object like this: var c = ElectricCar(year: 2019, battery_size: B

How to embed objects in another objects

2021-03-06 Thread SebastianM
Hi guys, I'm seriously learning Nim with the help of tutorials, manual and Python Crash Course (currently page 234 - Instances as Atributes). so i created type Battery, and type electric Car and try to embeed battery into car so I could set it when creating new car. But it fails with type misma

Advice on using linenoise?

2021-03-06 Thread timothee
cross referencing (please always cross-reference both ways): fixed in