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

Haskell --- average of a list.

Name: Anonymous 2015-07-08 17:53

Rules:

✡ must compute arithmetic average of a list
✡ only one pass is allowed
✡ constant memory

Name: Anonymous 2015-07-15 8:47

In perl6:

my $result = [+]@list / @list;

Are you guys even trying?

Name: Anonymous 2015-07-15 8:50

Oops, forgor precedence rules.

( [+] @list ) / @list

This works

Name: Anonymous 2015-07-15 16:52

>>40
Ah but you see, maths is not limited to execution of programs. An inductive argument from the algorithm's formal representation, and another relating it to its implementation, is sufficient to prove correctness of the algorithm and the program code. In practice we'd add tests to an arbitrary (small) subset of ∞, and some tool-driven coverage analysis.

That being said, the weight of that critique is on the case of the zero-element list. One might counter that it's appropriate to leave the average of nothing undefined, but thass' just some sloppy-ass whack right thur as far as pretending to do proper engineering goes.

Name: Anonymous 2015-07-16 6:16

>>43
arbitrary (small) subset
The subset would be small and trivial enough to be impractical to test.

Static typing is a pseudoscience, related to perpetual motion, which is real only in theory

Name: Anonymous 2015-07-16 7:32

It is a truth universally acknowledged that almost all mathematicians are Platonists, at least when they are actually doing mathematics …" This refers to their implicit embrace of essentialism, which he finds revealed in mathematicians peculiar use of language. Whereas physicists define Lie algebra as a rule they can apply to facts, mathematicians define it as an essence of a structure, independent of any circumstance.

Name: Anonymous 2015-07-16 7:48

>>45
This is accurate.

Name: Anonymous 2015-07-16 8:47

It is a truth universally acknowledged that almost all type-theoreticians are Pederasts, at least when they are actually doing type theory …" This refers to their implicit embrace of homosexualism, which he finds revealed in type theory peculiar use of language. Whereas heterosexuals define sex as a rule they can apply to reproduction, type-theoreticians define it as an essence of a structure, independent of any circumstance.

Name: Anonymous 2015-07-16 9:02

>>47
fail. GTFO

Name: Anonymous 2015-07-16 9:05

>>48
Shalom, Hymie!

Name: Anonymous 2015-07-16 12:21

>>47
Kike theory is made up bullshit.
The age-old practice of inventing new unscientific "ideologies" that can change on a whim is still alive and well.

Name: Anonymous 2015-07-18 3:45


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