Jacek Sieka

Results 214 issues of Jacek Sieka

Fixes compilation on osx and arm64

This proposal introduces a new flag, `--long-range-sync`, that takes effect whenever the most recent state in the database (or genesis, if no database) is older than the weak subjectivity period...

### Description The [murmurhash implemention](https://github.com/nim-lang/Nim/blob/77c04092e01c7f42b5697ec0ec9e71352f628023/lib/pure/hashes.nim#L306) uses 32-bit limbs (on 64-bit systems) and inserts range checking inside the loop causing it to perform extremely poorly due to branching and inability to...

Performance

### Description The following snippet, of critical performance importance when working with [sum types](https://github.com/nim-lang/RFCs/issues/548), generates an inefficient copy, even though it can be seen that lifetimes are bounded in such...

ARC/ORC Memory Management
Status

### Description ```nim var v: array[1, byte] echo v.toOpenArray(0'i8, -1'i8) ``` at runtime, this crashes with a Defect (!) ### Nim Version 2.0.6 ### Current Output ```text Error: conversion from...

### Summary When passing parameters to templates, subsitution may cause the parameter to be evaluated multiple times - warn when this happens ### Description ```nim proc f(): int = echo...

Feature
Error Messages
Templates

### Description ```nim type X = object v: string proc fff(input: string): X = X(v: input) proc ggg(input: string): X = fff(input) proc hhh(input: string): string = ggg(input).v # inefficient...

Performance
ARC/ORC Memory Management
Status

### Example ```nim type Result[T, E] = object DataProc = proc(val: openArray[byte]) GetProc = proc (onData: DataProc): Result[bool, cstring] func get[T, E](self: Result[T, E]): T = discard template `[]`[T, E](self:...

Semantic Analysis
Compiler Crash
Templates
Closures

### Description ```nim when nimvm: proc mytest(a: int) = echo a else: template mytest(a: int) = echo a + 42 proc xxx() = mytest(100) ``` the vm symbol shouldn't be...