Clojureは大文字と小文字の違いを気にする ClojureはLisp-1である ()はnilとは異なる readerは副作用を起こさない キーワードはシンボルではない シンボルはストレージではない (Varを参照) nil はシンボルではない t はシンタックスに含まれない。 true を使用する 現在、ユーザープログラムがリードテーブルにアクセスすることはできない let は逐次的に束縛を行う do はループ構造ではない 末尾呼び出し最適化はない。 recur を使用する。 シンタックスクォートはシンボルの解決を行うため、 `x は 'x と異なる。 ` は自動的にgensymを行う。 ~ はアンクォートで、 ',' は空白である マップ、ベクター、セットに対してリーダーのシンタックスが定義されている cons, first および rest は具体的なコンスセルに対してではなく、シ
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work. Try for free Learn more
PCL -> Clojure Tags: clojure and tutorial My current leisure-time project is porting the examples from Peter Seibel's excellent Practical Common Lisp (PCL) to Clojure. I think Clojure is interesting for three reasons: Clojure is Lisp, but minus historical baggage. Clojure gives full access to the JVM and Java libraries. Clojure groks concurrency and state. My ground rules are simple: I am not goin
1.1 How to do structural binding or destructuring in function argument lists or let bindings.
ブログ(iiyu.asablo.jpの検索) ホットコーナー内の検索 でもASAHIネット(asahi-net.or.jp)全体の検索です。 検索したい言葉のあとに、空白で区切ってki4s-nkmrを入れるといいかも。 例 中村(show) ki4s-nkmr ウェブ全体の検索 ASAHIネット(http://www.asahi-net.or.jp )のjouwa/salonからホットコーナー(http://www.asahi-net.or.jp/~ki4s-nkmr/ )に転載したものから。 --- Clojureの入門したい人が便利そうな場所、発見しました。全部、英語ですが、 http://en.wikibooks.org/wiki/Clojure_Programming Clojure Programming チュートリアルは、 http://en.wikibooks.org/wik
inleinはClojureをスクリプトとして使用することを可能にしてくれるツールです。leiningen経由でClojureのコードを実行すると起動が遅いという問題があります。inleineはこの問題を解決(緩和)してくれます。 ちなみに、「スクリプト」と言っているのは「ShellScript」とか「インストール・スクリプト」とか言う時のスクリプトの意味で、ClojureScriptのことではないです。 以降は、inleinのインストールと使い方を簡単に説明し、leiningenとleinで速度を簡単に比べます。インストールや使い方については、良ければREADMEの和訳もあわせてご参照ください。 Install 前提 JavaのJDKのversion 7以上が入っていること。java -versionとかで確認してください。 手順 ここから、リリースされている最新のinleinプログラム
It was Socrates who first said... “Learning Clojure is the best way you can improve as a programmer because it introduces you to powerful concepts implemented in a simple, cohesive, and practical language. You learn Clojure here. Therefore, Brave Clojure is your very best friend when it comes to programming.” And lo, the syllogism was born! Do you want to learn Clojure, the most powerful and fun p
Home SICP in Clojure - Chapter 2 In one of the previous blog posts I have announced that I would like to start a new series of posts. It is a persistent journal of my journey through the aforementioned book. I hope that you will enjoy it and find it useful - the main goal is to make this series a place we can return to in the future, recall ideas and thoughts that accompanied the reading process.
gist.md Haskell vs Clojure The JSON data is in the following format { "Genesis": { "1": { "1": "In the beginning..." , "2": "..." }, "2": { ... } }, "Exodus": { ... }, ... } In JSON, keys aren't ordered and must be strings. The goal is to parse the JSON file, order everything correctly (which means parsing the keys into integers), and produce an array that looks like this: [ ("Genesis", 1, 1, "In
ca side-by-side reference sheet grammar and execution | variables and expressions | arithmetic and logic | strings | regular expressions | dates and time | lists | fixed-length arrays | dictionaries | user-defined types | functions | execution control | exceptions | streams | emacs buffers | files | directories | processes and environment | libraries and namespaces | objects | lisp macros | reflec
Clojure Advent Calendar 2013の24日目の記事です。 先がけて、Light Tableの簡単な使い方について書きましたので、未読の方はまずそちらをご覧ください。 Light Tableの使い方 (序章) Clojureが、従来のLisp言語とは異なり、使えるライブラリが豊富にあるということで、その高い実用性が評価されています。 このあたりはおいしいClojure入門 に、いろんな事例が載っているのでそちらを読んでいただけるとよいかと思います。 この豊富なライブラリたちを使ってアプリケーションを作るのは、Clojureではふつうleiningenを使います。JavaでいうMaven、Rubyでいうbundle + rake 相当のものです。 leiningenはコマンドラインから使っても非常に分かりやすいツールなのですが、Light Tableはleiningenの
2017/07/04 更新しました MELPA-stable 以外を利用するパッケージを削除しました use-package を利用し起動時間を 1 秒以下に抑えました Windows へのインストール方法を記述しました はじめに Clojure で何かを開発する際に、数あるエディタの中から Emacs を使ってみたいと思う人は 数多く いると思いますが、元々他のエディタを使っていた場合全てを設定するのは容易ではないでしょう。 また最近では spacemacs や live-emacs などという最初から色々出来るよーみたいなプリセットが出てきていて、それを試している人がチラホラいたのでそういう需要もあるのかなと思って作ってみました。 Emacs config for newbie clojurian インストール Linux であれば以下のコマンドでインストールできます。
Not your computer? Use a private browsing window to sign in. Learn more about using Guest mode
元ネタはこちら おそらくある言語に慣れるためには、その言語を実際に使うことだと思います。しかし、誰しもが「こういうのを書いてみたいな」というアイデアを持っているわけではありません。そこで、Clojureを練習するためのサイトみたいなのをいくつか見かけたので、ここで共有しておきたいと思います。 4Clojure 最も有名なClojure練習サイトですね。ここの練習スタイルは、__に対して、なんらかの式を入力することにより、全体でtrueになるようにするタイプのものです。 ClojureScript Koans 欠けている部分を穴埋めして、全体として正しいようにするというものについて、海外のプログラマーの間ではKoanとよばれ(たぶん、禅のKoanから来ていると推測します)、親しまれています。これもその一つ。上のがすこしピンとこなければ、こっちから始めてみるのもいいでしょう。元ネタはCloju
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く