Nim version 2.0.0 is here

2023-08-10 Thread SolitudeSF
> Primeagen just as i blocked all of this guys channels, to stop youtube from recommending me his low effort garbage, he finds his way on the forum, fascinating.

What is the best way to learn nim for someone who is fluent with python

2023-08-10 Thread namisboss
Here are some links: > > >

Nim version 2.0.0 is here

2023-08-10 Thread Araq
> It may be worth to add another blog post with explanation what problem Nim > tries to solve. * * * > Nim is a programming language that is good for everything, but not for > everybody. It focuses on the imperative programming paradigm and enhances it > with a macro system. Its customizable m

What is the best way to learn nim for someone who is fluent with python

2023-08-10 Thread Araq
Ask an AI to write Nim code for you.

What is the best way to learn nim for someone who is fluent with python

2023-08-10 Thread isaiah
i am interested in learning nim but it seems to lack resources and the libraries have no documentation to use. what are your recommendations to learn and use it well.thanks

Type class that is "anything but X"

2023-08-10 Thread elcritch
I like when Nim has these sort of "dependent typing" sort of features, but without requiring a PhD in dependent types!

Any way to produce Arm64 binaries for MacOS from choosenim versions of nim?

2023-08-10 Thread elcritch
Both Nimble and Atlas currently have a "bootstrap problem" for ARM on Macs or Linux. Using them to build and install a Nim compiler requires downloading a pre-compiled binary or installing Nim anyways. Currently ARM architecture binaries aren't provided by either. Well last time I checked Nimbl

Any way to produce Arm64 binaries for MacOS from choosenim versions of nim?

2023-08-10 Thread elcritch
Do you know how to setup an macos / ARM build on CI? I know how to use qemu to do it for linux, but not sure about Macos. Unless perhaps it's a "fat binary" which would work.

Nim version 2.0.0 is here

2023-08-10 Thread alexeypetrushin
I watched the second part of the video, he basically has 1 concern: > I feel that Nim is gonna take a ton of understanding. and 1 question: > When I real all this stuff, I always came down to same problem which is - > what is being solved here? P.S. > He wasn't happy with the top-down inferen

Nim version 2.0.0 is here

2023-08-10 Thread Araq
Good programmers don't find excuses not to learn language X, they learn the essentials of language X in an afternoon...

Any way to produce Arm64 binaries for MacOS from choosenim versions of nim?

2023-08-10 Thread Araq
Some things never become true, no matter how often you repeat them. This is one of these.

Any way to produce Arm64 binaries for MacOS from choosenim versions of nim?

2023-08-10 Thread arnetheduck
> Atlas can do the same already. ditto nimble - in fact, life would be so much easier if we treated nim just like any other dependency and had the package manager download and use a version compatible with the project (as discovered via `requires nim >=... < ...`) - there's no difference betwee

Nim version 2.0.0 is here

2023-08-10 Thread dlesnoff
Congratulations on this release! Huge shout-out to all the contributors! I have been happily surprised to see coverage of the blog post announcing the release by [Primeagen](https://youtu.be/nFPm48nANCY) Some key points from this video: – He doesn't program in Nim but incites people to donate t

Any way to produce Arm64 binaries for MacOS from choosenim versions of nim?

2023-08-10 Thread ci4ic4
I’d like to mention that nim runs fine on NetBSD/arm - tested on arm64, aarch64, uname -m returns ‘evbarm’. The pkgsrc version obviously follows released versions and they assume the os only amd64 and i386.

Type class that is "anything but X"

2023-08-10 Thread SolitudeSF
type NotXYZ = not X and not Y and not Z

Type class that is "anything but X"

2023-08-10 Thread bmanivelle
This works without concepts type X = object Y = object Z = object NotXY = not (X | Y) proc doSomething(_: NotXY) = discard let x = X() y = Y() z = Z() echo compiles(x.doSomething) # false echo compiles(y.d

Type class that is "anything but X"

2023-08-10 Thread SmutnyNosacz
I need to describe a generic type which is "anything but type X, Y, or Z". So far my feeble attempts to do it with concepts are failing (getting "Hint: Non-matching candidates for not false" all over the place and then "concept predicate failed"). type NonXYZType = concept x

Open file at compile-time [JS backend]

2023-08-10 Thread juancarlospaco
For run-time

Open file at compile-time [JS backend]

2023-08-10 Thread Qtless
Thanks!

Open file at compile-time [JS backend]

2023-08-10 Thread Qtless
I'm trying open file in macro, but I got exception: template/generic instantiation of `some` from here Error: cannot 'importc' variable at compile time; fopen Run My Nim code: import macros macro some(): untyped = var f = open("some

Open file at compile-time [JS backend]

2023-08-10 Thread enthus1ast
use `staticRead("some.txt")`