TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: clojure and JVM

4 点作者 dkd超过 15 年前
Is there quick way to start clojure + JVM? I would like to start with simple GUI and then move to serial port manipulation. Then to connecting database. My background is electronics and I have never use java before. Any help is appreciated.

3 条评论

gtani超过 15 年前
Holloway book is excellent, and only $22 from a monstrously large online seller!<p><a href="http://www.amazon.com/Programming-Clojure-Pragmatic-Programmers-Halloway/dp/1934356336/" rel="nofollow">http://www.amazon.com/Programming-Clojure-Pragmatic-Programm...</a>
radu_floricica超过 15 年前
For what you want a java tutorial is the simplest thing. Then all you have to do is translate the syntax, eg System.currentTimeMillis() becomes (System/currentTimeMillis). And of course the briefest tutorial of lisp/clojure, just enough to learn to define a function.<p>Why? First because both GUI and serial manipulations are java things, not clojure. You'd have to learn the java parts anyways.<p>Then why stick to clojure? Actually, there is a great benefit to this: the REPL. For what you want, it will be much easier to just type things in the console and see if they work. I'd go as far as to say you should learn clojure syntax first, and then go through the java tutorials tying the examples in clojure. For both GUI and serial comm it'll be easier to learn this way.<p>edit: Holloway's is an excellent book, but I think in this case it's a bit of an overkill. It's worth buying anyways, just to have it for reference.
ajuc超过 15 年前
Try eclipse + plugin to write in clojure - it gives you interactive console to explore clojure.<p>Download eclipse, then install: <a href="http://code.google.com/p/counterclockwise/wiki/Documentation" rel="nofollow">http://code.google.com/p/counterclockwise/wiki/Documentation</a>
评论 #836752 未加载