Where? I am 100 pages in and it's still a reference manual (aside from the
first part of course, but that's just about 30 pages). Yes, there are examples
and explanation, but nothing that forms a coherent guide like K&R C does. There
are chapters on mastering macros and parallelism, I have not y
Another thing I want to add is that I would love to have offline Nim
documentation. GNU Info is a great format for writing book-sized manuals which
can be read directly from within the editor. Info is normally generated from
GNU Texinfo files, but it should be fairly straight-forward to generate
Documentation is a pet topic of mine. In my experience poor documentation is
not so much a technical problem as it is a cultural one. Improving the
technological side is good, but people who want to write quality documentation
will always find a way, even if it is a plain text file check into th
I am glad I am not the only one who sees it o_O
How is backward compatibility with Nim 1.x source code? If one wanted to
package Nim 2 for a GNU/Linux distro, should there be a separate `nim2` package
(which might conflict with the `nim` package) or is it fine to treat Nim 2.0 as
a straight upgrade?
Is there is possibility of buying the book somewhere else than Amazon? If not
now, then at least in future maybe? I really don't want to buy anything from
that company if it can be avoided.
Thank you, that solved the problem. So if I understand correctly, the parser is
trying to match pattern `\n line`, finds the `\n`, then tries matching `line`,
which means it tries matching `first`, `point`, `x`, `coordinated` and finally
`number`, which fails and causes the parser to leave that
I don't understand how my grammar is not deterministic: one or more `line`s
separated by a `\n`, terminated by an optional `\n`. Maybe my understanding of
determinism is wrong, but I used a similar grammar for the previous day without
issues.
let
grammar* = peg"""
spe
Hello,
I have been doint last winter's Advent of Code puzzles in order to practice
Nim, and I am stuck at the [day 5 puzzle](https://adventofcode.com/2021/day/5).
I use a PE grammar to parse the input; I could have used regular expressions
but since the puzzles are going to become progressively
> If you're careful and avoid top level statements in your DLL that need to run
> in `NimMain` then there is no need to call `NimMain` in the C code.
Are top-level statements all statements which are not just function/procedure-,
type- or variable definitions? Basically anything that would not b
Thank you, that seems to work. I even tried it with a short C program. A few
more questions:
* You use `--gc:orc`, but the manual mentions `--mm:org`, is `--mm` a new
notation?
* Is there any downside to using `-d:useMalloc`?
* What about memory management, is there no need to include a ga
Hello everyone,
I would like to know if and how Nim could be used as a C replacement to create
native dynamic system libraries which can be distributed and used like any
library written in C. This is where all the supposed C replacements like Rust
or Go fall flat. Only C++ so far seems suitable
12 matches
Mail list logo