Nim is a statically typed compiled systems programming language. It combines successful concepts from mature languages like Python, Ada and Modula. Its design focuses on efficiency, expressiveness, and elegance (in that order of priority).
This report summarizes scanner evidence for nim-lang/Nim, a Nim project with 18,294 GitHub stars. SynthScan examined 50,441 lines of code across 246 source files, recording 60 pattern matches distributed across 10 syntactic categories. The legacy adjusted pattern signal is 1.4 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 51 finding(s).
Are imports declared and package/API names verified? 5 finding(s).
Are wrappers, guards, and repeated structures necessary? 8 finding(s).
Which changes need focused human review? 60 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 60 distinct pattern matches across 10 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | config/nim.cfg | 261 | @if vxworks: | COMMENT |
| LOW | config/nimdoc.cfg | 41 | </ul> | COMMENT |
| LOW | config/nimdoc.cfg | 81 | # See doc.item for available substitution variables. | COMMENT |
| LOW | tests/manyloc/packages/noconflicts.nim.cfg | 1 | # Mark noconflicts as project file | COMMENT |
| LOW | tests/compiler/nim.cfg | 1 | # note: consider moving tests/compilerapi/ to tests/compiler/ since | COMMENT |
| LOW | lib/nimbase.h | 41 | */ | COMMENT |
| LOW | lib/nimbase.h | 61 | # pragma GCC diagnostic ignored "-Wunused-variable" | COMMENT |
| LOW | lib/nimbase.h | 81 | #endif | COMMENT |
| LOW | lib/nimbase.h | 101 | #else /* others are less picky: */ | COMMENT |
| LOW | lib/nimbase.h | 121 | # define NIM_THREADVAR __thread | COMMENT |
| LOW | lib/nimbase.h | 141 | #if defined(__cplusplus) | COMMENT |
| LOW | lib/nimbase.h | 161 | /* ------------------------------------------------------------------- */ | COMMENT |
| LOW | lib/nimbase.h | 181 | # define N_THISCALL_PTR(rettype, name) rettype (__thiscall *name) | COMMENT |
| LOW | lib/nimbase.h | 201 | # define N_CDECL_PTR(rettype, name) rettype (*name) | COMMENT |
| LOW | lib/nimbase.h | 221 | # define N_LIB_EXPORT_VAR __attribute__((visibility("default"), used)) | COMMENT |
| LOW | lib/nimbase.h | 241 | #define N_NOINLINE_PTR(rettype, name) rettype (*name) | COMMENT |
| LOW | lib/nimbase.h | 261 | #define N_CLOSURE_PTR(rettype, name) N_NIMCALL_PTR(rettype, name) | COMMENT |
| LOW | lib/nimbase.h | 281 | #define NIM_STATIC_ASSERT(x, msg) _NIM_STATIC_ASSERT_STAGE_2(x,__LINE__) | COMMENT |
| LOW | lib/nimbase.h | 301 | #endif | COMMENT |
| LOW | lib/nimbase.h | 321 | #define NIM_BOOL bool | COMMENT |
| LOW | lib/nimbase.h | 341 | # else | COMMENT |
| LOW | lib/nimbase.h | 401 | #ifdef __INT32_TYPE__ | COMMENT |
| LOW | lib/nimbase.h | 421 | #endif | COMMENT |
| LOW | lib/nimbase.h | 441 | # elif NIM_INTBITS == 16 | COMMENT |
| LOW | lib/nimbase.h | 481 | /* declared size of a sequence/variable length array: */ | COMMENT |
| LOW | lib/nimbase.h | 501 | # define NAN (__builtin_nanf("")) | COMMENT |
| LOW | lib/nimbase.h | 541 | # define NIM_LIKELY(x) __builtin_expect(x, 1) | COMMENT |
| LOW | lib/nimbase.h | 561 | COMMENT | |
| LOW | lib/nimbase.h | 581 | # include <sys/types.h> | COMMENT |
| LOW | lib/nimbase.h | 601 | #if ((defined(__arm__) && !defined(__unix__)) || defined(__riscv) || (defined(__xtensa__) && !defined(__unix__))) && | COMMENT |
| LOW | lib/cycle.h | 81 | #if TIME_WITH_SYS_TIME | COMMENT |
| LOW | lib/wrappers/linenoise/linenoise.c | 101 | * Sequence: ESC [ 2 J | COMMENT |
| LOW | doc/testament.md | 121 | action: "run" | COMMENT |
| LOW | doc/testament.md | 161 | # Error message the test should print, if any. | COMMENT |
| LOW | doc/advopt.txt | 1 | Advanced commands: | COMMENT |
| LOW | doc/tut3.md | 141 | # output: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tools/debug/nim-gdb.py | 63 | except: | CODE |
| HIGH | lib/pure/unidecode/gen.py | 11 | except ImportError: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/debug/nimlldb.py | 78 | # Check if data pointer is Null | COMMENT |
| LOW | tools/debug/nimlldb.py | 92 | # Check if first element is NULL | COMMENT |
| LOW | tools/debug/nimlldb.py | 109 | # Check if data pointer is Null | COMMENT |
| LOW | tools/debug/nimlldb.py | 121 | # Check if first element is NULL | COMMENT |
| LOW | tools/debug/nimlldb.py | 514 | # Check if first element is NULL | COMMENT |
| LOW | tools/debug/nimlldb.py | 531 | # Check if first element is NULL | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/debug/nim-gdb.py | 98 | CODE | |
| LOW | tools/debug/nim-gdb.py | 240 | CODE | |
| LOW | tools/debug/nimlldb.py | 792 | CODE | |
| LOW | tools/debug/nimlldb.py | 763 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/debug/nim-gdb.py | 4 | CODE | |
| LOW | tools/debug/nim-gdb.py | 5 | CODE | |
| LOW | tests/untestable/gdb/gdb_pretty_printer_test.py | 3 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/debug/nim-gdb.py | 16 | except Exception as e: | CODE |
| LOW | tools/debug/nim-gdb.py | 687 | except Exception as e: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/debug/nim-gdb.py | 692 | def register_nim_pretty_printers_for_object(objfile): | CODE |
| LOW | tools/debug/nimlldb.py | 1240 | def breakpoint_function_wrapper(frame: lldb.SBFrame, bp_loc, internal_dict): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/debug/nimlldb.py | 230 | CODE | |
| LOW | tools/debug/nimlldb.py | 1313 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/testdata/string.txt | 1 | Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magn | CODE |
| LOW | tests/testdata/string.txt | 1 | Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magn | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/debug/nim-gdb.py | 118 | tname = target_type.name # could also just return 'string' | CODE |