nlvm update 202301

2023-01-20 Thread arnetheduck
> surprisingly easy yeah, though once you get into linking libraries it gets a bit hairy ;) that said, most of the code for nlvm is "wiriing" really, they've indeed done a good job to make it just work.

nlvm update 202301

2023-01-20 Thread giaco
Looks like black magic to me Congrats for the updates! I'm looking forward nlvm for wasm targets!

nlvm update 202301

2023-01-20 Thread mratsim
I'm really confused about ORC, ORCv3 and MCJIT in LLVM but it's surprisingly easy from LLVM IR to create JIT code: * emit host machine code: * emit Nvidia PTX assembly:

Random iterator call spawning?

2023-01-20 Thread Nlits
I get this confusing trace that I will explain below: Sending: StmtList Got: StmtList Got: Ident /home/runner/JumpLang/main.nim(6) main /home/runner/JumpLang/jumplang/interpreter.nim(110) interpret /home/runner/JumpLang/jumplang/interpreter.nim(100) visit /home

How to wrap a JavaScript function that takes variable arguments?

2023-01-20 Thread juancarlospaco
` proc foo(xs: JsObject) {.importjs: "$1(@)", varargs.} ` Run

nlvm update 202301

2023-01-20 Thread arnetheduck
Hey, time for an `nlvm` update, since I had time over the EOY to push a few updates. First and foremost, it must be said that the upstream Nim compiler has gotten a lot more pleasant to use over the past few months thanks to the large amount of bugfixes done in anticipation of 2.0 - many of the

NimForUE

2023-01-20 Thread jmgomez
Just uploaded another short video going over uClasses and Hot reloading basics: On the plugin major updates were: * Now the setup is easier. We dont need to start the editor to generate the bindings so we can compile the game dll before starting t

How to wrap a JavaScript function that takes variable arguments?

2023-01-20 Thread xigoi
Thanks, that seems to work!

`--os:standalone` gives `Error: system module needs: getCurrentException`

2023-01-20 Thread galaxyDragon
This is just information. I've added Serial class to nim-platformio project. Repository is here, Compiling: $ git clone $ cd nimPioArduino $ pio

How to wrap a JavaScript function that takes variable arguments?

2023-01-20 Thread Hlaaftana
There is the [varargs pragma](https://nim-lang.org/docs/manual.html#foreign-function-interface-varargs-pragma) for C but I don't know if it works for JS

`--os:standalone` gives `Error: system module needs: getCurrentException`

2023-01-20 Thread thisago
Oh thank you very much! this fixed! I tried clean command but not deleting the nimcache, tnx!

`--os:standalone` gives `Error: system module needs: getCurrentException`

2023-01-20 Thread galaxyDragon
Try this ? $ pio run -t clean $ rm -fr src/nimcache $ pio run

How to wrap a JavaScript function that takes variable arguments?

2023-01-20 Thread xigoi
I tried this: proc foo(xs: varargs[JsObject]) {.importjs: "foo(@)".} foo(a, b, c) Run But it produces this: foo([a, b, c]) Run How do I produce this? foo(a, b, c) Run

`--os:standalone` gives `Error: system module needs: getCurrentException`

2023-01-20 Thread thisago
I tried with this parameters in devel, but the error is same as above type mismatch, but when I tried the version 1.6.10, the nim was compiled to cpp, but in linking, gave this: Linking .pio/build/nanoatmega328/firmware.elf .pio/build/nanoatmega328/src/nimcache/stdlib_digitsutil

`--os:standalone` gives `Error: system module needs: getCurrentException`

2023-01-20 Thread thisago
I tried `--os:ansic` instead of `--os:standalone`, but it gives: `command line(1, 2) Error: unknown OS: 'ansic'. Available options are: DOS, Windows, OS2, Linux, MorphOS, SkyOS, Solaris, Irix, NetBSD, FreeBSD, OpenBSD, DragonFly, CROSSOS, AIX, PalmOS, QNX, Amiga, Atari, Netware, MacOS, MacOSX, i

`--os:standalone` gives `Error: system module needs: getCurrentException`

2023-01-20 Thread Araq
The new switch people should use instead of `os:standalone` is `os:ansic`.

`--os:standalone` gives `Error: system module needs: getCurrentException`

2023-01-20 Thread galaxyDragon
Try these options ? , `--os:any --gc:arc -d:useMalloc --exceptions:goto` `-d:noSignalHandler`