I don't fucking care, Haskell is more of a potent psychedelic drug than a programming language
>>55902262
Reminds me of what I think of lisp, I really don't understand what what I'm writing does but I feel like talking to god while writing it.
I was thinking about implementing an FTP client in Haskell. Am I crazy?
>>55902505
an FTP client is quite a easy task. The problem is Haskell itself
>pure->simple->fun
best meme eu
>>55902262
Is it possible to OD on Haskell?
>>55902605
You generally can't OD on psychedelics
>>55902617
oh yeah? just watch me
I love how things just snap together in Haskell, for the most part, and just work. It's like playing with Lego, it's amazing. mtl and lens are so good.
I wish the standard library were better. The typeclass hierarchy is just bad. It's missing many, many things, just look at the semigroupoids library.
Daily reminder OOP is inherently anti-modular and anti-parallel
>>55902262
can I implement a logic written in Haskell and then use an interface with let say C++ or something that connects the IO of the program ?
Is this too crazy ? I have never worked with Haskell, but from examples and overview it looks pretty nice, I want to start. However, I can't find any solutions on "out of the box" productive and real life applications of it, without the thought of an interface made out of other lang.
>>55902796
Also, I have done things like that with Python (as interface I/O) and C++ for the logic part. The outcome was 30 times faster than just python code.
>>55902796
You can call C functions from Haskell using the FFI.
>>55902262
I would like the syntax of haskell in a little less pure language
>>55902998
I'd like a more pure language, desu
Being able to enforce totality would be great, as would removing all the unsafe stuff (maybe that's just a GHC-specific complaint though)
>>55902884
that's seems enough, and pretty cool, I guess my next lang is going to be haskell im pretty excited !
>>55903038
What I meant is that monads are an abstraction that can be done better. I just want a more natural way for I/O. But as one who do quantum computing the pureness of haskell is amazing as is more natural.
>>55903098
I don't really like the way IO is modelled in Haskell (passing the 'real world's as a state parameter), but I think monads are a very natural abstraction for it. I think using the operational monad over an ADT representing IO actions would be easier to think about (and would allow inspection and manipulation of programs, all completely purely!)
>>55902998
Perl 6?
They took loads of things from Haskell's book, and Rakudo, its reference implementation, is written in Haskell. It also has a really nice REPL.
It also has immutability through binding, lazy lists built into the language, functional pipes, pattern matching, and multiple dispatch using arbitrary conditions. (So you can define a function likesub some-function(Int $arg where * >= 0) { ... })
It even has a "pure" keyword that enforces purely functional code.
>>55903235
>>55903235
>syntax
Fuck me. I missed that somehow.
Is there anything Haskel can't do?
>>55904016
Become popular
>>55904016
Succeed. It's even in their motto.
But besides that, nope.
>>55904159
It's avoid (success at all costs), not (avoid success) at all costs.
>>55902262
It takes twice as long to do half as much in Haskell than Python.
Does Haskell eliminate the need for unit tests?
Or, to what extent?
>>55906051
In a completely unscientific metric, functional code and strict typing were correlated with fewer bugs, but nothing terribly substantial: https://labs.ig.com/static-typing-promise
So, according to that likely-biased test, no.
But Haskell code is easy to test compared to a lot of things because you don't need to worry about external state.
If the interpreter wasn't so slow and bloated I'd totally go for it
>>55902998
F#/Ocaml is somewhat close
>>55906051
yes, thanks to purity and static typing
lots of methodology was made to fix OOP/imperative programming languages
>>55906263
haskell doesn't use an interpreter, did you mean the compiling speed?
>>55904016
Hey that's my bf.
>>55906392
probably he meant runghc
>>55906423
that's a girl
>>55906392
but it does my man, how didn't you know this?
>>55906595
haskell code is natively compiled with ghc
>>55906698
any compiler better than ghc?
QUICK, POST HOT HASKELL CODE
>>55902262
>pure
To the point of it being annoying
>simple
If you're mentally ill then yes
>fun
Assuming you're masochistic
>>55903235
Perl is a really cool language with a really horrible syntax.
>>55902262
memes
>>55907682
Not just Perl, but Perl 6. It is completely different from the language as most people know it today.
I brought it up because it is very easy to see how much it took from Haskell, so I thought someone who was looking for a less strict Haskell might like it. (Ignoring my lack of reading ability, ugh)
>>55907308
>>55902262
>Haskell thread
>Not one bit of code
yeah I'll beat it's a real sweet language since we all have so much of it to share
>>55906585
No it's not fucking cum guzzling faggot.
>>55908164
Lel