並び順

ブックマーク数

期間指定

  • から
  • まで

1 - 40 件 / 59件

新着順 人気順

purescriptの検索結果1 - 40 件 / 59件

  • 関数型なAltJS、PureScriptの入門書を邦訳しました。 - Qiita

    2018/4/30 追記: 古くなっていたこちらの邦訳ですが、プルリクエストを頂き最新版PureScript v0.11に対応しました。本当にありがとうございました。 Haskellライクな関数型プログラミング言語PureScriptの入門書、"PureScript By Example"を邦訳しました。本書はPureScriptのオリジナルの作者であるPhilさん本人が執筆した入門書です。本書を理解するにはJavaScriptを知っていることが望ましいですが、そうでなくともすでに何らかのプログラミング言語を知っていれば読みこなすことはできると思います。PureScriptはHaskellを始めとした多くの関数型言語と様々な考え方を共有していますから、PureScriptという言語そのものを学ぶという目的でなくとも、関数型プログラミング全般についての入門としても読むにも適しています。無料で

      関数型なAltJS、PureScriptの入門書を邦訳しました。 - Qiita
    • PureScript:JavaScriptにコンパイルされるHaskellライクな言語

      Rustが再評価される:エコシステムの現状と落とし穴 In this article, we share findings and insights about the Rust community and ecosystem and elaborate on the peculiarities and pitfalls of starting new projects with Rust or migrating to Rust from othe...

        PureScript:JavaScriptにコンパイルされるHaskellライクな言語
      • PureScript

        A strongly-typed functional programming language that compiles to JavaScript Benefits Compile to readable JavaScript and reuse existing JavaScript code easily An extensive collection of libraries for development of web applications, web servers, apps and more Excellent tooling and editor support with instant rebuilds An active community with many learning resources Build real-world applications us

        • ElmとPureScript、どっちを選べばいいんだよ - Qiita

          (※アイキャッチ画像は、この記事に関係あるようで関係ないウサギ対ウナギ画像です) アドベントカレンダー『Elm2』の昨日の記事は、ababさんの『Elmで副作用を扱う仕組みCmdがとっても良い理由』でした。副作用のある部分とない部分を分離する「純粋」な言語は、作用を扱うのが面倒くさい言語だと思われがちですが、実は作用を扱うのがとても上手なんですよね。ElmのCmdは、Haskellみたいにモナモナせずにシンプルに作用を扱う方法としてElmがたどり着いた、ひとつの解答であります。 さて、Elm と PureScript は、どちらも AltJS にして Haskell の直系の子孫であり、そしてどちらも正格評価でありレコード型のような機能を取り込んでいるなど、共通点の多い言語たちでもあります。このどちらを選べばいいのか、迷っている人もいるのではないでしょうか。そんな方のために、それぞれの特徴

            ElmとPureScript、どっちを選べばいいんだよ - Qiita
          • PureScript 関数型AltJSの決定版!?

              PureScript 関数型AltJSの決定版!?
            • 純粋関数型スクリプト言語PureScriptのはじめかた - Qiita

              "PureScript is more like Haskell than Haskell itself." – `@thebeardedzug — Rahul Goma Phulore (@missingfaktor) 2017年3月24日 はじめに スクリプト言語PureScriptの開発環境構築から簡単なアプリケーションの作成までの手順を紹介します。この記事では、基本的なコマンドライン環境のアプリケーションだけでなく、Halogenというユーザインターフェイスのフレームワークや、簡単なサーバサイドアプリケーションを動かすところまでを紹介しています。そのため、シングルページアプリケーションのような実用性の高いアプリケーションを作って試せるようになっています。ブラウザ環境で動けば、ウェブページに組み込んで自分が作ったアプリケーションを簡単に他の人に見せられますし、Electronを使って

                純粋関数型スクリプト言語PureScriptのはじめかた - Qiita
              • Read PureScript by Example | Leanpub

                require('fs').readFile(sourceFile, function (error, data) { if (!error) { require('fs').writeFile(destFile, data, function (error) { if (!error) { console.log("File copied"); } }); } }); Libraries such as React and virtual-dom model views as pure functions of application state. Functions enable a simple form of abstraction which can yield great productivity gains. However, functional programming i

                • GitHub - purescript/purescript: A strongly-typed language that compiles to JavaScript

                  You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                    GitHub - purescript/purescript: A strongly-typed language that compiles to JavaScript
                  • PureScript: A Haskell-like Language that Compiles to JavaScript

                    The InfoQ Trends Reports 2023 eMag The InfoQ trends reports provide a snapshot of emerging software technology and ideas. We create the reports and accompanying graphs to aid software engineers and architects in evaluating what trends may help them design and build better software. Our editorial teams also use them to help focus our content on innovator and early adopter trends.

                      PureScript: A Haskell-like Language that Compiles to JavaScript
                    • Purescript with Monad

                      Learning Deep Architectures for AI (第 3 回 Deep Learning 勉強会資料; 松尾)Ohsawa Goodfellow

                        Purescript with Monad
                      • 代数的データ型とパターンマッチによる言語比較:Koka,Rust,Haxe,Swift,Elm,PureScript,Haskell,OCaml,ReasonML,ReScript,Kotlin,Scala,Dotty,Ruby,Julia,TypeScript - Qiita

                        代数的データ型とパターンマッチによる言語比較:Koka,Rust,Haxe,Swift,Elm,PureScript,Haskell,OCaml,ReasonML,ReScript,Kotlin,Scala,Dotty,Ruby,Julia,TypeScriptScalaKotlinHaxeRustSwift

                          代数的データ型とパターンマッチによる言語比較:Koka,Rust,Haxe,Swift,Elm,PureScript,Haskell,OCaml,ReasonML,ReScript,Kotlin,Scala,Dotty,Ruby,Julia,TypeScript - Qiita
                        • 【翻訳】なぜPureScriptを使うべきなのか - Qiita

                          この記事はPhil Freeman, "Why You Should Use PureScript"の邦訳です。この記事の原著者のフィルさんは、PureScriptのオリジナルの作者さんでもあります。原著はCC BY-NC-SA 3.0でライセンスされており、その許諾に従って私が勝手に翻訳・公開するものです。もし翻訳された内容に誤りなどがあれば、修正しますので私までご連絡ください。また、わりとざっくりした記事なので、HaskellやPureScriptについて知識がないとわかりにくい部分もあるかもしれませんが、ご了承ください。これは私の夏休みの自由研究です。みなさんも夏休みの自由研究にPureScriptはいかがでしょうか。 なぜPureScriptを使うべきか 優れた抽象 PureScriptは『型クラス』を持ち、私たちはこれを使ってとても再利用性の高いコードを書いています。PureSc

                            【翻訳】なぜPureScriptを使うべきなのか - Qiita
                          • PureScript使ってみた - Qiita

                            Help us understand the problem. What is going on with this article?

                              PureScript使ってみた - Qiita
                            • PureScript楽しい - oreshinyaのブログ

                              ブログ再開した 自分の存在をネットに残しておくことは実利があるのでやっていこうと思った。 過去に書いたものはもういいやと思って記事にしてない。 PureScript楽しい 今年はPureScriptにめっちゃハマっていて、というか言語自体が大好きになるのが初めてでとても楽しめている。 かなり好きになったので、開発するための下地を整えようと思って、基盤となるいろいろなパッケージをつくってる。 なにが気に入ってるかというと、パズル的な要素が楽しいってのもあるし、なにより、泥酔していても型パズルさえとけば、動作担保が結構できるというのが気に入っている。(なお、この記事も泥酔状態で書いている) なんでPureScript始めたのか 急にHaskellやりたくなって、Haskellをやりはじめて、結構面白いなーと思った。 書き始める前は「頭がいい人間がマウンティングするための言語」というとても悪い印

                                PureScript楽しい - oreshinyaのブログ
                              • PureScript by Example

                                I am a developer living in Los Angeles, CA. I work principally in Scala, Haskell and TypeScript. I love using functional techniques to solve real world problems. I am the original developer of the PureScript programming language and compiler, and have written several of its core libraries. 1. Introduction 1.1 Functional JavaScript 1.2 Types and Type Inference 1.3 Polyglot Web Programming 1.4 Prere

                                  PureScript by Example
                                • GitHub - paf31/purescript: A strongly-typed language that compiles to Javascript

                                  You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                                    GitHub - paf31/purescript: A strongly-typed language that compiles to Javascript
                                  • Purescript by paf31

                                    A small strongly, statically typed compile-to-JS language with basic extensible records and type-safe blocks View project onGitHub purescript A small strongly, statically typed compile-to-JS language with basic extensible records and type-safe blocks Current Features Full Type Inference Higher Kinded Polymorphism Support for basic Javascript types Extensible records Type-safe blocks with for/while

                                    • Malicious code in the PureScript npm installer - Harry Garrood

                                      I'm a software engineer based in Edinburgh, Scotland. My interests include helping people program computers more effectively, open source, maths, and music. You can get hold of me via: Email harry@garrood.me Mastodon @hdgarrood​@hachyderm.io Twitter @hdgarrood GitHub @hdgarrood 12 Jul 2019 Earlier this week, I found and addressed some malicious code in the purescript npm installer. The malicious c

                                      • GitHub - purescript-halogen/purescript-halogen: A declarative, type-safe UI library for PureScript.

                                        Halogen is a type-safe library for building user interfaces in PureScript. Declarative Write simple views for each state in your application, and Halogen will efficiently and intelligently update the right components and re-render your user interface. Component Architecture Write encapsulated components which manage their own state, and compose them together to build complex user interfaces. Or, u

                                          GitHub - purescript-halogen/purescript-halogen: A declarative, type-safe UI library for PureScript.
                                        • GitHub - paf31/24-days-of-purescript-2016: 24 Days of PureScript, 2016

                                          You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                                            GitHub - paf31/24-days-of-purescript-2016: 24 Days of PureScript, 2016
                                          • 【翻訳】PureScriptとHaskellの違い +α - Qiita

                                            PureScriptの公式ドキュメントより、『Haskellとの違い』のざっくり翻訳+αです。原文のライセンスはCreative Commons Legal Code Attribution-NonCommercial-ShareAlike 3.0 Unported です。 (翻訳ここから) 評価戦略 Haskellとは異なり、PureScriptは正格評価です。 JavaScriptの評価戦略と一致するので、既存のコードとの相互運用はとても簡単です。PureScriptモジュールからエクスポートされた関数は、「通常の」JavaScript関数とまったく同じように振る舞いますし、それに対応して、FFIを通じてのJavaScriptの呼び出しもシンプルになっています。 正格評価を維持するということは、実行時システムや非常に複雑なJavaScript出力も必要ないということを意味します。やむを

                                              【翻訳】PureScriptとHaskellの違い +α - Qiita
                                            • どうやってPureScriptに慣れたのか - oreshinyaのブログ

                                              はじめに PureScript Advent Calendar 2017 - Qiitaの1日目の記事が埋まっていなかったので大急ぎで書くことにしました。 元々はRubyやJavaScriptなどの動的言語をメインでメシを食べているプログラミング的ゆとり世代であった私が、 少なくとも一般論としては学習が大変だと評されているPureScriptを、 (上手いか下手かは別として)普通に書けるようになった要因を記憶の限り辿ってみようと思います。 つまり、この記事は、「最初からPureScriptの勉強のためにやっていた」ということではなく、「たまたまそういう道を通ったけど、 あれがよかったのかもしれない」という回想です。 道のはじまり この道のはじまりはHaskellでした。 特に仕事で使うわけでもなく、関数型言語に興味があったわけでもなく、ただなんとなく暇を持て余していたので暇つぶしとして思い

                                                どうやってPureScriptに慣れたのか - oreshinyaのブログ
                                              • PureScript から TypeScript 用型定義 (.d.ts) を生成するツールを作った | 雑記帳

                                                前置き TypeScript で作っていたプロジェクトに、後付けで PureScript を追加しようとしたらかなり辛かった。 (わざわざ言語を混在させたい理由としては、型クラスや演算子オーバーロードを使いたい&既存のコードを全部書き直す暇はない、が挙げられる) 辛い理由としてはそもそもモジュールとバンドラーの周辺がまだ成熟していないというのもあるだろうが、 TypeScript 固有の理由として、 TypeScript コードから PureScript モジュールを読み込むための型定義が足りないという問題がある。 Stack Overflow を見ると、同じことで悩んでいる人がいた: node.js – How do I configure a TypeScript project that uses JavaScript modules compiled from PureScript

                                                • Benchmarks: GHCJS (Reflex, Miso) & Purescript (Pux, Thermite, Halogen)

                                                  Table of contents1. Motivation 2. Benchmark results 2a. “Keyed” implementations 2b. “Non-keyed” implementations 3. Comments about the benchmark results 3a. Comments: Purescript (in general) 3b. Comments: Purescript/Halogen 3c. Comments: Purescript/Pux 3d. Comments: Purescript/Thermite 3e. Comments: GHCJS/Reflex-DOM 3f. Comments: GHCJS/Miso 4. Personal Opinions 4a. Thoughts about GHCJS/Reflex-DOM —

                                                    Benchmarks: GHCJS (Reflex, Miso) & Purescript (Pux, Thermite, Halogen)
                                                  • Welcome to PureScript’s documentation! — PureScript 0.5.0 documentation

                                                    Versions latest Downloads PDF HTML Epub On Read the Docs Project Home Builds Free document hosting provided by Read the Docs.

                                                    • How to Write PureScript React Components to Replace JavaScript

                                                      • HaskellerのためのPureScriptことはじめ - Qiita

                                                        【注意事項】この記事はとてもとても古いです。現在のPureScriptとは大きく言語仕様が変わっており、この記事の情報はあまり宛てにならないと思います。あまりに現状のPureScriptとかけ離れているので削除も考えましたが、何かの参考になるかもしれないので一応残しておきます。PureScriptについては、もし英語でも構わないのであれば、PureScriptのオリジナルの開発者であるPhilさん本人によるPureScript by Exampleがもっとも信頼できる情報源です。どうしても日本語の情報を探しているなら、かなり古いですが関数型なAltJS、PureScriptの入門書を邦訳しました。も参考にしてください。 PureScriptとは: Haskellライクな構文とライブラリ Row Polymorphismによる柔軟な型システム JavaScriptへトランスコンパイルされるA

                                                          HaskellerのためのPureScriptことはじめ - Qiita
                                                        • TypeScript vs. PureScript - LogRocket Blog

                                                          LogRocket’s Galileo AI watches every session, surfacing impactful user struggle and key behavior patterns. There are many ways to skin a cat, and for each one, there is a statically typed language that compiles to JavaScript. Among the best-known we have TypeScript (TS), PureScript (PS), Elm, Reason, Flow and Dart. But why are there so many? Why do they exist, and what is their rationale? In this

                                                            TypeScript vs. PureScript - LogRocket Blog
                                                          • PureScriptで簡単にJSONをパースする - Qiita

                                                            はじめに この記事は、Simple-JSONの作者であるJustin Wooさん(@kimagure)の記事を翻訳したものです。 twitterでこのようなことを書いてくださっていたので、たまたま反応した @oreshinya が翻訳することになりました。 JSONのような何らかのテキストデータを、プログラムで利用できるデータ型にパースすることは、私たちが使用している言語のほとんどについて行う必要があることです。いくつかの言語では、パーサーを書く方法を習得する必要がありますが、PureScriptでは、Simple-JSONを使うことにより、機械的にパースすることができます。私は、PureScript 0.11.6でRowToList機能がリリースされた時にこのライブラリを書きました。このライブラリは型シノニムを書くだけで使用できます。 プロジェクトのセットアップ このライブラリを使うプロ

                                                              PureScriptで簡単にJSONをパースする - Qiita
                                                            • GitHub - zudov/24-days-of-syntactic-witchery: Aligning characters for fun and profit, with Haskell and PureScript

                                                              You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

                                                                GitHub - zudov/24-days-of-syntactic-witchery: Aligning characters for fun and profit, with Haskell and PureScript
                                                              • PureScript - Haskell風言語からコンパイルしてJavaScript生成

                                                                MOONGIFTはオープンソース・ソフトウェアを紹介するブログです。2021年07月16日で更新停止しました 最近JavaScript代替言語が熱いです。一時はCoffeeScriptに代表される、JavaScriptで面倒な書き方を省略できるものに人気がありましたが、最近はTypeScriptのような型指定を行えるものが人気です。 今回紹介するPureScriptもそんなJavaScript代替の一つで、コードとしてはHaskellに近いものとなっています。 PureScriptの使い方 PureScriptのコードが左、結果が右になります。かなり特徴的なのが分かります。 プレイグラウンドではその場で編集もできます。 phoneBookというオブジェクトはNameという文字列型を持っていると指定されています。その上でphoneBookを検索して結果に表示しています。 繰り返し処理です。

                                                                  PureScript - Haskell風言語からコンパイルしてJavaScript生成
                                                                • PureScript by Example

                                                                  I am a developer living in Los Angeles, CA. I work principally in Scala, Haskell and TypeScript. I love using functional techniques to solve real world problems. I am the original developer of the PureScript programming language and compiler, and have written several of its core libraries. 1. Introduction 1.1 Functional JavaScript 1.2 Types and Type Inference 1.3 Polyglot Web Programming 1.4 Prere

                                                                    PureScript by Example
                                                                  • Full-Stack Developer (Haskell/PureScript/ES6) at Canopy Education Inc. // Functional Jobs

                                                                    Canopy Education Inc. is seeking a Full-Stack Developer (Haskell/PureScript/ES6) for a full-time position located in Cambridge, MA . Overview Canopy Education Inc. is looking for a product-focused full-stack developer to help engineer the democratization of the college admissions process and higher education attainment. There aren't many industries left that haven't been significantly disrupted b

                                                                      Full-Stack Developer (Haskell/PureScript/ES6) at Canopy Education Inc. // Functional Jobs
                                                                    • PureScript 0.12.0 で何が変わったか - Effect編 - Qiita

                                                                      このシリーズでは 2018/5/22 にリリースされた PureScript 0.12.0 で何がどう変わったかを紹介していきます。 今回は新しく登場した Effect の話です。 なおこの記事は PureScript に触れたことがある読者を想定しています。 PureScript 自体について知りたい場合には他の Qiita の記事や 実例によるPureScript などが参考になると思います。 Effect とは何か? Effect は外部への出力といった native な作用を表す型コンストラクタです。 こんな感じで使います。

                                                                        PureScript 0.12.0 で何が変わったか - Effect編 - Qiita
                                                                      • GitHub - andyarvanitis/purescript-native: A native compiler backend for PureScript (via C++ or Golang)

                                                                        You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                                                                          GitHub - andyarvanitis/purescript-native: A native compiler backend for PureScript (via C++ or Golang)
                                                                        • PureScript Community Blog - Handling Native Effects with the Eff Monad

                                                                          Posted on March 16, 2014 by Phil Freeman In this post, I’m going to talk about PureScript’s hybrid approach to handling side-effects. As in Haskell, values in PureScript do not have side-effects by default, and there are a number of techniques for handling “non-native” side-effects. Such techniques include the use of things like monoids, monads, applicative functors and arrows, but I’m not going t

                                                                          • 24 Days of PureScript

                                                                            You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                                                                              24 Days of PureScript
                                                                            • PureScript Conf 2015

                                                                              PureScript Conf is a free, one-day conference concentrating on the PureScript language and its libraries. PureScript Conf is sponsored by SlamData, an open source company that builds analytics and reporting software for NoSQL data stores. Where? PureScript Conf will be colocated with LambdaConf. Address: 1050 Walnut Street Suite 202 Boulder, CO 80302 Please do NOT enter the main entrance of Suite

                                                                                PureScript Conf 2015
                                                                              • 実例によるPureScript

                                                                                本書の内容についての注意事項この翻訳の原著である "PureScript by Example" は現在更新が途絶えており、この翻訳も古い内容のままになっています。そのため、本書の内容は最新の言語仕様に沿っておらず、サンプルプログラムの多くは最新の処理系ではコンパイルすることができません。変更のない部分については本書の内容も参考になりますが、もし本書を読み進める場合には十分ご注意ください。最新の情報については、purescript/documentation (英語) などを参考にしてください。 目次 はじめに 開発環境の準備 関数とレコード 再帰、マップ、畳み込み パターン照合 型クラス Applicativeによる検証 Effモナド キャンバスグラフィックス 外部関数インタフェース モナドの探求 コールバック地獄 テストの自動生成 領域特化言語 そのほかのフォーマット 原書(英語) 原

                                                                                  実例によるPureScript
                                                                                • Malicious code ousted from PureScript's npm installer – but who put it there in the first place?

                                                                                  Another JavaScript package in the npm registry - the installer for PureScript - has been tampered with, leading project maintainers to revise their software to purge the malicious code. After a week of reports of unexpected behavior, software developer and PureScript contributor Harry Garrood on Friday published his account of the affair. The installer, invoked by typing npm i -g purescript from t