Looking for collaborators!

2020-09-30 Thread Sixte
With regard to , you can already find some Nim implementations of "lox" at github. The "lox" interpreter follows the design of "wren" that you evenly can find on github. The C Code of "wren" contains an efficient implementation of a VM. The performance of that V

Looking for collaborators!

2020-09-30 Thread nocturn9x
Thanks for your effort! This answer is really appreciated, but the project is now at a status where it already has a working implementation of some features and a very important one (function calls) is broken and I don't know how to fix it, I even identified the problem but couldn't solve it, ma

nimterop - sigjmp_buf

2020-09-30 Thread mantielero
Spot on. Thanks a lot.

Library for making lightweight Electron-like HTML/JS GUI applications

2020-09-30 Thread NecroticOoze
Woop woop!

Library for making lightweight Electron-like HTML/JS GUI applications

2020-09-30 Thread Niminem
Hey guys, I'm very proud to announce my first Nimble package, a tiny library that I think all of us in the community can benefit from! The project is called Neel, it's a Nim library for making lightweight Electron-like HTML/JS GUI apps, with full access to Nim capabilities and targets the C ba

First Nimble Package - process

2020-09-30 Thread Niminem
Awesome! Thanks @Vindaar

[noob] Help with sets

2020-09-30 Thread doofenstein
> Yes, but even, so you cannot put numbers above 65535 into a set. That's a > hard implementation limit. you can, though then you can't put small values into it anymore sorry for the nitpicking, I just wanted to express my love for ranged integers ;)

Looking for collaborators!

2020-09-30 Thread snej
> If I had to pick one thing that I desperately need help with I'd surely > choose the VM. I've implemented two bytecode-based VMs. (Once ages ago in Pascal, and then this year in C++.) They're not as intimidating as they seem, especially if you've got a good book like the one you're using. Th

[noob] Help with sets

2020-09-30 Thread snej
> So it seems i need to write the first number's type in the set explicitly to > define the sets type. Yes, but even, so you cannot put numbers above 65535 into a set. That's a hard implementation limit. Nim's basic `set` type is simply a bit-field. It's intended for small sets of flags, that

Update on --gc:arc

2020-09-30 Thread snej
> If there is a shared heap, why can't we share? Because ref-count inc/dec operations are not atomic. (Atomic ops are an order of magnitude slower.) That means if the same object has references on multiple threads, its ref-count can get corrupted by overlapping reads/writes. The advantage of th

First Nimble Package - process

2020-09-30 Thread Vindaar
Hey, first of all congrats on building your first Nimble package you want to publish! You can view your generated pull request here: Now it's just a question of wanting for someone with push rights to that repository to merge your PR. Usually a

it there general gitignore configs for binaries?

2020-09-30 Thread cdunn2001
I often use a makefile rule to generate "foo.exe" for each "foo.nim" %.exe: %.nim nim c -o:$@ $< Run To me the real problem is that "nim c" alters source directories by default. As a general rule, it's helpful if a build system builds into the current-work

VS Code Nim Extension in Nim

2020-09-30 Thread dom96
IMO this shouldn't be handled by the extension. It should be the job of a [langserver](https://langserver.org/), it should manage its data providers in whatever way is appropriate whether that is nimsuggest or something else entirely. Indeed, it should measure the resource usage of whatever it i

First Nimble Package - process

2020-09-30 Thread Niminem
Hey guys, I'm still new to Nim and brand new to Github. I believe I've done everything correctly for publishing my first Nimble package via the `nimble publish` command. Is this now simply a waiting game for the package to be in the repository after doing a pull request or is there another step

how to wraps async proc

2020-09-30 Thread bung
yeah, thank you! the way 3 works, it's the only way will work, I can't wait, even I dont like this way, I complete as that.

how to wraps async proc

2020-09-30 Thread geotre
I'm not 100% sure what you are trying to do, but this works: import macros, asyncdispatch proc duplicateAndModifyArg (prc: NimNode): NimNode {.compileTime.} = result = newStmtList() let prc2 = copyNimTree(prc) prc2[3][1][1] = newIdentNode("string

nimterop - sigjmp_buf

2020-09-30 Thread shashlick
It is mostly coming from [here](https://github.com/ArtifexSoftware/mupdf/blob/eac73e6732b8c649f4d3dc5b05ca782848325e8b/include/mupdf/fitz/context.h#L511). You can use `cOverride()` to define it as `type sigjmp_buf = object` if you don't intend using it. If you do, it will be better to `type sigj

VS Code Nim Extension in Nim

2020-09-30 Thread mratsim
Only one nimsuggest instance and kill it when it inevitably uses 100% CPU (can be easily tested by opening Weave in the original VS code extension )

using db_odbc with ms sql server on windows 10

2020-09-30 Thread sdmcallister
Hehe, Yeah I'd be swearing as well... Thankfully this is only for very basic applications... I can confirm it 'works' on the latest devel branch. Thanks for all the help with this!

how to wraps async proc

2020-09-30 Thread bung
basically I want wrap new proc takes same args except first arg and return same results as original procs, all procs wraps as same logic, the original takes type A as self, the new version takes type B as self, in the proc body add few lines and call original proc, the way 1: just make a macro

VS Code Nim Extension in Nim

2020-09-30 Thread dom96
Amazing! Thank you for making it easier for the Nim community to contribute to one of the most important tools we have. I have a request for you, when designing new features and deciding whether to keep existing ones in the extension, steer towards not getting in the users way by default. Subtl

Looking for collaborators!

2020-09-30 Thread nocturn9x
These resources are amazing, thanks! Let's hope this thread gets noticed enough so that I can find helpers haha

Looking for collaborators!

2020-09-30 Thread mratsim
I can review PRs of VM implementation, for VM design (as in what opcodes to choose and what do they do) I'm probably not experienced enough compared to people who worked on Nim VM. For implementation if that can help: * Extensive research VM optimizations

How to pass an array to fastRows?

2020-09-30 Thread jasonfi
I tried seq[string] and it works, thanks. I thought that I had already tried that, but I must have made another mistake somewhere.

How to pass an array to fastRows?

2020-09-30 Thread Stefan_Salewski
I do nothing about Nim's db_postgres. But from the Salewski book, and all the other totorials I get the feeling that varargs is only a valid type for proc parameters, but not for ordinary variables. From the

Looking for collaborators!

2020-09-30 Thread nocturn9x
Even though the project is not as big as it seems, you're definitely right. If I had to pick one thing thta I desperately need help with I'd surely choose the VM. The compiler and lexer are just fine. Would you be interested in collaborating?

How to pass an array to fastRows?

2020-09-30 Thread jasonfi
I need to define an array of any type that I can past to db_postgres.fastRows(), defined as: iterator fastRows(db: DbConn; stmtName: SqlPrepared; args: varargs[string, `$`]): Row {...} Run However this code fails: let id: int64 = 0 values: va

Assignment in if condition

2020-09-30 Thread SolitudeSF
` if (let a = 1; a != 0): echo a ` Run

Assignment in if condition

2020-09-30 Thread ElAfalw
Thanks a lot! Yep, that did the trick!

Assignment in if condition

2020-09-30 Thread ElAfalw
Well, basically what I'm trying to do is something like that: if (let a = getSth()) != 0: echo a Run Is that possible? How?