Re: Protocols considered harmful?

2018-05-22 Thread Piyush Katariya
https://www.braveclojure.com/multimethods-records-protocols/ https://stackoverflow.com/questions/8070368/clojure-multimethods-vs-protocols -- 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 N

Re: Protocols considered harmful?

2018-05-22 Thread Piyush Katariya
This article also explains it nicely. https://8thlight.com/blog/myles-megyesi/2012/04/26/polymorphism-in-clojure.html -- 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: Protocols considered harmful?

2018-05-22 Thread Mark Engelberg
There are two schools of thought: 1. Multimethods are the most versatile and work better at the REPL. Use protocols only where necessary for performance (and doing so early is premature optimization). 2. Protocols are the most performant and handle the most common polymorphism need - single dispat

Re: Protocols considered harmful?

2018-05-22 Thread Erik Assum
As Mark Engelberg writes, if you work in a team, you need to figure this out with the team. One point to add to the discussion is that if you find yourself implementing “several” multi methods per type, it might be worth creating a protocol, just to make it easier for the consumer to understand

Re: Protocols considered harmful?

2018-05-22 Thread Shantanu Kumar
Hi Sam, In my experience, protocols are a great mechanism for extensibility. Let's say you build an abstraction with a default implementation. If your abstraction is based on protocols, somebody can extend the abstraction to build a different implementation (that possibly integrates with anothe

Re: New idea & POC for a Kubernetes/Clojure interface

2018-05-22 Thread Punit Naik
Is there any documentation around spinning up K8s cluster on Amazon EC2 instances? On Tuesday, November 7, 2017 at 8:34:35 AM UTC+5:30, Blake Miller wrote: > > Here's a little something I cooked up this weekend, to interact with a > Kubernetes cluster from Clojure: > > https://github.com/blak3mi

Re: New idea & POC for a Kubernetes/Clojure interface

2018-05-22 Thread Blake Miller
Yes, kops has a tutorial that walks you through it: https://github.com/kubernetes/kops/blob/master/docs/aws.md You just need an AWS account to start. HTH On Tue, May 22, 2018 at 1:20 PM, Punit Naik wrote: > Is there any documentation around spinning up K8s cluster on Amazon EC2 > instances? >