Live data from Hacker News

Getting Started With Clojure

jrheard.tumblr.com

81–90 of 113 posts

Re: Getting Started With Clojure

#81
I wish someone would do a Learn Clojure the Hard Way. The comments in this thread is a great documentation of the unfounded fears of the language.

I also want to point out to those who are using Windows: Yeah, you could, but this is not a good idea. Leiningen 2 is not available for Windows, but you can still get quite a bit done. At some point, you just have to bite the bullet and install a VM with Linux to really dive into it.

Re: Getting Started With Clojure

#82

I wish someone would do a Learn Clojure the Hard Way. The comments in this thread is a great documentation of the unfounded fears of the language. I also want to point out to those who are using Windows: Yeah, you could, but this is not a good idea. Leiningen 2 is not available for Windows, but you can still get quite a bit done. At some point, you just have to bite the bullet and install a VM with Linux to really di…

Leiningen 2 is absolutely available on windows. And clojure on windows is the same as clojure on any other platform. That's the beauty of running on the JVM.

Light Table has a windows client; Eclipse with the counterclockwise plugin (a leiningen/clojure plugin) runs great on windows; running from the command prompt works great on windows.

I agree though, that a "Learn Clojure The Hard Way" a la Shaw would be nice.

Re: Getting Started With Clojure

#83
post #75

Earlier quoted context omitted.

It certainly could be better, but none of the maintainers know Windows, and no Windows users have contributed improvements.

which makes me wonder if there is a simple java package to do that - probably not much to write a simple curl / wget for java so that on any machine with a JVM you can just lein your way to clojure...

I wonder if java.net.HttpURLConnection would be enough?

Re: Getting Started With Clojure

#84

> The reason that you won’t find yourself running `clj` often is that the REPL built into bare Clojure is pretty much garbage.... This is what rlwrap is for. Call `rlwrap clj` instead of `clj`, and you get all that and more (C-r, for reverse incremental search, etc). Works with every other REPL that doesn't bother to re-implement read-line.

Install rlwrap, but then just always stick to `lein repl`. It's pretty rare to ever need to run Clojure without lein.

Re: Getting Started With Clojure

#85

I wish someone would do a Learn Clojure the Hard Way. The comments in this thread is a great documentation of the unfounded fears of the language. I also want to point out to those who are using Windows: Yeah, you could, but this is not a good idea. Leiningen 2 is not available for Windows, but you can still get quite a bit done. At some point, you just have to bite the bullet and install a VM with Linux to really di…

Leiningen 2 is absolutely available on windows. And clojure on windows is the same as clojure on any other platform. That's the beauty of running on the JVM. Light Table has a windows client; Eclipse with the counterclockwise plugin (a leiningen/clojure plugin) runs great on windows; running from the command prompt works great on windows. I agree though, that a "Learn Clojure The Hard Way" a la Shaw would be nice.

Really? The only thing I get when I attempt to install Lein2 on Windows is "This is not available on Windows." Running Windows 7 Home.

I'm not a huge fan of using a bunch of IDEs and just use Emacs. After a year of fighting with Windows, I got fed up with it and installed Linux with a VM and now everything works like a dream.

EDIT TO ADD: I would love to do a project like Learn Clojure the Hard Way, but I'm simply not confident in my abilities to do it correctly. I've written some pretty significant programs in Clojure (see my profile), but I wouldn't be able to solve but a few Project Eulers with it. I'm simply too new at programming in general.

Re: Getting Started With Clojure

#86

Earlier quoted context omitted.

Leiningen 2 is absolutely available on windows. And clojure on windows is the same as clojure on any other platform. That's the beauty of running on the JVM. Light Table has a windows client; Eclipse with the counterclockwise plugin (a leiningen/clojure plugin) runs great on windows; running from the command prompt works great on windows. I agree though, that a "Learn Clojure The Hard Way" a la Shaw would be nice.

Really? The only thing I get when I attempt to install Lein2 on Windows is "This is not available on Windows." Running Windows 7 Home. I'm not a huge fan of using a bunch of IDEs and just use Emacs. After a year of fighting with Windows, I got fed up with it and installed Linux with a VM and now everything works like a dream. EDIT TO ADD: I would love to do a project like Learn Clojure the Hard Way, but I'm simply no…

I'm a Mac person myself, but use windows for work and have leiningen and clojure running fine.

I just used the batch file from the leiningen github to get up and running on windows.

Someone else brought up the point that lein needs wget or curl, and that isn't something that is installed by default on windows. I happened to already have them, so I never thought much about it.

GNU has a version of wget and maybe curl too for win32. And there is always cygwin if you like.

https://github.com/technomancy/leiningen http://gnuwin32.sourceforge.net/packages/wget.htm

Re: Getting Started With Clojure

#87

Earlier quoted context omitted.

Leiningen 2 is absolutely available on windows. And clojure on windows is the same as clojure on any other platform. That's the beauty of running on the JVM. Light Table has a windows client; Eclipse with the counterclockwise plugin (a leiningen/clojure plugin) runs great on windows; running from the command prompt works great on windows. I agree though, that a "Learn Clojure The Hard Way" a la Shaw would be nice.

Really? The only thing I get when I attempt to install Lein2 on Windows is "This is not available on Windows." Running Windows 7 Home. I'm not a huge fan of using a bunch of IDEs and just use Emacs. After a year of fighting with Windows, I got fed up with it and installed Linux with a VM and now everything works like a dream. EDIT TO ADD: I would love to do a project like Learn Clojure the Hard Way, but I'm simply no…

RE Learn Clojure the Hard Way

I'm pretty much a novice when it comes to software in general, but I dip my toes in a lot of different languages. I don't think that would be a problem for LCtHW though... I mean, it could be a collaborative effort as a github page or wherever.

Get the framework in place, start with the basics, let the experts fill in the advanced stuff.

Re: Getting Started With Clojure

#88
post #71

Earlier quoted context omitted.

This post is specially relevant for me, since last weekend I've decided to take a quick look at Clojure, as one of my personal goals this year is to get acquainted with a Lisp dialect. From my _very_ short experience (I've started coding a simple game), here are my two cents: - If your application is heavily dependent on state, which changes continuously and must be maintained during most of the execution time - like…

I'd like to contrast this: if your application is heavily dependent on state, especially state which is shared between threads, Clojure offers a concise, safe, and uniform way to understand and organize state transformations--at the cost of performance. Where fast mutability is required, it's easy to drop down to explicit locks, atomics, java.util.concurrent collections, et al. I find the majority of my time in writi…

At ILC 2009, Guy Steele asked Rich Hickey how Clojure's STM interacted with I/O. To which, Rich replied that it doesn't. No further discussion continued on the subject.

I have found that this rarely enters discussions regarding Clojure, although the STM is frequently lauded. GHC's STM also does not work with the IOMonad, which is clear because of the types, and is articulated in books such as such as Real World Haskell.

http://book.realworldhaskell.org/read/software-transactional...

Are people really getting benefits from transactions which do not involve I/O?

Re: Getting Started With Clojure

#89
post #53

I have been thinking about getting into Clojure, but time is precious. It doesn't seem like there are that many jobs out there, but I could be wrong. For those of you in the industry, why would I want to use Clojure? What would be a good project to try it on? A Web app? Why is it worth learning it?

This post is specially relevant for me, since last weekend I've decided to take a quick look at Clojure, as one of my personal goals this year is to get acquainted with a Lisp dialect. From my _very_ short experience (I've started coding a simple game), here are my two cents: - If your application is heavily dependent on state, which changes continuously and must be maintained during most of the execution time - like…

For games, Chris Granger and his team have coded up a prototype game in Clojurescript using the Entity-Component-System architecture, which seems to be a good fit for functional languages. It might be worth checking out: http://www.chris-granger.com/2012/12/11/anatomy-of-a-knockou...

Re: Getting Started With Clojure

#90
post #22

I knew about clojars.org, but I hadn't known about http://www.clojure-toolbox.com/ . Very nice! I also recommend the Value of Values video presentation: http://www.infoq.com/presentations/Value-Values . It will help you internalize Clojure's approach to data. I really wish I could remember why I didn't experience nearly as much pain starting out as the author, but I'm glad that he took the trouble to put this togethe…

Off topic perhaps, but is Rich Hickey's wisdom only summarized in talks, or has he written some of this down? I see a number of glowing reviews of videos like this. While I don't want to miss out, I would personally much rather consume this info in writing. The one I did bite the bullet on and watch in full was his talk on “hammock-driven development”. I liked it, but couldn't help feeling it would have made a very n…

Try reading this. It concisely gets at some of the main ideas of his talks regarding values, identity, and perception. http://clojure.org/state
Post reply on HN