unexpected output

2024-08-26 Thread Calonger
[strformat](https://nim-lang.org/docs/strformat.html) or [formatfloat](https://nim-lang.org/docs/strutils.html#formatFloat%2Cfloat%2CFloatFormatMode%2Crange%5B%5D%2Cchar)

Design Q: Why was result chosen? Why not re-use return?

2024-06-20 Thread Calonger
>From Delfi

Where the .. does that echo come from?

2024-05-29 Thread Calonger
If template use instantiationinfo

Issue: regression on 2.x.x: push warning[HoleEnumConv]:off does not work.

2024-05-12 Thread Calonger
What if i = 1 ? Do `cast[e]`

cannot evaluate at compile time

2024-05-06 Thread Calonger
CHARSET is tuple type ? --> index must compiletime , array / seq will fix

How to determine the dependencies of a given nim file.

2024-03-30 Thread Calonger
`gendepend` or `genScript` ? [here](https://nim-lang.org/docs/nimc.html)

macro pragma: param's default value not support?

2024-01-24 Thread Calonger
Just overload it .

subclassed Iterator dispatch question

2024-01-23 Thread Calonger
Try a import sequtils type Number = object of RootObj Odd = object of Number Even = object of Number method sample(number: Number): iterator(): int = result = iterator(): int = for i in [1, 2, 3]: yield i method samp

punctuations rituals

2024-01-23 Thread Calonger
Change syntax too late

Parser combinators experiment causes Error: "cannot instantiate return:type"

2024-01-23 Thread Calonger
Can use results

TCC on ARM(el) backend problem

2024-01-21 Thread Calonger
Og VS O0

fixme: the proc parameters always use Copy by default?

2024-01-07 Thread Calonger
proc f(t: seq[string]) = echo "f:", cast[int](t[0].addr) proc fv(t: var seq[string]) = echo "fv:", cast[int](t[0].addr) var t = @["foo", "bar"] echo "t:", cast[int](t[0].addr) f t fv t Run Now all output is same .

Nim v2: what would you change?

2024-01-04 Thread Calonger
You sacrifice more for style insensitivity than the entirety of Rust ?

why object variants not support same field name ?

2024-01-02 Thread Calonger
What is type of expression command.opts ?

some MM modes leads to SIGSEGV

2024-01-02 Thread Calonger
Wrong acyclic ?

Escape characters for fmt

2023-12-20 Thread Calonger
Use & instead of fmt , & escape characters fmt do not ( raw string ) .

Direct C/C++ interop without generating wrappers?

2023-12-18 Thread Calonger
https://github.com/PMunch/futhark

Why is `enumerate()` a macro?

2023-12-15 Thread Calonger
Iterator is only composible in iterator () : T form . Using means runtime closure , expensive .

Advent of Nim 2023

2023-12-06 Thread Calonger
Saying : turn on release build , not debug build .

custom pragmas are not supported for enum fields

2023-11-29 Thread Calonger
Also : type MajorType* = enum mtPositiveInteger mtNegativeInteger mtBinaryString mtUnicodeString mtArray mtMap mtSemantic mtSpecial const id_key = [ mtPositiveInteger: 0, mtNega

Brackets and unary operators

2023-11-27 Thread Calonger
`$(input.type)` is function call other language , `$` normal identifier in JavaScript used in JQuery , but operator in Nim . That is confusion . `-(input.type).toUpper` no confusion .

Nim Community Survey 2023

2023-11-17 Thread Calonger
Yes . They are too scarce . Everything in 2.0 not need take 2 year to release ( time between 1.6 and 2.0 release ) .

Nim Community Survey 2023

2023-11-17 Thread Calonger
Biggest missing thing : **More Often Versions** .

Nim boilerplate

2023-10-11 Thread Calonger
@aEverr says correcet , your concept is recursive make no sense. type CircleShape = concept a buildCircleProps(a) proc buildCircleProps[T](a: T) = discard proc buildCircleProps(a: CircleShape) = ... Run Wrong ! Remove buildCircleProps from con

help fix the error please

2023-10-10 Thread Calonger
> tray.menu[] = TrayMenu(text: "hello") You need allocate tray.menu

A few (perhaps naive) questions

2023-09-02 Thread Calonger
Yes , why people get offended when one say " I might drop Nim "

Explanation for SSL/TLS Error

2023-08-22 Thread Calonger
Smtp no standard library no longer now nimble package might have bugs fixed ...

How to update a nimble package?

2023-08-22 Thread Calonger
There is bug with pkgs and pkgs2 folder with Nim v 2 . 0 ... Installs to pkgs2 but import module go to pkgs . Delete pkgs folder reinstall packages .

A few (perhaps naive) questions

2023-08-07 Thread Calonger
No division ??? Huuuh ???

How to make an archive and unpack/add a folder with files to the archive?

2023-07-26 Thread Calonger
Zuppy the Fox player ? You mean Zippy ?

Some of Nim's convention needs to change in order for it to succeed

2023-07-23 Thread Calonger
Why it matter so much to succeed ? What succeed even mean if Python not succeed ? What do succeed languages care about people opinions when PHP Javascript Python C Go popular ?

Nim 1.6.14 released

2023-07-23 Thread Calonger
Link ?

Some of Nim's convention needs to change in order for it to succeed

2023-07-23 Thread Calonger
Thafuq is " Object layout format " Object method calling convention " ? In comparison what examples ? What you talking about ? You not explain this

Concepts in Nim v2

2023-07-22 Thread Calonger
You need use Die to make Die Distribution. You not define sample on Die , you define sample for Distribution , which infinite recursive ( define sample for type with sample defined )

Another Pythonish Compiled Language: Lobster

2023-07-22 Thread Calonger
It not compiled it JIT ... Implementation > Choose between running directly using the convenient JIT, or compilation to > C++ for extra speed.

Concepts in Nim v2

2023-07-22 Thread Calonger
`` Die[float] = object `` mean what ?? Float is not generic parameter ! func sample(d: Distribution): float = rand(1..d.sides) This infinite recursive definition ! Distribution not concrete type ! Need use Die !

RIP Nitter

2023-07-07 Thread Calonger
So , if AI know SDL function documentation , no need document SDL wrapper function ?

Nim Sucession Plan

2023-07-03 Thread Calonger
If one suceed should be put together not umprompted rant about SJW

Suggestion to improve proc type infer, and some complains

2023-07-03 Thread Calonger
What is suggestion ?

Why is a Nim enthusiast/programmer called a "Nimmer"?

2023-06-30 Thread Calonger
What mean " retarded " ?

Why is a Nim enthusiast/programmer called a "Nimmer"?

2023-06-28 Thread Calonger
Pronounced same "glimmer" You not pronounce ?

Does Nim has the same features that D has when interfacing to Objective-C?

2023-06-25 Thread Calonger
Sorry but this thinking always dissappoint .

how to make a dll in nim-lang?

2023-06-19 Thread Calonger
`string` != `cstring` . Use `cstring` no `string`

procs: forward declaration

2023-06-15 Thread Calonger
Can do compile time maybe ?

macro compile-time comparison with define-pragmas

2023-05-15 Thread Calonger
Do a `if foo == fooName.strVal`

Package update issue

2023-05-06 Thread Calonger
You update version in the package.nimble after tagging , . Do before .

Bug in Nim Std/Json?

2023-05-02 Thread Calonger
How this bug, if no quote to escape string that is not string anymore . That is not JSON. OpenAI using JSON variant with unquoted string .

How to implement Trie data structure.

2023-05-02 Thread Calonger
Juste object works ? type Node* = object children: seq[Node] name: string var x = Node(name: "x", children: @[Node(name: "y")]) Run

EU Cyber Resilience Act impact on Open Source community

2023-04-24 Thread Calonger
You take your comfort in EU for granted .

Tcp buffer reuse for lower memory use

2023-04-13 Thread Calonger
Perhaps ... ? proc remoteHasData() {.async.} = var buf : array[1024 , char] while not remote.isClosed and not remote.isClosed: let n = await remote.recvInto(unsafeAddr buf[0],1024) await client.send(unsafeAddr buf[0], n) client.close()

2.0 RC new and old

2023-04-10 Thread Calonger
sigh... The real problem is there are not enough versions... Nim add features all the time but release very slow, everyone has to change code all at once for all the new features. Then too many features, old code is "broken" but would be fixed easily if it was gradual release. Look at Rust, they