7 ms·
Getting started with Clojure
- edem 13y agoThe fonts on this page are very hard to read. You may change them to something les blurry?
- ColinWright 13y agoI probably would, if it were mine. However, I'm not the author. It's also not blurry at all on my setup, so if you do try to find the actual author and suggest a change, you might want to include details of your setup so he would have a chance to test any changes.
- iooi 13y agoThey're downright unreadable on my Chrome http://i.imgur.com/p60vLFv.png http://i.imgur.com/p60vLFv.png
- ColinWright 13y agoCrystal clear on my Firefox. Lesson for everyone. Beware! Cool, funky, gorgeous fonts on your machine may be downright unreadable for others. Stupid question - as a temporary measure, have you tried increasing the font size? Something like Ctrl-+ should do that.
- deleted 13y ago[deleted]
- reeses 13y agoWhat are you using beyond Chrome? The Open Sans web fonts render much better on my Mac with Chrome Version 30.0.1588.0 dev. Not that I'm a big fan of the font (too close to Arial, especially the 'R' for my antiquated tastes), but I would say it's a well-rendered font of a typeface I do not like. :-)
- jacquesm 13y agoIt may be the page has changed since then but the screenshot below isn't even close to the way it shows on firefox (black text, blue accents, white background).
- coolsunglasses 13y agoIntelliJ + LaClojure isn't great. I'd recommend Emacs + nRepl or Eclipse + CounterClockWise instead. I realize IntelliJ is better typically but in this case it's not.
- hhariri 13y agoWhat are the issues you've found with IntelliJ? Have you reported them? We'd love to know how we can improve it. Please feel free to ping me (hadi at jetbrains)
- hansg 13y ago> What are the issues you've found with IntelliJ? > Have you reported them? Most issues are in your tracker since ages. > We'd love to know how we can improve it. merge the lein plug-in into laClojure, or keep it synced all the time. And implement those requests there in your tracker.
- reeses 13y agoThe gradle/groovy integration is of only slightly better harmony. It's very obviously a plugin and the lack of analysis makes for an awkward dynamic programming experience. For example, I dislike the yellow warning lines that abound when it can't infer a type that has previously been assigned on all call paths.
- rickjames28 13y agoDoes LaClojure have a blog or some kind of "news" page where we can find out what the latest developments have been? All I've found is the github page.
- hhariri 13y agoCurrently, apart from the GitHub pages, there isn't anything.
- coolsunglasses 13y ago
- dschiptsov 13y agoIt is advisable to begin with Scheme (SICP) or Racket (HtDP2) to internalize the underlying ideas behind Lisps, because in Clojure everything is messed up due to kitchen sink syndrome. After proper Scheme training (CS61A) Clojure looks awkward and messy but very useful, as it supposed to be due to its "productivity beats clarity/conciseness" philosophy of scripting languages, such as Ruby.
- SCdF 13y agoFor someone who doesn't have enough hours in the day to receive "proper Scheme training" and already (sort of) knows Clojure could you go into detail about what you mean when you talk about it being "messed up due to kitchen sink syndrome."?
- coolsunglasses 13y agoHe didn't watch any of Rich Hickey's talks and thinks things like protocols multimethods are somehow kitchen-sink. OP clearly hasn't hacked on any Common Lisp written by a CLOS-maniac. Schemers break out in hives if they couldn't implement their own language on a raspberry pi in a single drunken bender.
- dschiptsov 13y agoGladly. Some languages does not emerge all of sudden as a product of one sharp mind (there is no doubts about that) but are time-selected mix of (ideally very few) basic concepts and syntactic constructs which form a well-balanced set of features. The examples of well-chosen set of basics is Scheme R4RS, or pg's Arc. The examples of so-called natural selection are CL (an attempt to put together the best ideas and syntactic sugar from various implementations) and, surprise! Haskell, which is a product of a merge of efforts of ML/Lazy languages world. On the other hand, there are languages created by one individual, according their own preferences, such as Perl, Ruby and Clojure. Ruby, for example, it is a mix of features from Perl and Smalltalk, its author liked, but, of course, the resulting language is neither a dialect of Perl or Smalltalk. It is a language of its own. Similarly, Clojure is a mix of features from various languages, notable Common Lisp, Smalltalk, ML, plus various Python-like comprehensions for vectors or hashmaps. There are many other clever tricks, like simplified pattern matching, at the cost of sacrificing uniformity and announcing vectors as parameter lists for binding constructs, apparently from ML, and multi-method function declarations, also from ML. The result is a language of its own, and cannot be called a Lisp, the same way Ruby cannot be called Smalltalk. The design decisions, while mostly clever, broke the uniformity and clarity of classic Lisps. So, in my opinion, Clojure is closer to Ruby in its ideology, than to Lisp.
- StevePerkins 13y agoI wish the Clojure guys would come up with some clear and direct messaging around its license. When I started exploring Clojure one weekend a few months back, I found that it's the only language I've ever seen that uses the Eclipse Public License. In turn, the EPL is the only license I've ever seen where the FAQ is even more ambiguous and confusing than the license text itself! I did some sniffing around to see what the practical effects (if any) are for applications written in Clojure, and on their own mailing list the topic is a bit of a mess: https://groups.google.com/forum/#!topic/clojure/bpnKr88rvt8 https://groups.google.com/forum/#!topic/clojure/bpnKr88rvt8 https://groups.google.com/forum/#!topic/clojure/mGf_SuHsSGc https://groups.google.com/forum/#!topic/clojure/mGf_SuHsSGc Everyone seems to agree that forking or modifying Clojure itself would trigger all sorts of license requirements (e.g. GPL-incompatibility, you might need to use the EPL, etc). However, nobody on their mailing list seems to agree on what the licensing means for normal applications that happen to be written in Clojure and use its library at runtime. Is that a "derivative work", or not? Does the fact that you write applications in Clojure have any bearing on the licenses that you may choose? I know that it's somewhat possible to mix the EPL with almost anything... because I've worked with some Aptana IDE's that are based on Eclipse, yet use GPL v3 with several paragraphs of caveats and exceptions. (http://www.aptana.com/legal http://www.aptana.com/legal , http://www.aptana.com/legal/aplgplex http://www.aptana.com/legal/aplgplex) Not sure about GPL v2. I just don't want to have to think about this stuff AT ALL as an application developer who isn't making changes to the programming language or core runtime library. The murkiness on their own mailing list has definitely been a deterrent from my exploring Clojure more seriously.
- hga 13y agoHmmm, when looked into this a few days ago with an eye towards a Clojure port (in part a fork) what I remember finding is that the EPL allows separate "modules" to have a different license, although of course that couldn't be an incompatible one like the GPL based on the latter's linking requirements. The Aptana legal link looks pretty clear at first glance, "the EPL is not particularly compatible with the GPL". I think we would have heard by now if there were any viral problems with normal applications built on top of it, Clojure has been a very big thing in the Lisp world for years.
- 13y ago
- gw 13y agoFor what it's worth, I am actively improving Nightcode, an IDE written in Clojure that bundles Leiningen. Last night I released 0.0.6. We have a long way to go before it's stable, but more feedback from users is the best way to get there. http://nightcode.info http://nightcode.info
- tonetheman 13y agoI have only used nightcode a little but it is a wonderful idea. And works for clojure stuff.
- deleted 13y ago[deleted]
- deleted 13y ago[deleted]
- dominotw 13y agoWhen ruby hit the mainstream we would see these kind of 'getting started' atricles once in a while but very very rarely. Would it be safe to assume that since functional thinking is such a departure from traditional OO that it warrants more 'getting started' ?
- marshray 13y agoSeems to me that installing a basic toolchain is not the hard part of functional programming for most folks.
- Mikeb85 13y agoEasiest way to get started: 1) Install Leiningen (download script, place in usr/local/bin), then "lein new project". 2) Download Clooj (standalone .jar), run with "java -jar clooj" https://github.com/arthuredelstein/clooj https://github.com/arthuredelstein/clooj 3) Open project directory in Clooj. It will automatically set up the REPL, and you can run expressions just like in EMACS/Light Table, it has code completion, source browsing, etc... Super easy to set up and run, much easier than any of the alternatives. This Clojure environment is by far the easiest programming environment I have ever set up. Far easier than even Python or Ruby on Linux, definitely easier than anything EMACS-related. Leiningen is super easy to use from the terminal, and Clooj is super easy to set up and use.
- andrewflnr 13y agoEven having to build clooj from source (because the mediafire link didn't work) was super easy. I can't get the REPL to load the symbols in my project, but that's probably my fault.
- Mikeb85 13y agoStrange, download seems to work now. Yeah, the REPL isn't perfect (sometimes it needs to be restarted if you mess with it too much), but it's a heck of a lot easier to set up than EMACS with nRepl, or even Light Table (which itself is a great editor). Another good one is Catnip, which is an add-on to Lein which launches an editor/REPL in your browser... It never ceases to amaze me the kinds of things that people have already done with Clojure - games on Google Play store for Android, awesome IDEs, Pedestal is looking like a great web framework, Datomic, Clojurescript and now Clojure that compiles to C. Not to mention all the private enterprisey things being done, I know of at least a few banks/hedge funds which use Clojure internally, a robotics company, and likely many others...