[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
/fpg/ Functional Programming General
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 33
Thread images: 3
File: Haskell.jpg (27 KB, 500x501) Image search: [Google]
Haskell.jpg
27 KB, 500x501
http://haskellbook.com/
http://learnyouahaskell.com/
http://elm-lang.org/docs
https://www.haskell.org/
http://www.schemers.org/Documents/#intro-texts
http://www.scala-lang.org/
http://elm-lang.org/
http://miranda.org.uk/
https://www.functionalgeekery.com/
https://clojure.org/
>>
>>54865895
No one programs here
>>
Why don't sandboxes work in Leksah? I keep getting conflicts with global installed packages. Annoying as fuck.
>>
Should I bother learning Haskell if I'm a gay faggot?
>>
>>54866873
No, Haskell is for women.

http://girlloveshaskell.com/
>>
>>54867143
Man, this is embarrassing. Why can't women advocate for things without inserting themselves into it in some manner?
>>
>>54867181
Because they don't genuinely care about the thing, they just care about showing off as part of somehing, because they have vaginas and they are already praised just because of that, so they really don't need to compete.
Men also have this need to stand out, but they're not so goddamn envolved in their feelings and self image as to just use the activity as an excuse to show themselves, but they (us, we?) genuinely care about at least getting gud at it because we do have to show our worth. Women are just there for the taking , they're the prize.

Also hello OP, I hought you'd given up
>>
Does Idris have a shot at becoming a non-meme language? Dependent types sound interesting.
>>
>>54867980
what can refined types do¿
what's the use of having a constraint on already existing types
>>
rate my wordswith function that is basically words but with any char instead of just space
 
wordswith :: Char -> String -> [String]
wordswith _ [] = []
wordswith c str = f : wordswith c (dropWhile (==c) s)
where (f, s) = break (==c) str


also, would evaluation of f and s make wordswith more efficient?
>>
>>54865895
Who is she and who's the girl holding the K&R book?
>>
>>54868196
Deviates from ‘words’:

λ words "   "
[]
λ wordswith ' ' " "
[""]
>>
>>54868383
>she
>>
>>54869445
technically, it's correct
words produces a list or nothing
and wordswith produces a list of a list of nothing

aside from this edge case (which isn't a big deal) , it achieves the same output
>>
Scheme isn't functional, retard.
>>
>>54871324
Nothing's purely functional. Everything has to have some side effects for input and output at least.
>>
>>54866059
/thread
>>
File: ocaml.png (58 KB, 420x420) Image search: [Google]
ocaml.png
58 KB, 420x420
Why no OCaml?
>>
>>54867741
Thanks, redditors just about made me quit posting here. Haven't seen much love for the functional programming languages.
>>
>>54873350
Thoughts on this?
https://facebook.github.io/reason/
>>
>>54868383
https://www.warbyparker.com/eyeglasses/women/haskell/woodgrain-tortoise

She is the functional programming goddess.
>>
File: 1456102801470.png (72 KB, 900x900) Image search: [Google]
1456102801470.png
72 KB, 900x900
>>54867181
Imagine a life where you have never been great at anything, never felt the urge to be great at anything, never felt that magnetic admiration to someone who was great at something, wanted to imitate and ultimately defeat him. Just nothing. Literally all you do in life is exist. Occupy space. pass the time. You're a chick.

You're bored,tweeting about your fucking hair and not even feeling any kind of happiness from it, just soothing your constant need to be bitter and cunty and petty toward other women. Every single thing you've done in the past year was mundane, shallow, and boring. You spent the last six hours reading kinda-interesting Reddit stories about people who made interesting Halloween hats for their kids or some stupid bullshit that you think is interesting and you may say is interesting but you're not really sure if it's really interesting. You're just fucking sitting there, gestating, fermenting, with a moist hole between your legs that guarantees you'll at least never have to get up and move around and work to support yourself.

And then you see men, over in some corner, having fun. You've never seen this before. What are they even doing? Instead of their consciousnesses merely sitting in their thick skull and revolving around itself, they are imbuing their conscious energy and intentionality into external objects, crafts, goals, projects. All the bitterness and cuntiness you feel nonstop seems to be absent, as they congratulate each other for being victorious, and happily learn from someone who defeated them. These creatures are truly content to be alive. They have found purpose in a purposeless universe.

And your gaze turns back on itself, on your self, and you realise you've never had that. You can never have it. You're just a stupid cunt.

So you get up, you walk over there, and you fucking ruin everything. Just ruin the whole fucking thing. The five seconds of attention you get will be worth destroying it. Because you're a woman.
>>
>>54873404
I didn't know about this but as I can see it is worth checking out. I'm currently going through "Real World OCaml" book and I like and recommend it.
>>
>>54873421
kek
>>
>>54868059
Example: implementing a safe vector without defensive bounds checks.

The type of the vector would include a measure of its length (N). When you try to index the vector, you have to provide an index less than N, which would be reflected in the type of the index parameter. Why is this better? If you already know a number is less than N, you don't need to do any more run time bounds checking on it. This "knowledge" is represented using a refined type. You can also manipulate this knowledge, for example, you can freely "weaken" a number less than M to a number less than N if M < N. The run time checks only come in when you actually need to "refine" a value.

Dependent types are a generalization of refined types, and are suitable for encoding them. In this example, they would be useful because you can have the vector's length be a value only known at run time - this is where types "depending" on values comes into play.
>>
>>54873402

I'm not sure what you expected. This is 4chan after all..

But every now and then I'm looking into these threads, even though I'm not a functional programmer (yet).,


>>54873486

Wow, someone's gf has just quit the realtionship..
>>
>>54873752
Never for a second assume women are not inherently evil. They might not even consiously realize that, but they're essense is evil.
t. other anon, in a stable relationship
>>
>>54873776

It may look like that, but IMHO women and men are just "orthogonal".

Imagine two people reading a text:
Person 1 only cares about the meaning of the text.
Person 2 only cares about if it's well written and has typos.

So sometimes they will agree about what a good text is, sometimes they will have completely differnt opinions.

But only when both people share (and respect) each others opinion they can find out what REALLY good texts are.

That's why mother nature made men and women different. The individuals may suffer, but that way we (as mankind) produce the best results.

But even though women and men might not understand each other, we can learn from each other.
>>
>>54873404
stupid syntax, a lot of the original shit was chosen for a reason
>>
>>54873776
>r9k
>>
>>54867143
>The Haskell Programming Girl
>Haskell and I have a lot in common: we are both advanced, purely-functional, and open-sourced; we both have twenty years of cutting-edge research experience, can develop robust, concise, correct software rapidly; we both have strong support for integration with others; we both have built-in concurrency and parallelism; we are both great debuggers and profilers; we both love our rich libraries and our active community; we both produce flexible, maintainable, high-quality software.

>My love for Haskell is an infinite and uncountable monad, a Cartesian closed category if you will. If you lack the sophistication to appreciate my immutable passion, you can D.I.A.F.

>p.s. I don't usually listen to music, but when I do, I listen to it via a Haskell OAuth API.

wtf?
>>
>>54874545
men and women aren't really all that different even. it's mostly societal constructs.
>>
>>54873486
Imagine a life where you have never been great at anything, never felt the urge to be great at anything, never felt that magnetic admiration to someone who was great at something, wanted to imitate and ultimately defeat him. Just nothing. Literally all you do in life is exist. Occupy space. pass the time. You're a 4channer.

You're bored,sshitposting about Stallman and not even feeling any kind of happiness from it, just soothing your constant need to be bitter and cunty and petty toward other women. Every single thing you've done in the past year was mundane, shallow, and boring. You spent the last six hours reading kinda-interesting Reddit stories about people who play video games or some stupid bullshit that you think is interesting and you may say is interesting but you're not really sure if it's really interesting. You're just fucking sitting there, gestating, fermenting, with a moist cock between your legs that guarantees you'll at least never have to get up and move around and work to support yourself.

And then you see men, over in some corner, having fun. You've never seen this before. What are they even doing? Instead of their consciousnesses merely sitting in their thick skull and revolving around itself, they are imbuing their conscious energy and intentionality into external objects, crafts, goals, projects. All the bitterness and cuntiness you feel nonstop seems to be absent, as they congratulate each other for being victorious, and happily learn from someone who defeated them. These creatures are truly content to be alive. They have found purpose in a purposeless universe.

And your gaze turns back on itself, on your self, and you realise you've never had that. You can never have it. You're just a stupid faggot.

So you get up, you walk over there, and you fucking ruin everything. Just ruin the whole fucking thing. The five seconds of attention you get will be worth destroying it. Because you're a shitposter.
Thread replies: 33
Thread images: 3

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

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.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.