Re: Inplace type declaration at the time of usage

2018-02-21 Thread cdome
Thanks, Looks like what I need. I'll give it a try.

Re: Optimizing file I/O

2018-02-21 Thread KevinGolding
Getting back to the original question about the pagesize, this blog post perfectly illustrates the issue and gives a neat solution. [https://nim-lang.org/blog/2018/01/22/yes-command-in-nim.html](https://nim-lang.org/blog/2018/01/22/yes-command-in-nim.html)

Re: Inplace type declaration at the time of usage

2018-02-21 Thread def
Like this? template y: auto = type z = enum F1, F2, F3 z var a: set[y()]

Re: Discussion: Nim system integration (linux)

2018-02-21 Thread Demos
Ah didn't know that. Still I propose /usr/include/nim for packages that are handled by your system's package manager and not nimble. I figure nim doesn't need to look there by default, just encourage packagers to add it to the nim config. My meson work doesn't really use nimble at all, and I in

Re: Echo and UTF8

2018-02-21 Thread k1attila1
Thanks DOM96 and Araq This Works

Re: Echo and UTF8

2018-02-21 Thread Araq
Run this command in your console: `chcp 65001`

Re: Nim's status discussion

2018-02-21 Thread mratsim
Hey r3d9u11, Reel Valley was written from scrath in Nim and targeted all Facebook, Andorid and iOS from scratch. You can read the making of [here](https://yglukhov.github.io/Making-ReelValley-Overview/). What do you mean by multimedia? GUI or something else, Godot is more like a game engine, f

Re: Echo and UTF8

2018-02-21 Thread dom96
https://stackoverflow.com/questions/14109024/how-to-make-unicode-charset-in-cmd-exe-by-default

Re: Discussion: Nim system integration (linux)

2018-02-21 Thread dom96
Some relevant things: Nim already expects global Nimble packages in `/opt/nimble/pkgs` ([https://github.com/nim-lang/Nim/blob/devel/config/nim.cfg#L49](https://github.com/nim-lang/Nim/blob/devel/config/nim.cfg#L49)) This issue has a lot of relevant discussion [https://github.com/nim-lang/nimble

Discussion: Nim system integration (linux)

2018-02-21 Thread Demos
I've been thinking about how to use nim to write system libraries and create tightly integrated applications. There's a couple things that I think need to get done in nim and I'd like to request some comments. I've also been slowly adding nim support to meson, and lots of this stuff comes out o

Echo and UTF8

2018-02-21 Thread k1attila1
Hi I'm absolute beginner with NIM - this is my first day, so maybe my question is amateur. I tried the next : echo "kőrte" (file is UTF8) & Win10 But i always get : kĹ‘rte What's wrong with it ? Thank you Attila

Inplace type declaration at the time of usage

2018-02-21 Thread cdome
Hi Nim Lovers, Does anybody know the trick how to declare a type at the point of usage (not upfront as usual). In my case a need to declare enum at the point when I am declaring an enum set. Something like: var a: set[(enum F1, F2, F3)] In a real world, I am writing a macro

Re: Nim's status discussion

2018-02-21 Thread r3d9u11
Many thanks for your answer! Is [it a port for android](https://play.google.com/store/apps/details?id=com.onsetgame.reelvalley) of Real Valley that you noted? Can I ask, wich engine was used for this project? I'm looking for a good cross-platform multimedia engines, too. I'm found gotod bindin

Re: Nim's status discussion

2018-02-21 Thread mashingan
Another (more experienced) answers from others will follow: > Does standard library is stable for usage in the enterprise? Unless you do something magic with code for the project, IMO, it's safe > As I understand, Nim allows to use it's GC to manage memory automatically, or > to control it manu

Re: Optimizing file I/O

2018-02-21 Thread mratsim
I'm surprised no one mentionned this blog post: [Faster command line tools in Nim](https://nim-lang.org/blog/2017/05/25/faster-command-line-tools-in-nim.html) which is all about optimizing csv IO. I'm also very interested in the benchmarks of the relative solutions .

Re: Can we mimic the structure of how Go implements the OS apis for different kind of things ?

2018-02-21 Thread dom96
You mean `winlean`? That's not the "new" win api, it's the "lean" API. Maybe the full wrapper has what you need? [https://github.com/nim-lang/oldwinapi](https://github.com/nim-lang/oldwinapi)

Re: Optimizing file I/O

2018-02-21 Thread nvill
I had a similar problem [here](https://forum.nim-lang.org/t/1580) and i ended up using the parsecsv module. import parsecsv, streams, os, strutils proc main() = var pageSize: int = 4096 input = newFileStream(paramStr(1), bufSize = pageSize) outp

Can we mimic the structure of how Go implements the OS apis for different kind of things ?

2018-02-21 Thread malice
I have tried to check the new win api in Nim and it seems to be machine generated. I am missing some of the functionality like * svc manager * eventlog * the lsa / sid apis Maybe some others..

Nim's status discussion

2018-02-21 Thread r3d9u11
Hey, Nimers! I'm a novice in world of Nim, my generic/work languages is C/C++/C#, sometimes JS/Haxe as a hobbie. But also I was interested in Nim. Wich status of Nim? * Does standard library is stable for usage in the enterprise? * As I understand, Nim allows to use it's **GC** to manage me

nimue4: bidings to Unreal Engine 4 discussion.

2018-02-21 Thread r3d9u11
Hey all! Did somebody used [nimue4](https://github.com/pragmagic/nimue4) (bindings to Unreal Engine 4 for Nim) for the real projects? How well this is realized, is it worth starting a gaming project on this (mobile + html5)? Thanks!