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
追è¨(2023-04-04): Scala CLIã使ãã¾ããã Ammoniteããã¼ã¹ã«ããæ´ç·´ãããScala CLIãéçºãããScalaã®ããã¡ã¯ãã¹ã¿ã³ãã¼ãã¨ãã¦å®çãã¤ã¤ããã¾ããå ¬å¼ã«scalaã¨å ¥åããéã®æ¨æºã¢ããªã±ã¼ã·ã§ã³ã¨ãªããã¨ãäºè¦ããã¦ããããããã¡ããå¦ã¶ã¨ããã§ãããã scala-cli.virtuslab.org tanishiking24.hatenablog.com zenn.dev Ammoniteææ³æéãã¹ã¿ã¼ ãã®è¨äºã¯ãScalaã®ã¹ã¯ãªããã£ã³ã°ç°å¢ã§ããREPLã§ãããAmmoniteã®åºç¤çãªå©ç¨æ¹æ³ããã¹ã¿ã¼ããã¡ãã£ã¨åã£ãã·ã§ã«ã¹ã¯ãªãããAmmoniteã¹ã¯ãªããã«æ¸ãæããããç¨åº¦ã®Ammoniteåãæã«å ¥ããããã®ãã®ã§ãã 追è¨(2023-04-04): Scala CLIã使ãã¾ããã Ammoniteææ³æéã
éçºæ¬é¨ã®é£¯å¡ã§ãã æ¥å㧠Babashka ã使ãæ©ä¼ãç¡çç¢çä½ã£ã¦ã¿ãã®ã§ããã®å¯ç£ç©ãå ¬éãã¦ã¿ã¾ãã åæ© CloudWatch Logs ãããã°ãæ½åºãã¦èª¿æ»ããã AWS CLI ã使ã£ã¦ãããããã¯ã¨ãªã®çºè¡ãã¯ã¨ãªã®å®äºå¾ ã¡ãçµæåå¾ãé¢å è¯ãæãã«ã©ããããã¹ã¯ãªãããç¨æãã¦èª°ã§ãç°¡åã«ä½¿ããããã«ããã Clojure ã§ï¼ï¼ Babashka Babashka 㯠@borkdude æ°ãéçºãã¦ãã Clojure ã®ã³ã¼ãã ã¹ã¯ãªãã ã¨ãã¦é«éã«å®è¡ã§ããç°å¢ã§ãã é«éãã®èæ¯ã«ã¯ GraalVM ãå©ç¨ãããã¤ãã£ãã¤ã¡ã¼ã¸åãããã¾ãã ããã«ãã JVM è¨èªã§åº¦ã 話é¡ã«ãããããã¹ã¿ã¼ãã¢ããã¿ã¤ã ãã»ã¼ç¡è¦ã§ãããããã®é度ã§èµ·åãã¦ãããã®ã大ããªç¹å¾´ã§ãã $ time clojure -e '(+ 1 2 3)' 6 clojure
Vim/Neovim åãã« Clojure ã®éçºç°å¢ãæä¾ãããã©ã°ã¤ã³ vim-iced ã使ã£ã¦ Clojure éçºç°å¢ã®æ§ç¯ããã¦ã¿ã¾ãããã ãªã vim-iced ã¯å人çã«éçºãã¦ããæä½ã® Vim ãã©ã°ã¤ã³ã§ãå®éã«ç§ãæ¥åã§(åæã«)å©ç¨ãã¦ããã¨ããå®ç¸¾ãããã¾ãã åæ ã´ã¼ã« ããã㨠Clojure å®è¡ç°å¢ã®ã¤ã³ã¹ãã¼ã« vim-iced ã®ã»ããã¢ãã vim-plug ã®ã¤ã³ã¹ãã¼ã« å種ãã©ã°ã¤ã³ã®ã¤ã³ã¹ãã¼ã« iced ã³ãã³ãã«ãã¹ãéã ãµã³ãã«ããã¸ã§ã¯ãã®ä½æ REPL é§åéçºã¸ã®å ¥ãå£ REPL ã¸ã®æ¥ç¶ ã³ã¼ããè©ä¾¡ãã¦ã¿ã å¤æ´å 容ãå³åº§ã«ç¢ºèªãã ãã¹ãé§åéçºã¸ã®å ¥ãå£ ãã¹ãã®ä½æ ã½ã¼ã¹ã®ä¿®æ£ ãªã³ã¿ã¼/ãã©ã¼ããã¿ã¼ ã®è¨å® clj-kondo ã«ããéç解æã®è¨å® cljstyle ã«ãããã©ã¼ãããã®è¨å® vim-ic
ç§ã¯ããã¡ããããã¦ã³ãã¼ããã¦ã権éãä»ãã¦ãå®è¡ãã¾ããã aliasã使ããªããalias amm=/path/to/ammonite-repl-0.5.0-2.11.7ã§ããããã ãããã ã¾ããã«ã©ãã«ãªãã¨ï¼æ¥½ããï¼ æ¬¡ã«ãScala REPLã§ãTabã§è£å®ã§ãã¾ãããAmmonite-REPLã§ã¯def last: Aã®ãããªãã®ã¾ã§è¡¨ç¤ºããã¾ããã¹ã´ã¤ï¼ æå¾ã«ãCtrl+wãï¼ã¤ã®ã¯ã¼ããåé¤ãããã¨ã便å©ï¼ ã§ããCtrl+rã§å±¥æ´ã辿ããã¨ã¯ã§ããªãããã§ãã ãã¨ãããããå¾®å¦ãªãã®ã¯ãã¡ã¿ããã§ãã ã¾ã¨ã ã«ã©ãã«ãªãã¨ãCtrl+wã§ï¼ã¤ã®ã¯ã¼ããåé¤ã§ãããã¨ã¯å¼·ã¿ã ã¨æãã¾ãã èªä½ããã¯ã©ã¹ããªãã¸ã§ã¯ããimportã§ããªããããªã®ã§ããã®è¾ºãã§ããããã«ãªãã¨æ´ã«ä¾¿å©ã«ãªãããããªããã¨æãã¾ãã(libraryDependenciesã«è¿½å ãã
ã¿ã¤ãã«ã®éãã§ããGo 㯠LL çã«ä½¿ãããã¨ã¯ããç³ãã¾ãããããããæèã§ä½¿ã£ã¦ãã㨠REPL çãªãã¨ããããã¨ãã«å°ããã¡ã§ããããããã§ä½ãã¾ãããgoreãããååã§ããã motemen/gore · GitHub 以ä¸ã®ã¹ã¯ãªã¼ã³ãã£ã¹ãã§ã ãããã®é°å²æ°ããå¯ãä¸ããã ï¼ã¹ã¯ãªã¼ã³ãã£ã¹ã㯠cho45/KeyCast ã使ã£ã¦æ®å½±ãã¾ããï¼ ç¹å¾´ gore ã®ç¹å¾´ã¯ä»¥ä¸ã®éãã§ãã ã©ã¤ã³ã¨ãã£ã¿ã¨å±¥æ´ è¤æ°è¡å ¥å ããã±ã¼ã¸ã®ã¤ã³ãã¼ããè£å®ã¤ã å¼ããã³æãå®è¡å¯è½ ã³ã¼ãè£å®ï¼nsf/gocode ãå©ç¨ï¼ ããªãã£ããªã³ãï¼k0kubun/pp ã davecgh/go-spew ãããããï¼ ããã¥ã¡ã³ããå¼ããï¼godoc ãå¿ è¦ï¼ 以ä¸ã®ããã«ãé常ã«ä¾¿å©ãªãã®ã«ãªã£ã¦ããã¾ããããããã®ç¨åº¦ REPL ã«ã¯å½ç¶ãã£ã¦ã»ããæ©è½ã ã¨ãè¨ããã ã¤ã³
Ammonite lets you use the Scala language for scripting purposes: in the REPL or as scripts. A Modernized Scala REPL. With syntax highlighting, multi-line editing, the ability to load maven artifacts directly in the REPL, and many other quality-of-life improvements missing in the default Scala REPL. Lightweight Programming in Scala. Create scripts that you can run easily from the command line, with
This is where the code for the Ammonite project lives: Ammonite-REPL, the improved Scala REPL If you use Ammonite and like it, you will probably enjoy the following book by the Author: Hands-on Scala Programming Hands-on Scala has uses Ammonite extensively throughout the book, using Ammonite to accomplish a lot of useful tasks: exploring third party libraries or writing parallel web-crawlers in th
å人çã«èå³ã®ããå 容ãªã®ã§ãèªåã®è¨èã§ã¾ã¨ãã¾ãã èæ¯ clojureã¨ã¯javaã®ä¸ã§åãlispç³»ï¼é¢æ°åï¼è¨èªã§ãã clojurescriptï¼ä»¥å¾cljsï¼ã¨ã¯javascriptï¼ä»¥å¾jsï¼ãclojureã§æ¸ããè¨èªã§ãã cljsãjsã«å¤æããã«ã¯javaãå¿ è¦ã¨ããleiningenãªã©ã®ãã¼ã«ã使ããã¨ãå¤ãã§ãããjavaã«é ¼ããã¨ãå¤æã§ããä»çµã¿ãããããã§ãã ä»åã¯ãã®ä»çµã¿ã®ï¼ã¤ã§ããlumoãå©ç¨ãã¦ãnodejsã®ã¢ããªãcljsã§æ¸ãã¦åããã¦ã¿ã¾ããã å ¨ä½å ãã®é ã«èª¬æãã¦ããã¾ãã åä½ç°å¢ lumoã®ã¤ã³ã¹ãã¼ã« lumo + replã§hello world lumo + ãã¡ã¤ã«ã§hello world cljsãjsã«ãã«ããã¦ãnodeã³ãã³ãã§hello world lumo + express cljsãjsã«ãã«ããã¦ã
Clojure Advent Calendar 2016ã®7æ¥ç®ã®è¨äºã«ãªãã¾ãã ClojureScriptã¨REPL ç¾å¨ã¯Node.jsãèæ ®ããã¦ã¾ããããã¨ãã¨ClojureScriptã¯ãã©ã¦ã¶ä¸ã®JavaScriptã対象ã«ãã¦ããã®ã§ããã©ã¦ã¶REPLã®éçºãé²ã¿ã¾ããã (figwheelã§ãnodeåãã®è§£èª¬ã¯ããã¾ããï¼ ãã®è¨äºã§ã¯ãã³ã³ã½ã¼ã«ã§åãREPLã®è©±é¡ãæ±ãã¾ãã å®è·µè¨äºã§ã¯ãªãç´¹ä»ã®ã¿ã§ãã®ã§ãèå³ãããã°å ¬å¼ãµã¤ããéãã¦ããã£ã¦ã¿ã¾ãããã lumo lumoã¯ãmacOS, Linux, Windowsã§åãã³ã³ã½ã¼ã«REPLã§ãã ãã¤ããªããã±ã¼ã¸ããã¦ã³ãã¼ããã¦ããããnode(.js)ãå ¥ã£ã¦npmã«ãã¹ãéã£ã¦ããç°å¢ã§npmã§ã¤ã³ã¹ãã¼ã«ãã¾ãã macOSã§ã¯Homebrewã§ãã¤ã³ã¹ãã¼ã«ã§ãã¾ãã ããã§ã¯ãnpmããã¤ã³ã¹
æ¬è¨äºã¯ãåèè ã®è¨±è«¾ã®ãã¨ã翻訳ã»æ²è¼ãã¦ãã¾ãã Command line scripting with ClojureScript / akiroz ClojureScriptã³ãã¥ããã£ã«ããéçºã®ãããã§ãã³ãã³ãã©ã¤ã³ã»ã¹ã¯ãªãããClojureã§æ¸ãã®ã楽ãããªã£ã¦ãã¾ãããClojureScriptã®ä¸å¿ãã¼ã ã¨lumoãéçºãã¦ããanmonteiroããã«ã¯ãå¿ããæ¬æã表ãã¾ãã Clojureã¯ããã¼ã¿ãå¦çããããã®çãã¹ã¯ãªãããæ¸ãã®ã«è¯ãè¨èªã ã¨æãã¾ããæä½ç¨ã®é¢æ°ãã¤ãã¥ã¼ã¿ãã«ãªæ§é ãè¨èªã«çµã¿è¾¼ã¾ãã¦ããã®ã§ãåç §æ§ãdeep-cloningã«ã¤ãã¦å¿é ããå¿ è¦ãããã¾ããã Lumoã§ã¹ã¯ãªãããèµ·åãã ã§ã¯ãå§ããããã«ç°¡åãªæ¹æ³ãç´¹ä»ãã¾ããlumoãã·ã¹ãã ã«ã¤ã³ã¹ãã¼ã«ãã¦ãClojureã®ãã¡ã¤ã«ãèµ·åãã¾ããhello.cljsã¨ãã
Leiningenã«ã¤ãã¦èª¿ã¹ãã®ã§è¨é²ãã¦ããã Leiningenã¨ã¯ Leiningenã¯Clojureã®ããã¸ã§ã¯ãã¾ããã®éåãããªããã¼ã«ã§ããããã«ãããã¹ããä¾åããã©ã¤ãã©ãªã®ç®¡çãªã©ãããªããJavaã«ãããMavenã«è¿ããã®ã§ããã ååã¯Leiningenã使ã£ã¦Clojureã®REPLèµ·åã¾ã§ãè¡ã£ãä»åã¯ããããã詳ããLeiningenã調ã¹ããã¨æãã Leiningenã®ã¤ã³ã¹ãã¼ã« å²æãããGitHubãã1.x系統ãåå¾ããleinãPATHã«è¨å®ãã¦ãããã®ã¨ãããä»åã®ç°å¢ã¯æ¬¡ã®éãã§ããã $ lein version Leiningen 1.7.1 on Java 1.6.0_24 OpenJDK 64-Bit Server VM lein versionã§Leiningenã®ãã¼ã¸ã§ã³ã確èªãã¦ãããLeiningenã§ã¯ãã®ããã«lei
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}