From a18642fd7b63f28e616425398905a2e438140a8d Mon Sep 17 00:00:00 2001 From: Michael Schimmel Date: Mon, 2 Mar 2026 23:46:44 +0100 Subject: [PATCH] Update example output comments Add `Output` comments to the example files to reflect the actual output of the programs. This helps with verifying correctness and understanding example behavior. --- examples/optimizer_collision_repro.myc | 1 + examples/optimizer_purity.myc | 1 + examples/optimizer_repro.myc | 1 + examples/record_specialization_test.myc | 2 ++ examples/tuple-struct.myc | 1 + src/main.rs | 2 +- 6 files changed, 7 insertions(+), 1 deletion(-) diff --git a/examples/optimizer_collision_repro.myc b/examples/optimizer_collision_repro.myc index 2833238..6ec9383 100644 --- a/examples/optimizer_collision_repro.myc +++ b/examples/optimizer_collision_repro.myc @@ -1,5 +1,6 @@ ;; Benchmark: 93ns ;; Benchmark-Repeat: 21646 +;; Output: 13 (do (macro wrap [f] `(fn [x] (~f x))) diff --git a/examples/optimizer_purity.myc b/examples/optimizer_purity.myc index ea17734..1aa580c 100644 --- a/examples/optimizer_purity.myc +++ b/examples/optimizer_purity.myc @@ -1,5 +1,6 @@ ;; Benchmark: 92ns ;; Benchmark-Repeat: 21507 +;; Output: 31.41592653589793 (do (def area (fn [x] (* PI x))) (area 10) diff --git a/examples/optimizer_repro.myc b/examples/optimizer_repro.myc index 245e308..fa8194c 100644 --- a/examples/optimizer_repro.myc +++ b/examples/optimizer_repro.myc @@ -1,5 +1,6 @@ ;; Benchmark: 172ns ;; Benchmark-Repeat: 11766 +;; Output: [42 150] (do ;; 1. Provokation Stack-Gap (bei Optimization Level 2) (def result diff --git a/examples/record_specialization_test.myc b/examples/record_specialization_test.myc index c67dc09..f0a7d04 100644 --- a/examples/record_specialization_test.myc +++ b/examples/record_specialization_test.myc @@ -4,6 +4,8 @@ ;; Dank der neuen Spezialisierung wird hierfür im Hintergrund ;; eine SharedRecordSeries mit SoA-Layout (Float-Puffer für mid und range) erstellt. +;; Output: PipelineNode[last: Some({:mid 101.35623617501585, :range 0.9314056584827455})] + (do (def ohlc_stream (create-random-ohlc 42 10)) diff --git a/examples/tuple-struct.myc b/examples/tuple-struct.myc index e204290..d33a605 100644 --- a/examples/tuple-struct.myc +++ b/examples/tuple-struct.myc @@ -1,5 +1,6 @@ ;; Benchmark: 890ns ;; Benchmark-Repeat: 2258 +;; Output: ["Symbol:" "btc" "field:" :close "id:" "cls"] (do (def p (fn [conf] (do diff --git a/src/main.rs b/src/main.rs index e261e01..a787a44 100644 --- a/src/main.rs +++ b/src/main.rs @@ -4,7 +4,7 @@ use std::path::PathBuf; fn main() -> eframe::Result { let options = eframe::NativeOptions { - viewport: egui::ViewportBuilder::default().with_inner_size([800.0, 600.0]), + viewport: egui::ViewportBuilder::default().with_inner_size([1024.0, 768.0]), ..Default::default() }; eframe::run_native(