{"id":47311,"date":"2023-07-22T23:30:36","date_gmt":"2024-01-28T01:11:08","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e7%a7%80%e5%85%8b%e5%88%a9%e4%ba%9eclojure%e5%9c%98%e9%9a%8a%e9%96%8b%e7%99%bc\/"},"modified":"2024-04-30T14:54:08","modified_gmt":"2024-04-30T06:54:08","slug":"%e7%a7%80%e5%85%8b%e5%88%a9%e4%ba%9eclojure%e5%9c%98%e9%9a%8a%e9%96%8b%e7%99%bc","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e7%a7%80%e5%85%8b%e5%88%a9%e4%ba%9eclojure%e5%9c%98%e9%9a%8a%e9%96%8b%e7%99%bc\/","title":{"rendered":"\u79c0\u514b\u5229\u4e9eClojure\u5718\u968a\u958b\u767c"},"content":{"rendered":"<p>\u8fd9\u7bc7\u6587\u7ae0\u662f2019\u5e74Clojure Advent Calendar\u7b2c18\u5929\u7684\u6587\u7ae0\u3002\u6211\u53d1\u73b0\u4e24\u5e74\u524d\u6211\u5199\u7684\u90a3\u7bc7\u5173\u4e8e\u5982\u4f55\u5feb\u901f\u5f00\u53d1Clojure\u7684\u6587\u7ae0\u4ecd\u7136\u6709\u4eba\u5728\u9605\u8bfb\uff0c\u6240\u4ee5\u6211\u51b3\u5b9a\u66f4\u65b0\u4fe1\u606f\uff0c\u5e76\u5c06\u5f53\u524d\u7684\u89c2\u70b9\u6574\u7406\u51fa\u6765\u3002<\/p>\n<p>\u5f53\u65f6\u7684\u89c2\u70b9\u7279\u522b\u6ce8\u91cdClojure\u5f00\u53d1\u7684\u901f\u5ea6\uff0c\u5e76\u8ba4\u4e3a\u5b83\u7279\u522b\u9002\u5408\u4e2a\u4eba\u5f00\u53d1\uff0c\u53ef\u4ee5\u5728\u77ed\u65f6\u95f4\u5185\u8fdb\u884c\u3002\u7136\u800c\uff0c\u7531\u4e8e\u7f3a\u4e4f\u7ecf\u9a8c\uff0c\u6211\u4eec\u7eaf\u5c5e\u731c\u6d4b\uff0c\u8ba4\u4e3a\u5b83\u53ef\u80fd\u4e0d\u592a\u9002\u5408\u4e2d\u5927\u578b\u56e2\u961f\u5f00\u53d1\u3002\u7136\u800c\uff0c\u7531\u4e8e\u76ee\u524d\u6211\u4eec\u6b63\u5728\u56e2\u961f\u4e2d\u4f7f\u7528Clojure\u8fdb\u884c\u5f00\u53d1\uff0c\u6240\u4ee5\u6211\u5c06\u4ece\u8fd9\u4e2a\u89d2\u5ea6\u5199\u4e00\u4e0b&#8221;\u4f7f\u7528Clojure\u8fdb\u884c\u56e2\u961f\u5f00\u53d1\u5982\u4f55\uff1f&#8221;\u7684\u610f\u89c1\u3002<\/p>\n<h2>\u6211\u548cClojure\u4e4b\u540e<\/h2>\n<p>\u81ea\u4ece2014\u5e74\u5728\u4e0a\u53f8\u7684\u6307\u5bfc\u4e0b\u5f00\u59cb\u5b66\u4e60Clojure\uff0c\u5df2\u7ecf\u8fc7\u53bb\u4e86\u4e94\u5e74\u3002<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">2018<\/ul>\n<\/li>\n<\/ul>\n<p>\u5f15\u304d\u7d9a\u304d\u30b7\u30ea\u30b3\u30f3\u30d0\u30ec\u30fc\u99d0\u5728\u3002<br \/>\n\u30d7\u30ed\u30c8\u30bf\u30a4\u30d7\u958b\u767a\u306a\u3069\u3067\u8a31\u3055\u308c\u308b\u9650\u308a Clojure\/Script \u3092\u4f7f\u3046\u3002<br \/>\nClojure\/conj 2018 \u53c2\u52a0\u3002<br \/>\n\u30df\u30fc\u30c8\u30a2\u30c3\u30d7\u3067 Clojure \u306e\u7d39\u4ecb\u3092\u3057\u305f\u308a Clojure \u52c9\u5f37\u4f1a\u3092\u3084\u3063\u305f\u308a\u8349\u306e\u6839\u6d3b\u52d5\u3002<br \/>\nClojure \u8ee2\u8077\u6d3b\u52d5\u958b\u59cb\u3002<\/p>\n<p>2019<\/p>\n<p>Clojure \u8ee2\u8077\u6210\u529f\u3002<br \/>\n\u5e30\u56fd\u3068\u540c\u6642\u306b\u524d\u8077\u3092\u9000\u8077\u3002<br \/>\n\u6bce\u65e5 Clojure \u3092\u66f8\u3044\u3066\u3044\u308b\u3002<\/p>\n<p>\u6700\u5927\u7684\u66f4\u65b0\u662f\u6210\u529f\u8f6c\u804c\u81f3Clojure\u9886\u57df\u3002\u6211\u5728\u65e5\u672c\u548c\u7f8e\u56fd\u90fd\u8fdb\u884c\u4e86\u804c\u4e1a\u8f6c\u6362\u7684\u5c1d\u8bd5\uff0c\u4f46\u6700\u7ec8\u88ab\u65e7\u91d1\u5c71\u7684\u4e00\u5bb6Fin Tech\u521d\u521b\u516c\u53f8\u9009\u4e2d\u4e86\uff0c\u4ed6\u4eec\u4f7f\u7528Clojure\u8fdb\u884c\u5f00\u53d1\u3002<\/p>\n<p>&#8220;\u5173\u4e8e\u8f6c\u804c\u6d3b\u52a8\uff0c\u6ca1\u6709\u529e\u6cd5\u666e\u904d\u9002\u7528\u5230\u53ef\u4ee5\u5199\u51fa\u7c7b\u4f3c\u4e8e&#8217;\u4f60\u5728\u65e5\u672c\u8fd8\u6ca1\u6709\u5c1d\u8bd5Clojure\u5c31\u6d88\u8017\u4e86\u5417\uff1f&#8217;\u8fd9\u6837\u6311\u8845\u6027\u7684\u6587\u7ae0\u7684\u5185\u5bb9\uff0c\u5f53\u65f6\u662f\u56e0\u4e3a\u5bf9\u672a\u6765\u7684\u4e0d\u5b89\u800c\u53d8\u80d6\u6216\u53d8\u7626\u3002\u8f6c\u804c\u5230\u7f8e\u56fd\u4f01\u4e1a\u6709\u8bb8\u591a\u969c\u788d\uff0c\u518d\u52a0\u4e0a\u8981\u4f9d\u9760\u8fd0\u6c14\u7684\u56e0\u7d20\uff0c\u4f9d\u7136\u4e0d\u662f\u4e00\u4e2a\u8f7b\u800c\u6613\u4e3e\u53ef\u4ee5\u5411\u522b\u4eba\u63a8\u8350\u7684\u4e8b\u60c5\u3002\u603b\u4e4b\uff0c\u6211\u5728\u4e0e\u4eba\u7684\u8fde\u63a5\u65b9\u9762\u4ee5\u53ca\u5176\u4ed6\u65b9\u9762\uff0c\u90fd\u5f97\u5230\u4e86 Clojure \u7684\u5e2e\u52a9\u3002&#8221;<\/p>\n<p>\u7136\u800c\uff0c\u4f5c\u4e3a\u4e00\u540d Clojure \u5de5\u7a0b\u5e08\u8fdb\u884c\u804c\u4e1a\u8f6c\u6362\uff0c\u6bd4\u8d77 AI\/Blockchain \u5de5\u7a0b\u5e08\u6765\u8bf4\uff0c\u8fd9\u662f\u4e00\u6b21\u6210\u529f\u7684\u5229\u57fa\u6218\u7565\u3002\u800c\u4e14\uff0cClojure \u76f8\u5173\u7684\u5de5\u4f5c\u673a\u4f1a\u5e76\u4e0d\u5c11\u3002\u5728\u804c\u4e1a\u8f6c\u6362\u8fc7\u7a0b\u4e2d\uff0c\u6211\u4e3b\u8981\u4f7f\u7528 LinkedIn \u8fdb\u884c\u4e86\u641c\u7d22\uff0c\u867d\u7136\u4e0d\u786e\u5b9a\u8be5\u505a\u4ec0\u4e48\uff0c\u4f46\u6211\u6682\u65f6\u53d1\u5e03\u4e86\u4e2a\u4eba\u7b80\u5386\uff0c\u7ed3\u679c\u63a5\u8fde\u4e0d\u65ad\u5730\u6536\u5230\u4e86\u53ea\u5173\u4e8e Clojure \u7684\u79c1\u4fe1\uff0c\u5f88\u5feb\u5c31\u80fd\u8fdb\u884c\u7535\u8bdd\u9762\u8bd5\u4e86\u3002\u800c\u4e14\uff0c\u5373\u4f7f\u662f\u5728\u5927\u578b\u4f01\u4e1a\u4e2d\uff0c\u4e5f\u6709\u516c\u5f00\u62db\u8058 Clojure \u5de5\u7a0b\u5e08\u7684\u5c97\u4f4d\u3002\u4f8b\u5982\uff0c\u67d0 A \u516c\u53f8\u5c31\u5728\u62db\u8058\u9762\u5411\u6570\u636e\u79d1\u5b66\u7684 Clojure \u5de5\u7a0b\u5e08\u3002<\/p>\n<p>\u65e0\u8bba\u5982\u4f55\uff0c\u6211\u6210\u529f\u5730\u5ea6\u8fc7\u4e86\u4f5c\u4e3a\u4e00\u4e2aClojurian\u7684\u4eba\u751f\u3002\u76ee\u524d\u56e0\u7b7e\u8bc1\u95ee\u9898\u6211\u5728\u65e5\u672c\u8fdc\u7a0b\u5de5\u4f5c\uff0c\u4f46\u4e00\u65e6\u7b7e\u8bc1\u6279\u51c6\u6211\u5c31\u4f1a\u8ba1\u5212\u524d\u5f80\u7f8e\u56fd\u3002<\/p>\n<h2>\u76ee\u524d\u7684Clojure\u6280\u672f\u5806\u6808<\/h2>\n<p>\u4ece\u72ec\u81ea\u5f00\u53d1\u539f\u578b\u5230\u56e2\u961f\u5f00\u53d1\uff0c\u6280\u672f\u5806\u6808\u5e76\u6ca1\u6709\u53d1\u751f\u5927\u7684\u53d8\u5316\u3002\u5982\u679c\u975e\u8981\u8bf4\u53d8\u5316\u7684\u8bdd\uff0c\u5c31\u662f\u73b0\u5728\u66f4\u52a0\u4f9d\u8d56\u4e8eEmacs\u4f5c\u4e3a\u7f16\u8f91\u5668\uff0c\u5e76\u4e14\u5728\u6784\u5efa\u5de5\u5177\u65b9\u9762\u8f6c\u5411\u4e86 Clojure CLI \u548c shadow-cljs \u7b49\u65b0\u7684\u5de5\u5177\u3002\u987a\u4fbf\u63d0\u4e00\u4e0b\uff0c\u5e76\u4e0d\u662f\u56e2\u961f\u4e2d\u7684\u6bcf\u4e2a\u4eba\u90fd\u4f7f\u7528Emacs\u3002<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30a8\u30c7\u30a3\u30bf\/ IDE<\/ul>\n<\/li>\n<\/ul>\n<p>Emacs<br \/>\nCIDER<\/p>\n<p>\u30d3\u30eb\u30c9\u30c4\u30fc\u30eb<\/p>\n<p>Clojure CLI &#8230; \u65b0\u3057\u3044 Clojure \u30d3\u30eb\u30c9 CLI\u3002tools.deps \u3068\u3044\u3046\u65b0\u3057\u3044\u4f9d\u5b58\u89e3\u6c7a\u6a5f\u69cb\u3092\u6301\u3064\u3002<\/p>\n<p>shadow-cljs &#8230; \u65b0\u3057\u3044 ClojureScript \u30d3\u30eb\u30c9\u30c4\u30fc\u30eb\u3002npm \u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u81ea\u7136\u306b\u5229\u7528\u3067\u304d\u308b\u3002<br \/>\nleiningen<br \/>\nfigwheelh<br \/>\nboot<\/p>\n<p>\u305d\u306e\u4ed6\u30c4\u30fc\u30eb<\/p>\n<p>eastwood<br \/>\ncljfmt<br \/>\nkibit<\/p>\n<p>clj-kondo &#8230; \u65b0\u3057\u3044 Clojure \u30ea\u30f3\u30bf\u30fc\u3002\u30b3\u30fc\u30c9\u3092\u3053\u3093\u307e\u308a\u3057\u3066\u304f\u308c\u308b\u3002<\/p>\n<p>joker &#8230; Golang \u88fd\u306e Clojure \u30a4\u30f3\u30bf\u30d7\u30ea\u30bf\u30fb\u30ea\u30f3\u30bf\u30fc\u3002\u9ad8\u901f\u306b\u8d77\u52d5\u3057 Go \u306e\u6a19\u6e96\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u5229\u7528\u3067\u304d\u308b\u3002<\/p>\n<p>closh &#8230; Clojure \u304c\u4f7f\u3048\u308b Shell\u3002<\/p>\n<p>\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af<\/p>\n<p>integrant &#8230; \u6700\u65e9\u5916\u305b\u306a\u3044\u30c7\u30fc\u30bf\u30c9\u30ea\u30d6\u30f3\u306a\u30e2\u30b8\u30e5\u30fc\u30eb\u30d9\u30fc\u30b9\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3002<\/p>\n<p>duct &#8230; integrant \u3067\u30b5\u30fc\u30d0\u30b5\u30a4\u30c9\u30a2\u30d7\u30ea\u3092\u958b\u767a\u3059\u308b\u305f\u3081\u306e\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3002<\/p>\n<p>lacinia &#8230; GraphQL \u306e Clojure \u5b9f\u88c5\u3002<\/p>\n<p>\u30e9\u30a4\u30d6\u30e9\u30ea<\/p>\n<p>clojure.spec<\/p>\n<p>umlaut &#8230; \u30b9\u30ad\u30fc\u30de\u5b9a\u7fa9\u8a00\u8a9e\u3002\u5171\u901a\u30b9\u30ad\u30fc\u30de\u5b9a\u7fa9\u304b\u3089\u69d8\u3005\u306a\u30b9\u30ad\u30fc\u30de\u5b9a\u7fa9\u30d5\u30a1\u30a4\u30eb\u3092\u751f\u6210\u3067\u304d\u308b\u3002<\/p>\n<p>jackdaw &#8230; Kafka \u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3001Kafka streams \u30e9\u30a4\u30d6\u30e9\u30ea\u3002Clojure \u3089\u3057\u3044\u66f8\u304d\u65b9\u3067 Kafka topology \u3092\u5b9a\u7fa9\u3067\u304d\u308b\u3002<\/p>\n<p>clara-rules &#8230; \u30eb\u30fc\u30eb\u30a8\u30f3\u30b8\u30f3\u3002\u30eb\u30fc\u30eb\u3092 Clojure \u30b3\u30fc\u30c9\u3067\u66f8\u3051 Immutable \u306a\u30b9\u30bf\u30a4\u30eb\u3067\u5b9f\u884c\u3059\u308b\u3053\u3068\u304c\u51fa\u6765\u308b\u3002<br \/>\nring<br \/>\npedestal<\/p>\n<p>aws-api &#8230; Cognitect \u8b39\u88fd\u306e\u65b0\u3057\u3044 AWS \u30e9\u30a4\u30d6\u30e9\u30ea\u3002API \u5b9a\u7fa9\u304b\u3089\u81ea\u52d5\u751f\u6210\u3092\u884c\u3046\u3053\u3068\u3067 AWS \u5074\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u5909\u66f4\u306b\u3082\u8ffd\u5f93\u3002<\/p>\n<p>timbre &#8230; \u30ed\u30ae\u30f3\u30b0\u30e9\u30a4\u30d6\u30e9\u30ea\u3002<\/p>\n<p>\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9<\/p>\n<p>reagent<\/p>\n<p>re-frame &#8230; reagent \u4e0a\u3067 Redux \u7684\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u3092\u5b9f\u73fe\u3059\u308b\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3002<\/p>\n<p>re-graph &#8230; re-frame \u306e\u30cf\u30f3\u30c9\u30e9\u3068\u3057\u3066\u5229\u7528\u3067\u304d\u308b GraphQL \u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3002<br \/>\ngarden<\/p>\n<p>\u305d\u306e\u4ed6<\/p>\n<p>Datomic On-Prem<br \/>\nDatomic Cloud<\/p>\n<p>Metabase &#8230; \u30c7\u30fc\u30bf\u53ef\u8996\u5316\u30c4\u30fc\u30eb\u3002Clojure \u88fd\u3068\u3044\u3046\u3060\u3051\u3067\u306f\u306a\u304f\u5f8c\u8ff0\u306e Datomic Analytics \u306b\u3088\u308a Datomic \u306e\u30c7\u30fc\u30bf\u53ef\u8996\u5316\u306b\u3082\u5229\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3002<\/p>\n<h2>Clojure \u9069\u5408\u7684\u958b\u767c\u7684\u7279\u9ede\u662f\u4ec0\u9ebc\uff1f<\/h2>\n<p>\u6211\u4e24\u5e74\u524d\u7684\u89c2\u70b9\u662f\uff0cClojure \u7684\u9b45\u529b\u5728\u4e8e\u5229\u7528 REPL \u7b49\u751f\u6001\u7cfb\u7edf\u8fdb\u884c\u5feb\u901f\u5f00\u53d1\uff0c\u5e76\u4e14\u7279\u522b\u9002\u5408\u4e2a\u4eba\u8fdb\u884c\u539f\u578b\u5f00\u53d1\u3002\u7136\u800c\uff0c\u7531\u4e8e\u6211\u4e2a\u4eba\u5728\u56e2\u961f\u5f00\u53d1\u4e2d\u5bf9 Clojure \u7684\u7ecf\u9a8c\u8f83\u5c11\uff0c\u800c\u4e14\u7531\u4e8e Clojure \u7f3a\u4e4f\u7c7b\u578b\uff0c\u6240\u4ee5\u5728\u56e2\u961f\u4e2d\u4f7f\u7528\u5b83\u53ef\u80fd\u4f1a\u9762\u4e34\u4e00\u4e9b\u56f0\u96be\u3002<\/p>\n<p>\u56e0\u6b64\uff0c\u6211\u52a0\u5165\u4e86\u4e00\u5bb6\u5168\u9762\u91c7\u7528Clojure\u7684\u516c\u53f8\uff0c\u5f00\u59cb\u4e86\u6211\u5728\u672a\u66fe\u63a5\u89e6\u8fc7\u7684Clojure\u56e2\u961f\u5f00\u53d1\u5de5\u4f5c\u3002\u603b\u7684\u6765\u8bf4\uff0c\u6211\u5e76\u6ca1\u6709\u611f\u5230\u592a\u5927\u7684\u538b\u529b\u3002\u76f8\u53cd\uff0c\u6211\u5f00\u59cb\u611f\u53d7\u5230Clojure\u5177\u5907\u652f\u6301\u9ad8\u6548\u56e2\u961f\u5f00\u53d1\u7684\u8bed\u8a00\u7279\u6027\uff0c\u56e0\u4e3a\u5b83\u5141\u8bb8\u6211\u4eec\u653e\u5f03\u7c7b\u578b\u9650\u5236\u3002\u63a5\u4e0b\u6765\uff0c\u6211\u5c06\u4ecb\u7ecd\u4e00\u4e9b\u76f8\u5173\u7279\u6027\u3002<\/p>\n<h4>1. \u5f37\u5236\u4f7f\u7528\u51fd\u6570\u5f0f\u7684\u5199\u6cd5<\/h4>\n<p>\u9996\u5148\uff0c\u5728\u4f7f\u7528Clojure\u8fdb\u884c\u5f00\u53d1\u65f6\uff0c\u51fd\u6570\u5f0f\u7684\u5199\u6cd5\u662f\u5f3a\u5236\u6027\u7684\uff0c\u56e0\u6b64\u4e0e\u53ef\u4ee5\u6df7\u5408\u4f7f\u7528OOP\u7684Java\u6216Scala\u76f8\u6bd4\uff0c\u4e2a\u4eba\u4e4b\u95f4\u7684\u5199\u4f5c\u65b9\u5f0f\u6ca1\u6709\u592a\u5927\u5dee\u5f02\u7684\u611f\u89c9\u3002\u56e0\u6b64\uff0c\u7406\u89e3\u4ed6\u4eba\u7f16\u5199\u7684\u4ee3\u7801\u7684\u8d1f\u62c5\u76f8\u5bf9\u8f83\u5c11\u3002\u6b64\u5916\uff0c\u5982\u679c\u4f7f\u7528\u8bf8\u5982duct\u7b49\u6846\u67b6\u8fdb\u884c\u5f00\u53d1\uff0c\u5219\u53ef\u4ee5\u5c06\u51fd\u6570\u7684\u4f4d\u7f6e\u58f0\u660e\u6027\u5730\u63cf\u8ff0\uff0c\u4ece\u800c\u8fdb\u4e00\u6b65\u63d0\u9ad8\u53ef\u8bfb\u6027\u3002<\/p>\n<p>Clojure \u670d\u52a1\u5668\u7aef\u6846\u67b6Duct \u6307\u5357<\/p>\n<h4>2. \u4e00\u5207\u7686\u4e3a\u6570\u636e ji\u0113<\/h4>\n<p>\u8fd9\u4e2a\u7279\u6027\u6211\u5728\u524d\u7bc7\u6587\u7ae0\u4e2d\u5df2\u7ecf\u63d0\u5230\u8fc7\uff0cClojure \u7684&#8221;\u4e00\u5207\u7686\u4e3a\u6570\u636e&#8221;\u975e\u5e38\u9002\u5408\u56e2\u961f\u5f00\u53d1\u3002\u7cfb\u7edf\u7684\u5185\u90e8\u6570\u636e\u51e0\u4e4e\u5168\u90e8\u4ee5EDN\u7684\u5f62\u5f0f\u8868\u793a\uff0c\u56e0\u6b64\u53ef\u4ee5\u8f7b\u677e\u5171\u4eab\u914d\u7f6e\u503c\u3001\u6a21\u5f0f\u5b9a\u4e49\u3001\u51fd\u6570\u7684\u8f93\u5165\u8f93\u51fa\u7b49\u7b49\u7684\u5b57\u7b26\u4e32\u7247\u6bb5\u3002\u6b64\u5916\uff0cClojure \u7684\u4ee3\u7801\u672c\u8eab\u4e5f\u4ee5\u6570\u636e\u7684\u5f62\u5f0f\u8868\u793a\uff0c\u53ef\u4ee5\u8f7b\u677e\u5730\u63d0\u53d6\u548c\u5171\u4eab\u6709\u610f\u4e49\u7684\u90e8\u5206\u3002\u5171\u4eab\u7684\u4ee3\u7801\u7247\u6bb5\u53ef\u4ee5\u901a\u8fc7REPL\u8f93\u5165\uff0c\u65b9\u4fbf\u5730\u91cd\u65b0\u6a21\u62df\u60c5\u666f\u3002<\/p>\n<p>\u5728\u53ef\u7591\u7684\u5730\u65b9\u4e8b\u5148\u8f93\u51fa\u6570\u636e\u65e5\u5fd7\uff0c\u901a\u8fc7\u8fd9\u79cd\u65b9\u6cd5\uff0c\u5728\u95ee\u9898\u53d1\u751f\u65f6\u53ef\u4ee5\u7b80\u5355\u5730\u91cd\u73b0\u60c5\u51b5\u5e76\u786e\u5b9a\u539f\u56e0\uff0c\u8fd9\u79cd\u65b9\u6cd5\u5728\u56e2\u961f\u4e2d\u88ab\u5e7f\u6cdb\u4f7f\u7528\u3002\u6211\u4e2a\u4eba\u559c\u6b22\u7684\u8f93\u51fa\u65b9\u6cd5\u662f\u524d\u9762\u63d0\u5230\u7684\u4e00\u4e2a\u540d\u4e3a timbre \u7684\u65e5\u5fd7\u5e93\u4e2d\u7684 spy \u5b8f\u3002taoensso.timbre\/spy \u53ef\u4ee5\u8bb0\u5f55\u5e76\u8f93\u51fa\u6267\u884c\u65f6\u6307\u5b9a\u7684\u8868\u8fbe\u5f0f\u89e3\u6790\u4e3a\u4ec0\u4e48\u6837\u7684\u503c\uff0c\u540c\u65f6\u8fd8\u4f1a\u5c06\u8be5\u503c\u76f4\u63a5\u8fd4\u56de\u3002\u4f60\u53ef\u4ee5\u5c06\u5b83\u63d2\u5165\u7ebf\u7a0b\u5b8f\u4e2d\uff0c\u6216\u8005\u5c06\u5176\u5305\u88c5\u5728\u53c2\u6570\u4e2d\uff0c\u8fd9\u6837\u53ef\u4ee5\u5728\u4e0d\u5f71\u54cd\u73b0\u6709\u4ee3\u7801\u7684\u60c5\u51b5\u4e0b\u89c2\u5bdf\u8fd0\u884c\u65f6\u7684\u4e2d\u95f4\u503c\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"p\">(<\/span><span class=\"nf\">require<\/span> <span class=\"o\">'<\/span><span class=\"p\">[<\/span><span class=\"n\">taoensso.timbre<\/span> <span class=\"no\">:as<\/span> <span class=\"n\">log<\/span><span class=\"p\">])<\/span>\r\n\r\n<span class=\"p\">(<\/span><span class=\"k\">def<\/span> <span class=\"n\">a<\/span> <span class=\"p\">{<\/span><span class=\"no\">:a<\/span> <span class=\"mi\">1<\/span> <span class=\"no\">:b<\/span> <span class=\"s\">\"2\"<\/span><span class=\"p\">})<\/span>\r\n<span class=\"p\">(<\/span><span class=\"nf\">log\/spy<\/span> <span class=\"n\">a<\/span><span class=\"p\">)<\/span> <span class=\"c1\">;; =&gt; {:a 1 :b \"2\"}<\/span>\r\n<span class=\"c1\">;; 19-12-18 12:15:11 Kazuki-MBP.local DEBUG [test-app.handler.example:22] - a =&gt; {:a 1, :b \"2\"}<\/span>\r\n\r\n<span class=\"p\">(<\/span><span class=\"k\">defn<\/span> <span class=\"n\">test-fn<\/span> <span class=\"p\">[<\/span><span class=\"n\">arg<\/span><span class=\"p\">]<\/span>\r\n  <span class=\"p\">(<\/span><span class=\"nb\">-&gt;<\/span> <span class=\"n\">arg<\/span>\r\n      <span class=\"n\">log\/spy<\/span>\r\n      <span class=\"p\">(<\/span><span class=\"nb\">assoc<\/span> <span class=\"no\">:id<\/span> <span class=\"mi\">1<\/span><span class=\"p\">)<\/span>\r\n      <span class=\"n\">log\/spy<\/span>\r\n      <span class=\"p\">(<\/span><span class=\"nb\">assoc<\/span> <span class=\"no\">:country<\/span> <span class=\"s\">\"Japan\"<\/span><span class=\"p\">)<\/span>\r\n      <span class=\"n\">log\/spy<\/span><span class=\"p\">))<\/span>\r\n\r\n<span class=\"p\">(<\/span><span class=\"k\">def<\/span> <span class=\"n\">data<\/span> <span class=\"p\">{<\/span><span class=\"no\">:name<\/span> <span class=\"s\">\"Kazuki\"<\/span><span class=\"p\">})<\/span>\r\n<span class=\"p\">(<\/span><span class=\"nf\">test-fn<\/span> <span class=\"p\">(<\/span><span class=\"nf\">log\/spy<\/span> <span class=\"n\">data<\/span><span class=\"p\">))<\/span> <span class=\"c1\">;; =&gt; {:name \"Kazuki\", :id 1, :country \"Japan\"}<\/span>\r\n<span class=\"c1\">;; 19-12-18 12:19:04 Kazuki-MBP.local DEBUG [test-app.handler.example:34] - data =&gt; {:name \"Kazuki\"}<\/span>\r\n<span class=\"c1\">;; 19-12-18 12:19:04 Kazuki-MBP.local DEBUG [test-app.handler.example:?] - arg =&gt; {:name \"Kazuki\"}<\/span>\r\n<span class=\"c1\">;; 19-12-18 12:19:04 Kazuki-MBP.local DEBUG [test-app.handler.example:?] - (assoc (log\/spy arg) :id 1) =&gt; {:name \"Kazuki\", :id 1}<\/span>\r\n<span class=\"c1\">;; 19-12-18 12:19:04 Kazuki-MBP.local DEBUG [test-app.handler.example:?] - (assoc (log\/spy (assoc (log\/spy arg) :id 1)) :country \"Japan\") =&gt; {:name \"Kazuki\", :id 1, :country \"Japan\"}<\/span>\r\n<\/code><\/pre>\n<p>\u5982\u679c\u60a8\u6b63\u5728\u5c06\u7cfb\u7edf\u4f5c\u4e3a\u4e00\u4e2a\u5b8c\u6574\u9879\u76ee\u8fdb\u884c\u5f00\u53d1\uff0c\u90a3\u4e48\u5373\u4f7f\u67d0\u4e9b\u4fe1\u606f\u65e0\u6cd5\u4f5c\u4e3a\u901a\u5e38\u6570\u636e\uff08\u4f8b\u5982DB\u8fde\u63a5\u7b49\uff09\u5904\u7406\uff0c\u8fd9\u4e9b\u4fe1\u606f\u4e5f\u53ef\u4ee5\u901a\u8fc7\u4e00\u4e2a\u540d\u4e3asystem\u7684\u6620\u5c04\u6765\u8fdb\u884c\u7247\u6bb5\u5316\u7ba1\u7406\u3002\u6bd4\u5982\u4e0b\u9762\u8fd9\u4e2aprofile duct\u5e94\u7528\u7684\u4f8b\u5b50\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"p\">{<\/span><span class=\"no\">:duct.profile\/base<\/span>\r\n <span class=\"p\">{<\/span><span class=\"no\">:duct.core\/project-ns<\/span> <span class=\"n\">test-app<\/span>\r\n\r\n  <span class=\"no\">:duct.router\/cascading<\/span>\r\n  <span class=\"p\">[<\/span><span class=\"o\">#<\/span><span class=\"n\">ig\/ref<\/span> <span class=\"p\">[<\/span><span class=\"no\">:test-app.handler\/example<\/span><span class=\"p\">]]<\/span>\r\n\r\n  <span class=\"no\">:test-app.handler\/example<\/span>\r\n  <span class=\"p\">{<\/span><span class=\"no\">:db<\/span> <span class=\"o\">#<\/span><span class=\"n\">ig\/ref<\/span> <span class=\"no\">:duct.database\/sql<\/span><span class=\"p\">}}<\/span> <span class=\"c1\">;; db \u63a5\u7d9a\u3092\u5229\u7528\u3059\u308b ring \u30cf\u30f3\u30c9\u30e9<\/span>\r\n\r\n <span class=\"no\">:duct.profile\/dev<\/span>   <span class=\"o\">#<\/span><span class=\"n\">duct\/include<\/span> <span class=\"s\">\"dev\"<\/span>\r\n <span class=\"no\">:duct.profile\/local<\/span> <span class=\"o\">#<\/span><span class=\"n\">duct\/include<\/span> <span class=\"s\">\"local\"<\/span>\r\n <span class=\"no\">:duct.profile\/prod<\/span>  <span class=\"p\">{}<\/span>\r\n\r\n <span class=\"no\">:duct.module\/logging<\/span> <span class=\"p\">{}<\/span>\r\n <span class=\"no\">:duct.module.web\/api<\/span>\r\n <span class=\"p\">{}<\/span>\r\n <span class=\"no\">:duct.module\/sql<\/span> <span class=\"c1\">;; duct \u306e db \u63a5\u7d9a\u30e2\u30b8\u30e5\u30fc\u30eb\u3002\u63a5\u7d9a\u60c5\u5831\u3092 :duct.database\/sql \u306b\u5c55\u958b\u3002<\/span>\r\n <span class=\"p\">{}}<\/span>\r\n<\/code><\/pre>\n<p>\u5728dev\u73af\u5883\u4e2d\u4f7f\u7528go\u542f\u52a8REPL\u540e\uff0c\u53ef\u4ee5\u901a\u8fc7integrant.repl.state\/system\u6765\u67e5\u770b\u7cfb\u7edf\u72b6\u6001\u3002\u56e0\u6b64\uff0c\u53ef\u4ee5\u5c06\u53ef\u4ee5\u4eceREPL\u6267\u884c\u7684\u5305\u62ec\u6570\u636e\u5e93\u8fde\u63a5\u7684\u51fd\u6570\u6267\u884c\u7247\u6bb5\u5316\u5982\u4e0b\u3002\u63a5\u6536\u65b9\u53ef\u4ee5\u5728\u540c\u4e00\u9879\u76ee\u4e2d\u542f\u52a8REPL\u5e76\u6267\u884c\u6b64\u7247\u6bb5\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"p\">(<\/span><span class=\"k\">defn<\/span> <span class=\"n\">get-customer<\/span> <span class=\"p\">[<\/span><span class=\"n\">db<\/span><span class=\"p\">]<\/span>\r\n  <span class=\"c1\">;;...<\/span>\r\n  <span class=\"p\">)<\/span>\r\n\r\n<span class=\"p\">(<\/span><span class=\"k\">def<\/span> <span class=\"n\">db<\/span> <span class=\"p\">(<\/span><span class=\"no\">:duct.database\/sql<\/span> <span class=\"n\">integrant.repl.state\/system<\/span><span class=\"p\">))<\/span>\r\n<span class=\"p\">(<\/span><span class=\"nf\">get-customers<\/span> <span class=\"n\">db<\/span><span class=\"p\">)<\/span>\r\n<\/code><\/pre>\n<p>\u5728Clojure\u4e2d\uff0c\u53ef\u4ee5\u8f7b\u677e\u5171\u4eab\u4ee5\u53ef\u8bc4\u4f30\u7684\u5355\u5143\u4e3a\u57fa\u7840\u7684\u4ee3\u7801\u7247\u6bb5\uff0c\u4e3a\u56e2\u961f\u5f00\u53d1\u53d1\u6325\u6da6\u6ed1\u5242\u7684\u4f5c\u7528\u3002<\/p>\n<h4>3. \u5171\u4eab\u6a21\u5f0f\u5b9a\u4e49<\/h4>\n<p>\u5728Clojure\u4e2d\uff0c\u5982\u4e0a\u6240\u8ff0\uff0c\u4e00\u5207\u90fd\u53ef\u4ee5\u8868\u793a\u4e3a\u6570\u636e\uff08EDN\uff09\u3002\u56e0\u6b64\uff0c\u8bb8\u591a\u7531Clojure\u5236\u4f5c\u7684\u5e93\u548c\u6846\u67b6\u901a\u5e38\u4f7f\u7528EDN\u6765\u5b9a\u4e49\u6a21\u5f0f\u3002\u5982\u679c\u4f7f\u7528EDN\uff0c\u81ea\u52a8\u751f\u6210\u4e5f\u5f88\u5bb9\u6613\uff0c\u5b58\u5728\u7740\u53ef\u4ee5\u81ea\u52a8\u751f\u6210\u6a21\u5f0f\u5b9a\u4e49\u7684\u5e93\u3002\u5176\u4e2d\u4e00\u79cd\u5178\u578b\u7684\u4f8b\u5b50\u662f\u4e4b\u524d\u63d0\u5230\u7684umlaut\uff0c\u6211\u4eec\u7684\u56e2\u961f\u4e5f\u5728\u4f7f\u7528\u5b83\u3002<\/p>\n<p>\u4f7f\u7528umlaut\uff0c\u53ef\u4ee5\u6839\u636e\u5171\u540c\u7684\u6a21\u5f0f\u5b9a\u4e49\u751f\u6210Datomic\u6a21\u5f0f\u3001Lacinia\u6a21\u5f0f\u3001clojure.spec\u5b9a\u4e49\u6587\u4ef6\u7b49\uff0c\u8fd8\u53ef\u4ee5\u901a\u8fc7\u7f16\u5199\u751f\u6210\u5668\u81ea\u5df1\u8fdb\u884c\u6269\u5c55\u3002\u7a0d\u5fae\u6709\u70b9\u4e0d\u6ee1\u610f\u7684\u662f\uff0c\u5171\u540c\u5b9a\u4e49\u6a21\u5f0f\u4e0d\u662f\u4ee5EDN\u683c\u5f0f\u5b58\u5728\u3002<\/p>\n<pre class=\"post-pre\"><code>@doc \"Wrestler of Grand Sumo Tournament\"\r\ntype Rikishi {\r\n  id: ID\r\n  shikona: String\r\n  banduke: String\r\n  heya: String\r\n}\r\n\r\n@lang\/lacinia identifier query\r\ntype QueryRoot {\r\n  rihishi_by_id(id: ID?): Rishiki? {\r\n    @doc \"Access a Rikishi by its unique id, if it exists.\"\r\n    @lang\/lacinia resolver query_rikishi-by-id\r\n  }\r\n}\r\n<\/code><\/pre>\n<p>\u53ef\u4ee5\u6839\u636e\u4e0a\u8ff0\u901a\u7528\u5b9a\u4e49\u6a21\u5f0f\u751f\u6210Lacinia\u3001Datomic\u7b49\u6a21\u5f0f\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"p\">{<\/span><span class=\"no\">:objects<\/span>\r\n <span class=\"p\">{<\/span><span class=\"no\">:Rikishi<\/span>\r\n  <span class=\"p\">{<\/span><span class=\"no\">:fields<\/span>\r\n   <span class=\"p\">{<\/span><span class=\"no\">:id<\/span> <span class=\"p\">{<\/span><span class=\"no\">:type<\/span> <span class=\"p\">(<\/span><span class=\"nf\">non-null<\/span> <span class=\"n\">ID<\/span><span class=\"p\">)<\/span><span class=\"n\">,<\/span> <span class=\"no\">:isDeprecated<\/span> <span class=\"n\">false<\/span><span class=\"p\">}<\/span><span class=\"n\">,<\/span>\r\n    <span class=\"no\">:shikona<\/span> <span class=\"p\">{<\/span><span class=\"no\">:type<\/span> <span class=\"p\">(<\/span><span class=\"nf\">non-null<\/span> <span class=\"n\">String<\/span><span class=\"p\">)<\/span><span class=\"n\">,<\/span> <span class=\"no\">:isDeprecated<\/span> <span class=\"n\">false<\/span><span class=\"p\">}<\/span><span class=\"n\">,<\/span>\r\n    <span class=\"no\">:banduke<\/span> <span class=\"p\">{<\/span><span class=\"no\">:type<\/span> <span class=\"p\">(<\/span><span class=\"nf\">non-null<\/span> <span class=\"n\">String<\/span><span class=\"p\">)<\/span><span class=\"n\">,<\/span> <span class=\"no\">:isDeprecated<\/span> <span class=\"n\">false<\/span><span class=\"p\">}<\/span>\r\n    <span class=\"no\">:heya<\/span> <span class=\"p\">{<\/span><span class=\"no\">:type<\/span> <span class=\"p\">(<\/span><span class=\"nf\">non-null<\/span> <span class=\"n\">String<\/span><span class=\"p\">)<\/span><span class=\"n\">,<\/span> <span class=\"no\">:isDeprecated<\/span> <span class=\"n\">false<\/span><span class=\"p\">}}<\/span><span class=\"n\">,<\/span>\r\n   <span class=\"no\">:implements<\/span> <span class=\"p\">[]<\/span><span class=\"n\">,<\/span>\r\n   <span class=\"no\">:description<\/span> <span class=\"s\">\"Wrestler of Grand Sumo Tournament\"<\/span><span class=\"p\">}}<\/span><span class=\"n\">,<\/span>\r\n <span class=\"no\">:enums<\/span> <span class=\"p\">{}<\/span><span class=\"n\">,<\/span>\r\n <span class=\"no\">:interfaces<\/span> <span class=\"p\">{}<\/span><span class=\"n\">,<\/span>\r\n <span class=\"no\">:mutations<\/span> <span class=\"p\">{}<\/span><span class=\"n\">,<\/span>\r\n <span class=\"no\">:queries<\/span>\r\n <span class=\"p\">{<\/span><span class=\"no\">:rikishi_by_id<\/span>\r\n  <span class=\"p\">{<\/span><span class=\"no\">:type<\/span> <span class=\"no\">:Rikishi,<\/span>\r\n   <span class=\"no\">:description<\/span> <span class=\"s\">\"Access a Rikishi by its unique id, if it exists.\"<\/span><span class=\"n\">,<\/span>\r\n   <span class=\"no\">:isDeprecated<\/span> <span class=\"n\">false,<\/span>\r\n   <span class=\"no\">:args<\/span> <span class=\"p\">{<\/span><span class=\"no\">:id<\/span> <span class=\"p\">{<\/span><span class=\"no\">:type<\/span> <span class=\"n\">ID<\/span><span class=\"p\">}}<\/span><span class=\"n\">,<\/span>\r\n   <span class=\"no\">:resolve<\/span> <span class=\"no\">:query_rikishi-by-id<\/span><span class=\"p\">}}}<\/span>\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code><span class=\"p\">(<\/span><span class=\"o\">#<\/span><span class=\"no\">:db<\/span><span class=\"p\">{<\/span><span class=\"no\">:ident<\/span> <span class=\"no\">:rikishi\/id,<\/span>\r\n      <span class=\"no\">:valueType<\/span> <span class=\"no\">:db.type\/string,<\/span>\r\n      <span class=\"no\">:cardinality<\/span> <span class=\"no\">:db.cardinality\/one,<\/span>\r\n      <span class=\"no\">:unique<\/span> <span class=\"no\">:db.unique\/identity<\/span><span class=\"p\">}<\/span>\r\n <span class=\"o\">#<\/span><span class=\"no\">:db<\/span><span class=\"p\">{<\/span><span class=\"no\">:ident<\/span> <span class=\"no\">:rikishi\/shikona,<\/span>\r\n      <span class=\"no\">:valueType<\/span> <span class=\"no\">:db.type\/string,<\/span>\r\n      <span class=\"no\">:cardinality<\/span> <span class=\"no\">:db.cardinality\/one<\/span><span class=\"p\">}<\/span>\r\n <span class=\"o\">#<\/span><span class=\"no\">:db<\/span><span class=\"p\">{<\/span><span class=\"no\">:ident<\/span> <span class=\"no\">:rikishi\/banduke,<\/span>\r\n      <span class=\"no\">:valueType<\/span> <span class=\"no\">:db.type\/string,<\/span>\r\n      <span class=\"no\">:cardinality<\/span> <span class=\"no\">:db.cardinality\/one<\/span><span class=\"p\">}<\/span>\r\n <span class=\"o\">#<\/span><span class=\"no\">:db<\/span><span class=\"p\">{<\/span><span class=\"no\">:ident<\/span> <span class=\"no\">:rikishi\/heya,<\/span>\r\n      <span class=\"no\">:valueType<\/span> <span class=\"no\">:db.type\/string,<\/span>\r\n      <span class=\"no\">:cardinality<\/span> <span class=\"no\">:db.cardinality\/one<\/span><span class=\"p\">})<\/span>\r\n<\/code><\/pre>\n<p>\u901a\u8fc7\u96c6\u4e2d\u5b9a\u4e49\u6a21\u5f0f\uff0c\u5373\u4f7f\u5728\u8de8\u591a\u4e2a\u56e2\u961f\u7684\u5f00\u53d1\u4e2d\uff0c\u4e5f\u53ef\u4ee5\u8f7b\u677e\u8fdb\u884c\u6570\u636e\u6a21\u578b\u7684\u5f00\u53d1\uff0c\u800c\u4e0d\u4f1a\u611f\u5230\u592a\u5927\u7684\u8d1f\u62c5\u3002\u800c\u5728\u5b9e\u73b0\u8003\u8651\u65f6\uff0c\u53ef\u4ee5\u5728\u6539\u53d8umlaut\u6a21\u5f0f\u5b9a\u4e49\u7684\u540c\u65f6\u8fdb\u884c\u63a8\u6572\uff0c\u4e00\u65e6\u786e\u5b9a\u4e86\u6570\u636e\u6a21\u578b\uff0c\u56e2\u961f\u6210\u5458\u5c31\u53ef\u4ee5\u72ec\u7acb\u8fdb\u884c\u5176\u4ed6\u5730\u65b9\u7684\u5b9e\u73b0\uff0c\u5982Lacinia Resolver\u548cDatomic Query\u7b49\u3002<\/p>\n<h4>4. Clojure CLI\uff08\u5de5\u5177.deps\uff09<\/h4>\n<p>\u76ee\u524d\uff0c\u7cfb\u7edf\u6b63\u5728\u91c7\u7528\u62c6\u5206\u4e3a\u591a\u4e2a\u5fae\u670d\u52a1\u7684\u65b9\u5f0f\u8fdb\u884c\u5f00\u53d1\uff0c\u4f46\u662f\u670d\u52a1\u4e4b\u95f4\u7684\u4f9d\u8d56\u5173\u7cfb\u5f88\u590d\u6742\uff0c\u800c\u4e14\u8de8\u591a\u4e2a\u56e2\u961f\u8fdb\u884c\u7684\u6fc0\u70c8\u5f00\u53d1\u4e0d\u592a\u9002\u5408\u8bed\u4e49\u5316\u7248\u672c\u63a7\u5236\u3002\u56e0\u6b64\uff0c\u4e3a\u4e86\u89e3\u51b3\u516c\u53f8\u5185\u90e8\u4ed3\u5e93\u4e4b\u95f4\u7684\u4f9d\u8d56\u5173\u7cfb\uff0c\u6211\u4eec\u91c7\u7528\u4e86Clojure CLI\uff08tools.deps\uff09\u7684 Git Coordinate \u529f\u80fd\u3002\u901a\u8fc7\u4f7f\u7528\u8fd9\u4e2a\u529f\u80fd\uff0c\u6211\u4eec\u53ef\u4ee5\u5c06\u5176\u4ed6\u5e93\u7684\u4f9d\u8d56\u6307\u5b9a\u4e3a Git \u7684\u63d0\u4ea4\u54c8\u5e0c\uff08SHA\uff09\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"p\">{<\/span><span class=\"no\">:deps<\/span>\r\n <span class=\"p\">{<\/span><span class=\"n\">github-yourname\/time-lib<\/span> <span class=\"p\">{<\/span><span class=\"no\">:git\/url<\/span> <span class=\"s\">\"https:\/\/github.com\/yourname\/time-lib\"<\/span>\r\n                            <span class=\"no\">:sha<\/span> <span class=\"s\">\"04d2744549214b5cba04002b6875bdf59f9d88b6\"<\/span><span class=\"p\">}}}<\/span>\r\n<\/code><\/pre>\n<p>\u6bd4\u5982\uff0c\u5f53\u4e3a\u4e86\u5bf9\u4e00\u4e2a\u670d\u52a1\u8fdb\u884c\u66f4\u6539\u800c\u4fee\u6539\u5e93\u65f6\uff0c\u6211\u4eec\u53ef\u4ee5\u5728\u4e0d\u5f71\u54cd\u4f9d\u8d56\u4e8e\u8be5\u5e93\u7684\u5176\u4ed6\u670d\u52a1\u7684\u60c5\u51b5\u4e0b\u8fdb\u884c\u5f00\u53d1\uff0c\u5e76\u4e14\u53ef\u4ee5\u8f7b\u677e\u6267\u884c\u56de\u6eda\u7b49\u64cd\u4f5c\uff0c\u4ece\u800c\u83b7\u5f97\u4e00\u4e9b\u597d\u5904\u3002\u6b64\u5916\uff0c\u7531\u4e8e\u4e0d\u518d\u9700\u8981\u5bf9\u5e93\u672c\u8eab\u8fdb\u884c\u53d1\u5e03\u548c\u7248\u672c\u7ba1\u7406\uff0c\u6211\u4eec\u4e5f\u53ef\u4ee5\u89e3\u653e\u51fa\u6765\u3002\u7136\u800c\uff0c\u8981\u4f7f\u7528 Git Coordinate\uff0c\u53c2\u8003\u4ed3\u5e93\u4e5f\u5fc5\u987b\u662f Clojure CLI \u9879\u76ee\uff0c\u56e0\u6b64\u8fd9\u53ef\u4ee5\u8bf4\u662f Clojure \u7279\u6709\u7684\u65b9\u6cd5\u3002<\/p>\n<p>\u7136\u800c\uff0c\u8fd9\u79cd\u7ed3\u6784\u4e5f\u9762\u4e34\u7740\u5404\u79cd\u9650\u5236\uff0c\u76ee\u524d\u6211\u4eec\u91c7\u53d6\u4e86\u4e00\u79cd\u540d\u4e3amonorepo\u7684\u65b9\u6cd5\uff0c\u7528\u4e00\u4e2a\u4ed3\u5e93\u6765\u7ba1\u7406\u6240\u6709\u5e93\u548c\u670d\u52a1\u3002\u6211\u4eec\u5c06\u5728\u53e6\u4e00\u7bc7\u6587\u7ae0\u4e2d\u8be6\u7ec6\u4ecb\u7ecd\u8fd9\u79cd\u65b9\u6cd5\u3002<\/p>\n<h4>5. \u65e0\u8bba\u5728\u54ea\u91cc\uff0c\u90fd\u53ef\u4ee5\u4f7f\u7528 Clojure\u3002<\/h4>\n<p>\u56e2\u961f\u4e2d\u6709\u524d\u7aef\u5de5\u7a0b\u5e08\uff0c\u4f46\u6211\u4eec\u4f7f\u7528ClojureScript\u5f00\u53d1Web UI\u3002\u57fa\u672c\u4e0a\uff0c\u6211\u4eec\u5c06\u524d\u7aef\u548c\u540e\u7aef\u5206\u5de5\u5904\u7406\uff0c\u4f46\u4e5f\u6709\u5de5\u7a0b\u5e08\u53c2\u4e0e\u4e24\u8005\uff0c\u8fd9\u662fClojure\u7684\u7279\u70b9\u3002\u524d\u9762\u63d0\u5230\u7684umlaut\u6210\u679c\u8fd8\u53ef\u4ee5\u4ece\u524d\u7aef\u4f7f\u7528\uff0c\u56e0\u6b64\u901a\u8fc7\u91c7\u7528ClojureScript\uff0c\u6211\u4eec\u80fd\u591f\u907f\u514d\u6570\u636e\u6a21\u578b\u7684\u53cc\u91cd\u7ba1\u7406\u3002<\/p>\n<p>\u6b64\u5916\uff0c\u8bb8\u591a\u5f00\u53d1\u8005\u5de5\u5177\u4e5f\u662f\u7528Clojure\u7f16\u5199\u7684\u3002\u547d\u4ee4\u884c\u5de5\u5177\u901a\u5e38\u4e0d\u4f1a\u76f4\u63a5\u4f7f\u7528Clojure\uff08JVM\uff09\uff0c\u56e0\u4e3a\u5b83\u542f\u52a8\u901f\u5ea6\u8f83\u6162\uff0c\u4f46\u662f\u901a\u8fc7GraalVM\u7684\u672c\u673a\u6620\u50cf\u6784\u5efa\uff0c\u73b0\u5728\u53ef\u4ee5\u4f7f\u7528Clojure\u7f16\u5199\u7ecf\u5e38\u5728Git\u63d0\u4ea4\u94a9\u5b50\u7b49\u4e2d\u9891\u7e41\u8c03\u7528\u7684\u547d\u4ee4\u3002\u540c\u65f6\uff0c\u6211\u4eec\u8fd8\u4f7f\u7528\u4e86\u524d\u9762\u63d0\u5230\u7684closh\u548cjoker\u7b49\u5de5\u5177\u3002<\/p>\n<p>\u6709\u5f88\u591a\u4ea7\u54c1\u662f\u7528Clojure\u7f16\u5199\u7684\uff0c\u5373\u4f7f\u662f\u6211\u6ca1\u6709\u53c2\u4e0e\u5f00\u53d1\u7684\u9879\u76ee\uff0c\u6211\u4e5f\u53ef\u4ee5\u5728\u7d27\u8981\u65f6\u523b\u8fdb\u884c\u67e5\u770b\uff0c\u8fd9\u7ed9\u4eba\u4e00\u79cd\u5b89\u5fc3\u611f\u3002<\/p>\n<p>\u8fc7\u5ea6\u91c7\u7528Clojure\u4f1a\u7ed9\u4ea7\u54c1\u7ecf\u7406\u548cQA\u7b49\u4e0d\u76f4\u63a5\u7f16\u5199Clojure\u7684\u4eba\u9020\u6210\u56f0\u6270\uff0c\u8fd9\u662f\u4e8b\u5b9e\u3002\u4e3e\u4f8b\u6765\u8bf4\uff0c\u5b58\u5728\u7740\u96be\u4ee5\u53c2\u8003Datomic\u5185\u5bb9\u7684\u95ee\u9898\u3002\u867d\u7136Datomic\u5e76\u4e0d\u4ec5\u9650\u4e8eClojure\u8fde\u63a5\uff0c\u4f46\u9644\u5e26\u7684Datomic Console\u5e76\u4e0d\u6613\u4e8e\u4f7f\u7528\uff0c\u5e76\u975eClojure\u5de5\u7a0b\u5e08\u4ee5\u5916\u7684\u4eba\u53ef\u4ee5\u8f7b\u677e\u53c2\u8003\u7684\u5de5\u5177\u3002<\/p>\n<p>\u4f46\u662f\uff0c\u6700\u8fd1Datomic\u53d1\u5e03\u4e86\u4e00\u4e2a\u540d\u4e3aDatomic Analytics\u7684\u529f\u80fd\u3002\u4eca\u5e74\u7684Clojure Advent Calendar\u4e0a\uff0chden\u5148\u751f\u8be6\u7ec6\u603b\u7ed3\u4e86\u8fd9\u4e2a\u529f\u80fd\uff0c\u901a\u8fc7\u652f\u6301\u4e0e\u67e5\u8be2\u5f15\u64cePresto\u7684\u8fde\u63a5\uff0cDatomic\u73b0\u5728\u53ef\u4ee5\u901a\u8fc7SQL\u6765\u5f15\u7528\u5176\u6570\u636e\u3002<\/p>\n<pre class=\"post-pre\"><code>presto:my_db&gt; <span class=\"k\">select<\/span> <span class=\"k\">*<\/span> from rikishi<span class=\"p\">;<\/span>\r\n <span class=\"nb\">id<\/span> | shikona | banduke | heya |\r\n<span class=\"nt\">----<\/span>+---------+---------+-------\r\n 0  | \u9db4\u7adc     | \u6a2a\u7db1    | \u9678\u5965\r\n 1  | \u767d\u9cf3     | \u6a2a\u7db1    | \u5bae\u57ce\u91ce\r\n 2  | \u8c6a\u6804\u9053   | \u5927\u95a2    | \u5883\u5ddd\r\n<\/code><\/pre>\n<p>\u901a\u8fc7\u4e0e\u652f\u6301Presto\u7684Metabase\u8fde\u63a5\uff0c\u7528\u6237\u53ef\u4ee5\u5728UI\u754c\u9762\u4e0a\u4e0e\u6570\u636e\u8fdb\u884c\u4ea4\u4e92\uff0c\u5e76\u4e14\u53ef\u4ee5\u7528\u4e8e\u62a5\u544a\u76ee\u7684\u3002\u901a\u8fc7\u8fd9\u4e2a\u529f\u80fd\uff0c\u6211\u4eec\u80fd\u591f\u51cf\u8f7b\u5bf9Datomic\u53c2\u8003\u7684\u8d1f\u62c5\u3002\u4f46\u5728\u8fd9\u7c7b\u95ee\u9898\u4e2d\uff0c\u5bf9\u4e8eClojure\u7684\u7406\u89e3\u7a0b\u5ea6\u76f8\u5bf9\u8f83\u9ad8\uff0c\u5373\u4f7f\u662f\u975e\u5de5\u7a0b\u5e08\u7684\u4eba\u4e5f\u4f1a\u8ba4\u4e3a&#8221;\u6211\u53ef\u4ee5\u5199Clojure\u5417?&#8221;\u3002<\/p>\n<p>\u987a\u4fbf\u63d0\u4e00\u4e0b\uff0c\u5728Datomic Analytics\u4e2d\u9700\u8981\u51c6\u5907\u4e00\u4e2a\u540d\u4e3aMetaschema\u7684\u6620\u5c04\u5b9a\u4e49\u6587\u4ef6\uff0c\u4ee5\u5c06\u4ee5\u56fe\u5f62\u5f62\u5f0f\u8868\u793a\u7684Datomic\u6a21\u5f0f\u7ed3\u6784\u8f6c\u6362\u4e3a\u53ef\u4ee5\u901a\u8fc7SQL\u8fdb\u884c\u67e5\u8be2\u7684\u6a21\u5f0f\u7ed3\u6784\u3002\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4e0d\u9700\u8981\u4eba\u5de5\u76f4\u63a5\u601d\u8003\u548c\u7f16\u5199\u8be5\u6587\u4ef6\u4e2d\u7684\u5185\u5bb9\uff0c\u56e0\u4e3a\u53ef\u4ee5\u901a\u8fc7\u673a\u68b0\u65b9\u5f0f\u5b9e\u73b0\uff0c\u56e2\u961f\u5229\u7528umlaut\u6765\u4e0eDatomic\u6a21\u5f0f\u8fdb\u884c\u901a\u7528\u5316\u5e76\u8fdb\u884c\u81ea\u52a8\u751f\u6210\u3002<\/p>\n<h3>Clojure \u5728\u56e2\u961f\u5f00\u53d1\u4e2d\u6709\u4ec0\u4e48\u7f3a\u70b9\uff1f<\/h3>\n<h4>1. \u6beb\u65e0\u578b\u683c<\/h4>\n<p>\u76ee\u524d\u7684\u516c\u53f8\u4ecd\u5904\u5728\u6fc0\u70c8\u7684\u670d\u52a1\u5f00\u53d1\u8fc7\u7a0b\u4e2d\uff0c\u4e0d\u50cfRich Hickey\u7684\u6f14\u8bb2\u4e2d\u6240\u8bf4\uff0c\u5f3a\u7c7b\u578b\u5316\u4f7f\u5f97\u6570\u636e\u7ed3\u6784\u7d27\u5bc6\u5d4c\u5165\u5728\u4ee3\u7801\u57fa\u7840\u4e2d\uff0c\u800c\u4ee3\u7801\u57fa\u7840\u7684\u6539\u52a8\u53d8\u5f97\u56f0\u96be\u3002<br \/>\n\u300aEffective Programs &#8211; 10 Years of Clojure &#8211; Rich Hickey\u300b<br \/>\n\u5bf9\u6b64\u5f53\u7136\u5b58\u5728\u6b63\u53cd\u4e24\u79cd\u89c2\u70b9\uff0c\u4f46\u4f5c\u4e3a\u5df2\u7ecf\u91c7\u7528Clojure\u7684\u7acb\u573a\u6765\u8bf4\uff0c\u6211\u5e76\u4e0d\u611f\u89c9\u5230\u96be\u4ee5\u627f\u53d7\u7684\u4e0d\u4fbf\u4e4b\u5904\u3002<\/p>\n<p>Clojure \u63d0\u4f9b\u4e86 clojure.spec \u4f5c\u4e3a\u5f00\u653e\u6570\u636e\u7684\u68c0\u67e5\u5de5\u5177\uff0c\u81f3\u5c11\u5728\u670d\u52a1\u8fb9\u754c\u4e0a\u8fdb\u884c\u4e86 spec \u68c0\u67e5\uff0c\u56e0\u6b64\u5728\u6570\u636e\u6a21\u578b\u66f4\u6539\u65f6\u5e76\u4e0d\u611f\u5230\u592a\u5927\u7684\u4e0d\u5b89\u3002\u4f46\u76ee\u524d\u7684 spec \u65e0\u6cd5\u68c0\u6d4b\u6570\u636e\u4e2d\u7684\u591a\u4f59\u952e\uff0c\u8fd9\u8ba9\u4eba\u611f\u5230\u6709\u4e9b\u4e0d\u4fbf\uff08\u4f8b\u5982\u5728\u5f15\u5165 Datomic \u65f6\uff09\u3002\u6b63\u5982 athos \u5148\u751f\u5728\u4ed6\u7684\u6587\u7ae0\u4e2d\u6240\u63d0\u5230\u7684\uff0c\u6211\u4eec\u671f\u5f85 spec2 \u80fd\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\u3002<\/p>\n<h4>2. \u4ee3\u7801\u5ba1\u67e5 m\u01ce ch\u00e1)<\/h4>\n<p>\u8fd9\u4e2a\u5f0f\u5b50\u5e76\u4e0d\u96be\u8bfb\u3002<\/p>\n<p>\u7136\u800c\uff0c\u5728\u8fdb\u884c\u4ee3\u7801\u5ba1\u67e5\u65f6\uff0c\u5982\u679c\u5b58\u5728S\u8868\u8fbe\u5f0f\u7684\u7ed3\u6784\u6027\u53d8\u5316\uff0c\u9605\u8bfbdiff\u4f1a\u53d8\u5f97\u56f0\u96be\u3002\u5982\u679c\u4ee3\u7801\u9700\u8981\u6839\u636e\u4f20\u5165\u7684\u503c\u8fdb\u884c\u6761\u4ef6\u5206\u652f\uff0c\u4f7f\u7528defmethod\u7f16\u5199\u53ef\u4ee5\u63d0\u9ad8\u53ef\u6269\u5c55\u6027\uff0c\u5e76\u4f7f\u4ee3\u7801\u66f4\u6613\u4e8e\u7406\u89e3\u53d8\u66f4\u3002<\/p>\n<p>\u53e6\u5916\uff0c\u5728\u5c06\u672a\u7ecfspec\u68c0\u67e5\u7684\u5730\u56fe\u4f20\u9012\u7ed9\u51fd\u6570\u7684\u5730\u65b9\uff0c\u5982\u679c\u5b58\u5728\u5173\u952e\u5b57\u7684typo\uff0c\u901a\u5e38\u5f88\u96be\u5728\u4ee3\u7801\u68c0\u67e5\u4e2d\u6355\u83b7\uff0c\u5e76\u4e14\u53ef\u80fd\u9700\u8981\u91cd\u65b0\u8fdb\u884c\u540e\u7eed\u7684\u64cd\u4f5c\u9a8c\u8bc1\u3002\u867d\u7136\u4f7f\u7528IDE\u7684\u81ea\u52a8\u8865\u5168\u529f\u80fd\u53ef\u4ee5\u5728\u4e00\u5b9a\u7a0b\u5ea6\u4e0a\u907f\u514d\u8fd9\u79cd\u60c5\u51b5\uff0c\u4f46\u8fd9\u79cd\u60c5\u51b5\u8fd8\u662f\u76f8\u5f53\u5e38\u89c1\u3002<\/p>\n<h4>3. Clojure\u5de5\u7a0b\u5e08\u9700\u6c42\u91cf\u4e0d\u591f\u3002<\/h4>\n<p>\u5728\u8077\u8f49\u8077\u6d3b\u52d5\u4e2d\u7d93\u5e38\u807d\u5230\u7684\u4e00\u4ef6\u4e8b\u5c31\u662f\uff0c\u5c0d\u65bc\u4f01\u696d\u4f86\u8aaa\u5f88\u96e3\u627e\u5230 Clojure \u5de5\u7a0b\u5e2b\u3002\u9019\u5728\u67d0\u7a2e\u7a0b\u5ea6\u4e0a\u53ef\u80fd\u662f\u63a1\u7528 Clojure \u7684\u6700\u5927\u969c\u7919\u3002\u7136\u800c\uff0c\u540c\u6642\u5728\u8f49\u8077\u6d3b\u52d5\u4e2d\u807d\u5230\u7684\u6545\u4e8b\u4e2d\uff0c\u5982\u679c\u4e00\u500b\u4eba\u559c\u6b61\u4e26\u9858\u610f\u5b78\u7fd2 Clojure\uff0c\u90a3\u9ebc\u4f5c\u70ba\u4e00\u540d\u5de5\u7a0b\u5e2b\uff0c\u4ed6\u5011\u53ef\u4ee5\u671f\u671b\u9054\u5230\u4e00\u5b9a\u7684\u9ad8\u6c34\u5e73\uff0c\u9019\u6a23\u9078\u64c7\u6210\u672c\u5c31\u6703\u964d\u4f4e\u3002<\/p>\n<p>\u5728\u5404\u79cd\u4e0d\u540c\u7684Clojurian\u5de5\u4f5c\u4e2d\uff0c\u53ef\u4ee5\u5b66\u4e60Clojure\u7684\u8d44\u6599\u4e5f\u5927\u5927\u589e\u52a0\uff0c\u4ece\u96f6\u57f9\u517bClojure\u5de5\u7a0b\u5e08\u7684\u76ee\u6807\u4e5f\u53d8\u5f97\u73b0\u5b9e\u3002\u53c2\u52a0\u4e0a\u4e2a\u6708\u7684clojure.tokyo\u7684Clojure Hands-on\u6d3b\u52a8\u4e2d\uff0c\u5f88\u591a\u4eba\u8868\u793a\u60f3\u8981\u4ece\u96f6\u5f00\u59cb\u5b66\u4e60Clojure\uff0c\u611f\u53d7\u5230\u4e86\u5e95\u5b50\u7684\u5e7f\u6cdb\u3002\u5bf9\u4e8e\u52aa\u529b\u63a8\u5e7fClojure\u7684\u4eba\u4eec\uff0c\u5982dosync radio\u548c\u6e0b\u8c37 Lisp\uff0c\u6211\u5341\u5206\u656c\u4f69\u3002<\/p>\n<h2>\u6700\u540e<\/h2>\n<p>\u56de\u9996\u56de\u60f3\uff0c\u6211\u89c9\u5f97\u81ea\u5df1\u8fc7\u7740\u975e\u5e38\u5e78\u798f\u7684 Clojurian \u4eba\u751f\u3002<\/p>\n<p>\u56de\u987e\u4e86\u4e0a\u4e00\u7bc7\u6587\u7ae0\u4ee5\u540e\u7684Clojure\u6d3b\u52a8\uff0c\u6211\u8868\u8fbe\u4e86\u6211\u5bf9Clojure\u7684\u610f\u89c1\u3002\u6211\u8ba4\u4e3aClojure\u662f\u9002\u5408\u56e2\u961f\u5f00\u53d1\u7684\u3002\u5c3d\u7ba1Clojure\u7684\u91c7\u7528\u53ef\u80fd\u6bd4\u8f83\u56f0\u96be\uff0c\u4f46\u4e00\u65e6\u5efa\u7acb\u8d77\u4f53\u5236\u5e76\u5f00\u59cb\u8fd0\u884c\uff0c\u5c31\u80fd\u5f88\u5bb9\u6613\u5730\u5229\u7528Clojure\u7684\u80fd\u529b\u63a8\u8fdb\u56e2\u961f\u5f00\u53d1\u800c\u4e0d\u4f1a\u9047\u5230\u592a\u5927\u7684\u95ee\u9898\u3002<\/p>\n<p>\u8ba9\u6211\u4eec\u4e00\u8d77\u51b3\u5b9a\u5427\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8fd9\u7bc7\u6587\u7ae0\u662f2019\u5e74Clojure Advent Calendar\u7b2c18\u5929\u7684\u6587\u7ae0\u3002\u6211\u53d1\u73b0\u4e24\u5e74\u524d\u6211\u5199\u7684\u90a3\u7bc7\u5173\u4e8e\u5982 [&hellip;]<\/p>\n","protected":false},"author":12,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-47311","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u79c0\u514b\u5229\u4e9eClojure\u5718\u968a\u958b\u767c - Blog - Silicon Cloud<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/zh\/blog\/\u79c0\u514b\u5229\u4e9eclojure\u5718\u968a\u958b\u767c\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u79c0\u514b\u5229\u4e9eClojure\u5718\u968a\u958b\u767c\" \/>\n<meta property=\"og:description\" content=\"\u8fd9\u7bc7\u6587\u7ae0\u662f2019\u5e74Clojure Advent Calendar\u7b2c18\u5929\u7684\u6587\u7ae0\u3002\u6211\u53d1\u73b0\u4e24\u5e74\u524d\u6211\u5199\u7684\u90a3\u7bc7\u5173\u4e8e\u5982 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u79c0\u514b\u5229\u4e9eclojure\u5718\u968a\u958b\u767c\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2024-01-28T01:11:08+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-30T06:54:08+00:00\" \/>\n<meta name=\"author\" content=\"\u9038, \u79d1\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u9038, \u79d1\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e7%a7%80%e5%85%8b%e5%88%a9%e4%ba%9eclojure%e5%9c%98%e9%9a%8a%e9%96%8b%e7%99%bc\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e7%a7%80%e5%85%8b%e5%88%a9%e4%ba%9eclojure%e5%9c%98%e9%9a%8a%e9%96%8b%e7%99%bc\/\",\"name\":\"\u79c0\u514b\u5229\u4e9eClojure\u5718\u968a\u958b\u767c - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2024-01-28T01:11:08+00:00\",\"dateModified\":\"2024-04-30T06:54:08+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/85c1dae56e6ea1e695c73d33c684d487\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e7%a7%80%e5%85%8b%e5%88%a9%e4%ba%9eclojure%e5%9c%98%e9%9a%8a%e9%96%8b%e7%99%bc\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e7%a7%80%e5%85%8b%e5%88%a9%e4%ba%9eclojure%e5%9c%98%e9%9a%8a%e9%96%8b%e7%99%bc\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e7%a7%80%e5%85%8b%e5%88%a9%e4%ba%9eclojure%e5%9c%98%e9%9a%8a%e9%96%8b%e7%99%bc\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u79c0\u514b\u5229\u4e9eClojure\u5718\u968a\u958b\u767c\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/85c1dae56e6ea1e695c73d33c684d487\",\"name\":\"\u9038, \u79d1\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/c94f6d9cbbfbca863fab309840bd690c153c95f8490c290ad2ed54dd693dad16?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/c94f6d9cbbfbca863fab309840bd690c153c95f8490c290ad2ed54dd693dad16?s=96&d=mm&r=g\",\"caption\":\"\u9038, \u79d1\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/keyi\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e7%a7%80%e5%85%8b%e5%88%a9%e4%ba%9eclojure%e5%9c%98%e9%9a%8a%e9%96%8b%e7%99%bc\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u79c0\u514b\u5229\u4e9eClojure\u5718\u968a\u958b\u767c - Blog - Silicon Cloud","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/zh\/blog\/\u79c0\u514b\u5229\u4e9eclojure\u5718\u968a\u958b\u767c\/","og_locale":"zh_CN","og_type":"article","og_title":"\u79c0\u514b\u5229\u4e9eClojure\u5718\u968a\u958b\u767c","og_description":"\u8fd9\u7bc7\u6587\u7ae0\u662f2019\u5e74Clojure Advent Calendar\u7b2c18\u5929\u7684\u6587\u7ae0\u3002\u6211\u53d1\u73b0\u4e24\u5e74\u524d\u6211\u5199\u7684\u90a3\u7bc7\u5173\u4e8e\u5982 [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u79c0\u514b\u5229\u4e9eclojure\u5718\u968a\u958b\u767c\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2024-01-28T01:11:08+00:00","article_modified_time":"2024-04-30T06:54:08+00:00","author":"\u9038, \u79d1","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u9038, \u79d1","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e7%a7%80%e5%85%8b%e5%88%a9%e4%ba%9eclojure%e5%9c%98%e9%9a%8a%e9%96%8b%e7%99%bc\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e7%a7%80%e5%85%8b%e5%88%a9%e4%ba%9eclojure%e5%9c%98%e9%9a%8a%e9%96%8b%e7%99%bc\/","name":"\u79c0\u514b\u5229\u4e9eClojure\u5718\u968a\u958b\u767c - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2024-01-28T01:11:08+00:00","dateModified":"2024-04-30T06:54:08+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/85c1dae56e6ea1e695c73d33c684d487"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e7%a7%80%e5%85%8b%e5%88%a9%e4%ba%9eclojure%e5%9c%98%e9%9a%8a%e9%96%8b%e7%99%bc\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e7%a7%80%e5%85%8b%e5%88%a9%e4%ba%9eclojure%e5%9c%98%e9%9a%8a%e9%96%8b%e7%99%bc\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e7%a7%80%e5%85%8b%e5%88%a9%e4%ba%9eclojure%e5%9c%98%e9%9a%8a%e9%96%8b%e7%99%bc\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u79c0\u514b\u5229\u4e9eClojure\u5718\u968a\u958b\u767c"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/85c1dae56e6ea1e695c73d33c684d487","name":"\u9038, \u79d1","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/c94f6d9cbbfbca863fab309840bd690c153c95f8490c290ad2ed54dd693dad16?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c94f6d9cbbfbca863fab309840bd690c153c95f8490c290ad2ed54dd693dad16?s=96&d=mm&r=g","caption":"\u9038, \u79d1"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/keyi\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e7%a7%80%e5%85%8b%e5%88%a9%e4%ba%9eclojure%e5%9c%98%e9%9a%8a%e9%96%8b%e7%99%bc\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/47311","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=47311"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/47311\/revisions"}],"predecessor-version":[{"id":92577,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/47311\/revisions\/92577"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=47311"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=47311"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=47311"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}