fa23a4c125
The `Parameter` kind in `UntypedKind` was only used for identifiers that were being declared or referenced. This commit renames it to `Identifier` and updates all the necessary code to reflect this change. This simplifies the AST and makes it more consistent. Additionally, a new macro `repeat` has been added to `src/ast/system.myc`.
26 lines
592 B
Plaintext
26 lines
592 B
Plaintext
;; Benchmark: 1.1us
|
|
;; Benchmark-Repeat: 1895
|
|
;; Test Record SoA specialization in Pipelines
|
|
;; Dank der neuen Spezialisierung wird hierfür im Hintergrund
|
|
;; eine SharedRecordSeries mit SoA-Layout (Float-Puffer für mid und range) erstellt.
|
|
|
|
;; Output: <StreamNode>
|
|
|
|
(do
|
|
(def ohlc_stream (create-random-ohlc 42 10))
|
|
|
|
;; Pipe die einen Record erzeugt
|
|
(def indicator
|
|
(pipe [ohlc_stream]
|
|
(fn [ohlc]
|
|
{
|
|
:mid (/ (+ (.high ohlc) (.low ohlc)) 2.0)
|
|
:range (- (.high ohlc) (.low ohlc))
|
|
}
|
|
)
|
|
)
|
|
)
|
|
|
|
indicator
|
|
)
|