Re: Help wrapping C library in Nim using const char*

2017-12-08 Thread treeform
What error do you get? The other two GLFW wrappers just use cstring and it works for them? [https://github.com/ephja/nim-glfw/search?utf8=%E2%9C%93&q=GetVersionString&type](https://github.com/ephja/nim-glfw/search?utf8=%E2%9C%93&q=GetVersionString&type)= [https://github.com/rafaelvasco/nimrod-gl

Re: Do we have a RTree or R*Tree for Nim?

2017-12-08 Thread Stefan_Salewski
In the last days I wrote a first draft following the Guttman paper. While the algorithm is very simple and well explained in the paper, there are two points which makes the implementation not that easy: 1. We want a fully generic RTree (dimension, data type for location, data type for contained

Help wrapping C library in Nim using const char*

2017-12-08 Thread CavariuX
Hi, sorry for the trouble but I'm having difficulties wrapping a const char* I can't use cstring since the compiler complains that it's char* and not a const char* I have read the docs but no luck for me Thanks in advance. Code: {.link: "libglfw.3.2.dylib".} const

Litecoin news

2017-12-08 Thread aniklira
ICO and cryptocurrency news in telegram channel [https://t.me/blockchaininvestio](https://t.me/blockchaininvestio) . ICO calendar & review ICO. Cryptocurrency news. Blockchain startup reviews & reports. Lawyers&Traders analytics. Interview with founders.

Re: Hiring Nim Devs for Ethereum Implementation

2017-12-08 Thread Udiknedormin
I know all the three languages and attended to embedded systems course during my studies but know virtually nothing about p2p. Is it for me, too?

Re: [Presentation-Python-Nim] A new option for optimizing inner loops Z. D. Smith

2017-12-08 Thread Udiknedormin
@mratsim Well, it seemed to me the current idea is to push the GC aside so that Nim will become scope-based "by default" with optional GC just where it's needed. Thanks for the explanation though.

Re: experimenting with pointers and slices

2017-12-08 Thread Udiknedormin
@Araq Thank you, I didn't know that (I don't really use Nim's parallel capabilities). That's something new for me, especially comparing to how it works in, say, Rust.

Re: Installation of some packages don't work with Nimble

2017-12-08 Thread dom96
You will need to clone them manually: `git clone https://github.com/flaviut/easy-bcrypt.git` and the same for the scrypt package (only using hg) Then rename the package (by modifying their .nimble file), then install them by running `nimble install` in the package's dir.

Dipping into javascript output

2017-12-08 Thread thumper
In my slow navigation of the nim learning curve, I had reason to use the javascript output function for modifying contents of a web page. In short it was a simple exercise to learn with. However there were some things that took me a lot longer to figure out than I expected. So I over-commented m

Re: Multi-threaded reverse-proxy in jester

2017-12-08 Thread boia01
Yes, the client should wait for the response. The default timeout is "-1" (infinite). I think that error message (`"Connection was closed before full request has been made"`) is misleading because the error happens while the client is attempting to read the response from the server. A lot of t

Timeout

2017-12-08 Thread qqtop
Issues with httpclient timeout import httpclient let callav = "https://github.com/nim-lang/Nim/blob/devel/tests/arithm/tand.nim"; var zcli = newHttpClient() echo zcli.getContent(callav,timeout = 1) # < fails #echo zcli.getContent(callav)

Re: Jester how to respond to requests in parallel

2017-12-08 Thread JohnnyC
Very interesting lihf8515! Could you post an example or link me up to your git repo? Thanks in advance!

Re: How to clean up native resources properly.

2017-12-08 Thread Krux02
There is also: > * there is also manual cleanup proc with defer > let vao = createVao() defer: vao.delete > * don't clean up at all. Resources are freed at program exit anyway. > There is no best way. There are only advantages and disadvantages. Choose wisely depe

Re: Multi-threaded reverse-proxy in jester

2017-12-08 Thread JohnnyC
Hey Everyone, thanks for your help! @ boia01: I've read about the HTTP 307 meanwhile and also have implemented it. While it works good on HTTP Clients that support 307-code, some tools like curl or other APIs need special flags or are incompatible with this temporary redirect. Thats why I've d

Installation of some packages don't work with Nimble

2017-12-08 Thread grazil
Hello, Some Nimble packages can't be install because of some characters in there name: $ nimble install easy-bcrypt Downloading https://github.com/flaviut/easy-bcrypt.git using git Tip: 2 messages have been suppressed, use --verbose to show them. Error: easy-b

Re: Hiring Nim Devs for Ethereum Implementation

2017-12-08 Thread jarradhope
Yes we will certainly consider part-time, we'll also have a bounty program for people who can only commit under 10 hours, which tends to be more suitable.

Re: How to clean up native resources properly.

2017-12-08 Thread boia01
If there is a standard lifecycle for your resource, e.g. can be disposed after the request or easy wrapped in a try .. defer block, then I feel manual cleanup is usually the better approach. It's more deterministic and deliberate. If the lifecycle is more ad-hoc, less deterministic, then finaliz

Re: Hiring Nim Devs for Ethereum Implementation

2017-12-08 Thread Varriount
Are you accepting part-time applications?

How to clean up native resources properly.

2017-12-08 Thread twetzel59
Say I have the following: type Vao = object glId: cint What is the best way to ensure that the resource is released? I can think of 3 ideas: * Manual cleanup proc * Garbage collect with finalizer * Use experimental destructors I would prefer not to use e