Skip to content

Instantly share code, notes, and snippets.

@suhailshergill
suhailshergill / soapbox.md
Created July 28, 2016 03:12
thoughts on IBM bluemix

This is in relation to the IBM Bluemix talk given at https://www.meetup.com/Toronto-Apache-Spark/events/232329359/ on July 27, 2016.

The main utility being highlighted by IBM folks was their ability to provide fair and efficient allocation for workflows. The key element needed for them to be able to deliver their solution was to be able to be able to schedule at a hierarchy of levels. A thing to note is that Apache Mesos/DCOS allows you to write your own customized allocation modules and/or tune the default hierachical allocator.

I would be interested to see a comparison/benchmark between a properly tuned allocation module (customized hierachical DRF or otherwise) for Mesos with IBM bluemix.

@suhailshergill
suhailshergill / IDsImpl.scala
Created February 14, 2017 04:53
concatenable IDs
/**
* a sans-shapeless solution to the problem described and solved here:
* <https://github.com/AlecZorab/solid-disco/blob/master/ShapelessIds.ipynb>. note
* that the solution below uses the tagless final approach to bake in
* extensibility for multiple interpretations (which adds to the complexity),
* but it's not strictly needed for the problem at hand.
*
* per aleczorab: "if I have multiple different classes with a field called
* (say) `id` and a `String => T` constructor, how do I make a `(T, String) =>
* T` whilst minimising the amount of boilerplate needed for each different