[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

I don't fucking care, Haskell is more of a potent psychedelic

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 45
Thread images: 2

File: Haskell_logo_ideas_6_falconnl.png (13KB, 629x225px) Image search: [Google]
Haskell_logo_ideas_6_falconnl.png
13KB, 629x225px
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 like
sub 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.
>>
File: chihiro_fujisaki_51703.jpg (117KB, 331x510px) Image search: [Google]
chihiro_fujisaki_51703.jpg
117KB, 331x510px
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?
>>
>>55906725
no
>>
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
Thread posts: 45
Thread images: 2


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.