[help] Nim JIT + REPL with clang backend + -emit-llvm + LLVM's ORCv2

2023-09-22 Thread awr1
Interesting work! I feel getting JITs work in Nim would dovetail quite nicely with NimScript (especially in the context of embedding Nim plugins to user applications). However, [I thought NLVM also had support for ORCv2?](https://github.com/arnetheduck/nlvm/blob/master/nlvm/lljit.nim)

[help] Nim JIT + REPL with clang backend + -emit-llvm + LLVM's ORCv2

2023-09-22 Thread mig
Hi all, I have recently been developing an extension to the Nim compiler to support JIT'd code in a private repository. It works by utilizing clang's "-emit-llvm" flag will will emit LLVM IR code, and then with this LLVM IR code we can feed it into LLVM's ORCv2 JIT engine and dynamically compil

How to add nim intellisense to a imported JavaScript object?

2023-09-22 Thread Millymox
Works perfectly thank you!

How do i add and utilze a nested object when wrapping JS?

2023-09-22 Thread juancarlospaco
preferences: JsObject

How do i add and utilze a nested object when wrapping JS?

2023-09-22 Thread Millymox
var BrowserWindow {.importjs: "BrowserWindow", nodecl.}: JsObject type BrowserWindowType* = distinct JsObject proc createBrowserWindow*(width, height: int): BrowserWindowType {.importjs: "new BrowserWindow({width: #, height: #})".} Run There’s anoth

Mindset Nim

2023-09-22 Thread radekm
I believe it's not expected because in Pluto order of cells should not matter. They write: > Cells can even be placed in arbitrary order - intelligent syntax analysis > figures out the dependencies between them and takes care of execution. in [Readme](https://github.com/fonsp/Pluto.jl). But rea

Pure Nim FFT library

2023-09-22 Thread tcheran
I'm not sure, but I would expect that division by N should included in the outcome, without your intervention. I would look at the "competitor" implementation. Y = fft(X) X = iftt(Y)

The secret of Nim

2023-09-22 Thread Araq
True but I've seen the movie recently already. But now I have to read Catch 22 again...

Which tools do you use to code in Nim?

2023-09-22 Thread giaco
Firefox?

Which tools do you use to code in Nim?

2023-09-22 Thread giaco
Firefox?

The secret of Nim

2023-09-22 Thread cblake
By the way, in case it went over anyone's head, this thread is an, ahem, not so subtle reference to a movie [based on a book](https://en.wikipedia.org/wiki/Mrs._Frisby_and_the_Rats_of_NIMH) (series) I enjoyed as a kid too many decades ago: I d

Which tools do you use to code in Nim?

2023-09-22 Thread SolitudeSF
kakoune, kaklsp + nimlsp, kak-tree-sitter +

The secret of Nim

2023-09-22 Thread lolgab
> Scala - incoherent mess. Impress other scala people with unreadable and > overcomplicated scala code. I think this is unfair. Scala is a powerful language. That power can hurt you if you don't use it with wisdom. I love both Nim and Scala, they are both very powerful and have many ways to do

Which tools do you use to code in Nim?

2023-09-22 Thread cmc
> choosenim + nim + nimble + vim + nimlsp Same here!

Cross-compile to Rpi4 :(

2023-09-22 Thread cmc
Nice!!! I'm doing it a little differently because I think using the musl C library means you need to compile statically, but I needed to depend on a dynamic library. So I installed a fairly old GCC (via the arch linux aur repository, other linux distros have other options). This means I have a

ggplot and lapack revisited

2023-09-22 Thread Araq
Try Windows WSL.

ggplot and lapack revisited

2023-09-22 Thread Vindaar
First of all the Vega message is just a somewhat left over from a time when I wanted to have that be part of `ginger` and not `ggplotnim`. It is part of the latter now. Don't worry about it, it is available if you wanted it, but likely you don't (see the README). It is completely irrelevant to y

ggplot and lapack revisited

2023-09-22 Thread rajmac
First thanks to all who replied to my earlier question about lapack and to indaar for his explanation for the need for lapack.dll. Having tried as suggested to install the dll I know have liblapack.dll but still am having problems with using it. Currently when compiling with -d:lapack=liblapack

Cross-compile to Rpi4 :(

2023-09-22 Thread saemideluxe
This thread safed my life (meaning, I will be able to use Nim for a client project, instead of Python :) Thanks!

Mindset Nim

2023-09-22 Thread xigoi
Hmm, I actually see that behavior as correct. The cell that displays the array is before the cell that sorts it, so it's naturally displaying the state before sorting.

High level TUI framework (or wrapper of)

2023-09-22 Thread void09
@oakes It would be great if you could provide a one widget example/template. Not sure how it would differ from illwillwidgets mentioned above.