Re: Noob question: proper way to read binary files byte by byte

2019-02-26 Thread vimal73700
Thank you for your wonderful suggestions. I finally ended by using memfiles as suggested by @cblake which improved (reduced) the runtime significantly, but if I may ask, does this (below code) load the entire file content into memory? var fs = newMemMapFileStream(paramStr(1), fmRead

Config file location for loadConfig

2019-02-26 Thread UxerUospr
Using `loadConfig("config.ini")` seems to want to look in the current directory (from where the binary is executed). Is it possible to have it always pull from where the binary actually is located or should I look at using something like `getConfigDir()` or environment variables? When I run it f

Re: Nim Language group in London

2019-02-26 Thread dom96
> For local groups and language advocacy it'd be sweet to get a hold of > SkillsMatter facilities also > ([https://skillsmatter.com/groups)](https://skillsmatter.com/groups\)). Ooh, that looks amazing. But I wonder how much they charge for these facilities

Re: Online Nim Compiler

2019-02-26 Thread Arrrrrrrrr
Speaking of which: [https://wandbox.org](https://wandbox.org) [https://play.nim-lang.org](https://play.nim-lang.org)

Re: defining `==` breaks Option

2019-02-26 Thread yglukhov
Wow, hit this post right after submitting [the fix](https://github.com/nim-lang/Nim/pull/10745) :)

Re: Nim Language group in London

2019-02-26 Thread juancarlospaco
[https://gettogether.community](https://gettogether.community) is an open source Meetup

Re: Nim Language group in London

2019-02-26 Thread graforlock
Great. What is the preferable platform these days? Meetup, Eventbrite or a better one? We have to have ability to print tickets etc.

Re: compile error in serial module, to hard to solve for newbe

2019-02-26 Thread woody
The author hasn't a solution yet. Can anybody around here help? Probably the spReadData proc in serialstream.nim needs only a small pragma. But I can figure it out.

seq memory layout / memory bookkeeping

2019-02-26 Thread Dettos
Yes, long observed this, you are right

Re: Problem getting the element type of a generic container

2019-02-26 Thread gemath
Any problem on Earth can be solved with the careful application of meta-programming. The trick is not to be around when the AST spec changes. :o) import macros type Range[V] = object v: V slice: Slice[int] var r: Range[seq[int]] = Range[seq[int]](v: @[0,