Episode 9 with Kevin Lynagh and Paul deGrandis: web dev ennui, CRDTs, and core.logic
Posted: January 4, 2013 Filed under: Conversation, Episode 1 Comment »
![]()
Paul deGrandis (@ohpauleez) and Kevin Lynagh (@lynaghk) are two anchors of the Clojure community, perhaps especially of the ClojureScript wing. Both Portlanders, they’ve been elbow-deep in core.logic and a ton of ClojureScript tools and libraries like shoreleave, cljx, c2, and more. They’ve stormed the Clojure world in the past year or two, going from zero to taking up residence in #clojure to speaking about Clojure and ClojureScript everywhere.
Kevin is the founder of Keming Labs, which specializes in “building data-driven UIs”; Paul has worked at all sorts of places like Etsy, Comcast, and TutorSpree.
Enjoy!
(Recorded on December 14th, 2012. Apologies for the clipping on Paul’s audio. Donations welcome to help get him get an internet connection that doesn’t use carrier pigeons.
Listen:
Or, download the mp3 directly.
Discrete Topics
Many questions and topics came from tweets to @MostlyLazy (watch for scheduled show announcements and send us topics and questions!)
- Abusing
pmap - java.util.concurrent (learn it, use it!)
- “JavaScript |ˈʤɑːvəˌskrɪpt| (n.): Super janky shit.”
- The rise of the “JavaScript Craftsman”
- “What was the first piece of software you sold?”
- Running ClojureScript on top of node.js
- Conrad Barski‘s WebFui (presented at Clojure Conj 2012)
- Separating code and content or not
- Functional Reactive Programming & co.
- flapjax
- Reactive Demand Programming
- A reasonable lightweight summary of RDP
- …compared to FRP
- An (the only?) implementation: Sirea
- Behavioural Programming
- “Local state is poison”
- “FRP is like MVC”
- TodoFRP (post your implementations now!!!11!)
- reflex: “Automatic state propagation in ClojureScript”
- “Web application development ennui”
- “The web was built by amateurs” (alan kay)
- John McCarthy on the W3C: “When w3c decided to not use [s-expressions], but instead imitate SGML [for HTML], that showed a certain capacity to make mistakes — which, probably, they haven’t lost.”
- NaCl (Google Native Client)
- Commutative Replicated Data Types (CRDTs)
- Mark Shapiro et al., “A comprehensive study of Convergent and Commutative Replicated Data Types” (pdf)
- A presentation by Marc Shapiro @ Microsoft Research surveying the content of this paper
- Eventual consistency vs. strong consistency vs. strong eventual consistency
- Implementations
- statebox
- riak_dt: “Riak core app for storing convergent data types”
- knockbox (Clojure, in-process)
- Bloom and BloomL (pdf) are languages (~ Ruby DSLs) that use CRDTs / lattices as their primary data types
- “Keep CALM and Query On”, a presentation by Joe Hellerstein from RICON 2012 discussing lattices, CRDTs, Bloom, etc.
- Related: operational transforms
- Mark Shapiro et al., “A comprehensive study of Convergent and Commutative Replicated Data Types” (pdf)
- Coin-change kata
- test.generative
- core.logic (provides an awesome unifier)
- Websockets
- superseded by WebRTC?
- socket.io — dynamic transport fallbacks for web app communications
- Chrome Frame — replaces the guts of IE with Chrome
- ClojureScript miscellanea
Episode 8: Phil Hagelberg; empowering userspace in Heroku, Leiningen, and Emacs
Posted: September 21, 2012 Filed under: Conversation, Episode 1 Comment »
Phil Hagelberg (a.k.a. technomancy just about everywhere) has been a constant presence in the Clojure world for years. Best known for starting the Leiningen project — which he continues to maintain as part of his duties at Heroku — Phil has had his fingers in all sorts of open source pots, including Clojure itself, a big pile of Clojure libraries, and the packaging and distribution infrastructure around Emacs (thus foreshadowing Leiningen to a certain degree?).
We talked about many of these topics (recorded on 8/31/2012, BTW), but one theme that kept coming up throughout our conversation was the notion of empowering userspace; that is, ensuring that users of a system have nearly (or exactly?) as much power available to them as the system’s original creators. This is something that Phil has written about recently, where he dubbed a particular approach to empowering userspace as the “Emacs Way”…a strategy that has yielded great dividends in Leiningen and Clojure both.
Enjoy!
Listen:
Or, download the mp3 directly.
Discrete Topics
- Many questions and topics came from tweets to @MostlyLazy (watch for scheduled show announcements and send us topics and questions!)
- Heroku stuffs, including:
- Mark McGranahan gave a talk at the Clojure Conj last year on “Logs as Data” (inspired by Pulse, a Clojure system for consuming log streams at Heroku)
- Buildpacks, the way projects and apps deployed to Heroku are built
- Sonian
- The Leiningen survey, which aimed to get a snapshot of how people use the tool
- Scripting Gnome 3 with ClojureScript
- “The Great Samsung Laptop Fiasco of 2012″
- “Ending is better than mending” (or not?)
- Common tools for code pairing / swarming: screen & tmux
- “Emacs is a great operating system; if only it had a decent text editor…”
- nREPL, and the Emacs support for it, nrepl.el
- Gobby, a free collaborative editor
- A Leiningen and Clojars status update
- The potential vulnerability of builds that rely upon remote / third-party artifact repositories
- Maximizing community participation in open source projects
- “Pull requests aren’t a joking matter, people!”
- Empowering userspace, i.e. extending systems in the same way and language used to build the system itself viz. “the Emacs way”
- Phil’s current reading list:
- The Lady Tasting Tea (“a pop-sci take on how statistics has influenced science”)
- True Names (“sci-fi precursor to cyberpunk”)
- The extensibility and flexibility of the Heroku / buildpack model
- OCaml, Factor, Haskell, elisp, and even buildpacks for NES roms
- “Making sure we can push it to the limits” of maximizing the leverage available to users within the system.
Episode 7: Anthony Grimes; tools and projects; minimum viable snippets
Posted: August 30, 2012 Filed under: Conversation, Episode Leave a comment »
I had a lot of fun catching up with Anthony Grimes (@IORayne on Twitter and Raynes in #clojure irc). One of the most prolific Clojure programmers I know (in terms of project count anyway!), Anthony has been a fixture in the community for years, and was the “sponsoree” of the 2010 Clojure Conj scholarship. He works at Geni, helping to make their social ancestry site more awesome every day, but we talked about all sorts of stuffs.
Enjoy!
Listen:
Or, download the mp3 directly.
Discrete Topics
- Some questions and topics came from Colin Jones via @MostlyLazy (watch for scheduled show announcements and send us topics and questions!)
- Jiraph, a Clojure graph database implemented at Geni
- flatland, Geni’s open source organization (including Anthony, Alan Malloy, Justin Balthrop, and Lance Bradley)
- lein-newnew, Leiningen‘s extensible scaffolding plugin
- Try Clojure, a browser-based Clojure REPL
- RefHeap, a pastebin written in Clojure
- Using your cell phone for your primary internet connection
- Millenicom, dedicated 3G/4G internet access
- Whether a programming language should present a “minimum viable snippet”or not
- The J programming language, an APL-style language that happens to not have an easy-to-find minimum viable snippet (here’s some)
- The impact of superficialities, e.g. rejecting Common Lisp in part due to its UPPER-CASE-SYMBOLS
- Cake (another Clojure project management tool whose contributors joined forces with the Leiningen team)
- Impact of the 2010 Clojure Conj Scholarship
- Ambrose Bonnaire-Sergeant and his Google Summer of Code project, Typed Clojure
- Elixir, a Ruby-esque language implemented on top of Erlang with various Clojure influences
- Lisp-flavoured Erlang
- Erlang’s (lack of) support for Unicode strings
- Anthony’s post on using Emacs, Sublime Text, and vim when programming in Clojure
- evil-mode, vim emulation in Emacs
- “Vim’s cliff-like learning curve”
- Eclim, a way to embed a vim editor within Eclipse
- Light Table
- Uses CodeMirror as the basis of its editor
- Cloud9 IDE, which uses Ace as its foundational editor component
- Browser-based code editors as a likely instance of an initially low-end technology moving upmarket to disrupt established players (viz. Christensen’s The Innovator’s Dilemma)
- Cats. (Sorry, inside baseball there.)
Episode 6: Chris Houser; Clojure surveys; getting the “little things” right in languages; Yegge-rama; ClojureScript REPLs
Posted: August 14, 2012 Filed under: Conversation, Episode 6 Comments »I was stoked to reboot Mostly Lazy by talking yesterday with Chris Houser (a.k.a. Chouser), this time via Skype. It’s good to be back!
Enjoy!
Listen:
Or, download the mp3 directly.
Discrete Topics
- The 2012 State of Clojure survey results came in recently
- Discussion on the effect of duplicate values in set literals (and duplicate keys in map literals) in Clojure (from a thread on the main Clojure list; here’s a link to my post in that thread that I described on twitter as a bit of “software archeology”)
- Clojure’s “pace of development” / cadence and the failure modes of language development
- Potentially customizing the characteristics of thread pools (and more?) used by agents and futures (from a thread on the clojure-dev list)
- Rough corners around agents, multimethods, namespaces, etc., and the potential for alternative implementations of the same
- The podcast has now been anthropomorphized into a Twitter account @MostlyLazy — tweet your questions, topics, etc. there, and
- Chouser’s precis re: Lonocloud now that he’s been working there for some months
- The sad statuses of Raposo and Longbottom, related to Chas and Chris’ respective talks at Clojure Conjand Clojure/West (link to Chris’ talk pending the release of its video)
- Check out clj-stacktrace, the nexus for all improvements to Clojure stack traces
- Get your talk submissions for the third Clojure Conj in; CFP closes August 24th
- What sucks about Clojure…and why you’ll love it anyway, from Clojure/West
- Engineering(,) A Path to Science: “I don’t want to die in a language I can’t understand”, Richard Gabriel’s talk at Clojure/West (video link not yet available)
- In the aftermath of Steve Yegge’s recent tenuous association of different approaches to solving problems in software with dubious terminology from the political sphere:
- Recognition of Yegge’s prior good works, e.g. Execution in the Kingdom of the Nouns
- What “Worse is Better vs The Right Thing” is really about, talking about how economic choices influence technology choices
- Using ClojureScript to write CouchDB views, and writing PostgreSQL stored procedures via plv8
- Piggieback, which enables any nREPL-based Clojure tools (e.g. Leiningen, Counterclockwise, nrepl.el, REPL-y, etc.) to start up and use a ClojureScript REPL as easily as one can from a Clojure REPL on a command-line terminal.
- nrepl.el is looking like a decent, well-supported alternative to SLIME for Emacs users wanting to use nREPL
- “I’ve been using Linux for a long time, I have low standards!”
Finally, a non sequitur: Chris kindly responded to my RFY (Request for Yak) with this fine example of an indecently-shaven specimen:
Episode 0.0.5: Chris Houser at Clojure Conj 2011
Posted: March 13, 2012 Filed under: Clojure Conj, Conversation, Episode 1 Comment »Recorded November 12th, 2011, the fourth and final recording in a series of conversations from Clojure Conj 2011.
Chris Houser (usually known as chouser online) has been working with Clojure longer than nearly anyone else; he started tinkering with the language in early 2008, and was a fixture in #clojure irc and on the mailing list for years. His contributions to the language, early libraries, and community through his always genial and insightful presence are hard to overstate. More recently, he has coauthored the excellent Joy of Clojure along with Michael Fogus, and is now working with Clojure daily over at Lonocloud.
It’s been my privilege to know and work with Chris a bit over the years, and, as always, it was great to talk with him in person.
Enjoy!
Listen:
Or, download the mp3 directly.
Discrete Topics
- “Everything I learned, I [learned] on irc?!”
- Macros (a.k.a. “compile time metaprogramming”) in Scala? Project Kepler
- Rich Hickey once made a visit to the Western Mass. Developer’s Group, and delivered one of his great early talks on Clojure, complete with an ants demo. My post on the event, and video.
- “Tooling is a canard.”
- Chouser wrote “the first ClojureScript” years ago, a proof of concept using JavaScript as a host for a Clojure implementation. (Don’t go looking for it, I think it’s dropped off the internets by now; check out the “real” ClojureScript if you want a Clojure for JavaScript.)
- error-kit — don’t use that though, you should almost surely use Slingshot instead for advanced error handling
Episode 0.0.4: Antoni Batchelli and Hugo Duncan at Clojure Conj 2011
Posted: February 3, 2012 Filed under: Clojure Conj, Conversation, Episode 2 Comments »Recorded November 12th, 2011, third in a series of conversations from Clojure Conj 2011.
I caught up with Hugo Duncan and Antoni Batchelli (everyone calls him Toni
during one of the lunch breaks at the Conj. These guys have been on a tear with Pallet, an open source Clojure project that Hugo started in early 2010 to shave one of the hairiest yaks around, the automation of provisioning and management of computing infrastructure. The result is a tool and library that provides a classically Clojure abstraction for controlling nearly any environment, from cloud nodes to virtual machines to the rackmounts you have downstairs. Since it is their full-time job — Toni and Hugo have built a business around the project — most of our discussion centers on Pallet, its history, and how people are using it.
Near the end, Hugo and I talk some about his other work in the Clojure world, which has generally been related to tooling around Emacs and Maven.
Enjoy!
Listen:
Or, download the mp3 directly.
Discrete Topics
- Clojure/West, happening March 16-17, 2012 — be there!
- Disclojure, a great stream of links to Clojure tutorials and news maintained by Toni
- Pallet, representing computing infrastructure with Clojure abstractions
- Chas has used pallet to automate provisioning and configuration of Clojure webapps and CouchDB clusters (old, OLD links!)
- Often mentioned in the same breath as Chef and Puppet on the now-defunct IT Management and Cloud Podcast (by Michael Cote and John M. Willis)
- Storm, by Nathan Marz @ Twitter — uses pallet to simplify deployment and operations
- pallet-hadoop — uses pallet as a library to automate hadoop operations
- Support for tons of different computing infrastructures:
- AWS’ Elastic Beanstalk
- GoGrid (using Clojure because of Pallet!)
- swank-clojure
- JPDA (Java Platform Debug Architecture), includes the Java Debug Interface
- Clojure Debug Toolkit
- Alternative Maven support for Clojure, written in Clojure: zi
- clojure-maven-plugin (by Mark Derricut a.k.a. talios)
- Leiningen
Outro
This episode’s outro is a piece by Christopher Ford. Using a synthesized cornet by Jennifer Smith, he produced an abbreviated version of a piece where a set of chords continually fall out of time with a simple five-note melody. Of course, full source to the piece is available for your Overtone hacking delight.
Episode 0.0.3: Chris Granger at Clojure Conj 2011
Posted: December 30, 2011 Filed under: Clojure Conj, Conversation, Episode Leave a comment »Recorded November 12th, 2011, second in a series of conversations from Clojure Conj 2011.
I had a chance to sit down with Chris Granger on the last night of the Conj. It’s been fun to watch him over the past months put out a set of really pleasant-to-use and extraordinarily well-documented and well-packaged libraries, and he’s turned into a great presence around the Clojure sphere in general. Chris works with Clojure daily for his current employer, ReadyForZero — a Y Combinator-funded startup that helps people get out of debt — where he helped port a Python & Django codebase over to be 100% Clojure. (Yup, the big tagline for this episode is, “Y Combinator startup bets business on Clojure!”
In addition, he has a unique history, having recently worked as a program manager Microsoft, working on Visual Studio…so, our discussion was wide-ranging.
After we recorded this, it was announced that Chris will be teaching two training sessions on Clojure web development at the new Clojure/West conference in March. If you’re new to Clojure and want to jump-start your skills for it in the web space, signing up for one of those sessions would likely be a good way to get further faster.
Enjoy!
(BTW, don’t miss the notes on the Overtone-produced intro and outro below…)
Listen:
Or, download the mp3 directly.
Discrete Topics
- Chris is known as ibdknox on Twitter and elsewhere
- Lead developer for:
- Noir, a web microframework that sits on top of Ring and Compojure
- similar in spirit to Ruby’s Sinatra, provides “sensible defaults”
- Korma, a Clojure abstraction over SQL (notan ORM!)
- Efficiently write composable SQL in Clojure
- similar to LINQ to SQL, Python’s sqlalchemy
- (We used Korma for some RDBMS examples in the book! — Chas)
- Pinot, a ClojureScript companion to Noir
- Clojure-idiomatic browser DOM manipulation (instead of using gclosure directly) and canvas API
- Noir, a web microframework that sits on top of Ring and Compojure
- Chris was formerly a program manager for the Visual Basic and C# experience in Visual Studio at Microsoft
- Counterclockwise, the Clojure plugin for Eclipse
- Support for Clojure in TextMate via textmate-clojure
- clojure-jack-in, the newest (simpler) entry point for swank-clojure
- Leiningen and cake have merged forces
- cljs-watch, a ClojureScript directory watcher
- Clojure/West
Bumpers
Last episode, I put the call out for people to send in Overtone-produced sounds to serve as intro and outro pieces. Here’s some info on the clips used in this episode.
Intro
Jen Smith coded up bell sounds from scratch using Overtone’s sine-wave ugens, and then composed them to produce a rendition of Troika, the fourth movement of Lieutenant Kije by Sergei Prokofiev. The code itself ended up being added as an example in the core Overtone repo, and was discussed at some length on the Overtone mailing list here.
(Note: when I recorded the results of Jen’s code, I used a bell metronome with a beat of 250; perhaps that’s not “correct”, but it suited my personal taste for the tune.
Outro
Produced by Damion Junk, the intro was part of a longer track generated by a bracketed L-system, which is “a variant of a formal grammar, most famously used to model the growth processes of plant development”. Damion used a library he wrote for working with L-systems to produce generated data for Overtone. Here’s the source for the specific L-system he used for the intro track:
(def descending-moon {:v "RN+-<>[]"
mega ">>>[-----N][++N][++++++N][<<<NR]"
:productions {\N "RN++NN----N"
\R "RR"
\> ">"
\< "<"
\+ "+"
\- "-"
\[ "["
\] "]"}})
