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

Hasktard admits LITHP superiority

Name: Anonymous 2017-02-18 17:07

https://deque.blog/2017/02/17/quickcheck-is-fun-deal-with-it/

Since we are already on the LISP subject, we can take this opportunity to solve the long lasting developer debate. Which is better, infix or prefix notation?
Because every developer’s life goal is to golf his code, the winner will be the format that results in the shortest string representation in average.

The results shows the quite stunning performance of the prefix notation, winner by quite a large margin:

25% characters less for prn for expressions of complexity 30
30% characters less for prn for expressions of complexity 100

We would not want to conclude too fast and declare that prefix notation completely owns the infix notation. Instead, we hope the reader will come to this same conclusion by himself.

Name: Anonymous 2017-02-18 17:45

Because every developer’s life goal is to golf his code
The subject should read ``Hasktard admits LITHP superiority for code golf in expressions containing only multiplication and addition.''

But the Hasktard is still wrong. He puts unnecessary spaces between the infix expressions.

"(+ 1 2 (* 0 x y) (* 1 y (+ 2 x)) (+ 0 x))"
"1+2+0*x*y+1*y*(2+x)+0+x"

Even if you remove the extra spaces around parentheses, the infix still wins.
"(+ 1 2(* 0 x y)(* 1 y(+ 2 x))(+ 0 x))"
"1+2+0*x*y+1*y*(2+x)+0+x"

Name: Anonymous 2017-02-19 14:18

Name: Anonymous 2017-02-19 14:39

>>1
remove the extra spaces around parentheses
What if i don't add them in the first place? I also don't indent

Name: Anonymous 2017-02-20 20:17

JACKSON 5 GET

Name: Anonymous 2017-02-21 8:09

Because every developer’s life goal is to golf his code
no it isn't, unless you're suckless

Name: Anonymous 2017-02-24 20:44

>>6
The article was written by a Haskeller.

Name: Anonymous 2017-02-24 21:05

>>6-7
The article was written in jest. You know, "humor", the kind of thing that is linked to intelligence, the kind of thing that you both seem to lack?

Name: Anonymous 2017-02-24 21:17

>>8
Humor is not intelligent.

Name: Anonymous 2017-02-24 21:26

>>9
If you mean American humor, then yes.

Name: Anonymous 2017-02-24 22:22

>>10
No, I meant American humour,

Name: Anonymous 2017-02-26 13:50

age

Name: Anonymous 2017-02-26 14:34

>>11
fuck off paki

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