14 ms·
Haskell for a New Decade [pdf]
- dleslie 6y agoHTTPS is busted on this site, for me: PR_END_OF_FILE_ERROR
- josephcsible 6y agoThe link is to insecure HTTP. I think that site just doesn't support HTTPS.
- dleslie 6y agoAh, I use https everywhere.
- frasermince 6y agoI love the clear eyed approach to what Haskell's future may look like. I look forward to seeing the fresh ideas the programming language community continues to bring forward in this area. Does anyone know if these slides came from a talk that was recorded?
- JoelMcCracken 6y agoTypically Steven posts the recording of the video within a couple of days. https://www.meetup.com/Berlin-Functional-Programming-Group/events/271110609/ https://www.meetup.com/Berlin-Functional-Programming-Group/e...
- zerr 6y agoI've heard from some long-time Haskellers that there is no point in continuing using the language after the advent of Rust. EDIT: I should have clarified I guess - interested to hear the opposite arguments (as a neutral (C++) person :)).
- Twisol 6y agoAs a Rustacean, I find that silly. There's a lot to love about Haskell. I'd be interested in hearing from your Haskellers what it is about Rust that renders Haskell obsolete. As it stands, I can only construct straw men, and I'm not really willing to do that.
- zerr 6y agoFrom the pure language perspective (i.e. batteries aside), what do you miss in Rust from Haskell?
- JoelMcCracken 6y agoControlled side effects
- whateveracct 6y agoFunctional programming. Meaning solving large swathes of a problem with (->) alone. Sadly a lack of GC does have downsides in this respect.
- jolux 6y agoLightweight syntax and HKTs, for me. edit: and automatic currying
- cies 6y agoAbility to do more-expressive programming. GC is one thing that's required for that.
- Twisol 6y agoEveryone else pretty much said it for me. To elaborate more personally: the distilled expression of pure functions as _the_ basic entity of modular engineering is such a huge selling point for me. Lazy evaluation is also surprisingly valuable in this vein, because I can compose components -- pass the output of a component to the input of another -- with the assurance that I'll only pay for that computation if it's actually requested. I do deeply appreciate Rust in how it supports serious functional programming idioms without requiring a GC. The value of immutable-by-default and single-ownership semantics have been infectious far beyond my direct use of Rust. But those very same features of Rust also make the pure function just a little more clunky in that environment. Oh, and being literally unable to perform I/O (or any other computational effect) outside of the right context is such a clear win for me. Very few languages, even in the functional world, have such a strict separation. The architectural and mental benefits are outstanding. Some concepts take on a surprisingly simple existence in Haskell. I recently discovered the Yoneda and codensity transformations, as so frequently discussed in Haskell... in the context of a Visitor pattern on a tree structure in Java. Visitors are literally Yonada-ified sum types, and I could only make that connection (and understand the ramifications and benefits) after seeing how it naturally arises in both languages.
- quickthrower2 6y agoI think the focus on Haskell is missing the mark a bit. Haskell is about programming language researchers and enthusiasts having a excellent example language to try out ideas. Over the years it has turned into a production ready platform. As the PDF shows there are many languages spun off Haskell and it doesn't even mention them all. Then there are language features in C# and Java, Typescript etc. that are coming across from Haskell. I think the problem with Haskell as a language as a mainstream thing is that it requires a lot of upfront investment to get used to. C# -> Ruby is 10 hours to be productive, 100 hours to be reasonable. C# -> Haskell is ten times that. A lot of stuff to get your head around. There are complex topics from category theory to metaprograming. Sure you can ignore it - until you want to use a web framework that uses those concepts, then it's on you. Instead of Haskell we should be thinking of programming language research and how to get the best ideas into our mainstream languages. How do we make immutability easy and ergonomic and get rid of nulls in C#? Can we have guarantees in our program. There are even features not in Haskell proper like Liquid Haskell that would be interesting to have in C# or Typescript. This is what is needed if we want the Haskell ideas to be popular. That might not be what other people want.
- cies 6y ago> Instead of Haskell we should be thinking of programming language research and how to get the best ideas into our mainstream languages. I see a lot of this happening in Kotlin and Rust (not too mainstream, but clearly more mainstream than Haskell). Also FB putting it weight behind Reason/OCaml clearly shows the movement. To be fair: sdiehl did mention in the preso that copying these concept over to other languages takes 10-20 years. > How do we make immutability easy and ergonomic and get rid of nulls in C#? The problem here is: you dont. To some extend you have to get these things right from the start. The father of null, Tony Hoare, now considers it his $1B mistake. Why? Because this is hard to fix. > Can we have guarantees in our program. Sure you can. C# gives you some typing guarantees. Now pattern matching switch statements (with exhaustivity checking) combined with sum types are coming: this will help! But the guarantees that Haskell (and Idris/Elm/PureScript) bring are next level, and impossible to replicate in a language that does not encode purity in the type system nor has type classes.
- nextos 6y agoVery informative slides. I do not have real-world experience with Haskell, aside from little toy projects, but I have a lot of experience with other functional languages in the ML family and Scheme. Idris 2 looks appealing, but they should have also mentioned other approaches like Fstar, Lean and Z3. I quite like Fstar since they are delivering a big verified code base, as implied by the name of the effort: Project Everest [1]. While theorem proving is the most general approach to verification, manual proofs are tedious and full automation might never be completely possible in the short term. I would love to see someone pushing for a different approach. A toolkit where you can create DSLs with limited expressiveness, which in turn make it easy to build and verify things. The equivalent to Alan Kay's Viewpoints Research Institute efforts to build a minimal computation system, but with some verification guarantees. [1] https://project-everest.github.io/ https://project-everest.github.io/
- philzook 6y agoThose are interesting approaches. I'm pretty pumped about Lean. It may just not have fit into his narrative and he can't talk about everything. Fstar and Lean are more children of Coq and ML (at least syntactically) to my understanding than they are children of Haskell. They're cousins. Although everyone influences everyone of course.
- logicchains 6y ago>A toolkit where you can create DSLs with limited expressiveness, which in turn make it easy to build and verify things. This is a common approach in the Coq ecosystem, writing DSls for building things, and custom automation for them. See for instance papers by Adam Chlipala.
- nextos 6y agoI know. His FRAP & CPDT books are great reads.
- wespiser_2018 6y ago> "The barrier to entry for GHC development remains impossibly high" Could not agree more. I've put in a couple merge requests to the ghc Haskell compiler, and it's very difficult to even figure out what's going on, nevermind make a meaningful contribution.
- mlthoughts2018 6y agoWhen will Haskell get a different spokesperson? Stephen isn’t effective in this role. These posts have jumped the shark to the point when I see a big Haskell post on HN and see stephendiehl.com it’s just time to tune out. For Haskell to succeed, it has to move away from rigid commitment to various pure functional paradigms and move to eager execution by default. But Stephen does not help this, just preferring to instead dig in more on expecting the reality of the rest of the world to change itself to accommodate the strictures under false pretense that the strictures are parochially better. Haskell’s real failure to launch is not because of complex tooling issues between cabal & stack, not because of a big mess of compiler pragmas to get basic String functionality, not due to complexity of understanding monads or type classes. The problem is that the stated benefits of pure functional programming are not actually benefits at least not when writing business software. The slides (rather arrogantly) say we’re at the blood-letting and leeches stage of software. Well claiming Haskell is a solution is like inventing epicycles to explain orbits or elevate alchemy to a science. It wastes everyone’s time with artificial complexity substituted for advanced capability.
- alexashka 6y agoThe types of posts that get downvoted on here is at times maddening. This to me, is the only reply thus far that addresses what I also perceive to be the fundamental problem with Haskell - it doesn't provide any new convenient tools to solve real world problems, while requiring one learns a bunch of useless abstractions that aren't used anywhere else in industry as a default (monads, laziness, immutability)
- kod 6y ago"Favor Immutability" - Effective Java, circa 2001 Should not be controversial at this point.
- mlthoughts2018 6y agoImmutability is great. What does that have to do with Haskell?
- mxschumacher 6y agoThe fact that many students learn Haskell in University and then don't use it in production isn't as much of a problem as the presentation seems to suggest. Programming in a pure functional language is a school of thought, a way to solve problems that's markedly different from OOP or imperative styles. In my education as a programmer Haskell has a special place and the way I use filter, map and reduce in production JS code is a small reflection of that. Ideas of Haskell have cross fertilized into many other languages, e.g. you can clearly see it in Rust.
- whateveracct 6y agoI've been writing Haskell professionally for 5 years now and as a hobbyist even longer and this presentation just doesn't resonate with my experience and view towards the future. That said I've taken my focus off working in it professionally. It's such a chore to have to constantly justify it to newly-externally-hired management and inevitably get a top-down directive to rewrite. I'm done relying on managers and corporations to drive Haskell. My focus now is freedom & independence. I've got plenty of hugs and impactful personal projects & Haskell advancements I'd like to undertake in the next 5-15 years, and nothing even sniffs Haskell as a tool for me building without thinking or exerting energy. Maybe my issue is I love Haskell but I am abjectly not a community member.
- linuxlizard 6y agoWhat kind of production systems are a good fit with Haskell? I've wanted to learn Haskell but keep getting distracted by other shiny things that are more directly applicable to my job.
- JoelMcCracken 6y agoServices. Websites. Here is a reasonable breakdown for more info https://github.com/Gabriel439/post-rfc/blob/master/sotu.md https://github.com/Gabriel439/post-rfc/blob/master/sotu.md
- whateveracct 6y agoGeneral purpose "cloud" software is what I've worked on. Compilers and interpreters. They don't have to be CLIs though. You can create languages to configure said cloud software :)
- marcosdumay 6y agoHaskell won't give you high interactivity (on the milliseconds of response time), or C-like performance. It will make it hard to control low level details of your memory and execution path. It will also not bring a lot of gain if you only have homogeneous data (like in machine learning). If you have a problem where intermediate performance (on the level of Java and .Net, better than Python or JS) is ok and people won't notice 100ms extra here and there, Haskell is viable. If it's not focused on low level IO, and deals with complicated stuff, odds are it's your best option right now.
- HugoDaniel 6y agono mention of web assembly, how is Haskell support for it ?
- JoelMcCracken 6y agoHere is a recent Reddit thread on the topic. https://www.reddit.com/r/haskell/comments/foeyim/ask_what_is_the_state_of_haskell_targeting/ https://www.reddit.com/r/haskell/comments/foeyim/ask_what_is...
- jbritton 6y agoI tried twice to get started with Haskell. I understand the language well enough, but the standard prelude gave me problems. I forget the details, but the first attempt involved reading ASCII strings from file. I had some issue with the standard string type and after a bunch of searching and trying other things, nothing worked. The second time I tried to use sockets. After a few days, I discovered sockets were both broken and deprecated. Haskell needs to replace the standard prelude and burn the old documentation. I have used dozens of languages and never really had any problems. But the simplest of tasks in Haskell immediately put up roadblocks. I’m sure if I had sufficient reason I could get passed these problems, but when easy things are not easy one loses interest fast.
- kqr 6y agoThere's some amount of truth to this. The I/O facilities that ship with Haskell are in many regards lacking. Fortunately, the community has created some fantastic libraries to help do I/O much better. It was a while since I was involved in that space, but at the time, you had things like the Text library to properly handle human text, ByteString to handle plain 8-bit arrays, Conduit and Pipes as two libraries to do streaming I/O (both network and file) with resource usage guarantees.
- develop7 6y agoFirst, there's a number of preludes around: rio, foundation, relude to name a few. The standard prelude, OTOH, isn't going anywhere anytime soon, because throwing it away would break too much existing code. I'd love to help you with the roadblocks, but I need more specifics to do that.
- gilmi 6y agoThere are alternative preludes you could use instead that provide a much better experience. I recommend taking a look at relude [0]. Could you share a bit about your experience with sockets in haskell? I had the chance to use sockets in haskell on multiple occasions and they worked as expected. [0]: https://kowainik.github.io/projects/relude https://kowainik.github.io/projects/relude
- tome 6y ago
- amatecha 6y agoActual presentation should show up on this channel soon, as it's where this talk was given: https://www.youtube.com/channel/UCNp-DVb8cQRIOo32sZhWgNg/videos https://www.youtube.com/channel/UCNp-DVb8cQRIOo32sZhWgNg/vid...
- amatecha 6y agoAh here we go, actual presentation video has been posted: https://www.youtube.com/watch?v=B9_xAixGlmk https://www.youtube.com/watch?v=B9_xAixGlmk :)
- blackrock 6y agoWhy Haskell, and why not just write it in Lisp? It appears Lisp has proven itself consistently, at solving difficult problems.
- dreamcompiler 6y agoI've been paid to write Lisp most of my career. Most new languages I check out seem like some variant of C or a dumbed-down version of Lisp. Haskell is the only one that seems like an actual upgrade from Lisp, in that there are things you can do in Haskell that would be quite difficult to shoehorn into Lisp without changing Lisp in fundamental ways. (A statement I never thought I would make before I found Haskell.) The full panoply of monads for example. Automatic currying for another. A true lambda-functional language that does not need parentheses and makes no compromises for their absence for yet another. All this does not make me want to abandon Lisp for Haskell; Lisp is still more practical for most of my needs. But if I had to write a parser I'd probably first write it in Haskell and then translate it to Lisp, because Haskell expands the way you think about hard programming problems -- even beyond the realm to which Lisp expands it.
- shigeo 6y agoOut of curiosity, how and how often do you make use of Haskell's laziness, and how often does it get in your way? And yes, the syntax of Haskell (besides unary minus) really does feel like it's close to some kind of optimum.
- 08-15 6y agoNo types, but implicit side effects everywhere. Also, recursive functions blow the stack (in Lisp, not in Scheme).
- Syzygies 6y ago"Everyone should build GHC from source at least once...You will learn a lot about how the sausage gets made." A decade ago a friend paid a local company to build him a many-core compute server. I was fairly certain they'd under-spec'd the power supply. My favorite stress test was to build 32 copies of GHC at once, daisy-chaining each new copy to build another. Keep it running. His computer started billowing smoke.
- Tomte 6y agoThat quote is misleading. The part with "how the sausage is made" refers to reading the developer mailing list, not to building GHC.
- jeffdavis 6y agoAs a database person, I think if more haskell people took an interest in database languages, the world would be a better place.
- jeffdavis 6y ago"Software is Terrible and Getting Worse" I wonder if increasing bloat is a permanent thing? Will software ever transition to a cycle of simplification? Has it ever gone through a simplification cycle in the past? Physical engineering has some limits that push back on complexity. You can only cram so many gears into a Swiss watch. An item can only have so many parts before manfacturing becomes a nightmare. What will push back on the complexity of software? Will it ever "break" in a way that we just do things differently? And it would be strange to think that something like haskell could save us, when the compiler itself is such a beast. If something saves us, it will probably look more like FORTH or lisp or Prolog.
- kazinator 6y ago> Has it ever gone through a simplification cycle in the past? Yes; whenever smaller, but less powerful hardware replaced larger, entire bloated old platforms were discarded or ignored by a generation of new users. Mainframe to micro to mini. Desktop Windows to Android.
- yiyus 6y ago> Has it ever gone through a simplification cycle in the past? Not as a whole, but there have been some significant attempts. Maybe the most radical one I can think of is Chuck Moore's Forth systems. Every new version is simpler than the previous one. Arthur Whitney has done something similar with APL, A+ and k, constantly trying to remove non-essential features. A more mainstream example is Unix and Plan 9, the 7th version of Unix was simpler than previous ones, and Plan 9 was much simpler than Unix. There are also initiatives like suckless, which try to write simpler software. I am sure there are many more similar examples. Trying to remove bloat and complexity is a very important goal for many developers. Unfortunately, the real world usually gets in the way (colorForth has quite limited hardware support, Plan 9 never included a full-featured web browser, suckless software is not too friendly for novice users...).
- platz 6y agoProlog isn't going to save anyone - it's too hard to control the search strategy.
- deeragon 6y agoIronic that it's a PDF.
- li4ick 6y agoCare to elaborate?
- pron 6y agoThese slides simply assume that Haskell as-is is progress, and then bemoan the "fashions, whims, and tastes" of the industry in being slow to relise that. But to measure the "timescale of progress" you need to consider the duration not from the time an idea first appears until mass adoption, but from the time the idea is proven and market-ready. GCs were widely adopted within 5 seconds of them having acceptable performance and not being packaged in runtimes with other significant downsides. The adoption rate of technology -- in general and in software in particular -- is largely consistent with what we'd expect from traits in selective environments. Ideas that trickle slowly through fashions (genetic drift?) are those that aren't adaptive (yet?).
- axilmar 6y agoAs a seasoned C++ programmer, that occasionally plays with Haskell, here is a question? Has finally Haskell the problem of how to do destructive updates or not? If it cannot do destructive updates, I am not interested. The kind of software I am called to build always requires destructive updates for performance reasons and secondly I am so used to assignment and all the design patterns around it that I don't think I should bother with something that does not provide that.
- dundarious 6y agoIf that means you're not a fan of ST or the State monad, maybe the newly added linear types support will eventually provide what you're looking for.
- agentultra 6y agoIt can and direct you to do it safely and is about to get better. Looking forward to GHC 8.12 and linear types.
- runeks 6y agoHaskell can do destructive (in-place) updates via various forms of mutable variables (e.g. IORef).
- dllthomas 6y agoAnd mutable arrays: https://hackage.haskell.org/package/array-0.5.4.0/docs/Data-Array-MArray.html https://hackage.haskell.org/package/array-0.5.4.0/docs/Data-...
- tome 6y ago> Has finally Haskell the problem of how to do destructive updates or not? No "finally" about it. Haskell must have had destructive updates for at least a couple of decades.
- mwcampbell 6y ago"Software is Terrible and Getting Worse" Reminds me of this satirical post: https://bertrandmeyer.com/2013/03/12/apocalypse-no-part-1/ https://bertrandmeyer.com/2013/03/12/apocalypse-no-part-1/
- deleted 6y ago[deleted]
- infogulch 6y agoThe video was posted today: https://www.youtube.com/watch?v=B9_xAixGlmk https://www.youtube.com/watch?v=B9_xAixGlmk