-
I can't quite figure out why the `memoized` macro causes problems for `{.compileTime.}` usage. Macros, in general, seem to work okay during compiletime in nim, and making a manual memoizing compiletim…
-
So I'm a little confused, again / still, about dynamic memory allocation. I ended up using the stack to allocate my variables in HW 2, but ... well ... I'm not quite sure why that was possible!
Sinc…
-
The code below kills the scala-compiler.
It will lead to an exponential number of implicit-lookups.
This can be quite annoying when defining complex protocols.
It also leads to the same amount of clas…
-
**Is your feature request related to a problem? Please describe.**
how do I list credits in-game, on hive description, and in my repo without copy-pasting
**Describe the solution you'd like**
`co…
-
We do prototyping of a time integration using a handwritten residual function (50 lines) and Jacobian (100 lines):
``` Julia
while norm_res > eps
iteration = iteration + 1
for…
-
| | |
|--------------------|----|
| Bugzilla Link | [PR41240](https://bugs.llvm.org/show_bug.cgi?id=41240) |
| Status | NEW |
| Importance | P enhancemen…
-
### Description
Code
```nim
import std/macros
var x {.compileTime.} : NimNode =
quote do:
echo "xxx"
```
The context is that I am trying to build up a compile-time list, containing …
-
The PR https://github.com/nim-lang/Nim/pull/12128 allowed runtime access to compile-time variables to solve https://github.com/nim-lang/Nim/issues/10990
This is a controversial change:
- https://g…
-
![image](https://github.com/loongson-community/discussions/assets/13375525/af6f87e9-3a33-44f9-8f28-807a4c056263)
同时 大多数elf的配置中对齐为0x4000(16k) 这可能与ld.bfd的代码有关
```bash
Program Headers:
Type …
-
I know that the constants are just a text file that can be placed in `imports` folder but Wurst does not allow us to read data from external files, does it? So we have to copy-paste the data in a wurs…