Help with converting Nim to JS at runtime

2022-06-10 Thread Yardanico
I think the only possible way is to compile the Nim compiler to WASM and then compile your Nim code to JS that way in the browser.

how to have same version of dependencies on two different machines?

2022-06-10 Thread severak
In February I stopped work on my [lunarender](https://github.com/severak/lunarender3) project. Today I wanted to setup demo server but I was stopped by not being able to compile it on linux. I developed it on windows with nim 1.6.2 and then I tried to compile it on linux (with nim 1.6.2). I go

Help with converting Nim to JS at runtime

2022-06-10 Thread Niminem
Right, but how would I be able to get javascript produced out of the Nim code this way? I've used PMunch's articles to create a (sort of) Jupyter-Notebook like IDE but not in this manner. I only want to produce the javascript needed so I can inject it into the page. For things like finding link

Help with converting Nim to JS at runtime

2022-06-10 Thread DavideGalilei
I don't think it's possible to compile the Nim compiler to js, however maybe it is possible to use the NimScript vm within the browser:

Help with converting Nim to JS at runtime

2022-06-10 Thread Niminem
Hey guys, I'd like to convert Nim to JS during runtime and output as a string rather than a file. The end goal is to have a chrome extension that creates a "nim console" window within chrome dev tools. Any general guidance one can give here? I have a basic prototype working where the Nim code

Cursed: Working braces in Nim

2022-06-10 Thread Niminem
You sick bastard I love it

Understand C++ binding with OpenCV.

2022-06-10 Thread k0zmo
Most likely - when the Nim's manual was created GCC's ld.bfd that everyone used was built as such that `--as-needed` flag wasn't a default option. Since then most of the Linux distributions do package ld.bfd with `--as-needed` flag on by default. For dynamic libraries it doesn't discard them dur

Nim v2: what would you change?

2022-06-10 Thread PMunch
Ambiguous identifier error?

Nim v2: what would you change?

2022-06-10 Thread adrianv
> re-implement methods as vtables and use the mechanism of the target language (C++, js) if available (and possible ?)

Nim v2: what would you change?

2022-06-10 Thread xigoi
How would this interact with non-backticked identifiers? For example: let `pq` = 0 let `pQ` = 1 echo pq echo p_q Run