Better HN
topnewbestaskshowjobs
Log inSign up

grumpyprole

4,485 karma · joined Jun 30, 2015 (11y ago) · 2,043 submissions

Submissions

comment 7y ago · link · parent

They also pay 0.005% tax in Europe, sure it's legal, but is it morally ok? They certainly benefit from all the European infrastructure and academic research that they are not contributing back to. Some put the figure owed at 14.5 billion dollars:

https://observer.com/2019/09/apple-ireland-tax-lawsuit-europ...

comment 7y ago · link · parent

I don't think modern Haskell is a single paradigm language. As I said above, it has good support for imperative programming and lots of imperative code has been written in Haskell. Even the GHC compiler is full of imperative code and uses algorithms with mutation where it makes sense (e.g. unification).

comment 7y ago · link · parent

Depends on what you mean by "scalable". Given that Haskell can track the use of effects and mutable state in its type system, might suggest that it allows such techniques to scale beyond a language that does not. Haskell also has syntactic and compiler support for imperative code, no encoding is necessary, so I don't think your analogy of writing FP in assembly is fair. Writing imperative code in Haskell is much the same as in Java.

comment 7y ago · link · parent

Haskell is perfectly capable of expressing imperative algorithms and mutable state. Such algorithms are still expressed using pure functions, pure functions that return IO actions.

comment 7y ago · link · parent

Monads let you redefine what a statement is. This is very powerful and makes Haskell my favourite language for imperative programming. There's no need to modify the compiler for e.g. Async/Await, it can be a library. A Monad instance has a set of properties or laws that it obeys. This gives you a general understanding of what e.g. filterM will do, i.e apply an effectful filter function such that the effects are sequenced in the order of the input list.

comment 7y ago · link · parent

There's an opportunity for someone to sell "reasonably" secure hardware at this price point. Especially since Intel certainly isn't selling anything that fits this description.

comment 7y ago · link · parent

I use it with the excellent USB Audio Player Pro. It uses its own driver for external DACs, I guess because the Android one is not fit for purpose.

comment 7y ago · link · parent

At home I use a dragonfly red DAC paired with some open back sennheisers. But even when I'm out and about I benefit from FLAC. I use some noise cancelling Sony headphones which use the lossy LDAC codec over Bluetooth. My FLACs sounded noticeable better over LDAC, I guess because the music is only compressed once.

comment 7y ago · link · parent

I use the dragonfly red, a fantastic dac and amp that was significant upgrade over the built in phone one.

comment 7y ago · link · parent

The question is, are they selling in large enough quantities to justify a market for software.

comment 7y ago · link · parent

Is there even an Android tablet market anymore? (Excluding Kindle Fire)

comment 7y ago · link · parent

Am thinking about picking one of these up for my daughter, 32GB seems a bit stingy though, will that be enough for apps and games?

comment 7y ago · link · parent

> Products built in haskell don't seem to have dramatically lower maintenance costs. They don't tend to have features that other products don't have.

That is your anecdote, mine is the opposite. Using Haskell at my place of work we have lower maintenance costs than other competitors that use Python. We also have features they don't have, such as checked purity (a guarantee that a financial calculation is reproducible) and transparent batching/caching/provenance (made possible by Haskell's expressiveness). None of this would be possible in Python or Java.

Language/notation, is IMHO critical for the ability to think using the right abstractions. To take your argument to the extreme, we should all be still using machine code, because tools don't matter.

comment 7y ago · link · parent

There is unfortunately a large learning curve for production Haskell. It's a very different language to most imperative object-oriented ones, that are all broadly very similar. However, the concepts that folks will learn (Monads, Monoids, Functors, Profunctors etc etc) are taken from math and will likely be around for another 100 years. This is not disposable knowledge, and for me at least, it made a refreshing change from learning ad-hoc concepts from each successive OO fad framework I had to deal with.

comment 7y ago · link · parent

There was a hackernews post yesterday where the top voted comment asserted that computer science and maths is (in practice) only useful for data structures and algorithms; everything else needed either physics or social science. This is why Haskell is important. Haskell will help teach people the mathematics behind program construction: how to write composable code, how to reason about effects, how to write consistent, general, less ad-hoc APIs.

comment 7y ago · link · parent

Not true at all. We live in a world were marketing determines the standards used. The current trend is actually to give programmers less guidance on writing correct, composable code ("Dynamic" scripting languages).

comment 7y ago · link · parent

Computer science and math is useful beyond just algorithms and data structures. Understanding the mathematics behind program construction would allow more programmers to write composable code and more general, re-usable, less ad-hoc APIs; and do a better job of gluing existing components together.

comment 7y ago · link · parent

The Emacs bindings were designed for ease of learning, not ergonomics. For example C-n and C-p for next/previous, stretches the hand and uses the weak pinky for the very commonly used cursor keys (Vim uses the home row). I do use these bindings myself, but I strongly disagree that they are ergonomic or "excellent" (!)

comment 7y ago · link · parent

XML and especially XML schema are hugely complex and almost laughably difficult to bind to any mainstream programming language. It took Java over a decade to produce a binding that could (perhaps) handle an arbitrary schema. Types boil down to sums and products, I'm not convinced the designers of XML/XSD understood this. XML has so many overlapping concepts: elements, attributes, enumerations, choices, unions, sequences, lists, element/attribute groups, substitution groups, facets, simple types, complex types etc etc IMHO it's ad-hoc and ugly; we deserve better.

comment 7y ago · link · parent

I actually still use the (admittedly awful) Emacs bindings. I have both ctrl and alt available as thumb keys on both sides (using a Kinesis Advantage). I also activate these modifiers using an opposite hand to avoid "chording". This was enough to fix my RSI and keep using the bindings I am familiar with.

comment 7y ago · link · parent

The Kinesis Advantage completely cured my RSI. It's also much more pleasant to type on than any other keyboard I've tried. Worth every penny. I also use a Kensington Slimblade trackball for when I can't avoid moving a pointer.

comment 7y ago · link · parent

With regard to the details sure, but the fundamentals should be studied and understood. That's why this blog is not attempting to recreate the entire of Microsoft Excel.

comment 7y ago · link · parent

To quote Feynman, "what I cannot create, I do not understand".

comment 7y ago · link · parent

> I still don’t appear to be wrong.

Procedures are not functions! I can understand the confusion since both Java and OCaml will let you define both. Procedures have side-effects, e.g. mutating global state, (pure) functions don't. Functional programmers work with predominantly immutable values and this requires a very different style of programming - one that many people struggle with if they have not had much exposure to it. Functional programming languages also have syntax and abstractions (often taken from maths) that are not used in object oriented programming. Why program with functions and immutable data? It enables better composition.

comment 7y ago · link · parent

Thanks for the detailed reply!

comment 7y ago · link · parent

> It's a little known fact but the kind of FP programming we do in Scala tends to be more pure than what happens in OCaml, F#, Erlang, Clojure and others.

I have only dabbled in Scala, but IMHO it's more suited as an OCaml with first-class modules. Why not use Haskell, if you don't need the JVM?

comment 7y ago · link · parent

It's a pure function because it doesn't do any IO. It returns an action that, when run, performs the IO. Because it's a pure function, we have referential transparency, we can safely replace the function call with its computed value (the action) anywhere in the program.
1
343536
69