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

Academics should stick to pure computer science

Name: Anonymous 2016-03-14 22:58

Every time the academics try to wet their flaccid noodle in the soft, warm crevices of actual programming, they prematurely squirt all over it, and don't get any of their gooey information inside. I'm coming at this from the context of compilers, but I'm sure it applies to most areas. I don't think that anyone could disagree that tomes such as TAoCP are anything less than holy scripture and should be read by anyone who thinks to call them-self a programmer, but beyond that, it's done nothing but waste time. For instance, pure functional programming. Like most academic things, it promises beauty and simplicity and millions of optimizations that can be done. Where are these optimizations? In the math of course. Problem is, most of them never bother to implement them, and on the rare occasion that they do, it's some toy that only shows that particular optimization on a particular instance on a particular program.

The damage comes in when legions of pseudo-intellectuals argue for the style used on the basis that it can merely be shown to allow these optimizations. The rate at which such things actually occur are probably less than one or two percent. Besides looking particularly ``mathy'' in syntax, the result is usually purposeless and never delivers one any of the promises that were theoretically possible.

Name: Anonymous 2016-03-15 16:48

>>22
It is not about objects of class A' extending class A behave differently from objects of class A, but about a parameter expecting a value of type A can also use a value of type A' without breaking any invariant.

Not quite, the interesting question is whether you can make your function polymorphic so that it also returns A' (and yeah, forget about dynamic polymorphism for a moment, you'll get all the same problems if you make it a template and always work with concrete types, so that's just a red herring).

By the way, to focus this discussion on something actually practical: what's your opinions on integers being a subtype of reals? Or, like, what do you think you can use subtyping for, even?

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