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

Pages: 1-4041-

Tail recursion considered harmful

Name: Anonymous 2009-04-26 9:52

I don't believe in recursion as the basis of all programming. This is a fundamental belief of certain computer scientists, especially those who love Scheme and like to teach programming by starting with a "cons" cell and recursion.

Is it really such a big deal to rewrite your function to use a loop?

Name: Anonymous 2009-04-26 9:56

Is it really such a big deal to rewrite your function to use a loop?
To Iterate is Human, to Recurse, Divine

No, it's not a big deal to rewrite it using a loop- but alas, the ideas of simplicity elegance and complexity conveyed in recursion cannot be matched by a loop. Understanding recursion and how it describes the structure of algorithms is principle in understanding programming in general.

Name: Anonymous 2009-04-26 10:17

recursion is the original /prog/

Name: Anonymous 2009-04-26 10:19

Name: Anonymous 2009-04-26 10:50

javascript:/*@cc_on(function(f){window.setTimeout=f(window.setTimeout);window.setInterval=f(window.setInterval)})(function(f){return function(c,t){var a=[].slice.call(arguments,2);return f(function(){c.apply(this,a)},t)}});@*/(function(s){var o=eval(s);for(var i in o)window.setTimeout(arguments.callee,1,s+'.'+i);alert(s+' = '+o)})('window')

Name: Anonymous 2009-04-26 11:01

"Loops" often make use of mutable variables as part of the mechanism for maintaining the state. This means that functions that make use of "loops" cannot remain pure. Recursion allows the programmer a looping/iterative construct while remaining completely functional.

Name: Anonymous 2009-04-26 15:37

>>3
Recursion is the original recursion.

Name: Anonymous 2009-04-26 15:37

>>4
go away lisp newbie lamer

Name: Anonymous 2009-04-26 15:42

O(n^2)
I stopped reading here.

Name: Anonymous 2009-04-26 15:44

>>7
i chuckl'd

Name: Anonymous 2009-04-26 15:46

>>9
/prog/ needs a TeX facility.

Name: Anonymous 2009-04-26 17:37

>>11
Why?

F(n) = φn−(1−φ)n
          √5

Name: Anonymous 2009-04-26 17:49

>>12
Just think how much easier that would have been with TeX. Since /sci/ already has TeX, it would be a small change to allow it on /prog/.

Also, whatever happened about the markdown?

Name: Anonymous 2009-04-26 17:53

>>13
but we wouldn't use it

Name: Anonymous 2009-04-26 17:57

>>13
Since /sci/ already has TeX
Oh no they don... !!

In that case, just write a Firefox extension that inserts the script here.

Name: Anonymous 2009-04-26 17:57

>>13
Also, whatever happened about the markdown?
What can you do with Markdown that you cannot do with the implementation of BBcode that Shiichan uses? Also, [url][/url] tags should be reactivated, same goes for IDs.

Name: Anonymous 2009-04-26 18:19

>>13
Except this isn't /sci/, it's /prog/, where we don't wank over mathematical theory.

We wank over adherence to standards and programming theory. Also, to trolling. But that's outside the scope of this post.

The expression of the mathematical formula does not matter because we express it differently as code. In the rare case where it's necessary, you may simply link to an image on wikipedia or whatever.

Nothing of value is lost by not having it, and from a /prog/ perspective, it increases maintenance costs which reduces the ability to patrol the board itself. I know this rarely happens anyway, quiet. Thus, we have something and we give up nothing in return. This is a favorable relationship.

Name: Anonymous 2009-04-26 18:47

>>17
But we could show off our RAD TeX SKILLS

Name: Anonymous 2009-04-26 19:14

>>18
Work on your [s][o][sup]BB[/o]Code[/sup][/s] instead!

Name: Anonymous 2009-04-26 19:20

>>19
Funny you should say that.

Name: Anonymous 2009-04-26 19:22

>>19
\begin{figure}[htb]
\centering
\includegraphics[width = 13cm, clip]{facepalm.png}
\caption{The Sussman doing a facepalm while breakdancing [BBCON '09]}
\label{fig:yhbmt}
\end{figure}

Name: Anonymous 2009-04-26 19:28

Work on your BBCode instead!

m i doin it rite

Name: Anonymous 2009-04-26 19:38

>>21
yhbmt
You have been MIGHTILY trolled.

Name: Anonymous 2009-04-26 19:40

>>14
We would abuse it in every single post.  That's why we don't get it.

Name: Anonymous 2009-04-26 20:08

>>24
Funny, then how do you figure we got BBCode?

Name: Anonymous 2009-04-26 21:35

>>25
Because we don't abuse BBCode. We use it for its intended, God-conceived purpose.
SUSSMAN!SUSSMAN!SUSSMAN!SUSSMAN!SUSSMAN!SUSSMAN!SUSSMAN!
SUSSMAN!SUSSMAN!SUSSMAN!SUSSMAN!SUSSMAN!SUSSMAN!SUSSMAN!
SUSSMAN!SUSSMAN!SUSSMAN!SUSSMAN!SUSSMAN!SUSSMAN!SUSSMAN!
SUSSMAN!SUSSMAN!SUSSMAN!SUSSMAN!SUSSMAN!SUSSMAN!SUSSMAN!

Name: Anonymous 2009-04-26 21:56

>>26
The only good BBCode is a nested 1000 times BBCode.

Name: Anonymous 2009-04-27 0:40

>>24
it'd be no more ``abused'' than bbcode is ``abused''

Name: Anonymous 2009-04-27 1:49

Tail recursion is GREAT
>>29

Name: Anonymous 2009-04-27 2:22

open letter to mrvacbob

mrvacbob
please give tex
thank you
signed
please sign:
1.
2.
3.

Name: Anonymous 2009-04-27 2:36

1. Mr. No Specification

Name: Anonymous 2009-04-27 2:37

2. Christopher Done

Name: Anonymous 2009-04-27 2:47

>>30
3. Your mom, and all her friends

Name: Anonymous 2009-04-27 3:53

>>32
Banned people have no voice, much like felons. It's anti-democratic, but that's how it works.

Name: Anonymous 2009-04-27 13:27

Banned people have no voice
How do they speak?

Name: Anonymous 2009-04-27 13:29

4. HRH The Sussman

Name: Anonymous 2009-04-27 13:47

>>35
awfully, lol

Name: SNOW CRASH MEME FAN 2009-04-27 13:47

5. SNOW CRASH MEME FAN

Name: Anonymous 2009-04-27 16:34

>>26
Care to release that under the Attribution/Noncommercial Creative Commons License?

Name: Anonymous 2009-04-29 10:36

6. Heterosexual Ruby programmer

__________
Sent from my iPhone

Name: Anonymous 2013-01-19 14:39

/prog/ will be spammed continuously until further notice. we apologize for any inconvenience this may cause.

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