Here you go:
[https://github.com/nim-lang/assets](https://github.com/nim-lang/assets)
I just noticed from system module:
proc cmp*[T](x, y: T): int {.procvar.} =
if x == y: return 0
if x < y: return -1
return 1
Looks very similar to sign() function above.
So maybe we should write that
(x > y).int - (x < y).int
Well, mayby
Ah yes, you are right.
Aporia is GTK2, so I guess it copy highlighting files not to
/usr/share/gtksourceview-3.0/language-specs/
So I have to fix the NEd documentation.
Maybe it is gtksourceview-2.0 for Aporia. Does nimble install aporia works for
you without root rights? I have just asked
I have aporia installed, but I installed it as a nimble package. There the
syntex highlighting just works.
I have just fixed the crash at exit if ned was started with a non nim file.
Problem was a recent change, as long as no nim file is opened no nimsuggest
process is launched, but unfortunately I used a channel at exit for that case.
Hope it is fixed now.
Yes no highlight -- I think most people
> stdin does not have a file name in Linux?
I am sorry, but that is not correct. There is "/dev/stdin".
I am using emacs right now. And emacs works but it feels like a very big hack,
and I had lots of trouble to set it up working. VSCode, maybe when web tools
are concidered to be lightweight, like emacs is concidered lightweight now but
not when it started to evolve.
Installing the gtksourceview
I would say that there are quite some ways to describe somthing with an AST in
nim. And for writing macros it can be kind of hard to deal with all those
variations. For example I just assume that there is always a RecList in the
OfBranch. I write my code that iterates over node that I just
> I tested it, but I did not have any syntax highlighting.
I assume on Linux. Do you have syntax highlighting at all, for example in
gedit? Do you have syntax highlighting for other files, maybe xml?
You may try with another file extension, like
./ned nimdark1.xml
but I just
Ok, thanks for the clarification
I know Nim isn't python, but from a new user's perspective, all (or most of)
the 'echo's in the nim manual are shown python-style eg. echo thing, not
echo(thing)
It would not be obvious to them (and wasn't to me) that the brackets (or
implied brackets) and
Also, you mention that there may be conflicts by using nimble to install
dependencies globally. Why not use a nimble file to handle your per-project
dependencies? Then `nimble build` will suffice to build the project (assuming
you have the C dependencies installed).
By using nimscript you
I tested it, but I did not have any syntax highlighting. I did not test a lot
but I think the setup process is a bit complicated. It would be nice if there
would be a build script that does everything to build the project and getting
all the dependencies in the right version.
should it?
[python]
print (5 + 1) * 6
36
even 'echo ((5 + 1) * 6 ))' gives the 'spacing is deprecated' warning
(just doesn't feel right to me, though I'm not a language professor)
Oh well... thanks
Not exactly sure what I'm doing wrong
var
x = (5 + 1) * 6 # ok 36
echo (5 + 1) * 6# Error: type mismatch: got (void, int)
Also, I find the new "Warning: a [b] will be parsed as command syntax; spacing
is deprecated [Deprecated]" slightly confusing.
Haha, yep, it's a pretty comprehensive project and is bigger than a lot of Nim
projects. The code makes use of Nim features such as async and macros. Imagine
how large the program would be if Nim didn't have those features!
Hello to my favorite programming community!
Having trouble with installing Nim on Centos 6.8 I previously had 0.12.0
installed and removed it by deleting installation directory. I downloaded
nim-0.15.2.tar.xz and extracted to /opt/nim-0.15.2/ Changed to that directory
and did sh build.sh It
16 matches
Mail list logo