Better HN
topnewbestaskshowjobs
Log inSign up

grumpyprole

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

Submissions

comment 10y ago · link · parent

All ancient history now, I heard that MIT now teach Python.

comment 10y ago · link · parent

Just out of interest, are you skeptical of static type systems in general? Because AFAIK there has never been a quantitative study proving their effectiveness, only empirical studies.

comment 10y ago · link · parent

You just described the entire bank! I prefer my single codebase/single build definition. I forget the current figure, but StanChart has at least 3M lines of (dense) Haskell. More details here: https://skillsmatter.com/skillscasts/9098-haskell-in-the-lar...

comment 10y ago · link · parent

Yes Haskell makes a significant contribution. The person responsible for our industry leading portfolio compression joined us because we use Haskell.

comment 10y ago · link · parent

> I never claimed that Haskell can't be used to write simple software

I can assure you our software is not at all simple. Standard Chartered has industry leading portfolio compression and XVA compute. Barclays has industry leading pricing of exotic derivatives (including pricing on GPUs). Both industry leading solutions built in Haskell on top of frameworks/APIs in Haskell.

> No one is interested in type-safety or purity for their own sake (except for aesthetic reasons).

So are all forms of static verification just aesthetics to you? Or just those offered in Haskell?

> I'm interested in better, cheaper software.

Then hire good people and let them use the tools they want.

The only evidence I could ever hope to offer is that good people build good software. But that would never make an interesting management report.

comment 10y ago · link · parent

You said:

"I would like to challenge that by pointing out that not a single piece of large software ... has ever been written using the skills/concepts of the higher levels of this chart."

To which I gave two counterexamples (today and on other occasions). All software systems should be modular to some degree, so I am not clear exactly what your criteria for a large software system is. In both my examples, the Haskell codebases are monolithic repositories where everything is typed-checked and built together.

You keep asking for quantitative data for a comparison with other languages. But my answer is the same as last week. It's good people that make software efficiently and cheaply. Give engineers PHP and they'll still manage to build something good. Haskell is just a tool, but it's a tool that increasingly good people are asking to use. The system at Barclays and Standard Chartered were built and are currently maintained very cheaply because good people were hired. Haskell just happened to be their preferred tool.

comment 10y ago · link · parent

Again, I answered this for you last week. Both Standard Chartered Bank and Barclays have many millions of lines of very successful production Haskell code. Both codebases are solving complex problems not solved at other banks and both make extensive use of types and purity. We do not regard pure functional programming as "aesthetics".

comment 10y ago · link · parent

I gave you an example last week, which you are conveniently ignoring. We have millions of lines of Haskell code at Standard Chartered bank. The type safety and purity have helped us build a more reliable and maintainable codebase compared to previous efforts. Ultimately the language is just a tool. If you are not interested in type safety, purity or expressivity then it isn't the tool for you.

comment 10y ago · link · parent

> And that shit can fuck right off

This is Anti-intellectualism.

FP is often a sliding scale. You can program with as much or as little type safety, purity or totality as you want. Some folks like to push the boundaries of what is possible without shortcuts, taking inspiration from recent research. Many Haskell, OCaml, Scala and F# libraries will require some of the concepts in this list to understand. I do agree that the list is somewhat Haskell centric though.

comment 10y ago · link · parent

But Haskell does stand out among your list as being a pure functional programming language (it is not the only example of course). Whether this is a good or bad thing, I will not get into. When programming in a pure language you typically have to use some quite recent/advanced ideas such as monads and lenses, just to get practical work done. This is not the case with Clojure, F#, Scala, Erlang etc, where side-effects are idiomatic. In fact, if you tried to go fully pure with these languages, you would run into problems with performance.

To avoid confusion, they should have used the term "pure functional programming" or even "typed pure functional programming".

comment 10y ago · link · parent

I think this article is spot on. We should vote with our feet. Since Samsung do not wish to keep my phone secure, and so far they are averaging one update per year, my next phone is likely to be a pixel.

comment 10y ago · link · parent

But Java strongly encourages the mixing of data and behaviour. There is only virtual method dispatch and switch on ints/enums for efficient case analysis. We therefore need complex encodings like the Visitor pattern, if we are to avoid conflating data and behaviour. So again, I blame the language not the programmers.

comment 10y ago · link · parent

Taxonomies are common in the real world, so it is natural to try to model them. If the language lacks sum types (the mathematical dual of product types, a.k.a. tagged unions) then programmers are forced into using inheritance to encode it. So I blame the language, not the programmers.

comment 10y ago · link · parent

> What should those interested in increasing productivity learn?

Productivity for whom? And over what timescales? As I have been trying to say, it is not that simple, you are oversimplifying.

> So what is the claim, and is there actual evidence (even anecdotal) to support it?

It sounds like you are completely satisfied with existing approaches, in which case there is little point in me trying to convince you.

> The industry is extremely interested in anything that can significantly reduce the cost of developing software.

Industry as a whole, does not have a good track record of adopting even good ideas in a timely manner. c.f. Garbage collection. So again, I think you are oversimplifying.

comment 10y ago · link · parent

I also have ~20 years experience developing software. I have worked on 10+ MLOC Java and C++ systems at UBS, Deutsche Bank, Morgan Stanley, Lehman Brothers and others. I came to Haskell precisely because of my experience working on such large scale systems with mainstream languages. I have spent the last 4 years as a professional Haskell developer, first at Barclays, now at SCB.

While I could probably stomach giving up purity in a small project, you'd only be able to take away sum types and pattern matching from my cold dead hands.

comment 10y ago · link · parent

> There's no indication or even a hint that uncontrolled side-effects are a cause of expensive bugs.

Uncontrolled side-effects destroy the ability to reason about software and when one can no longer reason effectively, bugs will happen. This is obvious to anyone who has worked on large systems. Whether it matters or not, depends on the domain. In finance, it is absolutely critical that we can reproduce a calculation and that for example, the current date is not read from the system deep inside the code somewhere. Having the compiler guarantee this for us is a huge win.

> Absolutely, and you can get automatic memory management for a fraction of the cost. > You get static types for a fraction of the cost, too.

What do you actually know about the cost of Haskell adoption? If you want to accuse me of making unsubstantiated claims, your position would be more tenable without making them yourself!

comment 10y ago · link · parent

> carefully researched information first doesn't qualify as FUD

How carefully researched was your very public assessment of what happened at CS?

> Do we all need to try Elixir, Kotlin, Clojure, Scala, Haskell, F#, and Go?

Of course not. Those interested in learning more about pure functional programming should try Haskell, the others have different niches they are trying to fill.

> If Haskell had had a huge advantage, it wouldn't have been abandoned

No one is claiming Haskell is some sort of magic bullet for all use cases. If you require ease-of-use, are writing disposable software, or high performance software, then it may not be the best choice.

Nobody is arguing against further studies, but I suspect that most of our industry isn't really interested. As I have said elsewhere, Haskell does not optimise for ease-of-use or aesthetics. It has a growing niche and will continue to be successful in that niche, with or without further productivity studies.

comment 10y ago · link · parent

> Nobody knows if Haskell's design is great for software development

We can certainly say that uncontrolled side-effects, manual memory-management and dynamic types is bad for software development in the large.

I'll stop here because I don't which to argue the semantics of what does are does not constitute significant use or significant research.

comment 10y ago · link · parent

>> Haskell was and still is motivated by enabling software development gains

> The same can be said about nearly every language.

This clearly isn't true. For example many languages optimise for ease of use, shallow learning curve, programming in the small etc. Some optimise for efficiency and runtime determinism. Features like type-systems are great for software development (programming in the large), but do negatively impact ease-of-use.

> Haskell is first and foremost a research language motivated by answering a research questions

This isn't true. The Haskell committee contains many people from industry. Haskell just happens to have come from academia and is still heavily used in academia.

> Saying that I'm not persuaded by virtually zero information is no knocking anything

That's a huge exaggeration to suggest there is zero information. There are many experience reports published all the time at conferences and in academic journals, going back decades. None however will give you the quantitative metrics you seem to be asking for, because it is almost impossible to do such a comparison.

comment 10y ago · link · parent

> People and organizations are free to make their own considerations and choose their tools.

Not true. If enough FUD is spread about Haskell, for example it being a failure at CS, then it becomes difficult to convince management.

> If I don't have information, choosing Haskell would be far less rational than not choosing it

No one is suggesting choices be made blindly. Managers should hire good people and then delegate those decisions to those people. If they want to use Haskell, don't stop them due to lack of case studies.

> For the sake of argument, suppose Haskell has a 5% improvement in maintenance cost over Python but a 10% higher cost of adoption, then it's not worth it.

I don't subscribe to nineteenth-century management science. My point was that software development is more about people than technologies. You will never be able to compare Haskell and Python like that, without comparing the people behind the code. What we can say for sure, is that many good developers are asking to develop in Haskell. The best way for other developers to understand why, is to try it.

> That's great, but doesn't have much to do with Haskell.

You were implying that Haskell had failed somehow because SC had stopped using it. Decisions within large organisations are rarely made on purely technical grounds. I can assure you there are many Haskell advocates still there.

comment 10y ago · link · parent

You appear to be misrepresenting the blog post. His example of an aesthetically motivated language is Python, not Haskell. Haskell's design was not motivated by aesthetics or superficial ease-of-use, which could well be its downfall. Haskell was and still is motivated by enabling software development gains, e.g. abstraction, composition, concurrency. You may disagree that it has achieved these goals, but to that I would say don't knock it until you have tried it.

comment 10y ago · link · parent

It does takes significant investment to get to this point though. SCB have been building APIs and components in Haskell for 8 years. We can now glue these parts together very easily and can be confident it will work, thanks to strong types. With less disciplined languages and/or teams, 8 years of development can yield a codebase that most will want to throw away and start again.

comment 10y ago · link · parent

AFAIK, Credit Suisse only used Haskell for one particular project and that project came to a natural end. CS did end up adopting functional programming and F# became their strategic choice.

I never claimed "orders of magnitude" productivity from a language alone. Haskell has every weakly-typed mainstream imperative language as a valid subset. You need good people, teams and processes to get the best out of the language. This means it is difficult to do case studies without getting dismissed as anecdotal.

Most other banks have settled on Python for similar use cases. I hear on the grapevine that they have significant maintenance problems (unsurprisingly). Haskell is spreading to larger software in the bank and we are currently hiring.

comment 10y ago · link · parent

We use Haskell for "rapid application development" in the front office at Standard Chartered bank. We have excellent typed APIs over most of the banks systems and can assemble applications in hours or days, rather than weeks or months as is typical. The language is as succinct as python, but thanks to types, purity and many standardised abstractions, we get better code reuse and maintenance.

comment 10y ago · link · parent

Continued deep discharge does however shorten the life of lithium ion batteries.

comment 10y ago · link · parent

Try installing it on Ubuntu headless server, then it will bring in hundreds of megabytes. You obviously already had most of the dependencies installed. Intel developed Connman because NetworkManagers shortcomings make it unsuitable for embedded devices.

comment 10y ago · link · parent

I was specifically talking about the UI. Which is more of a priority for Ubuntu as they are trying to build a desktop OS.

comment 10y ago · link · parent

I wouldn't say it is working fine yet, for example: https://bugzilla.kernel.org/show_bug.cgi?id=116671 I'm not convinced mobile hardware is supported by them given this bug is still open and Skylake is approaching EOL.

comment 10y ago · link · parent

It's slow to connect, uses a lot of resources and cannot be installed without bringing in hundreds of megabytes of dependencies (e.g. X11, Gnome libs).

comment 10y ago · link · parent

The registry was supposed to improve upon dotfiles. In practice there is often one dotfile to delete versus hundreds of scattered registry entries. If an Android app is removed, the local settings are also completely removed, because they didn't just copy the design of windows.
1
606162
69