google / google/codeworld

Adjustable runtime Parameters

オープン
#491 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
discussion
主要言語
Haskell
スター
1.3k
フォーク
201
PR マージ指標
30日以内にマージされた PR はありません

説明

I was working on trying to get a nice looking [fibonacci tree][1], and I had two constants
```
branchAngle = 30
splayAngle = 30
```
which I keep tweaking, but it's hard to get them right. It'd be pretty neat if I could mark them as "Parameters" or something, and have sliders for their values to adjust and see what happens in realtime, instead of recompiling all the time.

But I'm not sure how it'd look for the code. I mean, it could just be a reader monad, `(Parameters -> Picture)` kinda thing, but that seems like a massive change to the fundementals to have to write everything in monadic style now.

[1]: https://code.world/#PbBOAouMSCYKTj4rseeuyZg

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

リンクされた Fibonacci tree の例と、現在の CodeWorld の runtime および editor の動作から始めます。ユーザー定義の Parameters をどのように宣言し、スライダーとして公開し、再コンパイルを必要とせずにリアルタイム実行中に適用するかを明らかにします。設計について合意され、調整可能な値を示す動作する例が完成すれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
haskell
領域
frontend
issue の種類
機能追加
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。