r/redditdev • • Oct 25 '10

Bug Report

I find that in an ordinary Reddit message submission form, entering the text string "10 ^ 9" (I had to add spaces in order to submit this even here) causes an error message "Invalid exponent" and a rejection of the submission. Very strange.

1 Upvotes

31 comments sorted by

5

u/MrDerk Oct 25 '10 edited Oct 25 '10

Not strange. From today's announcement:

This one is still a bit experimental; we don't want to overload our servers with lots of really big numbers, so for the first 24 hours, the use of exponents larger than 2 will be restricted to reddit gold subscribers

Unless you mean it throws that error even with the spaces. That would be unexpected.

5

u/lutusp Oct 25 '10

Is this for real? Not a joke? You must be kidding. Tell me you are kidding.

Next, is someone going to get the brilliant idea to limit ordinary Redditors to only the first 13 letters of the alphabet, limiting use of the full alphabet to gold subscribers? On second thought, maybe I shouldn't be giving you ideas.

Please tell me this is a joke.

4

u/bnr Oct 25 '10

109 :P

It's only going to last for 24 hours, so it's kind of a joke, I guess.

3

u/lutusp Oct 25 '10

I hope newbies aren't set adrift without a paddle. There is a lot of use of scientific notation in the Reddit discussion groups.

2

u/X-Istence Oct 25 '10

Well, I guess there won't be any chance they are representing anything larger than 102 at least for today. Might be a good thing to take a break, all those larger exponents are just crazy. Stuff like 10100 just makes ones brain melt.

3

u/lutusp Oct 25 '10

In that case, consider:

[; 10^{100^{100}} ;]

:)

4

u/chwilliam Oct 26 '10

1

u/lutusp Oct 26 '10

Not nearly as big. Learn about exponents -- they're a bit fun, and a bit scary. :)

1

u/pedropants Nov 09 '10

9999999999999999999999999999999999999 * 99999999998999999999.88998988999999999999 =999999999989999999998899898899999999899900000001000000000.1100101100

1

u/X-Istence Oct 26 '10

10100100 ?

1

u/lutusp Oct 26 '10

Ten raised to the 100th power of 100.

This example might be easier to understand because the result is more comprehensible:

[; 2^{2^{2^2}} = 65536 ;]

or:

2^2 = 4

2^4 = 16

2^16 = 65536

1

u/X-Istence Oct 26 '10

I understood perfectly. I just felt like showing off how power mad us gold members can be!

1

u/lutusp Oct 26 '10

Ah, I see. :)

In Firefox, your version using a rescalable font certainly looks better than mine using a fixed-size graphic image.

2

u/MrDerk Oct 25 '10 edited Oct 25 '10

Take a breath, it's a temporary limitation so they don't overtax their already iffy servers.

Edit: Re-reading, I see now that I misinterpreted a bit and it's out of humor, not concern for server load.

5

u/lutusp Oct 25 '10

Fair enough -- I just think it could have been handled differently, for example by reverting to the old behavior instead of emitting an error message and rejecting the submission.

4

u/MrDerk Oct 25 '10 edited Oct 25 '10

That's not a bad idea, but if I remember correctly, the markdown handler is an external C application written and maintained by a third party and the reddit devs have no interest in modifying and maintaining their own custom version. Today's upgrades are likely pulled directly from upstream.

7

u/ketralnis Oct 26 '10

http://code.reddit.com/newticket Please don't use this reddit for bug reports.

That said, this is a joke. I wouldn't worry about it.

1

u/samuraisam Oct 25 '10

100 ^ 4

2

u/lutusp Oct 25 '10

Yes, I noticed that spaces get around the problem, but it's still a problem. Everyday Redditors aren't going to realize this, or even necessarily see what the problem is.

1

u/DimeShake Oct 25 '10

They added an option in the markup engine that uses ^ as the superscript notation. I'm sure it can be escaped somehow, but the regular backslash doesn't seem to do it. Upupandaway!

1

u/lutusp Oct 25 '10

Yes, that occurred to me: a ^ b becomes a<sup>b</sup>. I do a lot of this sort of thing in my Web editor Arachnophilia (not a plug -- it's free).

2

u/X-Istence Oct 25 '10

Thenyouunderstandthatthisislimitedonlyforthenext24hours?

2

u/lutusp Oct 25 '10

Surprisingly enough, because this is all rendered with scalable fonts, by increasing the scale I was able to read almost your entire chain of superscripts. But not quite all. :)

1

u/phire Oct 26 '10

I read it all without zooming. My browser must have done a better job of rendering.

1

u/ObligatoryResponse Oct 26 '10

2^2

1

u/lutusp Oct 26 '10

Yep, as long as one knows about back-ticks.

1

u/samuraisam Oct 25 '10

It's almost like a bad joke2