福岡Ruby会議02での発表資料です。 http://regional.rubykaigi.org/fukuoka02/
「Programming Language Influence Network」はプログラミング言語の相関図を表したサイトです。指定した言語がどの言語から影響を受けて作られたか、また他の言語にどう影響しているかの相関図が閲覧できます。 以下に使ってみた様子を載せておきます。まずProgramming Language Influence Networkへアクセスしましょう。 相関図から気になるプログラミング言語を探してもよいですし、キーワードで検索することもできます。また、オブジェクト指向のプログラミング言語のみ抽出したり、プログラミング言語のカテゴリごとに絞り込むことも可能。 興味のある言語を調べると類似した言語が見つかるので、新しい言語を学ぼうと思ったときに一度見てみるとよいかもしれません。ぜひエンジニアの方は一度覗いてみてはいかがでしょうか。 Programming Language
こんにちは、らこです。先日から話題になってるJavaScriptの形態素解析器kuromoji.jsを使って、確率自由文脈文法で構文解析してみました。(注意:アルゴリズムの解説記事 ではない です) 結論 kuromoji.js遊びまくれるのでみんな使おう kuromoji.d.ts書いた 私は型大好き人間なのでTypeScript使ってkuromoji.js使いました。型定義ファイルは自分が使う部分だけエイヤっと自作しました(laco0416/kuromoji.d.ts)。 あと、プロジェクトに↑の自作型定義ファイルを読み込むのにdtsm使いました。tsd使ってたのが馬鹿らしくなるくらい便利です。作者のvvakameさんによるわかりやすい紹介はこちら 確率自由文脈文法とは ちゃんと説明すると長くなりますしうまく説明できる自信もないので、ばっさりカットします。 雰囲気つかむにはここらへんを
Knuth「TeXは組版言語で非エンジニアでも使うもの。なのでプログラム言語のような構成にはすべきでない」 Knuth「従って、記述の構造化はマクロにより行われる。『マクロの展開』であれば誰でも理解できる」 ↓ Knuth「しかし、if文くらいはあった方が便利だろう」 Knuth「あ、チューリング完全になってしまった」 ↓ Knuth「プリミティブの定義は最低限にして、組版制御の基本命令の一部はマクロとして実装しよう」 Knuth「あ、なんかプログラムのように複雑なマクロが増えてしまった」 ↓ 変人B「オウッ、TeX は組版言語なのにプログラムが組めるぞ!」 変人C「引数の整数を素因数分解して綺麗な数式で出力するマクロができた! ヒャッハー!」 ↓ TeXBook「TeX の目的は組版であって決してプログラミングではない。しかし世の中には変な人がいて、『TeX でプログラミングする』という
A quick cheat sheet and reference guide for Apple's Swift language. This guide intends to cover all the key features of Swift, including Strings, Arrays, Dictionaries and Flow Control. Swift is a new programming language for developing iOS and OS X apps that was introduced by Apple in June 2014. Variables var myInt = 1 var myExplicitInt: Int = 1 // explicit type var x = 1, y = 2, z = 3 // declare
とりあえずThe Swift Programming Language読んで、実際に自分で少し書いてみた感想。 諸事情でAppleにiOSデベロッパーとしてお布施していたので Xcode6beta落として少し書いてみた。プロジェクトスケルトンをswiftで生成できるので、そのコードを眺めたりしていた。 ファーストインプレッション Immutable脳の人が設計したっぽい。 スクリプト言語っぽい構文に、型注釈。これはGoとシンタックス上の設計思想が似ているんだと思う。 基本的にImmutableな設計でありながら、オブジェクト指向を採用しており、Scalaっぽいマルチパラダイム感がある。Scalaの人は好きになりそう。 型推論のおかげで動的型付け言語触ってきた人にも抵抗がない感じになってる。推論のおかげで静的型付け言語が動的型っぽくみえるのはHaskellとかOCaml方面の雰囲気。 LLV
メリークリスマス!とか言いつつ、このエントリは、Kotlin Advent Calendar 2013の2日目分のエントリです。空きを放置はしたくないので過去分をやります。まだ枠はあるのでやりたい方はぜひ!! Kotlinは内部DSL (Internal Domain Specific Language) を記述するのに適した言語です。 Kotlinのシンプルな文法や、複雑すぎない構文糖衣のルールが絶妙にマッチし、さらに静的言語なのでコンパイルタイムに型や文法由来の誤りが検知されてランタイムのつまらないバグを排除できます。 本エントリでは、KotlinでDSLを作る上で非常に役立つ言語機能について紹介します。 その1 中置呼び出し (Infix call) 中置呼び出しという構文糖衣があります。次の2つのメソッド呼び出しは等価です。 "Kotlin".compareTo("Java") "
Loading the data may take a while, please be patient... Graph Navigation You can zoom in and out the graph with the mouse wheel. You can move the graph by clicking and holding the left mouse button and moving the mouse. Language Information When you click on a language node in the graph a modal window with information about the language will be displayed. Language Search Search for a language name
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く