-
Is it somehow possible to DRY up ones specs and generate dynamic examples using an approach like shown in https://chris-lamb.co.uk/posts/generating-dynamic-python-tests-using-metaclasses for unittest?…
-
Following on from https://github.com/mpmath/mpmath/issues/683#issuecomment-1537412261 concerning the speed of creating a context object and see the past discussions in gh-178.
The mpmath codebase u…
-
1. The text says "We can access the attribute dictionary for the local namespace inside a function with locals() but this cannot be written to." But the code following this looks like we are doing jus…
-
-
```
/usr/bin/g++ -DLINUX -D_GNU_SOURCE -DRISCV64 -DPRODUCT -I. -I/home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/prims -I/home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm -I…
-
OCaml and Scala both have staged metaprogramming libraries, which provide a powerful way to generate code at compile or runtime. A description of the OCaml approach, called BER MetaOCaml, is [here](ht…
-
To transparently support both synchronous and asynchronous usage we [use metaprogrmming](https://gitweb.torproject.org/stem.git/tree/stem/util/asyncio.py#n18). Basically, our mixin matches method call…
-
MetaMの章に「~に相当する expression を作れ」という問題がいくつかあるが,どういうテストコードを満たせばよいのかが不明
1. #eval ppExpr の結果が同じものになることを目標にすると,そもそも模範解答が間違いになる
2. isDefEq の Expr なら良いかというと,それは違いそうに思える(大雑把すぎる)
-
We might use macros instead of code generation using strings.
see http://docs.julialang.org/en/release-0.5/manual/metaprogramming/
http://stackoverflow.com/questions/37230071/metaprogramming-julia-f…
-
Some use cases:
- Annotations (perhaps we can implement these via wrapper functions?)
- Vec
- Serialization
- Printing
Any others?