Quire

PureScript

From Quire, the open reference··1 min read
PureScript
PureScriptのロゴ
PureScriptのロゴ Image: source and license
パラダイム関数型プログラミング、純粋関数型言語 
登場時期2013年 
設計者Phil Freeman
最新リリース0.15.16 / 2026年3月15日[1]
影響を受けた言語Haskell 
ライセンス3条項BSDライセンス 
ウェブサイトhttps://www.purescript.org/ 

PureScriptは、JavaScriptにコンパイルされる純粋関数型プログラミング言語である。Webアプリケーション、サーバサイドアプリケーション、Electronを使用したデスクトップアプリケーションの開発に使用できる。構文はHaskellとほぼ同等。また、ローポリモーフィズムや拡張可能なレコードを導入している。また、Haskellとは異なり、PureScriptは正格評価を採用している。

歴史#edit

PureScriptは2013年にPhil Freemanによって設計された。彼がPureScriptに取り組み始めたのは、Haskellのセマンティクスを維持したままJavaScriptにコンパイルしようとする様々な試み(Fay、Haste、GHCJSの使用など)が彼の満足のいくものではなかったからだ[2] 。

その後、コミュニティにピックアップされ、GitHub上で開発されている。コミュニティによって開発された追加のコアツールには、専用のビルドツール「Pulp」[3]、ドキュメントディレクトリ「Pursuit」[4]、パッケージマネージャ「Spago」などがある。

特徴#edit

PureScriptは、正格評価、永続的なデータ構造、型推論を特徴としている。 PureScriptの型システムは、Haskellのような類似の関数型言語と多くの機能を共有している。例えば、以下のような機能があげられる。

脚注#edit

  1. ^ 題名: Release 0.15.16, 出典URL: https://github.com/purescript/purescript/releases/tag/v0.15.16, 閲覧日: 2026年4月7日, 出版日: 2026年3月15日
  2. ^ “Read PureScript by Example | Leanpub”. leanpub.com. 2019年3月14日閲覧。
  3. ^ A build tool for PureScript projects, PureScript Contrib, (2019-03-08) 2019年3月14日閲覧。
  4. ^ “Pursuit”. pursuit.purescript.org. 2019年3月14日閲覧。

関連項目#edit

外部リンク#edit

This article is mirrored from “PureScript” on 日本語 Wikipedia, revision 93111395, written by Wikipedia's contributors and licensed CC BY-SA 4.0. Editing it here creates a Quire copy with its own history.

Synced with Wikipedia revision 93111395 · just now