ringabout

Results 252 comments of ringabout

Reduced: ```nim type Matrix[M,N: static[int]; T: SomeFloat] = distinct array[0..(M*N - 1), T] let a = new Matrix[2,2,float] ```

It seems that ORC cannot generate the right type info for distinct array type which is marked as canFormaAcyclic.

Yeah, it is an undefined behaviour in c, optimizations may free the stack variables when out of the scope. https://stackoverflow.com/questions/13888268/what-happens-when-a-variable-goes-out-of-scope

I checked the code generated by if expr (which works). Another possible solution is to deref the pointer in the block scope like below: ```c { tyObject_Foo__9bOqVyAHO8e6D7f036GENHQ i; nimZeroMem((void*)(&i), sizeof(tyObject_Foo__9bOqVyAHO8e6D7f036GENHQ));...

Some related issues and prs: https://github.com/nim-lang/Nim/issues/16270 https://github.com/nim-lang/Nim/pull/18388 https://github.com/nim-lang/Nim/issues/18396

Please make prs to make important packages work

I need optional dependencies too. Now I use `nimble task` as a workaround. ```nim task prologue, "install prologue": exec "nimble install prologue >= 0.3.6" task fsnotify, "install fsnotify": exec "nimble...

It works.But we will rewrite async http server from scratch instead. 😄

other workarounds by modifying `asynchttpserver`.So does `httpbeast`. ```nim # in asynchttpserver.nim # https://github.com/nim-lang/Nim/blob/b6924383df63c91f0ad6baf63d0b1aa84f9329b7/lib/pure/asynchttpserver.nim#L102 proc respond*(req: Request, code: HttpCode, content: string, headers: HttpHeaders = nil): Future[void] = if headers != nil:...

I'll try.Maybe need a better solution instead.😄