230 karma · joined November 30, 2012
______________
Currently living in Melbourne. Feel free to get in touch...
Not intrinsically, IMO. The main value of monads is the shared interface, and its utility is contingent on tools that recognise that interface.
In that respect, it's as useful as providing e.g. a `map` method for promises, arrays, dictionaries, etc. Though in my experience JavaScript rarely seems to be written with this kind of generic interface in mind (e.g. there's no coherent interface mandated between classes in the standard library).
For anyone unfamiliar, the `then` of Promises corresponds to the monadic `bind` or `flatMap` (if the given function returns a Promise) or the functorial `map` (if the given function returns a plain value).
A monad then is just the interface shared between Promises (`then` and `resolve`, collections (`flatMap` and `wrap`), etc.
The hard part for me was visualising the pattern for more complicated types like parsers (functions from strings to results) and continuations.
Any idea on how to go about this in JavaScript? The binary representation of the float isn't as easy to come by (compared to C, for example), but I wonder if you couldn't get a decent approximation with Math.log2.
Discussion here:
https://www.reddit.com/r/OutOfTheLoop/comments/3bw39q/why_ha...
One can only speculate on the grounds for such swift termination, but this and the handling of the recent subreddit evictions suggest that Reddit has difficulty with PR (certainly ironic in this case)...
Maybe Reddit is trying to pivot, perhaps into something more like Digg?
Sometimes I wonder if linguistics has more to offer composition than algebra (speculation, as I know next to nothing about (non-CS) linguistics).
> It's not that this is an impossible problem. It's more that the set of people who can code machine learning algorithms and understand music theory and are creative enough to invent new algorithmic techniques and to create more-than-listenable music is incredibly small - double figures, if that.
Are you pursuing something like this? Or know anyone who is? This is one of my main interests (alongside better interfaces for composition and well, making music). I'm actually back at University for my second degree to study this sort of thing.
If you have a blog or anything I'd be interested to find out...
Without privacy (or with pervasive surveillance), we might never have achieved the critical mass required to overturn historical legislation regarding blasphemy, homosexuality, drug use, etc.
In other words, privacy provides the necessary sand-box for the evolution of law.
j2kun's site [2] is highly recommended for anyone looking for a foothold into CT. It begins with a brief look at the universal property of free monoids (by implementing lift for lists), followed by various constructions (many in the category of Set). It (currently) ends with a discussion of map, filter, and (the universal property) of fold. Some constructions/proofs are provided in ML (which I've been meaning to get acquainted with (and while "clunky" is better suited than Haskell for the intended purpose, imo)).
So yeah, thanks again! I hope you get time to continue the series...
* Skinny arrows as a shorthand for functions (for methods and constructors that don't get 'this' from outside.
* Rest parameters with trailing arguments, e.g.:
function zip (...xs, f) { ... }
Seems like an oversight but I'm sure there was a reason (anyone care to comment?)...I guess arguments parsing isn't quite dead...
Anyway, thanks for your service, bookmarked... (I've been thinking of doing something similar). Good luck with finding a solution to this problem...
Something that I have noticed is an increase in self-control. Previously my relationship to food had been rather habitual and sometimes even addictive. I've found that fasting has made it a lot easier to control what I eat on the other days...
You might say that this kind of thing validates a particular way of thinking for people who already lean that way.
It's not likely to inspire rape, but it has the potential to reinforce a negative perspective of women.
Very interesting.
If you don't mind my asking, what kind of work are you typically doing with d3? Visualising what kind of data and for what purpose?
I find that for a lot of higher-level ideas much of the heavy lifting isn't necessarily through application of functional ideas per se, but through more sophisticated type gymnastics.
Because expressions are often written in short-hand (to expose structure), as well abbreviated and underspecified (to get the compiler to do the work), making sense of academic code can be a challenge.
In another life I'd have dedicated more time to learning the fundamentals (of Programming Language Theory and Category Theory), because I find the whole field insanely facinating. Maybe I'm looking for a short-cut but there isn't one?
[1] http://eprints.nottingham.ac.uk/237/1/monparsing.pdf [2] http://blog.sigfpe.com/
My main issue with existing books and tutorials is that I'm left in the dark about the more interesting/advanced parts of Haskell.
Some of the areas I would like to have a better understanding:
- More advanced kinds of monads e.g. Logic, Continuation
- Monad Transformers
- Arrows
- Rank-N types
- GADTs
- Category theoretical ideas e.g. Bananas and Lenses
- Type derivatives and TypeClass abuse c.f. Conor McBride
- Control patterns like Iteratees, Generic Zippers c.f. Oleg Kiselyov, Chung-Chieh Shan
I have an intuitive grasp of the above, but to me Haskell is more about programming with types than anything functional.
On the practical side, it seems like Haskell excels as a language processor, and parsing/compilation would be a great way to explore how to structure certain kinds of applications (like web servers, graphics pipelines, etc).
Please don't make it too real-world, I already have bash ;)
My understanding is that one of the predictions of LQG is that photons of higher energy are likely to lag behind those of lower energy due to propagation through spin-foam (meaning velocity isn't c but dependent on energy or frequency).
It seems like this is what they're getting at in [1]...
Would something like this categorically invalidate something like LQG or merely some of its assumptions?
[1] http://phys.org/news/2013-01-spacetime-smoother-brew-knew.ht...
Seems all that's really required to kickstart life and evolution is any self-replicating structure.
Chemicals are well suited for creating complex structures, but it doesn't rule out self-replicating forms embedded in other kinds of matter held together with other kinds of force.
- Unique and unforgeable references for capability-based security (e.g. the Waterken Server)
- Serialized continuations, or unforgeable references to server-side continuations (as in continuation-based web servers)
Adobe and Microsoft can sustain their products being pirated wholesale partly because it undermines their smaller competitors.
It's easy to justify downloading episodes of syndicated television shows, platinum albums, or computer games from 1992, but as a startup-centric site, it seems more relevant to question the impact of piracy on small independent businesses/artists/producers.
Maybe they should be "grateful for the publicity", or "flattered" that their product has been downloaded thousands of times on thepiratebay.org. Maybe the losses incurred are made up for by a wider audience and more sales once the user has reached maturity...