Clojure/Pedestal vs Go

2015-09-13 Thread Alan Thompson
Hi, I'm about to start a new web project and they are thinking about using Go (golang) instead of a JVM (preferably Clojure) based approach. The idea is "BARE METAL SPEED!!!", but I really think the network and DB will be the bottlenecks, not Clojure vs Go. Is anybody out there aware of any spee

Re: Clojure/Pedestal vs Go

2015-09-13 Thread Alan Thompson
P.S. I have seen the results at https://github.com/ptaoussanis/clojure-web-server-benchmarks although I'm not sure exactly how to interpret them w.r.t. "keepalive" and the "errors" graph. Also, the plotted results don't seem to include latency. Alan On Sun,

Martin Thompson: "Designing for Performance" video

2015-09-15 Thread Alan Thompson
If you haven't seen any of Martin's talks before, you should give this one a try. It is one of his best and reminds me a lot of Rich's best talks. This one is motivated by getting higher performance from code, but most of it emphasizes good design fundamentals as the basis for everything else. h

Re: lazy-seq and threads

2015-09-15 Thread Alan Thompson
Do you have a corresponding example of the parallel code? I'm not sure which part(s) are being delegated to other threads. Often it is just the I/O cost of reading the file that is the dominant cost, so parallelism doesn't buy you much. Alan On Mon, Sep 14, 2015 at 9:10 PM, Andy L wrote: > Hi

Re: Martin Thompson: "Designing for Performance" video

2015-09-15 Thread Alan Thompson
The keynote is quite good, too: https://youtu.be/oxjT7veKi9c?list=PLEx5khR4g7PKFs3Y-gWd8TX4Y_5yTyUTP "Shared Mutable State: The most feared words in computing" - quite a bit of overlap with the ideals of Clojure. Alan On Tue, Sep 15, 2015 at 5:43 AM, Alan Thompson wrote: > I

Changing font size in IntelliJ IDEA / Cursive

2015-10-05 Thread Alan Thompson
I came across this super-handy blog posting just now on how to globally set the font size/type in IntelliJ. It is very non-intuitive! - from: http://www.tilcode.com/how-to-globally-change-the-font-size-in-intellij-idea/ How to globally change the font size in

Re: Changing font size in IntelliJ IDEA / Cursive

2015-10-05 Thread Alan Thompson
Here is the IDEA doc page: https://www.jetbrains.com/idea/help/configuring-colors-and-fonts.html On Mon, Oct 5, 2015 at 9:39 AM, Alan Thompson wrote: > I came across this super-handy blog posting just now on how to globally > set the font size/type in IntelliJ. It is very non-int

Writing Friendlier Clojure

2015-10-08 Thread Alan Thompson
A very nice blog posting about making your clojure functions more readable to other people (or a future you!). Enjoy. http://adambard.com/blog/write-friendlier-clojure/ Alan -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group,

The Reading List

2015-10-14 Thread Alan Thompson
Hi, Just saw a good presentation on InfoQ by Jason McCreary ( http://www.infoq.com/presentations/the-reading-list) where he mentions several topics from "The Reading List", which is an informal list of books that are considered by many in the industry to be "required reading" for software enginee

Re: [ANN][Book] Clojure for the Brave and True published, web site updated

2015-11-03 Thread Alan Thompson
Hi Daniel - Just finished the book and think it is one of the best places to start Clojure. Is there anyplace online that you are accepting errata? Thanks again, Alan On Fri, Oct 23, 2015 at 10:10 AM, John Gabriele wrote: > Excellent news! Looking forward to receiving my hard-copy, though have

Re: [ANN][Book] Clojure for the Brave and True published, web site updated

2015-11-03 Thread Alan Thompson
Hey, I just verified this piece about the commute function and I couldn't believe my eyes! (defn sleep-print-update [sleep-time thread-name update-fn] (fn [state] (Thread/sleep sleep-time) (println (str thread-name ": " state)) (update-fn state))) (def counter (ref 0)) (future (do

Re: [ANN][Book] Clojure for the Brave and True published, web site updated

2015-11-04 Thread Alan Thompson
The example demonstrates that your interpretation is exactly what occurs, as described in CFB&T. It is just not what I thought was happening from reading all of the other Clojure books! Alan On Tue, Nov 3, 2015 at 10:00 PM, Sean Corfield wrote: > > So, when using commute the update function is

Re: [ANN][Book] Clojure Recipes published and for sale on Amazon

2015-11-04 Thread Alan Thompson
Ordered! Looking forward to it! Alan On Thu, Oct 22, 2015 at 4:52 AM, Torsten Uhlmann wrote: > Congratulations, Julian! > > Leonardo Borges schrieb am Do., 22. Okt. > 2015 um 13:10 Uhr: > >> Congratulations Julian! I'll share this around! >> >> On Thu, Oct 22, 2015 at 9:51 PM Julian wrote: >>

Re: [ANN] a HugSQL adapter for postgres.async

2015-11-04 Thread Alan Thompson
Put that comparison in the README! Alan On Wed, Nov 4, 2015 at 11:03 AM, Robin Heggelund Hansen < skinney...@gmail.com> wrote: > The basic principle is the same, but the api is a little different, > especially after YeSQL 0.5. > > The biggest things for me: > - HugSQL allows you to replace jdbc-b

Re: [ANN][Book] Clojure for the Brave and True published, web site updated

2015-11-05 Thread Alan Thompson
s! > Daniel > > On Wednesday, November 4, 2015 at 12:06:51 AM UTC-5, Alan Thompson wrote: >> >> Hi Daniel - Just finished the book and think it is one of the best places >> to start Clojure. >> >> Is there anyplace online that you are accepting errata? >>

Re: [ANN] Clojure 1.8.0-RC1 is now available

2015-11-10 Thread Alan Thompson
Runs fine in my tests. One small question: would it be feasible to keep everything lowercase in the future (i.e. org.clojure:clojure:jar:1.8.0-rc1)? Keep up the great work, Alan On Tue, Nov 10, 2015 at 9:30 AM, Alex Miller wrote: > Clojure 1.8.0-RC1 is now available. *This build is a "release

Re: [ANN] Clojure 1.8.0-RC1 is now available

2015-11-10 Thread Alan Thompson
Just keeps it simpler when typing, and most other things seem to be all lowercase. Not a big deal. Alan On Tue, Nov 10, 2015 at 9:55 AM, Alex Miller wrote: > Any reason why? > > On Tuesday, November 10, 2015 at 11:51:40 AM UTC-6, Alan Thompson wrote: >> >> Runs fine i

Re: Pareto's Clojure

2015-11-11 Thread Alan Thompson
Finish reading CFBT, and add "Living Clojure". Then read the other ones and keep the Clojure Cookbook handy for concrete examples on specific tools. Don't forget "Web Development with Clojure" for a focused tutorial on that topic. Alan On Tue, Nov 10, 2015 at 3:23 PM, Sayth Renshaw wrote: > Mor

Re: [ANN] Pipes 0.1.1 - chain processes, shell commands and threads via pipes

2015-11-13 Thread Alan Thompson
Looks nice! Alan On Fri, Nov 13, 2015 at 5:56 AM, Marcin Bilski wrote: > Home: https://github.com/bilus/pipes > > If you ever used Un*x pipes > > ``` > $ ls | grep .clj > ``` > > then this library gives you a power to do this in Clojure and a lot more. > > You can use streams to chain any numbe

Re: A call for an idiomatic rendering of Clojure EDN in info/error messages

2015-11-13 Thread Alan Thompson
I would that the existing format of pr-str would work, no?. I often structure Exception error strings like: foo-service: bad value=2 foo-service: bad value="2" Does that not keep it unambiguous? Alan On Fri, Nov 13, 2015 at 10:59 AM, Colin Yates wrote: > Hi Ben, > > I’m pretty sure we are all

San Diego Clojure Meetup

2015-12-01 Thread Alan Thompson
Hi, The San Diego Clojure Users Group meetup is held the 2nd Wednesday of each month, and our meetup this month is one week from tomorrow on 2015-12-9. Last month we had a nice overview of a simple Om app. This month we will be discussing tupelo.core and its r

San Diego Functional Programming Meetup

2016-01-12 Thread Alan Thompson
Hi - If anybody is in the San Diego area, we are having our monthly Clojure/FP meetup tomorrow evening. All are welcome! Alan San Diego Functional Programming Meetup San Diego Clojure Users Group Wednesday, January 13, 2016 at 7:30 PM Ansir Innovation Center 4685 Convoy St Suite 210 (upstairs)

Re: Why do map/get and similar return nil if not found?

2016-01-12 Thread Alan Thompson
If the assumptions of a function call aren't satisfied, I find the "silent failure" of returning nil to be extremely problematic. After all, you can't fix a problem if you don't know you have a problem (or where it is). As a result, I am definitely in the camp of the "fail-fast" philosophy. Liber

Awesome VIM cheatsheet!

2016-01-14 Thread Alan Thompson
Hey - I just found this awesome VIM cheatsheet, laid out in the form of a keyboard showing all of the keys and what they do (normal, shift, control, etc), along with an extensive legend. Check it out at: http://michael.peopleofhonoronly.com/vim/ It is from a wiki of cheatsheets located at:

Crossclj.info shows outdated dependencies

2016-01-17 Thread Alan Thompson
Hey - Many of you are probably already aware of the centralized API documentation available at https://crossclj.info . However, I just noticed a new (to me) feature: CrossClj shows the outdated dependencies of a project! Checkit out at: https://crossclj.info/ns/tupelo/0.1.59/project.clj.html#o

Functional Geekery podcast is awesome

2016-01-19 Thread Alan Thompson
Hey - Just wanted to remind everybody to check out the Functional Geekery podcast if you have not yet done so. It is one of my top 2 podcasts to listen to! https://www.functionalgeekery.com/ Another episode just came out today. Enjoy! Alan -- You received this message because you are subscribe

Re: [ANN] Specter 0.9.2

2016-01-28 Thread Alan Thompson
Looks great, Nathan. I also highly enjoyed your recent interview on the Cognitect podcast . One quick question: In the first example below from the README (verified at the repl), it seems that the (srange ...) function sometimes behaves as a half-open in

Re: [ANN] Specter 0.9.2

2016-01-29 Thread Alan Thompson
pen intervals :) The first selects the > subsequence with indices 1,2,3, and the second selects the subsequence with > indices 2,3. You can see in the second example that [2 3] in the overall > sequence is replaced by [-1 -1 -1]. > > On Thu, Jan 28, 2016 at 9:10 PM, Alan Thompson wrote

Re: [ANN] Specter 0.9.2

2016-01-29 Thread Alan Thompson
:d :e :f :g :h :i]) > => [:a :b :c :d :h :i] > > And the navigator to prepend to a sequence is just selecting the empty > subsequence at the beginning: > > (def BEGINNING (srange 0 0)) > (setval BEGINNING [:a :b] '(1 2 3)) > => (:a :b 1 2 3) > > > On Fri, Jan 2

Re: How is the emphasis of “data over code” different than the XML advocacy of the early 2000s?

2016-02-02 Thread Alan Thompson
I do think the whole "code is data" thing is a bit overstated. The earliest computers used paper tape for data records: At Bletchley Park, the "data" (ciphertext to be broken) was encoded onto the paper tape in the photo. The "code" was hardwired into the design of the machine & its electronics,

Re: How is the emphasis of “data over code” different than the XML advocacy of the early 2000s?

2016-02-03 Thread Alan Thompson
Very good points, Timothy! On Wed, Feb 3, 2016 at 7:45 AM, Timothy Baldridge wrote: > I find this subject interesting as I was just discussing this with a > co-worker recently. There's a few points I'd like to make: > > Firstly, data is often a form of a DSL (domain specific language). > Librari

Sisyphus on Fire

2016-02-04 Thread Alan Thompson
Hi. I just read very well-written post by Marc Phillips on the Cognitect blog. He describes some of the current antipatterns that have hijacked the original idea of "Agile" development. Please read! Alan http://blog.cognitect.com/blog/2015/12/2/sisyphus-on-fire -- You received this message bec

(type ...) vs (class ...)

2016-02-12 Thread Alan Thompson
Hey - Just saw something on the clojure.core/type function: (defn type "Returns the :type metadata of x, or its Class if none" {:added "1.0" :static true} [x] (or (get (meta x) :type) (class x))) I have never seen this before, and it appears the :type metadata is not used in the clojure.core s

Re: Command Interpreter in Clojure?

2016-02-16 Thread Alan Thompson
Have you seen this: https://github.com/clojure/tools.cli https://github.com/clojure-cookbook/clojure-cookbook/blob/master/03_general-computing/3-07_parse-command-line-arguments.asciidoc Alan On Tue, Feb 16, 2016 at 5:06 AM, Nick Vargish wrote: > My current project requires a command-line inter

Re: find shorter clojure code automatically

2016-03-03 Thread Alan Thompson
Hi Jeremy - I am finding "new-to-me" functions like that all the time, even after 3 years of Clojure! Besides looking up and understanding unfamiliar functions (e.g. ffirst [1]), I also keep a browser tab always open to the clojure cheatsheet [2] as a reference. Periodically (or if I need a break

Re: [ANN] walmartlabs/system-viz 0.1.1

2016-03-11 Thread Alan Thompson
Looks nice. On Fri, Mar 11, 2016 at 10:59 AM, Howard Lewis Ship wrote: > You can imagine it's useful with the Walmart code base ... I just wish I > could publish that picture! > > On Fri, Mar 11, 2016 at 10:55 AM, Timothy Baldridge > wrote: > >> This is fantastic! I've often wanted something li

Re: [ANN] Inlein 0.1.0

2016-03-19 Thread Alan Thompson
Hi - Looks nice. On my computer (1-year-old Ubuntu 15.10, medium desktop from ZaReason), inlein is a little faster than lein-exec, about 1.7x ratio: ~/clj > for xx in 1 2 3 ; do time hello-inlein.clj ; done hello world! hello-inlein.clj 0.64s user 0.03s system 129% cpu 0.523 total hello world! h

Re: [ANN] Inlein 0.1.0

2016-03-19 Thread Alan Thompson
For completeness: ~/clj > cat hello-inlein.clj #!/usr/bin/env inlein '{ :dependencies [[org.clojure/clojure "1.8.0"]] } (println "hello world!") ~/clj > cat hello-lein-exec.clj #!/usr/bin/env lein-exec (println "hello world!") -- You received this message because you are subscribed to th

Re: more minimal clojurescript intro/app

2016-03-26 Thread Alan Thompson
Have you seen this tutorial? https://github.com/magomimmo/modern-cljs Alan On Sat, Mar 26, 2016 at 8:06 AM, Lee Spector wrote: > Hi all, > > I have a pure Clojure program and I would like to make it run in the > browser on client machines. It has no dependencies other than Clojure, it > does n

Nice article on HugSQL

2016-03-30 Thread Alan Thompson
Enjoy! https://compose.io/articles/embrace-sql-with-hugsql-clojure-and-postgresql/?utm_source=postgresweekly&utm_medium=email -- 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 post

Live rendering of AsciiDoc and MarkDown files in Chrome browser (Github Flavored!)

2016-04-01 Thread Alan Thompson
Markdown format: Markdown Preview Plus ** Another nice tip: Both Asciidoctor.js and Markdown Preview Plus have an Options panel which allows you to choose "GitHub" styling.very nice! ** Alan On Wednesday, September 2, 2015 at 12:06:23 PM UTC-7, Alan Thompson wrot

Re: [ANN] [book] Mastering Clojure published!

2016-04-04 Thread Alan Thompson
I'm looking forward to reading it. The printed version is half-way here, and I already have the e-book! Alan On Sat, Apr 2, 2016 at 9:46 PM, Akhil Wali wrote: > I'm pleased to announce that Mastering Clojure has been published. > This book is a fast paced exploration of the more advanced featur

Video of ClojureScript & Reagent

2016-04-12 Thread Alan Thompson
Hi - Just saw this nice introduction to ClojureScript and Reagent from the SF Reagent Meetup Group: https://youtu.be/DYzwfekWSzQ Enjoy, Alan -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.c

Callback fn in core.async/put!

2016-04-26 Thread Alan Thompson
The docs for put! say (put! port val) (put! port val fn0) (put! port val fn0 on-caller?) Asynchronously puts a val into port, calling fn0 (if supplied) when complete. nil values are not allowed. Will throw if closed. If on-caller? (default true) is true, and the put is immediately accepted, wil

Re: Callback fn in core.async/put!

2016-04-27 Thread Alan Thompson
be clarified in the docstr. "Will throw if closed." is also not > true. > > > On Wednesday, April 27, 2016 at 5:48:09 AM UTC+2, Alan Thompson wrote: >> >> The docs for put! say >> >> (put! port val) >> (put! port val fn0) >> (put! port val f

Re: [ClojureScript] #{:ann} funcool/struct - yet another validation library for Clojure and ClojureScript.

2016-05-03 Thread Alan Thompson
Hi - Looks nice! Alan On Mon, May 2, 2016 at 11:11 PM, Andrey Antukh wrote: > Hi all. > > I am happy to announce the first public release of funcool/struct > validation library. > > https://github.com/funcool/struct > > Why an other? > > I have started on my project using well know and very nice

Re: The API Banking Team at Silicon Valley Bank (San Francisco) is Looking For a Clojure Engineer

2016-05-04 Thread Alan Thompson
Hi - Looks like we got disconnected. Is there a number where I can dial in? Alan On Wed, Apr 13, 2016 at 2:59 PM, wrote: > The API Banking is a new Agile team being assembled to build a brand-new > web, mobile and api digital banking platform from the ground up, using the > latest cutting edge

Re: [ANN] clojure.java.jdbc 0.6.0-rc1 -- and an API question

2016-05-04 Thread Alan Thompson
I like the first option: [:foo {:bar :desc} {:quux :asc}] Simple, succinct, & flexible. Alan On Wed, May 4, 2016 at 3:36 PM, Sean Corfield wrote: > What? > Clojure contrib wrapper for JDBC > https://github.com/clojure/java.jdbc#change-log > > The 0.6.0 Alpha builds have been

Re: Transducers improve performance more than expected

2016-05-10 Thread Alan Thompson
I don't understand what you mean. '(range 1000)' produces a lazy sequence, and '(reduce + ...)' doesn't hold onto the head of the lazy sequence. Therefore, each element can be GC'd as soon as added into the running total, the the lazy sequence only produces new elements as they are requested by the

Re: I knew that primitives were better, but this is ridiculous

2016-05-13 Thread Alan Thompson
It sounds like DataScript may be just what you need: https://github.com/tonsky/datascript Alan On Fri, May 13, 2016 at 11:50 AM, Michael Willis wrote: > I'm also really interested in the topic of indexing a CES game engine. At > one point I was trying to build a game, and mine was designed with

lein test-refresh - I am so loving it!

2016-05-22 Thread Alan Thompson
I just discovered this today by accident, and I am loving it! When I run tests for the Tupelo library , it requires 8.5 sec to do "lein test". This seems to be mostly compiling Clojure itself, since JVM startup takes only 0.038 sec. Using "lein test-refresh" i

Re: clojure.spec

2016-05-23 Thread Alan Thompson
Looks great - eagerly awaiting a chance to use it. Alan On Mon, May 23, 2016 at 7:48 AM, wrote: > This looks incredible and it sounds like something which could immediately > be put to good use in both hobby and production projects. Excited to test > it out when the alpha is available. Thank yo

set vs hash-set

2014-02-06 Thread Alan Thompson
OK, this one has me stumped. What is the difference between clojure.core/set and clojure.core/hash-set ??? The source code is almost identical. Is one to be preferred over the other depending on circumstances? Alan (defn set "Returns a set of the distinct elements of coll." {:added "1.0"

Re: unconditional append to end

2014-02-09 Thread Alan Thompson
Holy cow! Where have these been hiding! They don't show up on ClojureDocs.org at all!!! I was about to write my own macro vmap to implement (vec (map(...)) for just the use cases outlined above. I just looked on clojure.org, and searching on "map" doesn't return any (useful) results. I eventua

Re: unconditional append to end

2014-02-10 Thread Alan Thompson
lj-1.3/cheatsheet-tiptip-cdocs-summary.html > > After you go though the cheat sheet you can try > http://clojure.github.io/clojure > It's more complete but way less nice. > > > On Monday, February 10, 2014 3:21:16 AM UTC-2, Mars0i wrote: >> >> On Sunday, February 9,

Re: [ANN] Gorilla REPL initial release (0.1.2)

2014-02-19 Thread Alan Thompson
Hey - tried to play the video with Chrome/Fedora, and no go! Got any other formats available? Alan On Wed, Feb 19, 2014 at 1:23 PM, Jony Hudson wrote: > Hi All, > > I'm pleased to announce the first release of Gorilla REPL, a rich REPL in > the notebook style: > > https://github.com/JonyEpsil

Re: Help a Startup use Clojure!

2014-03-13 Thread Alan Thompson
Hey, I love your write-up! You should put that in a blog post so more people can read it & share it. Alan On Mar 12, 2014 2:00 PM, wrote: > I just spent the day writing this document for my boss, called "The case > for Clojure." I hope it helps. We are in exactly the same boat, so it > should

Re: nested map destructuring

2013-03-20 Thread Alan Thompson
Nice explanation! --Alan On Tue, Mar 19, 2013 at 1:09 PM, Jim - FooBar(); wrote: > nice one...when thinking like there is literally no confusion. > thank you thank you thank you :) > > Jim > > > > On 19/03/13 20:05, Marko Topolnik wrote: > > Think of it in layers, like this---layer 1: > >

Re: Clojure/West 2013 videos?

2013-03-25 Thread Alan Thompson
Thank you for the conferences! I missed this one but really want to attend the next one. And a double thank you for having such high-quality videos from past conferences available on-line! Alan Thompson On Mon, Mar 25, 2013 at 10:35 AM, Mark Engelberg wrote: > I've been impressed

Re: Apply elements in a vector as arguments to function

2013-03-26 Thread Alan Thompson
Apply works for any number of args: (apply + [1 2 3 4 5]) He just gave you an example inline function of 2 args since that was the original example. Alan Thompson On Tue, Mar 26, 2013 at 12:44 PM, Ryan wrote: > Thanks Michael, but If i am not mistaken, your example only works wit

Re: Apply elements in a vector as arguments to function

2013-03-26 Thread Alan Thompson
Essentially, apply just removes the parens (or brackets) from your list of args and creates the original function call: (apply + [1 2 3]) -> (+ 1 2 3) Alan Thompson On Tue, Mar 26, 2013 at 12:49 PM, Alan Thompson wrote: > Apply works for any number of args: > > (apply

Re: Problem with map (only when running on browser)

2013-04-01 Thread Alan Thompson
I second that, Nico! For some reason the lines are not wrapping at all in GMail and are coming in a couple of hundred char's wide! Alan On Sat, Mar 30, 2013 at 8:54 AM, Cedric Greevey wrote: > On Sat, Mar 30, 2013 at 10:09 AM, Nico wrote: > >> BTW, it seems like knowing Clojure is a requireme

Re: WAT? BigInt instead of Long?

2013-04-01 Thread Alan Thompson
d values, it doesn't have the overhead of the arbitrary-precision type. But, the extra precision is there if you need it later on in a calculation. Alan Thompson On Mon, Apr 1, 2013 at 2:43 PM, Gary Verhaegen wrote: > That's because ratios are intended to get you arbitrary precision.

Re: [ANN] Schejulure 0.1.3

2013-04-18 Thread Alan Thompson
Looks nice! Alan On Mon, Apr 15, 2013 at 12:40 PM, Anthony Grimes wrote: > You had me at the changelog entry regarding Sundays. > > I was actually tasked with writing pretty much this at work last Friday. > My thanks for doing my work for me. Unfortunately I don't think you will be > paid for yo

Re: More idiomatic way to use map like this?

2013-05-03 Thread Alan Thompson
Hey Armando - How did you get the nice syntax highlighting into your post??? Enquiring minds wanna know. Alan On Fri, May 3, 2013 at 7:41 AM, Jim - FooBar(); wrote: > I Just realised you've many responses and that you've already solved your > problem...sorry for the noise people. > > Jim > >

<    1   2   3