InfoQ Software Architects' Newsletter A monthly overview of things you need to know as an architect or aspiring architect. View an example
Written by August Lilleaas, published July 22, 2013 This article describes how to use ZeroMQ for RPC calls to internal services. HTTP is the canonical choice for public facing services. But for RPC to internal services in systems composed of many small parts, you're probably better off using ZeroMQ instead of HTTP. In summary, the benefits ZeroMQ offers over HTTP are: Multiple concurrent RPC calls
ããã°ã©ãã³ã°clojureã¯èªã¿ç©ã¨ãã¦ã¯é¢ç½ãã®ã§ãããå®éã«èªåã§clojureã®ã³ã¼ããæ¸ããã¨ããã¨ãããæéåã£ã¦ãã¾ãã¾ãã*1 ãã¡ã¤ã«IOããã®ãããªãã¡ã®ã²ã¨ã¤ãªã®ã§ãããclojureã§ã®ãã¡ã¤ã«IOã«ã¤ãã¦å°ã調ã¹ã¦ã¿ã¾ããã ã¨ãããã以ä¸ã®ãã¨ãã§ããã°ååããã§ãã ãã¡ã¤ã«ãéãã¦(ä½ãå¦çãã¦)éãã 1è¡èªã¿è¾¼ããã°åå ãã¡ã¤ã«ã®ä¸èº«ãstreamã¨ãã¦åãåºã ãã¨ã¯ãã¡ã¤ã«ã¸ã®åºåã®æ¹ãã§ããã°ããã§ããã 1è¡ã ãèªã¿è¾¼ãã§ãã¡ã¤ã«ãcloseãã ããåãããªãã§ããã©ãjavaã§ã¯BufferedReader FileInputStream InputStreamReaderã使ãã®ãæ®éã¿ããã§ãã javaã®ã³ã¼ããã¹ãã«clojureã§æ¸ããå¾ã«ãclojureã§å©ç¨ã§ããé¢æ°ã使ã£ã¦çããã¦ãããã¨æãã¾ãã (é¢åã ã£ãããæå¾ã®é¨
I just started w/ Clojure (coming from Ruby) and I would like to build an small app with a command-line interface. How do I handle input/output to a CL? I noticed that there is a clojure.contrib.command-line, but documentation is slim. http://github.com/richhickey/clojure-contrib/blob/ffa868411cda6c617105b52b4f6f9e0f37ee8c24/src/clojure/contrib/command_line.clj
This post is now out of date. The library recommended by this post is now a contrib library. Check out tools.cli for great documentation about handling command line arguments in Clojure. Write enough Clojure and eventually you will need to handle command line arguments. There are numerous ways of doing this. Keep reading for a brief introduction to three. Using built-in features There exists a seq
ããã«ã¼ã¨ç»å®¶ãèªãã§ããLispãããããªã£ã¦ããã®ã§Clojureããããå§ãã¦ã¿ã¾ãããã¨ããããããã°ã©ãã³ã°Clojureãçæã«REPL(対話ã¢ã¼ã)ã§éãã§ãããã§ãããçµäºæ¹æ³ãæ¸ãã¦ãªãã£ãã®ã§Ctrl+Dãªã©ã§çµäºããã¦ãã¾ããã ã°ã°ã£ã¦ã¿ãã¨ããããã¡ãã«çããããã¾ããã ã30ãã¨è¡¨ç¤ºããã¾ããREPLãçµäºãããããã«ã¯ã (. System exit 0) ã¨å ¥åãã¾ããSystemã¯ã©ã¹ã®exitã¡ã½ããã«å¼æ°0ãä»ãã¦å®è¡ããã¨ãããã¨ã¿ããã§ãã Clojureãå ¥ãã¦ã¿ã - èªç§°ã¹ã¼ãã¼ããã«ã¼ã®é©å½ãªããã°ã©ãã³ã°éè¨ç ãªãã¨ã¾ããã®System.exit(0)ã§ãããããã¡ãã£ã¨ç°¡åãªã¨ã¤ãªã¢ã¹çãªãã®ã¯ãªããã§ããããããâ¦ã¨ãããã¨ã§ãããªã®æ¸ãã¦ã¿ããããã¾ããã user=> (defn exit [] (. System exit
Vim Plugin ã® vimshell (Shougoâs vimshell at master â GitHub) ä¸ã§ Clojure ãå®è¡ããã¦ã¿ãã å®è¡ããç°å¢ã¯ Ubuntu 10.04 㨠Mac OSX Snow Leopardã vimshell 㯠git ã§ãã¦ã³ãã¼ãããã $ git clone git://github.com/Shougo/vimshell.git ãã¦ã³ãã¼ããããã¡ã¤ã«ããããã ~/.vim 以ä¸ã«ã³ãã¼ããã vimshell ä¸ã§ Clojure ã® REPL ãåããã«ã¯ãvimproc ã使ã£ã¦éåæå®è¡ããå¿ è¦ããããããªã®ã§ vimproc ã git ã§ãã¦ã³ãã¼ãããã $ git clone git://github.com/Shougo/vimproc.git ããã¦ãproc.so ã make ããã $ m
The original document appears at http://clojure.org/rationale. The translation is based on November 27, 2009 version of the page. èªã¿ã«ããã¦ç³ã訳ãªãã§ããæ°å¤ãã®ééããããã¨æãã¾ãã®ã§ããææãã ããã 顧客ãåºè³å®¶ã¯ãæ¥çæ¨æºã®ãã©ãããã©ã¼ã ã§ããJavaä»®æ³ãã·ã³ (Java Virtual Machine; JVM) ã«ç¸å½ãªæè³ããã¦ããããã®ããã©ã¼ãã³ã¹ãã»ãã¥ãªãã£ãå®å®æ§ãªã©ã«æºè¶³ãã¦ãããJavaéçºè ã¯ãåçè¨èªã®ç°¡æ½ããæè»ããçç£æ§ããããã¾ããæããã®ã®ã顧客ã®ç°å¢ã§åããããã©ãããæ¢åã®ã³ã¼ããã©ã¤ãã©ãªã使ãããã©ãããããã¦åä½é度ãªã©ã«ã¤ãã¦å¿é ãããããããªããã¾ãããã¤ãã£ãã»ã¹ã¬ããããããã³ã°ã«ãã並è¡å¦çã«
çµæ§æéããã£ããä»æ¥(æ£ç¢ºã«ã¯æ¨æ¥)ã®å¤æ¹ãããã£ã¨ããã£ã¦ããã¾ã¨ããã¨ãããªæéããããããªãã®ã§ããªããã ãã©ããclojureããvimclojureã§è²ã æéåã£ããã¡ãªã¿ã«ããã°ã©ãã³ã° Clojureã®ãµã³ãã«ãåããã ããªãããµã³ãã«ã³ã¼ãã®ä¸ã«Clojureã®å®è¡ç°å¢(REPL)ãå«ã¾ãã¦ãã®ã§ä»¥ä¸ã®è¨å®ãããå¿ è¦ã¯ãªãã clojureã®ã¤ã³ã¹ãã¼ã« ã½ã¼ã¹ã¯githubããè½ã¨ãã¦ãããmasterã§ããããã ãã©ãclojure-contribã®æ¹ãmasterã ã¨ãã¾ãbuildã§ããªãã£ãã®ã§1.1.0ã使ããã¨ã«ããã $ git clone git://github.com/richhickey/clojure.git $ cd clojure $ git co -b 1.1.0 1.1.0 $ ant clojure-contribã®ã¤ã³ã¹ãã¼ã« ããã°
å æ¥ãleiningenã使ã£ã¦compojureãåãããæã®äºãæ¸ãããã©ãä»åº¦ã¯eclipseã§åããããIDEãªã®ã§ãã£ã¡ã®æ¹ãã¯ããã«æ¥½ã«åä½ã¾ã§ããã¤ããã 以ä¸ã®ãã¼ã¸ã§eclipseã¸ã¤ã³ã¹ãã¼ã«ã®ä»æ¹ãªã©ãè¼ã£ã¦ãããåèã«ããªããåãããã http://bit.ly/9K8TPa eclipseã®Gitãã©ã°ã¤ã³ãã¤ã³ã¹ãã¼ã«ãããã¢ãããã¼ããµã¤ãã®urlã¯ä»¥ä¸ã http://download.eclipse.org/egit/updates â»gitã¯æ¢ã«ã¤ã³ã¹ãã¼ã«ããã¦ããã㨠eclipseã®Mavenãã©ã°ã¤ã³ãã¤ã³ã¹ãã¼ã«ãããã¢ãããã¼ããµã¤ãã®urlã¯ä»¥ä¸ã http://m2eclipse.sonatype.org/sites/m2e eclipseã®Clojureãã©ã°ã¤ã³ãã¤ã³ã¹ãã¼ã«ãããã¢ãããã¼ããµã¤ãã®urlã¯ä»¥ä¸ã http://
leiningen = rubygems + bundlerclojars.org = rubygems.orgnailgun = SWANKvimclojure = SLIME Clojure + Leiningen leiningenå ¥ããã¨clojureãå ¥ãã % curl -O https://raw.github.com/technomancy/leiningen/stable/bin/lein % chmod +x lein % lein repl Using JLine for console I/O; install rlwrap for optimum experience. REPL started; server listening on localhost:29973. rlwrapå ¥ããã»ããè¯ãã¨åºãã®ã§å ¥ããã % brew install rlwrap %
This page walks you through the steps required to setup a usable Clojure environment. You will: Install Clojure Install several standard enhancements to Clojure Configure Clojure for use with an IDE or text editor Once these steps are complete, you'll be ready to start coding. To give Clojure a test drive, without having to perform an installation, point your (reasonably up-to-date) web browser to
This document provides instructions for installing and configuring several Clojure packages and tools using Emacs package-install. It first installs Slime, then configures it for use with Slime REPL. It then installs Clojure mode and associates .clj files with it. Next, it shows how to set up a sample Clojure project using Leiningen with dependencies and dev dependencies. It provides commands for
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}