Hot Code Reloading viability for Jupyter-Notebook like Nim IDE

2024-05-31 Thread stisa
> Does the stdlib HCR work at all? I tested the program in the docs (making > sure that the logic was in a separate file), and on 2.0.2 and 2.0.4 it > produced bad codegen. On 1.16.14 it compiled, but it didn't actually work. Yeah it used to kind of work before 2.0 (but crashed even just printin

How to make web component to run Nim code inside a web page and by using some npm pakage only

2023-02-28 Thread stisa
It looks like runcode is just sending kotlin code to a server that compiles it, more or less the same as nim playground, so you can do that too, eg here is how the frontend for the playground does it: you just nee

What is the recommended way to use the local branch of an external git nim module in my nim project?

2023-02-22 Thread stisa
>From what I remember, `nimble develop` would work as you want. git clone https://github.com/ftsf/nim-webaudio cd nim-webaudio # modify code nimble develop # this "installs" your modified version so that it's available to other packages. Run (I'm fairly sur

Stadard way to call a nimscript

2022-08-31 Thread stisa
`nim e config.nims` should work, also iirc `config.nims` could be used to replace `nim.cfg` so it gets executed when compiling (the task won't, but top-level instructions will)

How to install packages via nimble on a machine without internet

2022-08-31 Thread stisa
That might work, as long as you copy nimbleDir to the right path or pass the path when compiling (`nim c --NimblePath: `)

How to install packages via nimble on a machine without internet

2022-08-30 Thread stisa
Have a look at this: Basically, clone the package (and the dependencies), move them to a usb stick to get it on the air-gapped system, then run `nimble install` in the folders. You'll probably need to start from the lowest dependenc

Mastering Nim: A complete guide to the programming language

2022-06-29 Thread stisa
Looks like the price on `amazon.com` went down to 42$, while the `.de` and other European still shows 62€. If it goes down to 40€ I'll probably consider getting myself a copy too.

Nim v2: what would you change?

2022-05-04 Thread stisa
I'd say move as much of the stdlib as possible to its own repo / nimble pkg (only leave what's needed for the compiler to build - the plain compiler, no docgen etc - and _[maybe](https://forum.nim-lang.org/postActivity.xml#maybe) nimble) Take as much stuff out of system as is possible. On the

What Nim projects are you working on?

2020-10-23 Thread stisa
Haven't done much lately, but mostly maintaining a [jupyter kernel](https://github.com/stisa/jupyternim) for nim. Some other side projects include a super simple line plotter ( [graph](https://github.com/stisa/graph) , a webassembly backend for the compiler [nwasm](https://github.com/

Local dev: nimble install or symbolic links?

2020-08-11 Thread stisa
Nimble has a mode for that, `nimble develop`. I think it fits your use case

GitHub Actions: workflow to cross compile and release to GitHubRelease

2020-07-29 Thread stisa
I've started using this action: name: Check and update tag on: push: branches: - master jobs: tag: if: github.actor == github.repository_owner runs-on: ubuntu-latest steps: - uses: actions/checko