Do you miss these compact syntaxes?

2023-04-02 Thread ElegantBeef
This is explicit design fields are always preferred to procedures when used in dot expressions, this gives an escape if one needs it. import std/tables type Element* = ref object attrs*: Table[string, string] proc attrs*[T](self: T, attrs: tuple): T = fo

Do you miss these compact syntaxes?

2023-04-02 Thread alexeypetrushin
One more inconsistencies, inability to resolve (overload) property `attr` and proc with same name. import std/tables type Element* = ref object tag*: string attrs*: Table[string, string] proc attrs*[T](self: T, attrs: tuple): T = for k, v in attr

Nim v2.0.0 RC2 is out

2023-04-02 Thread erikenglund
All I want is faster compile times.

Anyone tried GPT-4 for Nim?

2023-04-02 Thread dlesnoff
> Nim's small community there are not enough publicly available libraries to > use as a reference. This seems wrong to me. Some reasons below: # Available libraries First, there are many algorithms and snippets in [Rosetta Code](https://rosettacode.org/wiki/Category:Nim). We do have many l

Anyone tried GPT-4 for Nim?

2023-04-02 Thread Stefan_Salewski
> GPT-4 for Nim? ChatGPT (3.5) works already surprisingly good for Nim, see note at the end of section . I recently subscribed to GPT-4, which is generally great. Of course, both versions have not that much Nim data available, and curre

How to return from a function back to the main application loop

2023-04-02 Thread Naterlarsen
Good morning (I'm in mountain time -Utah). As a follow-up on the purpose of this tool - You are correct, "remote support" is what I had in mind. Nothing nefarious. The reason for reverse client /server is that you don't need to worry about the firewall. The admin would just need to setup port f

How to return from a function back to the main application loop

2023-04-02 Thread gs
Oh you are 5 steps ahead with choosing the right async implementation right now with only one client at a time and strict request/reply we could get away without async or threads and a single socket... For multi clients there would be more to do.. that stdin in the main loop just would not work

Anyone tried GPT-4 for Nim?

2023-04-02 Thread jasonfi
I've tried Nim with ChatGPT, which uses GPT3.5 I think. Nim is one language I wouldn't use because there's not enough published code to train on to be good enough. I have also seen this tech make up APIs that don't exist, and for Nim it seemed worse. The situation should improve with time, but i

Nim 1.6 vs 2 (1.9) Working with channels

2023-04-02 Thread gs
Hi @demetera, this seems to be the basic way of setup, which should work fine for 1.6.12 For me it does... even with this slightly broken example... If you remove the comment from sleep(1) it fails for sure, with "Illegal storage access" Is there any chance that you have some kind of race cond

Nim v2.0.0 RC2 is out

2023-04-02 Thread brainproxy
See:

Anyone tried GPT-4 for Nim?

2023-04-02 Thread nimian
I suck at coding and it takes me a lot of time to figure things out and due to Nim's small community there is not enough publicly available libraries to use as a reference. Is GPT-4 (paid version of ChatGPT) good enough to help with Nim issues?

Nim v2.0.0 RC2 is out

2023-04-02 Thread PMunch
This would be a lot less of an issue with a compiled language like Nim. It's not like your script you have running on a production server is going to start failing if Nim updates unless you recompile it. So as long as the developer is aware of which version was initially used to build it (which

Nim v2.0.0 RC2 is out

2023-04-02 Thread cmc
Hard data is good when you have it but an impossible standard for every decision (and can have its own perils). Hence, my falling back the educated guess. I think that we would be losing zero users because of re/nre is downright implausible. I can't think of a programmer I know who doesn't use

Nim v2.0.0 RC2 is out

2023-04-02 Thread Araq
> How can this be the language to rule them all if they can't decide on a regex > library? Is this what we want them to be thinking about? Pure speculation. Nobody knows how many users we lose because of nre being in the standard library (zero?). Nobody knows how many of these potential new use

Why Svelte is far superior than React (Karax)

2023-04-02 Thread kragil
Are you writing everything from scratch or do you use something as groundwork?

Nim v2.0.0 RC2 is out

2023-04-02 Thread cmc
> each time we do it it adds friction to somebody's porting efforts I wouldn't recommend it lightly, but in this case I'd go as far as to say it's close to imperative with an eye on helping new users. Learning a new programming language is special because you are simultaneously studying and eva

Dear library developers,

2023-04-02 Thread federico3
There's an issue open for that:

How to return from a function back to the main application loop

2023-04-02 Thread Stefan_Salewski
> purpose of this program. Yes I agree, have no idea about the purpose. And actually, he may consider using chronos from Status () instead of Pichetas async. Some people told me that they prefer that for serious work, but I have not tried. Well, I think

How to return from a function back to the main application loop

2023-04-02 Thread gs
hmmm ok, it's most likely the mix of blocking and async or some not closed connections first you should try that spawn @Stefan_Salewski mentioned and get rid of the second input... since @Stefan_Salewski generously offered to have a look into it. I don't want to interfer... But maybe we c