Why I left the Nim community

2022-05-07 Thread Sixte
Well... _every Nim developer will eventually run into exhaustion_ The reason is rather technical than personal. Why? * Nim is agnostic about type dependencies * things become considerably worse when function overloading is mixed with function typeschemes aka "generics" so both the program

Fidgets!

2022-05-07 Thread elcritch
> Except fidget is tightly coupled with OpenGL and whatever windowing solution > fidget's authors have decided to use, so it cannot really be the basis for > any cross-platform GUI library. GLFW doesn't even support iOS / android and > OpenGL is deprecated on macOS - only a subset of modern feat

Fidgets!

2022-05-07 Thread carterza
I didn't say one thing about Fidgetty... Congrats on the lib, but I literally did not say one thing about your project. I levied my criticism at Fidget, and I was answering to whoever spoke about making fidget the default cross-platform library for Nim which Araq than commented on. I won't judg

Nim v2: what would you change?

2022-05-07 Thread exelotl
@Zoom > Well, with an option/result you can always drop ("unwrap") it. This is cool > because now ignoring a possible error becomes explicit. Yep, of course there is a lot of merit to that, but it's less convenient as it infects the return type of everything that wants to pass on the error. Tha

Wierd behaviour with table

2022-05-07 Thread foderking
Thanks. import tables works

Fidgets!

2022-05-07 Thread carterza
Except fidget is tightly coupled with OpenGL and whatever windowing solution fidget's authors have decided to use, so using so it cannot really be the basis for any cross-platform GUI library.

Why I left the Nim community

2022-05-07 Thread euant
At this point in Nim’s life, in my opinion there should be a concerted effort to stabilise the standard library and the compiler rather than adding anything more. There are so many features and switches and toggles that even if you look away for a month or two there’s something totally new or di

Nim v2: what would you change?

2022-05-07 Thread cumulonimbus
Do whatever's needed to get CPS (existing implementation ) into the core+stdlib. If this requires a small breaking change, it's probably worth it;. CPS is incredibly useful for introspection, async, suspend to disk, migration between threads, migration between

Var + varargs = 🤯

2022-05-07 Thread ElegantBeef
Well view types _should_ allow it to happen, but until then you can either do the open array or use a macro like: import std/macros macro myPretendProc(ii: varargs[var int]): untyped = result = newStmtList() for x in ii: result.add newCall("show", x)

Nim v2: what would you change?

2022-05-07 Thread cumulonimbus
@exelotl > Isn't this what the effects system is for? You can stick {.raises: [].} on > your main proc and be confident that no pesky new exceptions slipped in. In theory yes. In practice, my impression is that it just doesn't work. Can't say that for Nim - not enough body of code, especially n

Var + varargs = 🤯

2022-05-07 Thread archnim
Thank you.

Var + varargs = 🤯

2022-05-07 Thread ElegantBeef
The way `varargs` works prevents it from being mutable, if you pass in `i1, i2, i3` it implicitly creates an array of `[i1, i2, i3]` which means it's an immutable data type. You should probably use an array and take `var openArray[int]` instead of `i1, i2, i3`. In present Nim I do not think `va

Var + varargs = 🤯

2022-05-07 Thread archnim
With `varargs[var int]`, I get: Error: invalid type: 'var int' in this context: 'proc (ii: varargs[var int])' for proc Run

Is it a good idea to downcast Hash

2022-05-07 Thread planetis
I made up a [benchmark](https://github.com/planetis-m/packedjson/tree/greek_benchmarking) that I can win just for fun. packedjson2: used Mem: 307.755MiB time: 5.68s packed json: used Mem: 312.02MiB time: 7.90s stdlib json: used Mem: 1.577GiB time: 17.1s Run

Var + varargs = 🤯

2022-05-07 Thread xigoi
Interestingly, if you do `ii: varargs[var int]` instead, it will accept the arguments, but won't allow you to mutate the array. This should probably be changed.

Var + varargs = 🤯

2022-05-07 Thread archnim
Hello world. Please, what is wrong with my code ? var i1 = 1 i2 = 2 i3 = 3 proc show(i: var int) = echo i # A proc that needs var proc myProc(ii: var varargs[int]) = for i in mitems ii: show i myProc(i1, i2, i3);

Why I left the Nim community

2022-05-07 Thread r3c
imo there is desperate need for Roadmap

Why I left the Nim community

2022-05-07 Thread carterza
I'm having somewhat of a difficult time parsing the meaning from your reply as I believe the language barrier is interfering a bit, but I want to clarify a few things. 1. It's not like this is the first attempt I've made at suggesting how we could improve the community, nor is it the first ti

Wierd behaviour with table

2022-05-07 Thread Yardanico
The reason is that your b.nim module doesn't have access to the std/tables module, so it can't use the Table APIs. There are two ways to fix this: 1. Add `export tables` to your a.nim 2. Add `import std/tables` to b.nim

Wierd behaviour with table

2022-05-07 Thread aEverr
you have to also `import tables` inside module b

Wierd behaviour with table

2022-05-07 Thread huantian
Did you import tables in the second file as well?

Wierd behaviour with table

2022-05-07 Thread foderking
I have a table in a separate file `a.nim` import std/tables let lookupTestTable* = { "A1": """ 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0"

Why I left the Nim community

2022-05-07 Thread thadeudepaula
Well some points that I hope bring some light... 1. There is a bunch of languages out there. I'm using Nim because of its purpose and ease. Yes, a larger and warmer community is good... and even I feel some cold sometimes. Even someone says being here since 1900 or 10 days ago, anyone can fee

Why I left the Nim community

2022-05-07 Thread SolitudeSF
> as you engage in that shit all the time yourself lol

Why I left the Nim community

2022-05-07 Thread carterza
It's true though, you do whether you want to admit it or not. I've interacted with you and the community enough to know who likes to keep things interesting and who doesn't, and you definitely fall into the category of the former. I'm not here to debate that point with you though As far as

Why I left the Nim community

2022-05-07 Thread carterza
Why shill for Nimskull when it's not a viable alternative to Nim? I'll point out again, I said I made this post to stir the pot. I don't care if you want to call it attention seeking behavior Solitude - as you engage in that shit all the time yourself, and I'm not going to turn this into a back

Why I left the Nim community

2022-05-07 Thread carterza
Thanks for clearing this up PMunch! I'm glad at least the moderation policy has been addressed and worked on. I'm glad to see that being improved as it's a hugely important aspect of successful communities. The fact that it was addressed gives me some hope, but I still think leadership needs to

Why I left the Nim community

2022-05-07 Thread carterza
If you want specifics PM me - I'm not going to out people on the forum publicly besides Dom. I was a moderator for quite some time and if you don't think I saw people using disgusting language and referring to groups of people with disparaging names, than I don't think you've ever been in #off-t

Nim v2: what would you change?

2022-05-07 Thread Zoom
@exelotl: > [exceptions] seem like the lest-terrible tool for the job, a happy medium > between being forced to check things vs. having to remember to check things. Well, with an option/result you can always drop ("unwrap") it. This is cool because now ignoring a possible error becomes explicit

Why I left the Nim community

2022-05-07 Thread PMunch
Welcome @carterza! It's always sad to see community members leave, and I really appreciate that you still feel strongly enough about the language to take the time to come back and share your gripes. I can't speak much to the leadership of Nim since I'm not really involved with that at all, I'm j

Moderation policy for bans

2022-05-07 Thread PMunch
Just a little update on this, seeing how a recent forum topic has sparked further interest in the topic (and resulted in feedback through our contact form). Moderators are obviously not "above the law" either, if anyone wants to report a moderator then the same process applies to them as with an

Why I left the Nim community

2022-05-07 Thread geotre
> If you read my replies in this thread, you'd clearly see that the examples I > pointed to where the exact opposite of this situation - where someone was > acting racist / xenophobic and WASN'T dealt with by leadership. Where are these examples? I didn't see them in the thread and don't remembe

Why I left the Nim community

2022-05-07 Thread Recruit_main707
> Do you honestly think the Kekistan flag wouldn't have been immediately banned > everywhere else? Well from my own experience this has never been a problem, and even though im not active in most discord servers i am in, i have talked at least a few times in most of them. So no, it wouldnt have

Why I left the Nim community

2022-05-07 Thread ingo
"The best customer you can get is a complaining customer." imo it's not to the community to respond.