HNHacker News
TopNewBestAskShowJobs

jose_zap

602 karma · joined April 15, 2014

submissionscomments
jose_zap··on Should I Haskell or OCaml?
Haskell. It has a bigger ecosystem, although nowhere close to python’s
jose_zap··on Maybe Rust isn’t a good tool for massively concurrent, userspace software
That’s how Haskell async works. You mark the call as async, not the function itself.
jose_zap··on The Meaning of Monad in MonadTrans
I work at one of those fintech companies using Haskell in production.

Hiring was actually Haskell’s strong side. I managed to hire 6 engineers in only one month. There were more than 50 applicants to the position. Just the idea of using Haskell in production is attractive to many.

It’s been a great experience overall. I worked at a python company before this one and it’s been refreshing not having unexpected runtime errors. Moving money around requires more robustness than your typical app.

jose_zap··on The Meaning of Monad in MonadTrans
Haskel is being in used in quite a few fintech companies.
jose_zap··on What’s so great about functional programming anyway?
No, but Haskell does not need to explain monad for that either. All examples and docs for map/concatMap over a list are free from having to mention any type class at all.

On the other hand, if you have to explain how the for/yield in zio and why it works for so many different types, you have to basically explain Monad using another name.

jose_zap··on What’s so great about functional programming anyway?
What I meant to say is that the abstractions are definitely there in zio, which was meant to address your first comment where you said that zio did not have them.

By reading the docs I could easily recognize monads. If you replace “for” with “do”, they even have the same syntax! I could also see clear examples of things that were modeled as monoids and functors. I would claim that zio took inspiration from Haskell to model the composable parts.

Hey, I’m not complaining about any code, and specially not flatMap. I think it is a great design. It is the bind operator in the monad class in Haskell, and there is also syntax sugar to hide it and make it look like imperative code, just like Haskell. I like that!

It seems to me that it is fair to say that the abstractions are useful as you recognize in your previous comment. Maybe you just have an aversion against the abstraction names, or the way many Haskell-related articles go on and explain them… which is fair enough.

I learned Haskell without having to understand those concepts. I could just used them by experimenting with what was possible and seeing examples from other people. It was not particularly difficult. So, as you also figured out with zio, understanding the abstractions is not a requirement for using them.

jose_zap··on What’s so great about functional programming anyway?
I took a look at ZIO (https://zio.dev/guides/quickstarts/hello-world) and just the first example explains a monad.

That first example shows that the for syntax desugars to nested flatMap. Which is analogous to Haskell’s do notation, which desugars to nested bind.

The abstractions you said are not there, seem to actually be there in zio!

jose_zap··on So you're using a weird language
The latest update to Amazonka (the Haskell library for AWS) was 3 hours ago.

https://github.com/brendanhay/amazonka

I use the package directly from GitHub in my project.

jose_zap··on Six programming languages I’d like to see
https://ghc.gitlab.haskell.org/ghc/doc/users_guide/exts/impl...
jose_zap··on Six programming languages I’d like to see
Sounds like you are taking about ReaderT, which is a common way of implicitly passing more data to functions. There are many other ways, though.
jose_zap··on Dhall: A Gateway Drug to Haskell
Our experiences differ, then. I have found it to be more easy to refactor and parallelize that other languages I have used.

Debugging has not been difficult either, but I have always use print debugging in every language, so there is not much I can compare.

jose_zap··on Dhall: A Gateway Drug to Haskell
You may use the optics package instead. It is a replacement for the lens octaves with a focus on good docs and better error messages:

https://hackage.haskell.org/package/optics-0.1/docs/Optics.h...

jose_zap··on Dhall: A Gateway Drug to Haskell
You can do enable strict evaluation by default in Haskell, though. So, that must not be the reason why the language is not mainstream.

More likely, network effects can explain how something makes it to the mainstream. For example having a big corporation behind the development and marketing of the language.

jose_zap··on Learn Haskell by building a blog generator – a project-oriented Haskell book
Yes, there is GHCi, the Haskell interpreter and repl comes bundled with the compiler.

You can load your entire project in the repl and try your functions there.

jose_zap··on Dhall: A Gateway Drug to Haskell
The motivation for Haskell included building large applications. It was not solely a research language, but the culmination of years of research in non strict functional languages:

https://www.haskell.org/onlinereport/preface-jfp.html

jose_zap··on Dhall: A Gateway Drug to Haskell
Most of the popular languages in use today have big corporations backing them. I would say that this is a major reason why Haskell and other niche programming languages are not more widely adopted.
jose_zap··on Dhall: A Gateway Drug to Haskell
> Because performance problems are particularly hard to solve in Haskell due to its high level of abstraction.

Does not match my experience. Haskell typically compiles to quite performant code, at least for all the cases that I’ve used it for.

Then few times I had to optimize anything for performance, it did not feel different than other languages. It was in almost every case about the architecture of the code and not something to do with the language itself.

jose_zap··on Dhall: A Gateway Drug to Haskell
Haskell is a great language for imperative programming, actually. You are not limited by the language in that regard.
jose_zap··on Dhall: A Gateway Drug to Haskell
You can use the LiquidHaskell plugin to perform extra compile time checks to numeric code.
jose_zap··on What was wrong with SML?
At this point there is not difference between the two of them. GHC is Haskell for all practical purposes
jose_zap··on What was wrong with SML?
Haskell is such a language. You can enable strict evaluation on a per module basis, or for an entire package.
jose_zap··on Ask HN: Who is using Haskell in production?
I work for one of the biggest e-commerce sites in Sweden, in the fashion industry.

We are a group of 8 engineers using Haskell exclusively working on payments and checkout related solutions.

The experience has been amazing so far. We are able to ship with great velocity considering the size of the team. We have also been able to refactor things easily when requirements change. Haskell has helped in keeping the code in good shape even after the many direction changes.

jose_zap··on Ask HN: Should I buy MacBook M1 Pro or M1 Max for software development
Yes and quite fast at it.
jose_zap··on Thoughts On Lisp And Racket (2019)
Both GHC 8.10.5 and 8.10.6 run natively on M1
jose_zap··on Human use of high-bandwidth wireless brain-computer interface
You can make any module strict by using the XStrict language pragma in Haskell.
jose_zap··on Why OO Sucks by Joe Armstrong (2000)
This sounds like haskell’s backpack, which lets you swap implementations of a model interface at will. But maybe I’m misunderstanding what you meant.

Polymorphism is front an central to everything in Haskell, which is why your comment sound off to me.

jose_zap··on Docker Security Cheat Sheet
One of hadolint authors here.

You can do `apt-get install my_package==4.1.*`, for instance and that will pass the validation and still be close to the ideal of having reproducible builds.

jose_zap··on PureScript and Haskell
> I can't think of any large program that has ever been forced to a drop a feature

I have to anecdotes of having to drop features in a large python program due to memory leaks.

The first one was when someone introduced an endpoint that consumed data from a gRPC service. After weeks of effort trying to find where the source of the leak was, we decided to drop the change as we could not find the cause in a reasonable time.

The second case was when introducing jaeger for distributed tracing. Similarly to the previous story, it was cheaper for us to drop the feature and use something else than to figure out where the memory leak was.

I believe that it is a matter of balancing effort vs, benefit. I would not be surprised if someone working on their free time on an open source project decides to drop a feature because they cannot find the time to make it work properly.

jose_zap··on Swift for TensorFlow Shuts Down
You can also use Haskell with the Strict pragma enabled for your own code if laziness is a concern.
jose_zap··on Haskell is a Bad Programming Language (2020)
Interestingly, in this paper, Haskell displays a negative correlation in defect rate
← PreviousPage 2 of 4Next →