-
This works
```Nim
proc addmod[T: SomeInteger](a, b, modulus: T): T {.noSideEffect.}=
## Modular addition
let a_m = if a < modulus: a
else: a mod modulus
if b == 0:
ret…
-
Hi again,
By browsing through the code of the query rewriting part (morph-base-querytranslator and morph-r2rml-querytranslator), I've noticed a quite important issue:
in many places you assume that s…
-
Sometimes, both Branch outputs connect to the same CMerge / same Multiplexer. In such cases, the Branch and the component it connects to can be removed.
For example, in the binary_search benchmark,…
-
We should just match on dictionaries for better perf.
-
Arraymancer can leverage the nim compiler and term-rewriting macros to automatically detect operations that can be fused.
This is probably similar to what Tensorflow is doing with their XLA compile…
-
```nim
import typetraits, strformat
block:
template foo(cond: typed): string =
astToStr(cond)
block:
const a = 1
# a + 10 is const folded before astToStr sees it
doAsse…
-
Code example: https://godbolt.org/z/5h7ox47E3
Explanation.
I wanted to refactor one of our interfaces to add some checks (in debug mode).
For that I did a change that is in principle equivalent t…
-
Using the techniques described in [_From Conditional to Unconditional Rewriting_ by Grigore Roşu](http://fsl.cs.illinois.edu/pubs/rosu-2004-wadt.pdf), we should be able to convert a conditional TRS (t…
-
I open this issue to discuss conditional rewriting as a possible
feature request because I just heard of the following benchmark that
might be of interest to compare the efficiency of Dedukti with
…
rafoo updated
3 years ago
-
There is a very common use case of LTR plugin when somebody adds several features which may use common parts. For example somebody wants to have feature matching specific document field (which could b…