[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]

How are you supposed to program Haskell? What is the point of

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: 7
Thread images: 2

File: rms_katana.jpg (63KB, 450x338px) Image search: [Google]
rms_katana.jpg
63KB, 450x338px
How are you supposed to program Haskell?

What is the point of all the abstract concepts that Haskell has?
>>
>>59648920
The only point of haskell is to learn what a monad is.

By the time you learn it, you are simultaneously rendered unable to explain it to anyone who doesn't know what a monad is. Hence the proliferation of shitty monad tutorials everywhere.

Learn the way of the monad anon, become one of us.
>>
>>59648920
Stallman's language of choice isn't Haskell. It is Lisp.
>>
>>59648976

Just esoteric my life up, nig
>>
>>59648963

> automatic bignums
> javascript comparisons

...what is this language?
>>
>>59649166
enlightenment
>>
>>59648920 (OP)
The point of a functional language is it has a direct connection to math where you are essentially doing the same thing as you are in highschool algebra which is computing a bunch of variables just with a richer variety of primitives.

Your program specification is a bunch of types "This function consumes a real and produces an integer". Then the code you write for that function is the proof via induction that said specification is correct.

The data structures you typically use are persistent, meaning new values are created when you traverse and update a tree you aren't destroying any data. However many, many other algebraic data structures can be used w/a functional lang basically you can invent as many as you want if you take a homology class or invent some wacky commutative/algebraic geometric structure and use Invariant Theory on it to prove it's correct. A lot of people claim this is 'impossible' to program this way but you do it all on a piece of paper before hand, can easily pseudocode the types and algorithms, and make plenty of adjustments further splitting into self contained modules before ever touching a keyboard. We spent months once with a whiteboard planning, and running paper complex analysis on our "program" because it's simply types. The actual implementation took only an hour or so with 8 of us making up the modules, we basically just followed the final draft of the paper spec. If you're like me you used to sit in a chair for 12hrs a day with headphones on glued to two or three screens spending forever to build shit. I have one tiny screen now and spend hardly anytime in front of it.

tl;dr I would never program any other way for something critical, I'll use AWK to script my terminal to do everyday shit but an ATM program or bank backend would never in a million years leave that up to mutable data with side effects.

If you want to try it do some of these courses
https://functionalcs.github.io/curriculum/
Thread posts: 7
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.