Re: How to validate date (YYYYMMDD) using clojure

2018-03-12 Thread John Jacobsen
Have a look at clj-time: https://github.com/clj-time/clj-time In particular the clj-time.format namespace. Cheers! John -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from

Re: Good Clojure Projects for the Classroom?

2017-02-06 Thread John Jacobsen
I run a Clojure study group at work and we generally work 4Clojure problems if nobody has a topic they want to present on. Today, however, we had a great time looking at some "open data" that's out there, specifically about the City of Chicago[1]. I challenged everyone to come up with one or mo

Re: Clojure infrastructure update

2016-11-19 Thread John Jacobsen
Great news, Alex. One question not on your list: are there any plans to put JIRA behind HTTPS? I went to change my password recently and noticed my username/password would be sent in the clear. > > Thanks for all the work you do for the community. John J. -- You received this message becau

Question about how lazy sequences are held/released/garbage collected

2016-04-01 Thread John Jacobsen
The problem of correctly handling large lazy sequences so they don't blow up in memory came up at work this week. I thought I would try to explain the following simple case to our Monday afternoon study group, and I realized I don't understand it 100%: (def n 1e8) (let [s1 (range n) s2 (

Re: How to to watch changed files and run tests again automatic

2015-04-11 Thread John Jacobsen
If you're used to Rspec, have a look at Speclj.[1] It's somewhat Rspec-like. Its -a option does the same as lein midje :autotest, and works better for some situations. In my experience, the different testing frameworks each have their warts and nice features -- it's worth trying more than one

Re: New Functional Programming Job Opportunities

2014-12-22 Thread John Jacobsen
By the way, I have worked at OpinionLab since last February, and my coding has been nearly 100% Clojure since then. If you like Chicago, it's a nice place to work, and I'm happy to answer questions off-list about it. On Monday, December 22, 2014 11:00:28 AM UTC-6, Sean Murphy wrote: > > Here ar

Re: Clojure Style Guide

2014-12-20 Thread John Jacobsen
Great to see this discussion on the mailing list, rather than just comments to PRs on GitHub. And a big thanks to Bozhidar for shepherding the current style guide. I came to Clojure from Python which has a strict standard (PEP-8) and a linting tool which enforces a standard -- it's been my exp

Re: [ANN] Session 0.1.3 - A live-coding environment for Clojure

2014-03-24 Thread John Jacobsen
As a refugee (spy?) from the Python community, it's very exciting to see something similar to iPython Notebook, but based on / supporting the Clojure ecosystem. iPN has been making shockwaves in the Python world and in scientific computing in general for some time. Having only watched the vide

Re: Clojure / polyglot position at OpinionLab in Chicago

2014-02-26 Thread John Jacobsen
On Monday, February 24, 2014 8:46:58 PM UTC-6, Devin Walters (devn) wrote: > > It seems like this comes up with many of the job posts. Perhaps we should > have some guidelines around what details should be provided in the average > job post to cut down on some of the noise that follows. > That m

Re: Clojure / polyglot position at OpinionLab in Chicago

2014-02-24 Thread John Jacobsen
> Lots of people on this list are not based in Chicago or US. Will remote candidates be considered? I checked; apparently not, sorry to say. On Monday, February 24, 2014 1:28:10 PM UTC-6, Michael Klishin wrote: > > > 2014-02-24 22:47 GMT+04:00 John Jacobsen > >: > >

Clojure / polyglot position at OpinionLab in Chicago

2014-02-24 Thread John Jacobsen
Hi everyone, Two weeks ago I joined OpinionLab in Chicago as a Clojure developer. We are seeking more developers who have both a broad skill set and a passion for Clojure. http://www.opinionlab.com/functional-software-developer/ OpinionLab is using Rails on the front-end and Clojure / Storm o

Re: Reading single characters...?

2013-09-22 Thread John Jacobsen
The JLine story is indeed confusing. I believe https://github.com/jline/jline2 is the current one you want ([jline "2.11"] in your project.clj deps). See the forthcoming Clojure Cookbook recipe

Re: Current state of the art in Web deployment?

2013-08-18 Thread John Jacobsen
Many thanks to everyone who replied about deploying a Web server to production. Specific replies: On Aug 17, 2013, at 6:51 PM, Mark Mandel wrote: > > On Sun, Aug 18, 2013 at 6:52 AM, John Jacobsen wrote: >> After some prototyping and development, we are now getting to the sta

Current state of the art in Web deployment?

2013-08-17 Thread John Jacobsen
Hi folks, I'm starting work on a Clojure Web app and would like to get a sense for the current "standard" (if any) for deploying to production. In my case, I have an AWS Ubuntu instance, set up via Vagrant and Puppet, which mirrors some developer VMs. Datomic, leiningen etc. are running every

Re: [ANN] Leiningen 2.3.0 released

2013-08-09 Thread John Jacobsen
That worked for now, thanks! On Friday, August 9, 2013 10:58:30 PM UTC-5, Phil Hagelberg wrote: > > On Friday, August 9, 2013 6:32:06 PM UTC-7, John Jacobsen wrote: > > please advise? Thanks! > > Hm; looks like self-install is getting invoked too soon. Not sure why it &g

Re: [ANN] Leiningen 2.3.0 released

2013-08-09 Thread John Jacobsen
Hi Phil, all, I'm still seeing the error which (I think) others have been reporting here: vagrant@precise32:/tmp$ lein upgrade Downloading Leiningen to /home/vagrant/.lein/self-installs/leiningen-2.3.0-standalone.jar now... /home/vagrant/bin/lein: line 57: /home/vagrant/.lein/self-installs/lei

Overflowing (count ...)

2013-07-07 Thread John Jacobsen
Was unsure whether to post to clojure or clojure-dev, but here goes. I was surprised to learn today that count silently overflows to negative numbers: jenome.core> (time (count (range (*' 1000 1000 1000 3 "Elapsed time: 375225.663 msecs" -1294967296 jenome.core> I can easily get around thi

Re: Time complexity of operations on collections

2013-05-23 Thread John Jacobsen
Exactly what I was looking for, thanks!!! John On Thursday, May 23, 2013 7:06:39 PM UTC-5, Matthew wrote: > > http://www.innoq.com/blog/st/2010/04/clojure_performance_guarantees.html > -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to t

Re: Time complexity of operations on collections

2013-05-22 Thread John Jacobsen
Updated draft of table in more readable form here: http://bit.ly/big-o-clojure Thanks to Timothy for corrections/additions! Will keep updating as other replies come in. -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, sen

Re: Time complexity of operations on collections

2013-05-22 Thread John Jacobsen
ava code performs it might be best > to specify which one you mean. > > Yes it's confusing, I'm sure there is a historical reason for it. > > Timothy > > > On Wed, May 22, 2013 at 8:24 AM, John Jacobsen > > > wrote: > >> I should probably also ha

Re: Time complexity of operations on collections

2013-05-22 Thread John Jacobsen
I should probably also have added sorted-map to the table, though the complexity for each operation is less clear to me. -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts

Time complexity of operations on collections

2013-05-22 Thread John Jacobsen
I'm studying for an interview and thought it might be nice to know the time complexity of primitive operations on collections in Clojure. A quick googling didn't turn up a definitive resource. I would be happy to put one together. What I had in mind was something like: Collections: strings,

Re: Clojure - Python Style suggestion

2013-02-05 Thread John Jacobsen
Having written Python code professionally for about 7 years and taken to Clojure as a serious hobby for a year and a half, I have thought a lot about the differences between the two languages. While parens provide simple and powerful homoiconicity (and they have a somewhat pleasing aesthetic --