Chapter 8 外部関数インターフェイス 外部関数インターフェイス(FFI)には以下の2つ目的がある. (1)他言語の機能へのインターフェイスをHaskellで記述できるようにする. (2)他言語のコードからHaskellのルーチンを利用できるようにする. より一般的に言うならば,FFIはプログラムをHaskellと他言語を混ぜて記述できるようにすることを目指している.これによりアーキテクチャやOSとは独立であるばかりではなく,Haskellと非Haskellシステムの実装をまたぐソースコードの可搬性をサポートする. 8.1 外部言語 HaskellのFFIはいまのところHaskellコードとC呼び出し規約に従う他言語コードとの相互作用についてのみ規定している. しかしながら,FFIは,現在のモジュール定義を拡張してC++やJavaのようなC以外の呼び出し規約を持つ言語を含められるよう
This attempts to be a guide/tutorial/cookbook approach to writing a library using external (FFI) functions. Some people complain that cookbook approaches encourage a lack of thinking; that may be so, but they also help novices get started faster. Being a little hard of thinking myself, I would have been grateful for something like this when I was getting started. The FFI spec, while valuable, is n
Talk and workshop at YOW! Lambda Jam, Brisbane, 2014. Template Haskell is a meta programming framework for Haskell implemented by the Glasgow Haskell Compiler (GHC), which is widely used as a template meta-programming system for Haskell, to define macros, code generators, or even code transformation engines. Subsequent support for the quasiquoting of arbitrary programming languages greatly simplif
In this blog I talk about some of the personal programming I do as a hobby. From Java to Rust via Haskell, I've played around with a lot of technologies and still try to have fun with new languages and APIs! A few years ago I noted that being able to mix Haskell code and a Java GUI might be a good idea, since Java UIs have matured enormously, and Haskell UI library are still struggling to gain wid
Sustainable Security Requirements with the ASVS Josh Grossman provides a brief overview of what the ASVS is, but takes a closer look at balancing trade-offs and prioritizing different security requirements. Josh shares how to make the process repeatable and how to implement it as part of your own organization's requirements process.
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く