Registration has been disabled and the moderation extension has been turned off.

Contact an admin on Discord or EDF if you want an account. Also fuck bots.

Haskell: Difference between revisions

From Encyclopedia Dramatica
Jump to navigation Jump to search
imported>Otend
No edit summary
imported>Oddguy
No edit summary
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Image:Gay_lambda_sticker-p217460008713382091tr4z_152.jpg‎ |thumb|[[gay|haskell]] symbol]]
[[Image:Haskell.png |thumb|Hail to the king, baby.]]




{{crap}}
'''Haskell''' is a [[autistic|functional]] committee-planned programming language that wants everything done its way and no one else's. Although it claims to play well with others, this is a complete lie, and it never leaves its mother's [[basement]]. Haskell's codebase is [[Dat ass|fucking huge]], weighing in at almost a gigabyte for the main compiler and other [[useless|essential]] [[bullshit|utilities]].
'''Haskell''' is the world's leading <s>functional</s> not-functional gay toy language. It was created when a fat [[pedobear|guy]], that constantly ate curry, smoked too much pot and started saying stuff like [[lol wut|"a proof is a program; the formula it proves is a type for the program"]]. Then he [[raped|met]] a bunch of [[gay|lambda]]-calculus [[13-year-old boys|expressions]] and thus, haskell was born.


One of the main [[Is not a bug, it's a feature|features]] of Haskell is [[nazi|the strong type system]] which ensures that when a haskell program is compiled, it will [[gimp|behave exactly as you want]]. It also ensures that your program will [[fail|never compile]]. This is achieved by enforcing strict rules prohibiting integers to mix with reals, numbers with lists etc. This is supervised by the [[Big_Brother|type checker]] that not only checks your type but [[perez hilton|he]] can also can figure it out in case [[Tom_Cruise|you]] didnt declare it.
Haskell is similar to [[Firefox]] in that there are thousands of extensions that can be enabled, that way Haskell can be turned into [[Python]] in case the user is [[1337|uncomfortable with functional programming]]. Also like [[Shit|Firefox]], Haskell is a language that everyone talks about, but no one uses.


==The Early Years==


==Typical Haskell Code==
Many years ago, a group of [[nerds|researchers]] decided that out of the 200 different functional programming languages that were available at the time, all of them [[dick|sucked]] equally. However, [[Mass Effect|Miranda]], the cream of the crap, had the largest ass and was chosen to become the base from which Haskell would be born.
[[Image:pedohaskell.png|thumb|[[pedobear|haskell]], trying to [[rape|approach]] children. it's fun fun fun!]]


module Main where{import List;import System;
Simon Peyton Jones and his merry band of mathematicians, hereto-after referred to as "the [[gang]]," went to work on what they figured would become the best programming language ever...
import Data.HashTable as H;(???????)=(concat
);(??????)(???)(????)=((groupBy)(???)(????))
;(??????????????????????)(????)=((??????????
)((tail).(???????))((????????????????????)((
??????)(?????????????????????)(????))));(??)
=([' ']);(??????????????)=((hashString));(?)
=((>>=));(???????????????????????)([((???)),
(????)])=((?????????????)(???))?(\(?????)->(
(????????????????)(==)(??????????????))?(\((
???))->((??????????????????)(???????????????
)(???)(?????))>>((?????????????????)(???))?(
\((?????))->((((???????????????????)((????))
((??????????????????????))((?????))))))));((
???????????????????????))(??)=(????????????)
("usage f dic out");(?????????????????????)(
(???),(??????))((????),(????????????????????
))=((???)==(????));(?????????????????)(???)=
(toList)(???);(????????????????????)(????)=(
((??????????)(((??????????)(snd)))((????))))
;(??????????????????)(???????????????)(???)(
(?????))=(((mapM)(((???????????????)(???)))(
(lines)(?????))));(???????????????????)(????
)(???????????????????????)(?????)=(?????????
)(????)((unlines)((???????????????????????)(
?????)));(????????????????)(???)((????))=(((
new)(???)(????)));(main)=((???????????)?(((\
(???)->((???????????????????????)(???))))));
(???????????????)(???)(????)=((????????)(???
)((sort)(????))((??)++(????)));(???????????)
=(getArgs);(????????????)(???)=((((print))((
???))));(??????????)(???)(????)=(((map)(???)
(????)));(????????)((???))(????)(?????)=((((
H.insert))((???))(????)(?????)));(?????????)
((???))((????))=(((writeFile)(???)((????))))
;(?????????????)(???)=(((readFile)((???))))}


[[Image:HaskellDevs.jpg |thumb|The Gang. Notice Simon Peyton Jones in his signature yellow jacket and scooter. (Far Right)]]


==The [[Jewish|IO]] Question==


{{haxor}}
Once the [[gang]] finished planning their language, they realized they had created something that had no I/O. In other words, when a Haskell program ran, the box heated up, but nothing happened. Realizing their ghastly mistake, the gang tried various kinds of [[meth|methods]] in order to address the issue. They experiemented with Xylatol, Mixadolin V, Quothenol D, and Bayer Children's [[Heroin]]. Finally, after a 17-hour long trip on [[Ritalin]], the gang pulled an obscure concept out of [[Ass|Category Theory]], known only as the "Monad."
== Anonymous Functions ==


Monads became the [[final solution]] to the IO problem, and confused [[programmers]] the world over.


As everybody knows, the only functions in haskell are those that couldnt be accepted by any other programming language (mostly because they are [[lazy]] and [[retarded|slow]]).
==What the [[Fuck]] is a Monad?==
It wasnt long before a group of anonymous functions managed to intrude the haskell type system with the sole purpose of trolling the other functions and [[idiot|anyone trying to read haskell code]]


A Monad is kind of like a [[box]] (only it's not), in which data may be "placed" inside of it (only it's not). A Monad is a lot like a [[Chinese]] finger trap; once you get your dick caught in it, there's no getting it out. In other words, Monads are a [[prison]] for data. Monads are the sole reason people have a hard time understanding Haskell. In fact, the concept of Monads is so scary that the fact that they are scary is scary in and of itself, disabling people from even attempting to understand Monads.


[[Image:Monad.jpg |thumb|Artist's depiction of a Monad.]]


== Currying ==  
===Prison Break===


Since every haskell fan is bulimic they have developed a way to make every function edible (even the shitty haskell functions) by adding their favourite curry sauce.
Although no one talks about it, there is a super 1337 [[Computer Science III|backdoor]] into the monad prison system (as far as IO goes, anyway).
They simply take one function and substitute one or more variables with [[shit|curry]] and then they proceed to eat it.


== Gallery ==
<gallery>
Image:lambda_twins.jpg|haskell [[lesbian|fans]]
Image:haskell_shop.jpg|typical haskell bookstore
Image:illuhaskell.png|illuminati support haskell
Image:curry.jpg|eating a curried function
</gallery>


[[Category:Softwarez]]
<pre>
Prelude> import System.IO.Unsafe
 
Prelude> :t getLine
 
-- Uh oh, evil IO has taken our data prisoner!
 
getLine :: IO a
 
Prelude> x = unsafePerformIO getLine
 
Prelude> :t x
 
x :: a
 
-- Congrats, assface!
</pre>
 
 
==The Now Years==
 
Today, Haskell remains the single most talked about language that no one uses. Many have tried to use Haskell, but are unable to comprehend the dizzingly [[1337|abstract]] concept of a Monad. Even the word, "Monad," scares the [[hell]] out of most [[Dumb|programmers]]. Entire books have been written ''just'' about Monads. However, most of them are very cryptic, and their authors probably don't even know what a monad is.
 
So, instead of doing anything constructive with the language, most people just write about the language like the [[hypocrisy|dumb pricks they are]], while the gang continues to make more language extensions that no one will use.
 
==Code Snippets==
 
===Hello World===
<pre>
module Main where
 
main = putStrLn "Wello Horld!"
</pre>
 
===Get 'er Done===
<pre>
 
module Main where
 
class Fuckable a where
  fuck :: a -> Maybe a
 
data Dog = Dog String Bool
 
instance Fuckable Dog where
  fuck (Dog name fucked) = if fucked
    then Nothing
    else Just (Dog ("Fucked " ++ name) True)
 
screwThePooch :: Dog -> Maybe Dog
screwThePooch = fuck
 
main = do
  let myDog = Dog "Jackson" False
  return $ screwThePooch myDog
</pre>
 
===Hack the Gibson===
<pre>
module Main where
 
import System.Gibson
import System.Gibson.SecretCodes
 
hack = hackTheGibson secretCode1
 
main = return hack
</pre>
 
==Notable Works==
 
[[Image:lyah.png |thumb|The only person in the world, other than SPJ, that knows what a Monad is.]]
 
Below is a list of notable works written in Haskell.
 
*[[The Gibson]]
*[[Haskell]] - Yes, it is written in itself.
*[http://pornhub.com PornHub]
*[[Windows|Windows 95]]
*HackWare V3.4 Xcelsior Edition
*[[Dat Ass]]
*Learn You a Haskell for Great Good
 
==External Links==
 
* [http://haskell.org Haskell.org] - Stop being a [[bitch]] and ''use'' it.
* [http://learnyouahaskell.com/ LearnYouAHaskell.com] - Stop being a [[bitch]] and ''learn'' it.
 
{{programming}}
{{Softwarez}}

Latest revision as of 12:55, 23 March 2015

Hail to the king, baby.


Haskell is a functional committee-planned programming language that wants everything done its way and no one else's. Although it claims to play well with others, this is a complete lie, and it never leaves its mother's basement. Haskell's codebase is fucking huge, weighing in at almost a gigabyte for the main compiler and other essential utilities.

Haskell is similar to Firefox in that there are thousands of extensions that can be enabled, that way Haskell can be turned into Python in case the user is uncomfortable with functional programming. Also like Firefox, Haskell is a language that everyone talks about, but no one uses.

The Early Years

Many years ago, a group of researchers decided that out of the 200 different functional programming languages that were available at the time, all of them sucked equally. However, Miranda, the cream of the crap, had the largest ass and was chosen to become the base from which Haskell would be born.

Simon Peyton Jones and his merry band of mathematicians, hereto-after referred to as "the gang," went to work on what they figured would become the best programming language ever...

The Gang. Notice Simon Peyton Jones in his signature yellow jacket and scooter. (Far Right)

The IO Question

Once the gang finished planning their language, they realized they had created something that had no I/O. In other words, when a Haskell program ran, the box heated up, but nothing happened. Realizing their ghastly mistake, the gang tried various kinds of methods in order to address the issue. They experiemented with Xylatol, Mixadolin V, Quothenol D, and Bayer Children's Heroin. Finally, after a 17-hour long trip on Ritalin, the gang pulled an obscure concept out of Category Theory, known only as the "Monad."

Monads became the final solution to the IO problem, and confused programmers the world over.

What the Fuck is a Monad?

A Monad is kind of like a box (only it's not), in which data may be "placed" inside of it (only it's not). A Monad is a lot like a Chinese finger trap; once you get your dick caught in it, there's no getting it out. In other words, Monads are a prison for data. Monads are the sole reason people have a hard time understanding Haskell. In fact, the concept of Monads is so scary that the fact that they are scary is scary in and of itself, disabling people from even attempting to understand Monads.

Artist's depiction of a Monad.

Prison Break

Although no one talks about it, there is a super 1337 backdoor into the monad prison system (as far as IO goes, anyway).


Prelude> import System.IO.Unsafe

Prelude> :t getLine

-- Uh oh, evil IO has taken our data prisoner!

getLine :: IO a

Prelude> x = unsafePerformIO getLine

Prelude> :t x

x :: a

-- Congrats, assface!


The Now Years

Today, Haskell remains the single most talked about language that no one uses. Many have tried to use Haskell, but are unable to comprehend the dizzingly abstract concept of a Monad. Even the word, "Monad," scares the hell out of most programmers. Entire books have been written just about Monads. However, most of them are very cryptic, and their authors probably don't even know what a monad is.

So, instead of doing anything constructive with the language, most people just write about the language like the dumb pricks they are, while the gang continues to make more language extensions that no one will use.

Code Snippets

Hello World

module Main where

main = putStrLn "Wello Horld!"

Get 'er Done


module Main where

class Fuckable a where
  fuck :: a -> Maybe a

data Dog = Dog String Bool

instance Fuckable Dog where
  fuck (Dog name fucked) = if fucked 
    then Nothing 
    else Just (Dog ("Fucked " ++ name) True)

screwThePooch :: Dog -> Maybe Dog
screwThePooch = fuck

main = do
  let myDog = Dog "Jackson" False
  return $ screwThePooch myDog

Hack the Gibson

module Main where

import System.Gibson
import System.Gibson.SecretCodes

hack = hackTheGibson secretCode1

main = return hack

Notable Works

The only person in the world, other than SPJ, that knows what a Monad is.

Below is a list of notable works written in Haskell.

Haskell is part of a series on Programming.

[2 L337 4 MEEnter the Matrix]

ADAAssemblyCC++COBOLDebugDOSErlangErrorFdiskFortranIntegerJavaLOLCodeMachine CodeMatlabMIRC ScriptMUMPSOpen SourcePerlPHPProgramming languagePythonQBASICRuby on RailsScratchSSHVisual Basic

Hacks

Firefox XPS IRC AttackSafari XPS Attack Sandworm

Programmers

Bill GatesLinus TorvaldsWeevGoatse SecurityTerry DavisTheo de Raadt

Other Topics

Operating systemWarezNotepadIs not a bug, it's a featureDatabase Error

Haskell is part of a series on

Softwarez

Visit the Softwarez Portal for complete coverage.