Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Lisp has changed my life

Name: Anonymous 2012-02-26 3:51

http://landoflisp.com/#yt
If you take the time to go all the way to the bottom an read the comic you'll see just what i mean by "Lisp has changed my life".

Be sure to click the throbbing text as well.

Name: Anonymous 2012-02-26 12:07

>>4
but just look at map. That shit is completely broken, and it's not just a matter of implementing a new one in couple of lines, it's fundamentally broken at language level that doesn't allow better solution.
If you're talking about needing zipWith* instead of just map, here's a way to map over an arbitrary number of lists.

Prelude> let (<**>) = zipWith ($)
Prelude> map (^2) [1..10]
[1,4,9,16,25,36,49,64,81,100]
Prelude> map (+) [1..10] <**> [11..20]
[12,14,16,18,20,22,24,26,28,30]
Prelude> map (,,) [1..5] <**> "abcde" <**> [10..15]
[(1,'a',10),(2,'b',11),(3,'c',12),(4,'d',13),(5,'e',14)]


Of course, you can't give it a list of lists to map over, but that's an intentional limitation of static typing because the length of the list might not be known at compile time. If you want that then go ahead and use a dynamic language, but stop expecting all languages to have the same design goals.

Name: Anonymous 2012-02-26 12:11

im a recent lisp to javascript convert

all you lispfags can go scrub cdrs

Name: Anonymous 2012-02-26 13:51

Lisp coders might be toilet scrubbers, but Haskellers are homosexual gigolos.

Name: Anonymous 2012-02-26 14:00

>>6
If you want that then go ahead and use a dynamic language, but stop expecting all languages to have the same design goals.
If a language does not have the same design goals as Lisp, then it is objectively misguided and fundamentally broken.

The correct language has already been made and there is literally no imaginable reason for a new one to be made.

Name: Anonymous 2012-02-26 14:22

>>5
Static typing is premature optimization. Types are supposed to be only compiler hints that result in faster code, which interestingly Haskell fails to deliver.

Lazy evaluation is implementable in Lisp and full featured libraries exist. Simple implementation is even discussed in SICP which you should read, by the way.

type classes
See above about types. The same functionality is available in Lisp nevertheless.

Monads are implementable in Lisp. But 90% of all use of monads in Haskell is to mimic practices that are easily expressible in everything else. They are just hack to make Haskell suck a tiny bit less, but they don't do that much of a good work.

>>6
That's just stupid. What if I don't know how many parameters will I want to supply to the function? If I wanted to use language that limits me even in cases this simple I'd use C. Oh, wait, even C does allow variable number of arguments.

Name: Anonymous 2012-02-26 14:27

>>9
don't fall in love with your technology

Name: >>6 2012-02-26 14:32

>>10
Types are supposed to be only compiler hints that result in faster code
That's an opinion and if it's what you believe, then like I said, use a language that does what you want and accept the fact that what you want isn't what everybody else wants.

What if I don't know how many parameters will I want to supply to the function?
Then you use a list, and if you want different types, wrap it in another type like data T = A Int | B String | .... It's not pretty, and nobody is claiming that Haskell's type system is perfect, but it's safer than true homogenous lists. If safety isn't that important to you, then for the third time, Haskell isn't what you want so just use something else.

Also, you can implement a variable number of arguments of different types in Haskell (http://hackage.haskell.org/packages/archive/base/4.2.0.0/doc/html/Text-Printf.html), but usually I would do it a different way.

Name: Anonymous 2012-02-26 14:36

>>10
>Static typing is premature optimization
god no. it isn't implemented with optimization on mind, it is implemented with security in mind. (that you can use it for make the program go faster is not the primary concern)

>>type classes
>See above about types. The same functionality is available in Lisp nevertheless.

type-classes on lisp? you can use macros to archive something alike

>Monads are implementable in Lisp. But 90% of all use of monads in Haskell is to mimic practices that are easily expressible in everything else

true. lisp doesn't have the same design goal of haskell

>What if I don't know how many parameters will I want to supply to the function?
sigh. the list monad is also called the indeterminism monad you specify the type of what are you receiving an then make the function process the list of arguments


integralPolinomio :: Double -> [(Double,Grado)] -> Double
integralPolinomio dif ass@(a:as) =
  let gradoMayor = snd a
  in  dif * (sum $ map (uncurry integralMonomio) ass) / (moduloPolinomio gradoMayor)

look at the [(Double,Grado)] this is an umoptimized program (and a bad one) but it calculates by the legendre method integrals by accepting a list of arguments.

Name: Anonymous 2012-02-26 14:38

>>9
didn't smalltalkers were teaching you lisper something you didn't know (and found cool back then) in the 70's? how can something like that which wasn't in the design goals of lisp be perfect?

Name: Anonymous 2012-02-26 14:39

>>13
>>12
Variable number of arguments was meant in relation to map example that >>6-kun provided.

Name: VIPPER 2012-02-26 14:46

>>11
Yeah right fall in love with a girl instead.
AHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAH
AHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAH
AHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAH
AHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAH
AHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAH
AHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAH
AHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAH
Oh you such a stupid shitty faggot >>9san.

Name: Anonymous 2012-02-26 14:46

>>13
type-classes on lisp? you can use macros to archive something alike
No, I was thinking more along the lines of generic functions and CLOS.

Name: VIPPER 2012-02-26 14:49

>>16
[b]CORRECTION:[u] i meant >>11 instead of >>9.
Im so sorry and slightly drunk.
>>11 is i huge dick sucking scat loving turd huging shitty faggot. I hope his small dick falls off and and he gets eaten alive by maggots and burns in hell.

Name: VIPPER 2012-02-26 14:51

>>18
How did i manage to screw this up.

Im so dradfully sorry >>9 and the rest of /prog/, minus >>11 that is.
>11 is less worth than a nigger and smells atleast twice as bad as a jew.

Name: Anonymous 2012-02-26 14:52

>>18
>>19
But why are you so angry? Does alcohol make you angry? Maybe you should limit its use.

Name: VIPPER 2012-02-26 15:01

>>20
On the contrary, alcohol makes me feel much less angry, one might say it even makes me "happy".

Your denial of insight of the fact that technology is the ultimate good and goal of life as well as implying that humans are actually worth a damn and not to mention insulting lisp, make me want to harm you in such ways that this real does not permit me to.

Name: Anonymous 2012-02-26 15:02

>>21
I'm not >>11-kun. I was just concerned about your well-being.

Name: Anonymous 2012-02-26 15:03

VIPPER = JEW

Name: VIPPER 2012-02-26 15:06

>>23
This makes no sense.
>>21
Well failing to see why i am so angry i am forced to ask you why even are on /prog/?

Name: Anonymous 2012-02-26 15:08

>>24
You're drunk VIPPER. Go home.

Name: VIPPER 2012-02-26 15:14

>>25
But /prog/ is my home.

I love /prog/ so very very much.

Name: Anonymous 2012-02-26 15:51

>>9
If a language does not have the same design goals as Lisp, then it is objectively misguided and fundamentally broken.
Absolutely!

The correct language has already been made and there is literally no imaginable reason for a new one to be made.
Sexprs are the worst fucking shit ever made.  Go scrub another toilet you minimum-wage mental midget goy.

Name: Anonymous 2012-02-26 17:31

>>24
Methinks you doth protest too much. Therefore you are self-hating jew.

Name: Anonymous 2012-02-26 17:33

>>10
If you had read SICP, you would know that they talk extensively about the reasons lazy evaluation ISN'T in Lisp at the language level, and the tradeoffs that has.

Name: Anonymous 2012-02-26 18:00

>>29
Lazy evaluation should not be in anything at the language level. End of conversion.

Name: Anonymous 2012-02-26 18:16

>>30
Have fun doing more work than necessary.

Name: Anonymous 2012-02-26 18:24

>>29
Where in my post did I imply that there is lazy evaluation at language level you fucking toilet scrubber?

Lazy evaluation brings more problems than it solves. Infinite lists aren't worth all those time and space leaks, and not analysable performance for anything non-trivial.
(Also, funny thing, there's no such thing as pure function, since all functions take some time to complete. Debugging for time leaks is much more difficult than to debug for type errors.)

Name: Anonymous 2012-02-26 18:26

>>31
Have fun with space leaks everywhere.

Name: Anonymous 2012-02-26 18:27

>>32
(Also, funny thing, there's no such thing as pure function, since all functions take some time to complete. Debugging for time leaks is much more difficult than to debug for type errors.)
Eat this, stupid Haskell JEWS!

Name: Anonymous 2012-02-26 18:50

>>33
implying

Name: Anonymous 2012-02-26 19:40

>>34
"The next Haskell will be strict." -- Simon Peyton-Jones

Name: Anonymous 2012-02-26 19:46

>>32
I can't use lazy programming properly therefore it is not good
Stay classy programmer.

Name: Anonymous 2012-02-26 20:02

>>37
Nothing supports my argument therefore it's time to turn to ad hominem.

Stay idiotic, toiler scrubber.

Name: Anonymous 2012-02-26 20:13

what's wrong with lazy evaluation?

Name: Anonymous 2012-02-26 20:18

>>39
Get the fuck out of the thread you no talent bitch.

Name: Anonymous 2012-02-26 20:25

this thread makes me sad. why do so many of you dedicate yourselves to a language feature war? I guess it helps raise awareness about some language features. Maybe some readers of this thread will look up lazy evaluation. But why argue that a particular language or language feature is shit? Why not understand the differences, the advantages and disadvantages, of all choices at your disposal? It's a sad thing prog. Discussion can be more productive than this.

Name: Anonymous 2012-02-26 20:30

>>32
We were talking about languages and I said Haskell is lazily evaluated. Where did you get the idea that I meant you could implement lazy evaluation in the language?

I get the idea that you don't know what you are talking about when you say "time leaks." Do you know what the as-if rule is? Have you ever had any trouble debugging a C or C++ program for these so-called "time leaks"?
If your only complaint about lazy evaluation is that it can make programs hard to debug, then you need to get the fuck out of my /prog/.

Name: Anonymous 2012-02-26 21:08

>>38
lol u so glad

Name: Anonymous 2012-02-26 21:09

OP HERE, THANKS FOR DERAILING MY THREAD RIGHT FORM THE START HASKELL FAGGOTS

Name: Anonymous 2012-02-26 21:10

>>44
This is why haskells cannot be trusted to exist. They ruin everything.

Name: Anonymous 2012-02-26 21:12

>>44
Lisp has been discussed over a thousand times here. Give us a break.

Name: Anonymous 2012-02-26 21:16

I used to MENA HASKAL but then I took a lazily evaluated arrow to the knee!

Name: Anonymous 2013-09-01 19:42



                 _,,,.........,,,,_
            ,..::''"´:::;::::'´::::::::::`゙'::..、
          .,.::'´::__:::::;::´::::::::::::::::::::::::::::::\
        /:::::''´:::::`::::::::: ̄`゙':::、::::::::::::::::::ヽ,
       .,.:'::/::::::::::::::::::ヽ;::::::::::::::::::\:::::::::::::::::':,
      /::::::::::;:::/ `ヽ,::::::ト、:::::::::::ヽ;:::::「ヽ:::::::::::',
      ,':::/:::::::l/     ';:::::} \::::::::::';::ノ ,ゝ、::::::::l
     ;:::::':::::::;' 二_   |:::,    ヽ;::::r' イ ノ:::::::::;
     l::::i::::::::{ィ´r)ヾ、  レ' _,,.二、ハ::;>‐r'::::::::::/
     |;:::':::::::lr‐弋_リ'r-、-ァ´r) l!`Y!:::::i:::::';::::::::/
     |::,:::、::::'、、" _.ノ   、 ゝ-‐゚メ::::;'::::::|:::::':::::',
      ,::'、::\;ゝ   .     ー "升:/l::::::;:::::::::::::ヽ
      }::/.}::::人    、     /::レ'ノ:::;:'::|:::::::::::::::::\
      ,':/ ノ:;:':::::::\  `  ´   ,:'::::::://:::::;:::::::::::::::::::::::':,
     {:{ ,'::;::::::::/:::/ヽ.,_,,..  イ':::::::/´::::::::/:::::::::::::::::ノ:::::ノ
     r {/::::::::;':: /`ヽ ハ}  |::::::;:':::::::::::/::_;;:: -‐ i''" ̄ヽ
     },:':::::::::::{ /  '-く`''ー-r!:::::{--‐ ''i"´    |    ,
    /::{::::::: r、/    ヽ   l:::::',:::::::::::|__,,... -!_   }
   / ヽ/ヽ:r' 、\    rノー- ,::::::} ̄ ̄|::::::::::::::::::;'>ヽ  ;
  {   ;':::::: }   \\ ノ'、::::::ノ::::;:'__ .ノ::::::::::::/    ∨
   ヽ /7ー、/    \ Y  ̄ /::/     ̄`ア      ',

Name: Anonymous 2013-09-01 21:14



わ からない事は上白沢先生に相談しよう
きっと答えてくれないが気休めにはなるぞ!

┌───────────────────────────
|質問:
└───────────────────────────
       iヽ、
     ____」____ゝ'´/':\ /|        ハクタクシステム Ver.1.00
     ヽ. _/___/___::\/        ____________________________________
      <Y---r二二二二ハ.フ.     |
       ,.L__:::::|::::i::::L-」::l::7>       | 質問の答え:
     /     ̄' 'ー---─' `ヽ.     |
    ./   ,.      ⌒ヽ.     ',     |
   ,'  / / ‐/- i:::::::::::i   `ヽ!.    |
    i   i  !/ア!-;!、ハ:::::::ハ-!、.i . i.   |
   |  ハ .! ! !__r! ' レ' ァ!‐;!、i i |   |
   |  i レ' ! "    ,   !.rハ/レ'ヽ!  <
   |  ! .|ハ、   、..__   "/:::| .|     l___________________________________
    | ./i  |::::!>、._  _,,.. イ .|::::| |  ,.、    __
   .| ./ !,..-|::::|'´/ヽ二ン`7ー、|:::|. | i !,,.-''" ノ
   |/ /  .|::::|〈 イ::::V:::::::::!〉:`i:::ト、! .! ヽ -=ニ__
  .!r〈_   !,ヘ!:::ヽヘハ::::;イノ:::::;ヽ! ヽ,!   !  ‐--,' 「`ヽ_/`i
  !.ゝr、__r、i::::::::::::/ ハ Y::::::::::i  r/ ヽ   ー,--'  ,'ゝ-^ー‐'´ヽ.
  !/  、/ヽ;::::::〈  ハ ',:::::;イ、_ /!   7`  ̄    L!_!ハ!_ハ_i.」 i
  .〈    ヽ、/:::::::::ヽ/Vヽ、〉::::! !`ー,ヽ-'       从゚ ー ゚く」 | |
  .レ\ ,.イ`ヽ:::::::::::::ハ::::::::::::ハ、 |ノ          }>!|,イ〒イヽ! |<{

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List