HN user

wandermatt

106 karma
Posts0
Comments30
View on HN
No posts found.
Why am I here? 13 years ago

Options for home broadband have improved, but cellular data speeds are low and free wifi is uncommon.

"This is a very nice theoretically clean and powerful sequential data structure, but in practice it is very very very very very very very very very very very slow... very very slow. No one uses finger trees because they're so slow." -Daniel Spiewak

From his 2011 NEScala talk on functional data structures, covering practical considerations like locality of references and caching. Available on vimeo http://vimeo.com/20262239

Why I Left Google 14 years ago

In Scala 2.7 the signature for map, defined in Iterable[+A], was def map[B](f : (A) => B) : Iterable[B]

That seems fairly close to the Haskell signature, although somewhat less readable. However, in Scala 2.8, things got more complicated with the addition of the implicit. Consider two functions that I might apply to a collection of integers:

Set(1,2,3,4).map{ _2 } // Set[Int] = Set(2, 4, 6, 8)

Set(1,2,3,4).map{ _.toString } // Set[String] = Set(1, 2, 3, 4)

Nothing surprising here, we provide a method A->B and use it to map from Set[A] -> Set[B] Now lets use the optimized BitSet collection, which efficiently stores integers:

BitSet(1,2,3,4).map{ _2 } // BitSet = BitSet(2, 4, 6, 8)

BitSet(1,2,3,4).map{ _.toString } // Set[String] = Set(2, 4, 3, 1)

Notice that the collection type is BitSet for the function with return type of Int, but plain Set for the function with return type of String. This functionality is brought to you through the implicit parameter.

I enjoyed the part where Phil provides us with the quote ("Some even say the Web is ‘dead meat’.") even though Joe Hewitt never said that, and that wasn't what he argued in his piece.

Although most people who use these common programs have to customize them extensively. Using emacs without my .emacs file can be as disorienting as using another editor.

Not sure if you're thinking of TextMate or TextWrangler. TextWrangler does have a Mac-like UI and uses Apple-style keyboard shortcuts. TextMate's UI is not particularly Mac-like, it exposes shell commands quite directly, and most of the macros are shell/ruby/etc scripts.

To illustrate the difference, TextWrangler has a menu command to sort the current document, and a menu command to remove duplicate lines. TextMate has "Filter Through Command" which lets you apply arbitrary command like "sort | uniq" to the current document.

There is a free 30 day of demo of TextMate. Why not try it and then ask nomad whether it's worth it? The relevant thing is what works best for you - if you are a programmer then the price of any of these is inconsequential (yes, even BBEdit) given how much you will be using it. On the Mac, more so than on other platforms, you will find that shareware apps are frequently best-of-breed.