Here is my story from a slightly different angle.
I really like code-challenges sites. I've used them a lot (and: a lot of them
;)) when I was learning Python, and some of them when I started with Nim, here
is the list from the top of my head:
* Checkio
* Codewars
* Hackerrank
* Exercis
If you want to set them at the type definition you can use custom annotations:
[https://nim-lang.org/docs/manual.html#implementation-specific-pragmas-custom-annotations](https://nim-lang.org/docs/manual.html#implementation-specific-pragmas-custom-annotations)
I've been solving each of the Project Euler problems with 3 languages (C11,
Python, and Haskell) as an exercise. I've done the first five or six. I haven't
tried to use Nim in this context but actually it's as suitable as Python.
> Any ideas how to make it more popular? :-)
In the Project Euler community, this is not easy. Members are mostly
mathematicians and either they use main languages such as C, C++, Java, Python,
or they use languages such as Haskell (6863 users!) or more logically
Mathematica or Matlab. For thos
One more reminder for you guys, if you haven't bought tickets/hotel then you
**really** need to do so now.
**The best way for all of us to coordinate will probably be via Telegram**
([join here](https://t.me/nim_lang)). Events to be keep in mind:
* Beer event:
[https://fosdem.org/2019/beerev
Please keep in mind that many people only read the title and this week's topic
is "are we popular now? No? why?!"
So "Python Modules & why Python is better" is a suboptimal headline. ;-)
(This forum really needs an "edit title" feature...)
Interesting, I've never seen Doxygen/Javadoc based docs that I enjoyed
reading/navigating.
Hi, it's been a while since I posted here in the community (or done much with
Nim), but here at least is my $0.02:
I'm not a big fan right now of how inline documentation comments/strings work.
1. This may be more of a personal preference, but I don't like putting the
documentation right in t
**... with Nim.** 🤪
So some people chating about Python, and coming from Python to Nim, and etc.
I will show you some stuff I done with Nim, on Python, and maybe works as an
example implementation for people wanting to do the same.
I wanted to speed up Python, everybody know is slow, and taking
> What does it means? Firstly, that Nim is not popular at all. > Secondly, it
> shows that Nim has not found an audience with people fond of mathematical and
> programming challenges.
Ok. Any ideas how to make it more popular? :-)
Well it's an edge case that I don't have a strong opinion on but I want my
`removeFile "doesnt exist"` to remain silent.
Same here, I prefer checked it first with
[dirExists](https://nim-lang.org/docs/os.html#dirExists%2Cstring) than
immediately walk it.
That is really an interesting report, thanks.
So there are at least 13 Nim users -- well maybe some may have already retired
:-)
If I remember correctly, we had more than 100 users participating in 2018
Advent of Code using Nim, so this seems to be a more upto date lower bound.
When we assume
Secondly, it shows that Nim has not found an audience with people fond of
mathematical and programming challenges.
Run
There may be people interested in mathematics (and its applications) but not in
programming challenges that are generally more attractive for students.
When
Hi all,
In another thread, someone ( _mratsim_ ) has spoken of a lot of users using Nim
for Project Euler. Maybe members of this “project” have done a lot of noise to
make illusion, but I want to give some more precise data regarding Nim and
Project Euler.
For those who do not know about this
> Write the macro transformation carefully. Ensure that the lineinfo in the
> nodes remains useful.
Where can I find any examples of this?
For Python users, the syntax of Nim is not disturbing whereas this may be an
obstacle for those using another language. But, this is a trap. Despite their
syntax similarities, Python and Nim are very different languages and those who
are not aware of the constraints of a statically typed and non
I'd open an issue reporting this bug. And as you have already debugged the
issue, you might as well then provide a PR to fix that issue too. :)
Thank you very much @rect0x51, and @miran, thanks for the help and for the
careful advises. I love the simplicity and power of Nim.
An empty directory is something else then a non-existing directory, IMHO. I
would expect a exception in this case.
Well, if there is no directory, then there are no files inside it to iterate
on. Makes sense to me, I would not want an exception there
And one thing Rust is very focused on is documentation, especially since Rust
has both ergonomic and conceptual barriers for beginners that are quite often
immediate turn-offs.
Well, yeah, I dunno, docs can be improved but it usually does exactly the
amount of checking that I like.
eg, this code:
import os
for p in walkDir("/tmpX"):
echo p
echo "Hello"
Run
If the directory /tmpX does not exist, then control flow just passes on to
after the loop, rather than raising an exception about "directory not found".
In the nim
@deansher: Well, I was also looking for a way that would make the definition of
messages nice-looking and trivial. The drum-roll-overloaded-procs are so simple
I didn't even think of this, although I do not like the syntax for defining
messages like this.
But this is Nim: macro -> DSL to the re
> There have been lots of proposals to push Nim's syntax closer to Python
Indeed, many Nim users seems to have a Python background, and Python has grown
a lot in the last years, see
[http://pypl.github.io/PYPL.html](http://pypl.github.io/PYPL.html)
But when you want to make Nim very similar to
:-) For this example as written, you could use (drum roll) overloaded procs:
type
MsgAlpha = object
id: int
x, y: int
url: string
MsgBeta = object
id: int
resource: string
proc msgId(m: MsgAlpha): int = 1
proc msg
> The number of people who like the freedom points I'm making is several orders
> of magnitude greater. There aren't many things Nim can be Number One Best at,
> but it is on this issue. So this is a valid niche for Nim to embrace!
Which _niche_? It 's only you and so far your contributions cons
28 matches
Mail list logo