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

Haskell Point-free is Equivalent to Forth

Name: Anonymous 2011-02-09 17:36

Nothing but a bunch of stack-twiddling write-only bullshite.

Name: Anonymous 2011-02-09 18:29

In my Lisp DSL I do it like this:

fadd [@xs x y] -> [@xs x+y]
fsub [@xs x y] -> [@xs x-y]
fmul [@xs x y] -> [@xs x*y]
fdiv [@xs x y] -> [@xs x/y]
fdup [@xs x] -> [@xs x x]
fdrp [@xs x] -> [@xs]
fsay [@xs x] -> do x.say [@xs]
[2 3].fdup.fadd.fmul.fsay // prints 12


where is your haskell now?

Name: Anonymous 2011-02-09 18:43

>>5
Haskell's

fsay . fmul . fadd . fdup [2, 3]

wont be pf either

Name: Anonymous 2011-02-09 18:46

>>7
So is in my DSL:

fanus =: ?.fdup.fadd.fmul.fsay
fanus [2 3]

Name: Anonymous 2011-02-09 18:48

>>9
pf isnt a big deal.

Name: Anonymous 2011-02-09 18:53

>>8
A function with a implicitly named argument is not poinfree.

Name: Anonymous 2011-02-09 18:53

>>11
It has something very similiar.

Name: wiki helps me arguing! 2011-02-09 18:59

Name: Anonymous 2011-02-09 19:01

C++ (not C++0x) has something very similiar to lambdas.
It has functors, that are lambdas.

Name: Anonymous 2011-02-09 19:06

>>17
stop butthurting

Name: Anonymous 2011-02-09 19:17

>>19
sorry :-(

Name: Anonymous 2011-02-09 19:20

I wonder what a discussion between the ``in Lisp'' guy and FrozenVoid would be like. And who would outtroll who.

Name: Anonymous 2011-02-09 19:28

>>23
You can filter him by using his DSL's pattern matching syntax as the filter pattern.

Name: Anonymous 2011-02-09 19:30

>>23
You should use non-anonymouse BBS then. People, like me, who dont care about social norms, quickly get bans on non-anonymous sites. So, you should be safe there.

Name: Anonymous 2011-02-09 19:32

>>22
And, BTW, I'm not trolling. Just posting my opinion. Sorry, if it insults you, guys, but Computer Science gets quite subjective at times.

Name: Anonymous 2011-02-09 19:37

>>26
I'm not trolling. Just posting my opinion.
FrozenVoid used to say roughly the same thing.

Name: Anonymous 2011-02-09 19:53

>>28
The DSL is pseudocode:
http://dis.4chan.org/read/prog/1296914507/37
f [x _ @xs] -> x+xs.f
How does it know to return 0 in the unmentioned cases, such the empty list case? How does it know what to return in the unmentioned cases of every function?

Name: Anonymous 2011-02-09 19:53

>>29
Well played, sir.

Name: Anonymous 2011-02-09 19:56

>>26
The only way to prove that you're not trolling is to post the entire implementation of your DSL somewhere. Zip/Rar/7z/tar.bz2/... it up and upload it to any free file host (if you don't know any, I can easily point you to any).

Name: Anonymous 2011-02-09 20:46

>>35
I chortled.

Name: Anonymous 2011-02-09 23:07

>>35
And then Haskell was dead ;_;.

Name: Anonymous 2011-02-10 0:36

>>35
You're not supposed to be doing dirty things like that in HASKAL.

Name: Anonymous 2011-02-10 1:07

>>35
you can use it to do things like this:
fibs = loeb $ 0 : 1 : map (flip (!!) + (flip (!!) . succ)) [0..]

Name: Anonymous 2011-02-10 1:09

Jesus Christ, can't you just type in the naive recursive definition and have the HASKAL compiler automagically figure out the fastest implementation for it?

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