QEX: a framework for lattice field theories
Xiao-Yong Jin, James C. Osborn · Proceedings of 38th International Conference on High Energy Physics — PoS(ICHEP2016) · 2017
We present a new software framework for simulating lattice field theories. It features an intuitive programming interface, while simultaneously achieving high performance supercomputing, all in one programming language, Nim. With a macro system based on its abstract syntax tree, the language enables us to check and optimize our code at compile time. It also allows us to code intrinsics that map directly to machine instructions, and generates efficient native code. We show how we use Nim's metaprogramming features in our code, and present the current status of the code and future plans.