Problems installing nimlangserver

2024-07-31 Thread adrianv
Hi, I try to install nimlangserver, but it won't compile and always complains with the same error, that a file is missing. when I compile with nim 2.0.8 (or devel@#head) it complains about `@sserialization@sobject_serialization.nim.c` missing nimble install nimlangserver Downlo

nim name origin?

2022-11-09 Thread adrianv
when I first found nim (Nimrod at that time) the name remembered me at a scene from a Bugs Bunny cartoon where Elmer Fudd was hunting Bugs (what else) and Bugs Bunny called him "mighty hunter Nimrod". So I thought cool - Nimrod is a language for hunting bugs.

Tips on how to avoid Nim pointer instability bugs?

2022-10-30 Thread adrianv
IMHO that's not on the same level as the original problems. You will get the same result on any language that has the concept of `var` parameters and you are working with a pointer type. The result is as expected. The problem is a side effect in code flow. Here the same program in pascal.

Nim v2: what would you change?

2022-06-10 Thread adrianv
> re-implement methods as vtables and use the mechanism of the target language (C++, js) if available (and possible ?)

Must check to decide whether this current iteration in a loop is the last

2022-02-24 Thread adrianv
if you really need the last item of an iteration, you could do something like this: template lastItem(last: untyped, iteration: untyped, body: untyped): bool = var hasLast = false var `last` {.inject.}: typeof(iteration()) for it in iteration(): hasLast = tr

Setting up a Nim foundation

2021-10-21 Thread adrianv
was ich bisher gelesen hat ein Verein den Nachteil (oder Vorteil) das er demokratisch geführt werden muss - das macht eine geschäftliche Nutzung komplizierter. Eine Alternative ist eine gGmbH (gemeinnützige GmbH) oder wenn man kleiner Anfangen will eine gUG. Hier ist ein Link zu weiterführenden

Nim 2.0 -- thoughts

2021-10-14 Thread adrianv
cool, this could open the way for other backends.

Nim 2.0 -- thoughts

2021-10-14 Thread adrianv
> backends can be built directly on Nim's ".rod" file mechanism does this mean a backend generator "just" needs to process the `.rod` file(s) then ?

A look at Dart's null safety syntax

2021-08-17 Thread adrianv
When you look at a `string` as a _value_ , I don't like to distinguish between `null` and `""` \- `null` means always the absence of information and a empty `string` carries no information. Hiding this inside an option does not help unless you really need to distinguish these cases.

Embarcadero C++ and bcc target - change old or create new

2021-06-17 Thread adrianv
ok - than that way

Embarcadero C++ and bcc target - change old or create new

2021-06-17 Thread adrianv
Hi, I am obviously one of the few (=1) people which use the actual Embarcadero C++ :). It is now a Clang compiler with some Embarcadero specialities. Therefore it compiles most of the nim generated C or C++ code (I can boot compile the nim compiler with it). For this I had to introduce some `wh

Associate an enum with strings

2021-06-15 Thread adrianv
I wouldn't use a table. An array fits better for this purpose for more elegant you could write a macro of course. But I think its an overkill for such a simple task.

winim - onenote

2021-03-22 Thread adrianv
some guesses: * are you compiling to 32bit ? - or * in your python example you wrote OneNote.Application.12 not OneNote.Application.15, maybe GetHierarchy was removed * you are not using the return result ! try `var res = obj.GetHierarchy("", 2)`

new blogpost: pattern matching (and fusion)

2021-03-19 Thread adrianv
Hm ok - with 1.4.4 it compiles - somehow - but I can use it with `--gc:arc` or `--gc:orc`. There I get other errors, which is unlucky for me because I need `--gc:arc` or `--gc:orc`

new blogpost: pattern matching (and fusion)

2021-03-18 Thread adrianv
I have 1.5.1 from git 4bfc5a955120b90faf07f50b54ae29f2c6e6f123

new blogpost: pattern matching (and fusion)

2021-03-18 Thread adrianv
Is there a compiler flag needed to compile it with fusion (installed via nimble) ? I get an error in the line of the `case..`: `Error: attempting to call undeclared routine: 'case'` when I try to compile: import fusion/matching {.experimental: "caseStmtMacros".} case [

What Nim projects are you working on?

2020-10-22 Thread adrianv
, to get the source compiled to different .nim files for each Haxe package (currently all is compiled into one .nim file) and to improve the supported Haxe language features. <https://github.com/AdrianV/Craxe>