PureScript
PureScriptは、JavaScriptにコンパイルされる純粋関数型プログラミング言語である。Webアプリケーション、サーバサイドア�…
|
PureScriptのロゴ | |
| パラダイム |
関数型プログラミング、純粋関数型言語 |
|---|---|
| 登場時期 | |
| 設計者 | Phil Freeman |
| 最新リリース | 0.15.16 / 2026年3月15日[1] |
| 影響を受けた言語 |
Haskell |
| ライセンス |
3条項BSDライセンス |
| ウェブサイト | |
PureScriptは、JavaScriptにコンパイルされる純粋関数型プログラミング言語である。Webアプリケーション、サーバサイドアプリケーション、Electronを使用したデスクトップアプリケーションの開発に使用できる。構文はHaskellとほぼ同等。また、ローポリモーフィズムや拡張可能なレコードを導入している。また、Haskellとは異なり、PureScriptは正格評価を採用している。
歴史
PureScriptは2013年にPhil Freemanによって設計された。彼がPureScriptに取り組み始めたのは、Haskellのセマンティクスを維持したままJavaScriptにコンパイルしようとする様々な試み(Fay、Haste、GHCJSの使用など)が彼の満足のいくものではなかったからだ[2] 。
その後、コミュニティにピックアップされ、GitHub上で開発されている。コミュニティによって開発された追加のコアツールには、専用のビルドツール「Pulp」[3]、ドキュメントディレクトリ「Pursuit」[4]、パッケージマネージャ「Spago」などがある。
特徴
PureScriptは、正格評価、永続的なデータ構造、型推論を特徴としている。 PureScriptの型システムは、Haskellのような類似の関数型言語と多くの機能を共有している。例えば、以下のような機能があげられる。
脚注
- ^ 題名: Release 0.15.16, 出典URL: https://github.com/purescript/purescript/releases/tag/v0.15.16, 閲覧日: 2026年4月7日, 出版日: 2026年3月15日
- ^ “Read PureScript by Example | Leanpub”. leanpub.com. 2019年3月14日閲覧。
- ^ A build tool for PureScript projects, PureScript Contrib, (2019-03-08) 2019年3月14日閲覧。
- ^ “Pursuit”. pursuit.purescript.org. 2019年3月14日閲覧。
関連項目
外部リンク
- 公式ウェブサイト
- PureScript by Example (設計者Phil Freeman氏によるPureScriptの解説)
- 実例によるPureScript (PureScript by Exampleの日本語訳)
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.