Nim 2.0.8 Manualecho "sizeof(Data) = ", sizeof(Data), " (1 byte + 127 bytes padding + 128-byte array)" # output: sizeof(Data) = 256 (1 byte + 127 bytes padding + 128-byte array) echo "alignment of sseType is ", alignof(sseType)0 码力 | 132 页 | 5.73 MB | 1 年前3
Nim - the first high performance language with full support for hot codereloading at runtimefaster): not going through function pointers by default there are no jumps in the function preamble (padding) slowdown depends a lot on the type/scale of software - x2 to x5... Live++ 51 HCR performance0 码力 | 63 页 | 2.91 MB | 1 年前3
Nim 2.0.2 中文手册echo "sizeof(Data) = ", sizeof(Data), " (1 byte + 127 bytes padding + 128-byte array)" # 输出: sizeof(Data) = 256 (1 byte + 127 bytes padding + 128-byte array) echo "sseType 的对⻬⻓度是 ", alignof(sseType)0 码力 | 127 页 | 7.05 MB | 1 年前3
Computer Programming with the Nim Programming Language
plain pointer, as Nim objects have no overhead as long as we do not use inheritance and when no padding to word size is needed for tiny fields like int8.) Capacity and length are stored also in the memory a bool and an int64, in one direction 7 bytes have to be ignored, and in the other direction, padding is necessary for the 7 missing bytes. We perform a cast by writing the desired type in square brackets0 码力 | 865 页 | 7.45 MB | 1 年前3
Computer Programming with the Nim Programming Language
plain pointer, as Nim objects have no overhead as long as we do not use inheritance and when no padding to word size is needed for tiny fields like int8.) Capacity and length are stored also in the memory a bool and an int64, in one direction 7 bytes have to be ignored, and in the other direction, padding is necessary for the 7 missing bytes. We perform a cast by writing the desired type in square brackets0 码力 | 784 页 | 2.13 MB | 1 年前3
Computer Programming with the Nim Programming Languageplain pointer, as Nim objects have no overhead as long as we do not use inheritance and when no padding to word size is needed for tiny fields like int8.) Capacity and length are stored also in the memory between a bool and an int64, in one direction 7 bytes have to be ignored, and in the other direction, padding is necessary for the 7 missing bytes. We perform a cast by writing the desired type in square brackets0 码力 | 512 页 | 3.54 MB | 1 年前3
Computer Programming with the Nim Programming Languageplain pointer, as Nim objects have no overhead as long as we do not use inheritance and when no padding to word size is needed for tiny fields like int8.) Capacity and length are stored also in the memory between a bool and an int64, in one direction 7 bytes have to be ignored, and in the other direction, padding is necessary for the 7 missing bytes. We perform a cast by writing the desired type in square brackets0 码力 | 508 页 | 3.50 MB | 1 年前3
Computer Programming with the Nim Programming Languageplain pointer, as Nim objects have no overhead as long as we do not use inheritance and when no padding to word size is needed for tiny fields like int8.) Capacity and length are stored also in the memory between a bool and an int64, in one direction 7 bytes have to be ignored, and in the other direction, padding is necessary for the 7 missing bytes. We perform a cast by writing the desired type in square brackets0 码力 | 512 页 | 3.53 MB | 1 年前3
Computer Programming with the Nim Programming Languageplain pointer, as Nim objects have no overhead as long as we do not use inheritance and when no padding to word size is needed for tiny fields like int8.) Capacity and length are stored also in the memory between a bool and an int64, in one direction 7 bytes have to be ignored, and in the other direction, padding is necessary for the 7 missing bytes. We perform a cast by writing the desired type in square brackets0 码力 | 508 页 | 3.54 MB | 1 年前3
Computer Programming with the Nim Programming Languageplain pointer, as Nim objects have no overhead as long as we do not use inheritance and when no padding to word size is needed for tiny fields like int8.) Capacity and length are stored also in the memory between a bool and an int64, in one direction 7 bytes have to be ignored, and in the other direction, padding is necessary for the 7 missing bytes. We perform a cast by writing the desired type in square brackets0 码力 | 508 页 | 3.50 MB | 1 年前3
共 31 条
- 1
- 2
- 3
- 4













