Nim
Nim is a general-purpose systems programming language that's designed to be efficient, expressive, and elegant. The Nim compiler produces dependency-free binaries for most platforms as well as JavaScript for the web.
Here are 1,080 public repositories matching this topic...
Include doc comments
The Khronos reference page contains description of parameters and description of the behavior for every function. Wouldn't it be possible to add doc comments for the functions, so IDE can show it? I understand the function description is a bit cumbersome, as one description is usually related to multiple functions with similar functionality, however parameters description would help a lot.
I am c
https://github.com/nim-lang/nimble/blob/master/src/nimblepkg/init.nim
Multiline strings are used here which seem to always give \n no matter what the source file uses. This creates files with just \n and not \r\n on Windows.
Possible solution is p template mentioned here.
The docs generated for #431 at https://mratsim.github.io/Arraymancer/pca.html have broken formatting:
I have written some simple examples in Nimx, but it is not clear to me what kind of pattern to follow to create custom components. By this I mean:
- either a customization of an existing component (say, buttons with a different style)
- or some kind of new component that possibly does its own layout but includes other components (for instance a box containing multiple buttons, only one of whic
-
Updated
Nov 14, 2019
Main page example:
<meta property="og:title" content="Nim forum">
<meta property="og:type" content="website">
<meta property="og:image" content="..."/>
<meta property="og:url" content="https://forum.nim-lang.org/">
<meta property="og:site_name" content="Nim forum">Thread example:
<meta property="og:title" content="Thread title">
<mDart-lang
Language request for Dart.
This issue happens in Nimbus, but I expect fix is in nim-eth. Feel free to move issue if not.
Problem
If I run one wakunode this is the normal output:
> ./xx --log-level:DEBUG
DBG 2020-04-22 11:38:51+08:00 UPnP topics="nat" tid=17736 file=nat.nim:64 msg="Internet Gateway Device found but it's not connected. Trying anyway."
DBG 2020-04-22 1
-
Updated
Apr 19, 2020 - Python
Hi,
You are defining a Color object, but Nim already defines a Color type in its standard library:
color.nim
Wouldn't using that instead of redefining the type be possible ?
Plus it would make working with Colors easier as the nim implementation has more features and that would avoid managing different types for the same
add nimble install fragments to this part of the readme
As a beginner I wasted an hour trying to figure out what did I do wrong, turns out it was just a package error
I use official nim library https://github.com/nim-lang/sdl2/blob/master/src/sdl2/ttf.nim to create font textures.
In my config.nims I have
switch("passL", "-I/usr/include/SDL2")
switch("passL", "-L/usr/lib")
switch("passL", "-lSDL2")
switch("passL", "-lSDL2_image")
switch("passL", "-lSDL2_ttf")
switch("passL", "-lSDL2_mixer")and it works fine so far.
This is condensed
Similar to python's help() function, that'd be so good!
>>> help echo
"Writes and flushes the parameters to the standard output.[...]"
I don't know if this is possible with nim, I've asked here:
https://stackoverflow.com/questions/61221599/nim-equivilant-to-pythons-help
Update docs
In order to update https://bluenote10.github.io/NimData/nimdata.html I tried running build_docs.sh, but ran into the following Nim doc gen issues:
The following command is somewhat working, besides the missing dochack.js and with the `git.c
-
Updated
Jun 7, 2017 - Nim
Given this simple struct
struct GPU_Target
{
int w, h;
};The output is:
# Importing /Users/joey/Downloads/scratch/testover.h
# Generated at 2020-04-12T08:53:24-06:00
# Command line:
# /Users/joey/.nimble/pkgs/nimterop-#head/nimterop/toast --preprocess -f=ast2 --pnim --nim:/Users/joey/Nim/bin/nim /Users/joey/Downloads/scratch/testover.h
{.hint[ConvFromXto-
Updated
Apr 9, 2020 - JavaScript
Created by Andreas Rumpf
Released 2008
- Repository
- nim-lang/Nim
- Website
- nim-lang.org
- Wikipedia
- Wikipedia



It seems there is a different raises behaviour for newTerminal()
Example
This will compile on Linux, but not on Windows. Error: