Timothee Cour

Results 437 comments of Timothee Cour

Here's my counter-proposal, which I used in https://github.com/nim-lang/fusion/pull/32 + other places (but the proposal below improves upon it to allow more flexibility) ```nim # in sugar.nim: import std/macros macro objInit*(obj:...

see https://github.com/grpc/homebrew-grpc/issues/94#issuecomment-273184580

@laoye so there's currently no way to have a C++ hprose server, is that correct? (https://github.com/hprose/hprose-cpp/issues/2 wasn't very clear) @yesme2000

> When I run the above code no code shown in your bug report... what happens when you: python -m SimpleHTTPServer 9009 then browsing to localhost:9009/hello.html then open developper console...

did you follow exactly instructions in README or did you deviate at some point? IIRC you were mentioning using ubuntu directly instead of using vagrant to access a VM

> instead it gives me binary code looks like your `-d:emscripten` doesn't work for some reason ``` nim c -d:emscripten -o:hello.html hello.nim # => hello.html is a html file nim...

when happens when you force rebuild: ``` vagrant@bodhi64 /v/Samples> nim c -f -d:emscripten -o:hello.html hello.nim Hint: used config file '/etc/nim.cfg' [Conf] Hint: system [Processing] Hint: hello [Processing] Hint: emcc -c...

here's your bug: ``` achala@laptop:~/PROJECT/nim-wasm-helpers$ vagrant ssh ssh_exchange_identification: read: Connection reset by peer ``` the remaining commands are being run locally, not inside your VM

I think that's out of scope of this github repo but google returns a lot of hits; eg https://teamtreehouse.com/community/vagrant-ssh-sshexchangeidentification-read-connection-reset-by-peer

(disclaimer: I'm not affiliated with this project but am interested in it, and I did manage to make it work in my setting) it can be frustrating when things don't...