News for hackers. Stuff that matters.

jonase

Re:Finnish Filmmakers Gave a Drone a Chainsaw on Monday April 04, 2016 @01:50PM (#11423827)
Disney are apparently using drones to combat paparazzi drones when filming Star Wars VIII: http://consequenceofsound.net/2016/02/drones-are-patrolling-...
Re:Ask HN: Best books to understand Bitcoin? on Wednesday July 29, 2015 @12:36PM (#9969785)
I learned a lot from Mastering Bitcoin by Andreas M. Antonopoulos (http://shop.oreilly.com/product/0636920032281.do)
Re:Clojure 1.7 is now available on Tuesday June 30, 2015 @04:54PM (#9808361)
Thanks! So if I read your comment correctly there is nothing inherently wrong with the Comparable interface it's just that Clojure's sorted sets and maps could have used protocols instead. I can see why that would be useful for extending existing types (as you mentioned).

OTOH it’s not often I’ve seen third-party types that I wanted to be comparable but were not. In general I think that if a type does not implement a core interface you have to consider the possibility that the designer chose not to implement it for a reason.

Re:Clojure 1.7 is now available on Tuesday June 30, 2015 @04:14PM (#9808128)
Sorry to jump in on an interesting discussion but I got interested in this part:

> It's also disheartening to see that the sorted-set wants things that implement Java's Comparable.

Could you quickly explain what's disheartening about Java's Comparable interface and what the available options are?

Re:Ask HN: Who's using Clojure in production? on Monday November 03, 2014 @10:33AM (#8551242)
At akvo.org we are using Clojure in production and hopefully soon also Clojurescript.

We are using Clojure on top of existing Java functionality, and we're moving our Ember based Dashboard over to Clojurescript/Om.

I'm very interested in working with SVG in the browser and have found it to work pretty well with React. I built a demo (Code: https://github.com/jonase/elements, App: http://jonase.github.io/elements/) using one of the (increasing number of) React wrappers for ClojureScript (Chrome only for the moment I'm afraid)
Re:Elm 0.12.1: Fast immutable arrays on Friday May 02, 2014 @03:11PM (#7687530)
Maybe mori could include core.rrb-vector[1]. Other interesting persistent data structures (by the same author) are persistent sorted maps and sets[2].

[1] https://github.com/clojure/core.rrb-vector [2] https://github.com/clojure/data.avl

Re:Show HN: Pixel Art Editor built with ClojureScript/Om on Thursday April 17, 2014 @05:55AM (#7602748)
Weekend project? That's amazing! Is the source available? I would love to read it.
Re:Why use Clojure? on Tuesday December 24, 2013 @02:25PM (#6960731)
Am I missing something here or is the algorithm you describe simply: "Find the smallest even and odd number in a set of numbers?" This shouldn't be hard to do in any language.
Re:The Kibit rule system on Monday November 18, 2013 @02:08PM (#6756188)
The best source I've found is at http://rewriting.loria.fr which contains lots of interesting papers.
Re:Idiomatic Clojure with LightTable on Monday November 18, 2013 @09:33AM (#6754425)
If someone is interested in how kibit is implemented I've got some slides at http://jonase.github.io/kibit-demo/. It's quite easy and a good (I think) introduction to core.logic.
Re:The Functional Database [video] on Saturday October 12, 2013 @09:04AM (#6538579)
It means that you can write pure functions (in the functional programming sense) where one (or more) of the arguments to your function is a _database value_. In haskell the types to a query function would perhaps look like this:

    query :: Query -> DBValue -> Result
instead of

    performQuery :: Query -> IO DBConn -> IO Result
Re:Himera: ClojureScript Compiler Web Service on Tuesday March 27, 2012 @02:04PM (#3762824)
or maybe even

    cljs.user> (.css (js/jQuery "body") "background" "cyan")