🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Untitled

posted in DruinkJournal
Published December 21, 2006
Advertisement
RAWR. Looks like my ISP has blocked 4cahn.org.

Blueyonder was totally screwed earlier, their service page said there were "Nationwide problems with the broadband service", and my home net connection (With my Internet radio, forums, etc), www.telewest.co.uk and www.blueyonder.co.uk all went down every 10 minutes for 30 seconds to 5 minutes at a time...

Now I can't get an IP for 4chan.org, nslookup says it times out, but OpenDNS works. So I went to their "Contact us" page. Here's what it says:
Quote: Please give a full description of the problem you are experiencing, include give a full description of the problem you are experiencing, include traceroute and ping results for slow speed issues and any extra information that you feel may be helpful in resolving the problem


Quote: Your IP details (IP address, DNS server addresses, subnet mask NIC MAC address) and full details of any error message (if any) you receive with this problem
I mean come on. What the hell? How is the average user going to get half that information when their Internet is playing silly buggers?

Anyway, I'm fully expecting them to come back and say that the sites been blocked and I'm not allowed to use OpenDNS or I'll be bent over and raped.


Also, this annoys me:
int foo = 1 + 2;
int foo = 1 - 2;
int foo = 1 -2;
int foo = -2;
int foo = - 2;
int foo = 1 + -2;
int foo = 1 + - 2;
That's all ok in C/C++, but it causes my lexer to spazz out and read "-2" as one token. Which is correct, sort of. So now I have a horrible hack in which the lexer reads "-2" as "-" and "2", and when the expression parser comes across a "-" where whatever comes before it isn't an int, float or integer, it stuffs a "0" in.
So int foo = 1 + - 2; becomes int foo = 1 + 0 - 2;

Eww...


Also, GDNet = fux0r for the past 2 or 3 hours. The server's been closing the connection instantly. What's going on? [sad]
Previous Entry Untitled
Next Entry Untitled
0 likes 3 comments

Comments

Sonnenblume
Have you heard back from blueyonder yet?
December 22, 2006 06:25 AM
benryves
My parser supports two kinds of operator - binary (1+1) and unary (+1). In both those cases, the plus sign is handled as two different, distinct, operators.

What happens if you try int foo = 1 * -1;?

Adding ternaries (?:) is going to be fun.

Your hack can't be as bad as mine, which replaced any instance of [operator][-] with [operator][¬], so the above would become int foo = 1 * ¬1;, where ¬ was later handled as a special "unary subtraction".
December 22, 2006 12:09 PM
Evil Steve
Quote: Original post by Sonnenblume
Have you heard back from blueyonder yet?

Nope, but 4chan seems to be working again...

Quote: Original post by benryves
My parser supports two kinds of operator - binary (1+1) and unary (+1). In both those cases, the plus sign is handled as two different, distinct, operators.

What happens if you try int foo = 1 * -1;?

Adding ternaries (?:) is going to be fun.

Your hack can't be as bad as mine, which replaced any instance of [operator][-] with [operator][¬], so the above would become int foo = 1 * ¬1;, where ¬ was later handled as a special "unary subtraction".
Oh crap. I didn't think about that...
Back to the drawing board [sad]
December 23, 2006 10:38 AM
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Advertisement
Advertisement