Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | don't print the dataset in a listener demo |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | master | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
637a08c828f2fc8f7999a624ecb6d16a |
| User & Date: | jack 2025-04-06 19:49:48 |
Context
|
2025-04-22
| ||
| 18:35 | designate package and exported symbols with strings check-in: 2cefd20783 user: jack tags: master, trunk | |
|
2025-04-06
| ||
| 19:49 | don't print the dataset in a listener demo check-in: 637a08c828 user: jack tags: master, trunk | |
| 19:20 | Move local function to toplevel (aesthetic change) check-in: 0c7229a01d user: jack tags: master, trunk | |
Changes
Changes to Demo/cl-bench-results.lisp.
| ︙ | ︙ | |||
25 26 27 28 29 30 31 |
for form = (with-open-file (stream file :direction :input)
(read stream))
append (process-result form)))))
(define-demo-plot *bench*
(let ((dataset (read-data "~/Workshop/repo/cl-bench/output/")))
(<polyclot> :title "Common Lisp Benchmark"
| | | 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
for form = (with-open-file (stream file :direction :input)
(read stream))
append (process-result form)))))
(define-demo-plot *bench*
(let ((dataset (read-data "~/Workshop/repo/cl-bench/output/")))
(<polyclot> :title "Common Lisp Benchmark"
:width 800 :height 600
:dataset dataset
:aesthetics (list :x "Test" :y "Time" :ink "Lisp")
:layers (list (<geom-bar>
:bin-width (/ 1 20)
:statistical-transformation i::+stat-identity+
:position-adjustment (i::<position-dodge>)))
:scales (list (make-scale :discrete :x)
(make-scale :continuous :y)
(make-scale :discrete :ink))))
"Common Lisp Bencharks example plot")
(find-application-frame 'a-repl :width 800 :height 600)
|
Changes to Demo/listener.lisp.
| ︙ | ︙ | |||
17 18 19 20 21 22 23 |
(define-a-repl-command (com-clear :name "clear") ()
(with-application-frame (frame)
(window-clear (frame-standard-output frame))
(window-clear (frame-query-io frame))))
(define-a-repl-command (com-draw-plot :name "draw plot")
((plot '<polyclot> :gesture (:select :echo t)))
| > | | | < < < < | | 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
(define-a-repl-command (com-clear :name "clear") ()
(with-application-frame (frame)
(window-clear (frame-standard-output frame))
(window-clear (frame-query-io frame))))
(define-a-repl-command (com-draw-plot :name "draw plot")
((plot '<polyclot> :gesture (:select :echo t)))
(let ((stream *standard-output*))
(window-clear stream)
(with-room-for-graphics (stream :first-quadrant nil)
(polyclot plot stream))
(finish-output stream)))
(defmethod run-frame-top-level ((frame a-repl) &rest args)
(declare (ignore args))
(let ((*standard-input* (frame-standard-input frame))
(*standard-output* (frame-standard-output frame))
(*error-output* (frame-error-output frame))
(*query-io* (frame-query-io frame))
|
| ︙ | ︙ |