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

People get upset when the industry fails to make progress and adopt good ideas from academia. Java adopted GC in 1995 and Lambdas in 2014. The rate of progress is frustratingly slow for many. I gave up Java for Haskell 8 years ago and couldn't be happier. In fact, I'd rather switch careers than go back to Java, the productivity and the ad-hoc frameworks would be too painful.

comment 7y ago · link · parent

> they're different languages, suited to different tasks.

What tasks exactly do you think Java is better suited to than Haskell? The "innovation" of Java was to take the runtime of a high-level language and combine it with the productivity of a low-level one. It is not well particularly suited to systems programming or high-level programming (e.g. ML and analytics, parallelism, concurrency).

comment 7y ago · link · parent

I would rather hire someone with that mindset. They are more likely to be interested in solving the actual business problems. The junior guy excited about frameworks and fads, is much more likely to create complexity (usually from vast numbers of dependencies and inappropriate technology choices). The flip side of course is that if you already have a mess, then the junior guy might be a better choice to maintain it.

comment 7y ago · link · parent

Well my ThinkPad actually has drainage channels and holes to protect it against liquid spillage. It's also far more repairable and modular. With Apple's obsession with thinness and the corresponding sales, I actually fear for the future of all function-over-form laptops.

comment 7y ago · link · parent

Judging by the number of failed magsafe cables I've seen, I suspect the strain relief was more decoration.

comment 7y ago · link · parent

Can functional programming really be made more accessible by adding curly brackets? I came from C-style languages and now much prefer the syntax of Haskell and OCaml (although Haskell is my favourite). Learning the syntax was trivial compared to the paradigm and semantics.

comment 7y ago · link · parent

i3 has much better multi monitor support.

comment 7y ago · link · parent

I do not see Go or Dart as being general purpose, we will have to agree to differ.

comment 7y ago · link · parent

Ah, maybe I'm out of date then.

comment 7y ago · link · parent

I can recommend Runbox, it's run from Norway which allows for privacy.

comment 7y ago · link · parent

> It would be equally (perhaps more) red flag if Google permitted this in-house

But Google and Facebook have permitted this in-house (Go,Dart,Hack,Reason etc). They have since open-sourced them, but these projects are still run from within. I don't see this as a red flag, these languages all have good reasons to exist.

> Google’s in-house monorepo tooling that grew out of a series of historical Perforce accidents is a huge red flag of dysfunction

Google probably has the largest repo in the world, no off-the-shelf product is going to work. I fail to understand why building their own tools to accommodate their own special needs is a red flag of dsyfunction?

comment 7y ago · link · parent

So if Google or Facebook write themselves a new language (or two), I'm guessing you are ok with that? I have worked at Standard Chartered and their compiler was written by a world renown former CS professor, who also wrote the worlds first Haskell compiler. The quant code written in this language is some of the best I have ever seen on the street; certainly better than the python shops (who are using forked hacked-up variants of Python anyway). Goldman Sachs also had a huge advantage for many years thanks to their proprietary technology. Sometimes an in-house language is actually a sign of innovation.

comment 7y ago · link · parent

Nice work! It would be interesting to compare the latency to the new Kinesis Advantage 2 keyboard, which has brand new firmware.

comment 7y ago · link · parent

What's so bad about Turing Completeness? I haven't a decent look at Dhall, but I'm betting I could probably write an exponential Dhall program that won't terminate in the lifetime of the universe.

The real reason for giving up Turing equivalence was probably to get dependent types. This gives very powerful static guarantees, including the presence/absence of fields under non-trivial record operations such as merge. In using dependent types, they have also had to give up significantly on type inference, which is really going to annoy the average JavaScript/Ruby programmer.

comment 7y ago · link · parent

> I am still a customer, even an advocate, because all the competitors produce mostly crap, insecure, poorly-made and/or invade your privacy

Not true. There is hardware that is better made and more reliable than Apple (e.g. ThinkPad) and operating systems that are far more secure (e.g. Qubes).

comment 7y ago · link · parent

From an environmental and ethical standpoint, I find it quite abhorrent how unrepairable these machines are. As iFixit said, this would be much less of an issue if the display cable could actually be changed.

comment 7y ago · link · parent

What exactly does "Groovy" offer that another JVM based language doesn't? Am genuinely interested.

comment 7y ago · link · parent

Yes it's very good, but still somewhat stratified. Checkout the 1ML project for something even more unified: https://people.mpi-sws.org/~rossberg/1ml/

comment 7y ago · link · parent

The most useful part of OOP when building large systems, is its inherent support for first-class modules. This is the one feature I miss when working in most FP languages.

comment 7y ago · link · parent

It's possibly an embellished number, I cannot remember the actual number but it was significantly larger than 100. I seem to have remembered it as 3000. The project had many frameworks: spring, glassfish, camel among others.

comment 7y ago · link · parent

I once took a close look at a Java Web service application running internally at a large bank. It depended on over 3000 jar files, most of them likely transitive. When I queried the rationale of this, the dev team just shrugged it off as common Java practice. I do not think Java is in a significantly better place than the JS world with regard to dependencies.

comment 7y ago · link · parent

Sure, there's nothing wrong with pure functions that encapsulate mutation, even Haskell supports this, but this isn't how OOP typically works. OOP developers actually use mutation to model the real world, for example a bank balance! Many of their APIs and libraries are designed around mutation, even the default containers. Java got String right though (apart from the UTF16 part).

comment 7y ago · link · parent

Sorting (TimSort) was broken for many years in Python. It was good old-fashioned logic and theorem proving, not tests or runtime assertions, that got it fixed. There is merit in proving properties of any critical implementation, no matter how difficult. However the gist you referenced looks to be someone's learning effort, so hardly a model example.

Your view on the role of types is unfortunate if you think term logic is simply mirrored at the type level (Plato's Cave). The Curry-Howard correspondence tells us to think of types as logical propositions with terms as their proofs.

comment 7y ago · link · parent

> A static type system like Elm doesn't fix logical bugs

Static type systems can absolutely catch logical bugs! Proof that a list is non-empty or that a reference is never null are simple examples.

> Types do not contain the real logic of your program.

Types can completely determine the logic of many parts of your program. In Haskell, I often don't have to write custom traversal code, it's selected for me based on the types.

> Types are somewhat useful for verifying data is passed around in the correct shape in a program

This is only the start of what types can do, try learning Haskell.

> but to say it prevents most obvious errors is naive.

No, naive is dismissing static type systems to the point that not even extra testing is done to compensate.

> Elm you will waste tons of time doing useless tasks like writing encoders/decoders and code that could be moved to macros in a more powerful language.

Elm's aim is to be a basic easy-to-learn language (no operator overloading etc). Personally, generic (polytopic) programming feels like a more elegant approach than macros. Haskell offers both.

comment 7y ago · link · parent

Tests prove the presence of bugs not their absence. You should be writing more tests if you have no static type system, in order to find the bugs that you would otherwise prove don't exist.

comment 7y ago · link · parent

Missing from your list is arguably the most important difference: programming with mathematical (immutable) values. This allows one to build very high-level abstractions and easily reason about correctness. OOP languages simply were not designed for this style of programming.

There are also many other significant differences. I estimate I am about ten times more productive in Haskell than Java.

comment 7y ago · link · parent

An apples and oranges comparison. Any difference would surely be made up by all the tests one would have to write to be sure the clojure code was free of basic errors.

comment 7y ago · link · parent

Time machine is really a consumer gadget, I'd be surprised if IT departments were deploying it within organisations. Crashplan would be more appropriate, but I'm not sure how smooth the restore would be. IMHO not having a swappable SSD really sucks.

comment 7y ago · link · parent

For our VPN details, I would have to get my IT dept involved. My point is that machines often need a lot of additional software and configuration. If the world ran NixOS then perhaps a loan machine with "backups" would be almost as convenient as an SSD swap.
1
383940
69