JIT compiling to AMD GPUs

2024-08-04 Thread mratsim
In my latest PR I managed to JIT compile from LLVM IR to AMD GPU: Now the question becomes can e do Nim -> AMD GPU (or Nvidia as AMD toolchain supports both). As we have a LLVM-IR => AMD (and LLVM-IR => Nvidia) we can use those as NLVM backends

Is there a way to write to stdout without newline in nim script?

2024-08-04 Thread Zoom
BTW, from a brief Nim compiler code grep, `msgWriteln` use is not that frequent and could be a painless refactor. Indeed, you can see the NimSkull guys did away with the new line hardcoding, and use only the `msgWrite` everywhere.

Best location to declare variables in a proc

2024-08-04 Thread khaledh-nim
> There is overhead to create and destroy a variable 100 times. I tested this, and it seems that the variable memory location (on the stack) is reused; i.e. the space is reserved for it once on the stack. Note: Keep in mind that string objects store a pointer to the actual string data on the he

Is there a way to write to stdout without newline in nim script?

2024-08-04 Thread Zoom
>From what I gather, nimscript offers only `echo`, which is a magic proc, >relying on compiler to output messages. In `compiler/vmgen.nim` you can see >the AST symbol `mEcho`, corresponding to an `echo` call, performs an `opcEcho` >instruction (from `compiler/vm.nim`), which boils down to callin

Best location to declare variables in a proc

2024-08-04 Thread xigoi
Why not just do this? proc testProc() = for i in 0..100: let j = $i Run

Datafame library that handles time series data

2024-08-04 Thread cblake
As @Vindaar says, it really depends upon how much statically compiled vs. dynamically interpreted typing you need|want. If you are currently using Polars but only through the "dynamic lens" of Python bindings then you could be in for a world of cross run-time/compile-time impedance mismatches.

Datafame library that handles time series data

2024-08-04 Thread Vindaar
Hey! I never added `DateTime` support for a variety of reasons. They can be summed up to a) no need to pull in `std/times` b) the current code is a bit annoying to extend for more types and c) I never needed it. Unix timestamps as integers & formatted as strings (to e.g. group by a bunch of dat

Best location to declare variables in a proc

2024-08-04 Thread Hobbyman
I still wanted to test if that would even work. I confirm it does. Good to know. >From my perspective: Con: * unneeded handling/cost as compared to declaring outside of loop. * the var can only be used for one pass after which it is reset. Pro: * advantage for refactoring and ease of

Nexalyn Machen Sie sich bereit, Ihrem Sexualleben zusätzliches Vergnügen zu verleihen!

2024-08-04 Thread nexalynoffiziel
Nexalyn Wir sind auf viele Methoden und Produkte zur Steigerung der Potenz gestoßen. Jeder muss bei seinen sexuellen Aktivitäten kraftvoll und aktiv sein. Ich habe Ihnen erzählt, welche unglaublich und natürlich mit Ihrem System zusammenarbeiten und positive Veränderungen bewirken. Lassen Sie un