Repository navigation
Releases
Releases · emela-lang/emela
v0.29.0
Added
- 診断コードを 1000 ずつの帯に振り直し,同じ種類の誤りのコードをまとめる (#905) (by @Allianaab2m)
- Task.Group と Task.Background で並行に仕事を始められるようにする (#849) (by @Allianaab2m)
- [breaking] ビルドターゲット c を削除し,未知のターゲットにする (#835) (by @Allianaab2m)
- emela build の main.mjs を JS ホストで直接起動すると main を実行する (#725) (by @Satoru314)
- capability を型と R で区別し,Fiber.scope の本体が scope を引数で受け取る (#813) (by @Allianaab2m)
- (cli) 依存の取得と C コンパイラの実行中に進捗を出す (#802) (by @Allianaab2m)
- 効果の別名 x <- Effect を書ける.closure の R は呼ぶ側だけが満たす (#791) (by @Allianaab2m)
- Deferred・Queue・Semaphore を with の項目で作れるようにする (#848) (by @Allianaab2m)
- handler に型パラメータを書き,with・layer・by の項目ごとに型引数を決められるようにする (#825) (by @Allianaab2m)
- [breaking] 外部関数のホストの副作用を宣言したモジュールの External として R に入れる (#896) (by @Allianaab2m)
- 型引数を [C: Capability] で capability に制約できる (#800) (by @Allianaab2m)
- [breaking] 束縛した項目は名前で供給しない (#888) (by @Allianaab2m)
- @entry(Http.serve) の app が Spawn で仕事を始められるようにする (#850) (by @Allianaab2m)
- Std.Tcp で TCP に接続し,TLS に昇格できるようにする(JS) (#845) (by @Allianaab2m)
- suspend fn で resume の後に中断しうる呼び出しを禁止する (#847) (by @Allianaab2m)
- fn の型に現れない型引数に警告 W0305 を出す (#823) (by @Allianaab2m)
- Duration.parse で長さの文字列を読み,Duration を Encode,Decode,Shaped できるようにする (#846) (by @Allianaab2m)
- Instant.parse で日時の文字列を読み,Instant を Encode,Decode,Shaped できるようにする (#801) (by @somnicattus)
- (lir) normalize switches in LIR (E4) (#775) (by @isoshigi)
- background が閉じず、body の終了後も task を start できるようにする (#886) (by @Allianaab2m)
- native ターゲットの境界で Bytes を C に渡せるようにする (#884) (by @Allianaab2m)
Fixed
- project の中の相対パスを Windows でも / で区切って出す (#885) (by @Allianaab2m)
- (lsp) Windows で emela lsp がドライブ文字のパスと URI を変換できず,同じ project のモジュールの import を undefined module にするのを直す (#814) (by @somnicattus)
- handler のフィールドの集合を,操作の本体と release の終わりで R から外す (#887) (by @Allianaab2m)
- (core) 型パラメータを持つ handler の member を開くとき,内側の handler の関数に型引数を渡す (#901) (by @somnicattus)
- 関数の値は R によらず evidence の表を取る (#717) (#894) (by @Allianaab2m)
- (tcp) 同じ接続への read と write が重なった defect の文言から fiber を外す (#851) (by @Allianaab2m)
- (lir) guard the tuple SRA plan against an out-of-range index (#786) (by @isoshigi)
- (lir) normalise switches inside failure handlers (#785) (by @isoshigi)
- (fmt) guard や if の条件の長い || chain を括弧なしで改行して失敗するのを直す (#898) (by @kisepichu)
- (new) emela new が生成する main.emel を effect alias で書く (#890) (by @Satoru314)
- (pome) Windows で Pome.lock がまだない project の emela pome install と add が os error 87 で失敗するのを直す (#810) (by @somnicattus)
Other
- add the IR optimisation switch and the C runtime size classes (#627) (by @isoshigi)
- README の Status を 0.28.2 に合わせ,0.28 で入ったものを next から 0.28 の行に移す (#824) (by @Allianaab2m)
- 各クレートの統合テストを 1 つのテストバイナリにまとめる (#796) (by @Allianaab2m)
- (core) fuse an array pipeline (#769) (by @isoshigi)
- (core) fuse map and fold over a range (#768) (by @isoshigi)
- (core) fuse string concatenation (#767) (by @isoshigi)
- (core) remove the bounds checks the ranges prove (#766) (by @isoshigi)
- (core) remove common subexpressions in a let chain (#765) (by @isoshigi)
- (core,lir) check the range, borrow and ownership analyses (#761) (by @isoshigi)
- (core) count uses and build the call graph (#758) (by @isoshigi)
- (core) summarise effects and defects (#757) (by @isoshigi)
- (core) run the reduction pipeline by default (#756) (by @isoshigi)
- (core) move loop unswitching into the loop module (#755) (by @isoshigi)
- (core) expand small direct calls after monomorphisation (#754) (by @isoshigi)
- (core) reduce the boolean algebraic laws (#753) (by @isoshigi)
- (core) reduce a match on a known constructor (#752) (by @isoshigi)
- (core) drop a lambda that only forwards its arguments (#751) (by @isoshigi)
- (core) inline a lambda that is called once (#750) (by @isoshigi)
- (core) substitute let-bound copies, including inside lambdas (#749) (by @isoshigi)
- (core) register the fusion laws and test their equations (#748) (by @isoshigi)
- (core) complete the substitution engine (#747) (by @isoshigi)
- (core) fold operations on literals (#746) (by @isoshigi)
- (core) add the pass interfaces and counters (#745) (by @isoshigi)
- (core,c) inline array reads and hoist their bounds test (#640) (by @isoshigi)
- (core) build an array from a range without the list (#638) (by @isoshigi)
- (core) inline small non-recursive functions (#635) (by @isoshigi)
- (core) lower List.fold and List.map over a range to a loop (#634) (by @isoshigi)
- (core) fuse Option.or and match over Array.get (#631) (by @isoshigi)
- (string) convert ASCII case in one allocation (#630) (by @isoshigi)
- (std) update a Map in one descent (#629) (by @isoshigi)
- (core) add the Core IR optimisation pipeline and the differential harness (#628) (by @isoshigi)
- (std) std のドキュメントコメントで仕様を安定名で参照し,説明の無い公開 API に ## を書く (#826) (by @Allianaab2m)
- (core) IR の dump でローカル変数を関数ごとに 0 から数え,std の変更で関係のない snapshot が動かないようにする (#807) (by @somnicattus)
- (lir) share the reachability analysis and prune functions (#778) (by @isoshigi)
- (lir) replace a closure record with its scalar captures (#776) (by @isoshigi)
- (lir) reuse a uniquely owned record (#774) (by @isoshigi)
- (lir) remove dead pure lets and change the LIR defaults (#773) (by @isoshigi)
- (lir) specialise the drop of a block without references (#772) (by @isoshigi)
- (lir) infer borrowed parameters (#771) (by @isoshigi)
- (lir) drop the reference a borrowed view does not need (#764) (by @isoshigi)
- (lir) call a known closure directly (#763) (by @isoshigi)
- (lir) replace a non-escaping scalar record with its fields (#762) (by @isoshigi)
- (lir) analyse variable liveness (#760) (by @isoshigi)
- (lir) analyse which values escape (#759) (by @isoshigi)
- (lir) build a string of three or more pieces in one allocation (#637) (by @isoshigi)
- (lir) take back a reference that reference counting only lends (#636) (by @isoshigi)
- (lir) replace non-escaping tuples with scalars (#633) (by @isoshigi)
- (lir) split the interpolation concatenation and from_core (#626) (by @isoshigi)
- (wasm) hold...
v0.28.2
Fixed
- (core) suspend handler の member を持つ effect を,型検査と同じく Immediate でないとする (#713) (by @somnicattus)
- (types) with の項目で引数のある handler member の括弧を省いたら E0434 にする (#706) (by @somnicattus)
- (core) effect のキーに capability の型の effect を入れ,State[use A] と State[use B] を別の effect にする (#708) (by @somnicattus)
Other
- (spec) Instant.to_string の形式を一意に書き,RFC 3339 との関係を書く (#729) (by @somnicattus)
- (lir) 空の evidence の表を WASM と C で null にし,確保しない (#721) (by @Allianaab2m)
- Rust のテストを速くする(コーパスの分割と Bun の shard 化) (#716) (by @Allianaab2m)
v0.28.1
Fixed
- (cli) emela check でも [build].target の知らないターゲットを E0232 にし,Pome.toml をプロジェクトからの相対パスで示す (#698) (by @Allianaab2m)
- (types) 同じ推論グループの参照で相手の推論した E と R に引数を当てはめ,Set.filter に解けていない変数が出ないようにする (#697) (by @Allianaab2m)
- (core) 同じ with の L by P で,P が使う基の effect を同じ with の先行ハンドラから渡す (#695) (by @Allianaab2m)
- (driver) 構文エラーがあるとき emela run と build を lowering の前で止め,コードの無いエラーを出さないようにする (#696) (by @Allianaab2m)
- (playground) emela-playground から言語サーバーを 1 通ずつ動かせるようにし,ブラウザのエディタで補完やホバーを使えるようにする (#681) (by @Allianaab2m)
v0.28.0
Added
- ProcessHost と PageHost で host を型で区別し,with Process で process 用の handler を使う (#668) (by @Allianaab2m)
- capability の型 use E を書き,capability を値として渡せるようにする (#665) (by @Allianaab2m)
- with や Fiber.scope から capability を持ち出す値に警告を出す (#648) (by @Allianaab2m)
- Pome.toml の [experimental] と --experimental- で実験的な機能を有効にできるようにする (#644) (by @Allianaab2m)
- WASM でも閉じた stdout に書くとプログラムを 141 で終える (#588) (by @Allianaab2m)
- ブラウザで動くコンパイラ emela-playground を足し,リリースに wasm を載せる (#615) (by @Allianaab2m)
- main が ExitCode を返して終了コードを選べるようにする (#591) (by @Allianaab2m)
- Std.Process の Stdout と Stderr で改行なしの出力を書けるようにする (#587) (by @Allianaab2m)
- --target native でネイティブ実行ファイルをビルドできる (#573) (by @Allianaab2m)
- Std.Process でプロセスの引数と標準入力を読めるようにする (#575) (by @Allianaab2m)
- Bun の最小バージョンを 1.4.3 にする (#562) (by @Allianaab2m)
- EMELA_JS_HOST で JS host を選べるようにし、Bun をサポートする (#559) (by @Allianaab2m)
- emela doctor で各ターゲットに必要なプログラムを確かめられるようにする (#556) (by @Allianaab2m)
- [breaking] emelinoへの分離に伴い組み込みCバックエンドを削除 (#538) (by @aoi-netai)
- 一つの handler で複数の効果を実装し,use A + B を少ない効果の型に渡せるようにする (#672) (by @Allianaab2m)
- effect に handler member を宣言し,with x = Files.Open(p) で開けるようにする (#671) (by @Allianaab2m)
- Encode,Decode,ObjectKey,Shaped を derive でき,Std.Dynamic,Std.Shape,Std.Json を使える (#589) (by @Allianaab2m)
- handler の init で Self(...) と書けるようにする (#646) (by @Allianaab2m)
- ブロックの中に局所関数 fn name(...) を書ける (#574) (by @Allianaab2m)
- Semaphore で同時に走る fiber の数を制限し,Queue で fiber の間で値を受け渡せるようにする (#590) (by @Allianaab2m)
- List,Array,Map,Set の each で要素ごとに f を呼べるようにする (#581) (by @Allianaab2m)
- derive した Encode と Decode で欠けたキーと null を Option と Presence で書き分ける (#657) (by @Allianaab2m)
- (wasm) run fibers with scopes and deferred values (#507) (by @Allianaab2m)
- emela を Windows(x86_64-pc-windows-msvc)向けにもビルドしてリリースする (#578) (by @Allianaab2m)
- JS の launcher 名(main, $start)と重なる host export を E0438 にする (#570) (by @Allianaab2m)
- Pome.toml の [pome].license を SPDX license expression として読む (#542) (by @Allianaab2m)
Fixed
- (types) @entry のアダプタが予約名を 2 回 export すると E0438 が二重に出ていたのを直す (#551) (by @Allianaab2m)
- (core) 型引数に関数を持つ値を書かれた Show で補間すると lowering が拒否していたのを直す (#549) (by @Allianaab2m)
- (c) print the shortest digits for powers of two (#608) (by @isoshigi)
- (codegen-c) テストの共有オブジェクトとサニタイザの確認をプロセスごとのディレクトリで作る (#552) (by @Allianaab2m)
- (test) LSP テストの shutdown が解析の遅れで落ちないようにする (#577) (by @Allianaab2m)
Other
- (syntax) cargo-mutants で見逃していた変更を検出できるテストを足す (#545) (by @Allianaab2m)
- (resolve) cargo-mutants で見逃していた変更を検出できるテストを足す (#546) (by @Allianaab2m)
- (lir) associate string interpolation appends to the right (#606) (by @isoshigi)
- (wasm) allocate from size-class bins in the Perceus runtime (#605) (by @isoshigi)
- (wasm) reuse a static job ring for the scheduler queue (#604) (by @isoshigi)
- (wasm) name a perform's operation only when a diagnostic needs it (#603) (by @isoshigi)
- (wasm) dispatch a resumed frame with a br_table over its state (#602) (by @isoshigi)
- (wasm) remove the suspend runtime's dead queue statics (#601) (by @isoshigi)
- (wasm) build the float decimal expansion in larger chunks (#600) (by @isoshigi)
- (wasm) inline
dupandtagin the emitter (#599) (by @isoshigi) - (wasm) dispatch a tag switch with br_table (#598) (by @isoshigi)
- (wasm) emit only the Float, Bytes, Array and Unicode runtime bodies the program reaches (#596) (by @isoshigi)
- (wasm) scan for a needle's first byte a word at a time (#595) (by @isoshigi)
- (wasm) copy string ranges with memory.copy (#594) (by @isoshigi)
- (wasm) index the environment once instead of scanning it per lookup (#593) (by @isoshigi)
- (wasm) sort the listed names with an in-place heapsort (#592) (by @isoshigi)
v0.27.1
Fixed
- (driver) JS ターゲットの Node の下限を 22 に上げ,古い node を止める (#536) (by @Allianaab2m)
- (cli) --version にコミットハッシュを付ける (#534) (by @Allianaab2m)
- reserve the JS launcher names for host exports (#505) (by @Allianaab2m)
- (lsp) 属性名とターゲット名を補完し,コメントと文字列の中では補完しない (#529) (by @Allianaab2m)
- (lsp) external のファイル引数をリンクにする (#532) (by @Allianaab2m)
- (lsp) 節と型の位置では書ける種類の名前だけを補完する (#530) (by @Allianaab2m)
- (lsp) ディスク上のファイル変更で再検査する (#531) (by @Allianaab2m)
v0.27.0
Added
- 効果の節を uses { R } と書けるようにする (#518) (by @Allianaab2m)
- 無名関数を |x| e と書ける (#516) (by @Allianaab2m)
- escape の arm に
_を書いて、どの error も受けられるようにする (#512) (by @Allianaab2m) - Std.Array で位置で読む固定長の列を書けるようにする (#513) (by @Allianaab2m)
Fixed
- (wasm) trap when the heap cannot grow (#506) (by @Allianaab2m)
- (wasm) show the name of an error without Show (#443) (by @isoshigi)
Other
- Move attempt and Exit to Std.Exit (#501) (by @Allianaab2m)
- (std) 同梱の core と std を x.f(a) のメソッド呼び出しで書き直す (#477) (by @Allianaab2m)
- update Cargo.toml dependencies
Breaking
attemptとExit(Success,Failure)をStd.Fiberから新しいStd.Exitに移す.Fiber.attempt(f)はExit.attempt(f)に,import Std.Fiber.{Exit, Success, Failure}はimport Std.Exit.{Exit, Success, Failure}に書き換える.古い名前は残さない(proposals/std-exit.md)
v0.26.1
Fixed
- (types) order a method call only before fns of the receiver type's module (#480) (by @Allianaab2m)
v0.26.0
Added
- CLIから組み込みCのビルドと書き込みを利用可能にする (#387) (by @aoi-netai)
- Std.Bytes でバイト列を扱えるようにする (#466) (by @Allianaab2m)
- x.f(a) でメソッド呼び出しを書ける (#467) (by @Allianaab2m)
- STM32F4・ESP32-C3のボード実行基盤を追加 (#386) (by @aoi-netai)
Fixed
Other
- 多数のプログラムを回すテストを並列にする (#456) (by @Allianaab2m)
- update Cargo.toml dependencies
- README と docs を 0.25 に合わせ,trait の例を足す (#464) (by @Allianaab2m)
v0.25.0
Added
- HTTP サービスを WASM で wasi:http/service の component にする (#439) (by @Allianaab2m)
- emela run が起動前にコマンドを標準エラーに出す (#426) (by @Allianaab2m)
- emela test の出力を --reporter で pretty,plain,agent から選べる (#424) (by @Allianaab2m)
- host に関数を公開する export と入口アダプタを書ける (#430) (by @Allianaab2m)
- handler の init に引数を渡せる(with H(x: ...)) (#398) (by @Allianaab2m)
- @entry(Http.serve) で HTTP サービスを書ける (#434) (by @Allianaab2m)
- WASM のターゲットで Fiber.attempt と Std.Cause を動かす (#433) (by @Allianaab2m)
- テストの失敗に,失敗した assert の場所を出す (#425) (by @Allianaab2m)
- Flow IRから組み込み向けCを生成するbackendを追加 (#384) (by @aoi-netai)
Other
- [5/10] feat(wasm): const の評価と defect の note を実装 (#402) (by @isoshigi)
- emela new のサブコマンド追加(#214) (#283) (by @Satoru314)
- 仕様を spec/ に整理し,英語にして,proposal の手順と skills を足す (#388) (by @Allianaab2m)
- 組み込み標準ライブラリとC接続を追加 (#385) (by @aoi-netai)
- [10/10] feat(wasm): Std.FileSystem を WASI 0.3 の file system で動かす (#407) (by @isoshigi)
- [9/10] feat(wasm): Std.Clock.sleep を WASI 0.3 の async ホストで動かす (#406) (by @isoshigi)
- [6/10] feat(wasm): Console/Env/Random/Clock.now を WASI 0.3 で使えるようにする (#403) (by @isoshigi)
- [8/10] feat(wasm): suspend fn の状態機械と継続の再開を実装 (#405) (by @isoshigi)
- [4/10] feat(wasm): WASI 0.3 の component を出力する (#401) (by @isoshigi)
- [3/10] feat(wasm): Float の表示・parse・Int 変換のランタイムを追加 (#400) (by @isoshigi)
- [2/10] feat(wasm): String の書記素クラスタを Unicode 17.0 の UAX #29 で実装 (#399) (by @isoshigi)
- [1/10] refactor(wasm): emitter と runtime を機能別モジュールへ分割 (#376) (by @isoshigi)
- [7/10] test(wasm): C コーパスと examples を WASM で実行する (#404) (by @isoshigi)
v0.24.0
Added
- inspect に Show を求め,error に derive を書けるようにする (#362) (#365) (by @Allianaab2m)
- ==,大小比較,補間を Eq,Ord,Show につなぐ (#332) (#359) (by @Allianaab2m)
- impl と handler の頭をコロンで書く (#323) (#344) (by @Allianaab2m)
- 無名関数の引数にパターンを書けるようにする (#370) (by @Allianaab2m)
- 前の impl と handler の頭に書き換えを示す (#324) (#347) (by @Allianaab2m)
- Hash を Prelude の Trait から外す (#334) (#346) (by @Allianaab2m)
- 基本型とタプル,List,Option に Eq,Ord,Show の impl を持たせる (#331) (#355) (by @Allianaab2m)
- trait と impl を型検査する (#328) (#348) (by @Allianaab2m)
- Prelude に inspect を足し,dbg から Show の制約を外す (#343) (by @Allianaab2m)
- 使われない derive を W0303 で知らせる (#335) (#358) (by @Allianaab2m)
- derive Eq,Ord,Show から impl を作る (#333) (#356) (by @Allianaab2m)
- 戻り値にだけ Self がある Trait の関数で Self が決まらなければ E0333 にする (#357) (by @Allianaab2m)
- 単相化で impl を選ぶ (#330) (#350) (by @Allianaab2m)
- Trait.f(x) を解決し,型引数の制約を呼び出しの場所で検査する (#329) (#349) (by @Allianaab2m)
- Std.Map と Std.Set を足す (#340) (#366) (by @Allianaab2m)
- List,String,Int64 の関数を足し,List.sort を Ord で書く (#339) (#363) (by @Allianaab2m)
- std の型に derive と Show の impl を付ける (#337) (#361) (by @Allianaab2m)
- 制約を持つ型引数のある pub の fn を JS で export するとき E0327 にする (#354) (by @Allianaab2m)
- core と std の性質を brix で確かめる tests/laws と,Std.Test を std から外す (#320) (by @Allianaab2m)
Other
- Std.Map を opaque な enum にし,平衡の処理を読みやすく書き直す (#369) (#371) (by @Allianaab2m)
- merge queue を入れ,テストを 3 台に分けて回し,docs だけの変更ではテストを飛ばす (#345) (by @Allianaab2m)
- (pome) 既定の proxy と sumdb を emela.dev のサブドメインにする (#360) (by @Allianaab2m)