Nim Days: Day 17 Building Sonic Client in Nim

2019-10-11 Thread aredirect
It's one of the projects I never documented [https://xmonader.github.io/nimdays/day17_nimsonicclient.html](https://xmonader.github.io/nimdays/day17_nimsonicclient.html) there's a space for improvement including utilizing a connection pool (I've already implemented that in python) if any takers.

最新俄克拉荷马大学OU文凭学历证书Q/微936794295

2019-10-11 Thread ksdjfklllsdfkld03
Q薇936794295 留学生归国服务中心办理留学生英国毕业证文凭,留学生美国毕业证文凭,留学生加拿大毕业证文凭,留学生澳洲毕业证文凭,留学生新西兰毕业证学历,留学生新加坡毕业证学历,留学生德国毕业证学历,留学生法国毕业证学历,留学生荷兰毕业证学历,留学生意大利毕业证学历,留学生奥地利毕业证学历,留学生日本毕业证学历,留学生韩国毕业证、留学生瑞士毕业证学历等国家提供真实大使馆认证,学历认证,网上可查永久存档,实体公司注册经营,质量保证,可视频看样本工艺质量,接受面谈。 留学生提供以下服务: 一、办理毕业证成绩单(学校原版1:1高仿真制作) 二、使馆认证(留学回国人员证明,大使馆存档可查,

最新俄克拉荷马大学OU文凭学历证书

2019-10-11 Thread ksdjfklllsdfkld03
Q薇936794295 留学生归国服务中心办理留学生英国毕业证文凭,留学生美国毕业证文凭,留学生加拿大毕业证文凭,留学生澳洲毕业证文凭,留学生新西兰毕业证学历,留学生新加坡毕业证学历,留学生德国毕业证学历,留学生法国毕业证学历,留学生荷兰毕业证学历,留学生意大利毕业证学历,留学生奥地利毕业证学历,留学生日本毕业证学历,留学生韩国毕业证、留学生瑞士毕业证学历等国家提供真实大使馆认证,学历认证,网上可查永久存档,实体公司注册经营,质量保证,可视频看样本工艺质量,接受面谈。 留学生提供以下服务: 一、办理毕业证成绩单(学校原版1:1高仿真制作) 二、使馆认证(留学回国人员证明,大使馆存档可查,

OU文凭学历证书

2019-10-11 Thread ksdjfklllsdfkld03
Q薇936794295 留学生归国服务中心办理留学生英国毕业证文凭,留学生美国毕业证文凭,留学生加拿大毕业证文凭,留学生澳洲毕业证文凭,留学生新西兰毕业证学历,留学生新加坡毕业证学历,留学生德国毕业证学历,留学生法国毕业证学历,留学生荷兰毕业证学历,留学生意大利毕业证学历,留学生奥地利毕业证学历,留学生日本毕业证学历,留学生韩国毕业证、留学生瑞士毕业证学历等国家提供真实大使馆认证,学历认证,网上可查永久存档,实体公司注册经营,质量保证,可视频看样本工艺质量,接受面谈。 留学生提供以下服务: 一、办理毕业证成绩单(学校原版1:1高仿真制作) 二、使馆认证(留学回国人员证明,大使馆存档可查,

Newbie question: downloading multiple files using async httpclient

2019-10-11 Thread deepakg
Hello everyone! I am trying to make a bunch of http calls using the async http client. Code: import httpClient, asyncdispatch proc downloadAll(urls: seq[string]) {.async.} = var client = newAsyncHttpClient() for url in urls: var future = client.get(url)

Re: Safety of staticRead and StaticExec?

2019-10-11 Thread cheatfate
Currently staticRead/staticExec do not have any limitations, but security of this procedures can be fixed with limitations, e.g. limited to project directory, absolute paths and so on.

Re: Newbie question: downloading multiple files using async httpclient

2019-10-11 Thread filcuc
I dont like async/await and I'm no expert but I would have thought that correct way was to send all the requests, collect the futures in a sea and then await all the futures...

Re: Newbie question: downloading multiple files using async httpclient

2019-10-11 Thread deepakg
So I changed it a little: proc downloadAll(urls: seq[string]) {.async.} = var client = newAsyncHttpClient() var futures = newSeq[Future[string]]() for url in urls: var future = client.getContent(url) futures.add(future) var results = awai

FOSDEM Call for Participation

2019-10-11 Thread PMunch
We are excited to announce a devroom on minimalistic, experimental and/or emerging languages (with big ideas) at FOSDEM on Sunday February 2nd 2020! FOSDEM is one of the most important free software conferences and is hosted annually at Université libre de Bruxelles in Brussels, Belgium. FOSDEM

Re: FOSDEM Call for Participation

2019-10-11 Thread PMunch
This room is a merger of our proposed "Emerging languages" devroom, and the "Minimalistic languages" devroom from last year :)

Define a procedure on a type itself ?

2019-10-11 Thread ducdetronquito
Hi everyone, I am wondering if it is possible to define a procedure on a type itself ? Coming from the Python world, it would be called a _class method_ or a _static method_. I really like to use this kind of syntax to create objects, and in Nim I imagine it could work like: type

Re: Newbie question: downloading multiple files using async httpclient

2019-10-11 Thread mashingan
the problem that the client cannot be shared to other download import httpClient, asyncdispatch proc download(url: string): Future[string] {.async.} = await newHttpClient().getContent(url) } proc downloadAll(urls: seq[string]) {.async.} = var asyncr

Re: Newbie question: downloading multiple files using async httpclient

2019-10-11 Thread deepakg
Thanks! How/Where would you handle errors that arise during `await all(asyncresult)`. For example an http 500 from the server which becomes an exception. Would `proc download` be responsible for handling it?

Re: Define a procedure on a type itself ?

2019-10-11 Thread jasper
It is. Replace `Type` with `type` or `typedesc`.

Re: Newbie question: downloading multiple files using async httpclient

2019-10-11 Thread mashingan
Yes, it's whether you to wait with asyncCheck or go with future.failed is up to application. But the idea is same.

Re: _MEM.RECALL();, a game for Open Jam 2019 written in Nim

2019-10-11 Thread lqdev
It's probably a problem with shader linking, I'll try adding the `#version 330` core directive into all shaders.

Re: Multi-threading and data sharing

2019-10-11 Thread pge
Thank you for the valuable suggestions. I will explore those solutions and let know my success with them. However I suggest (for the friendliness of Nim in the future) to have something more accessible to usual programmers, like _SharedTable_ , _SharedSet_ ... (intended to be accessible from par

Re: bitops iterator

2019-10-11 Thread Stefan_Salewski
Your Java chess engine is using bitboards?

bitops iterator

2019-10-11 Thread pge
The bitops module, for what I have seen, does not include a _bit iterator_ , which would be convenient (chess programmers widely use _bitboards_ , which are nothing else than an unsigned long with 64 logical properties linked to the 64 squares of a chessboard). I use this: import

Anyone here used Nim with JUCE?

2019-10-11 Thread pier
I thinking about playing a bit with audio and the JUCE C++ framework for creating GUIs and DSP apps/plugins. JUCE comes with Projucer which scaffolds a project for Xcode or Visual Studio. If Nim can compile to C++ is it correct to assume I could write Nim code which then produce C++ files which

Have the RosettaCode Examples been upgraded to 1.0 yet?

2019-10-11 Thread aiguy
I was out there and download the Levenshtein example and saw that it had some obsolete language features.

Re: Nim Days: Day 17 Building Sonic Client in Nim

2019-10-11 Thread zulu
I dont want to dis dom's work but at this point your guide provides more value for free than dom's book. Hopefully at least by buying dom's book we support the developmen of Nim :<

Throw-away variables?

2019-10-11 Thread nroach2
Hi all, I'm relatively new to nim. I'm wondering if there's an equivalent to the `_` variable name in python, something that allows us to throw away individual values of a tuple when it's being unpacked. For example, if I had a proc that returns three values packaged as a tuple, is there a way t

Re: Define a procedure on a type itself ?

2019-10-11 Thread ducdetronquito
Thanks! I am so glad it exists :)

Re: bitops iterator

2019-10-11 Thread mratsim
I think he was surprised that you used Java for a compute intensive application that needs low-level bit-twiddling

Re: Throw-away variables?

2019-10-11 Thread mratsim
You can use _ like in Python

Re: bitops iterator

2019-10-11 Thread pge
Yes both versions (java and nim) of E1 widely use bitboards. Like most chess engine...

Re: Nim for Beginners Video Series

2019-10-11 Thread Kiloneie
#16 is live at: [https://youtu.be/5sYkUYx5LvA](https://youtu.be/5sYkUYx5LvA) Tables.

Re: FOSDEM Call for Participation

2019-10-11 Thread mratsim
Nim on AVR? :P

Re: Multi-threading and data sharing

2019-10-11 Thread mratsim
Don't update concurrently the same data structure that will create a huge contention bottleneck due to the heavy synchronization and our program might become slower than single-threaded due to cache thrashing. Assuming your algorithm is tree-like (I'm familiar with go bot but not chess bot) ide

Re: bitops iterator

2019-10-11 Thread brentp
I use this method: [https://lemire.me/blog/2018/02/21/iterating-over-set-bits-quickly](https://lemire.me/blog/2018/02/21/iterating-over-set-bits-quickly)/ here: [https://github.com/brentp/slivar/blob/master/src/slivarpkg/fastsets.nim#L20-L24](https://github.com/brentp/slivar/blob/master/src/sliv

Aquarium project is an important manifestation of acrylic application

2019-10-11 Thread mile
To improve the overall understanding of the construction of Aquarium project [https://www.jmacrylic.com/product/acrylic-fish-tank-aquarium-aquarium-project/](https://www.jmacrylic.com/product/acrylic-fish-tank-aquarium-aquarium-project/), reasonable design shall be carried out according to the re