Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Computer Forums > Programmers Lounge > Programming Discussions » Writing a program in binary
Closed Thread
Old 11-29-2008, 02:50 PM   #11 (permalink)
 
Software Developer

Join Date: Mar 2006

Location: Columbus, OH

Posts: 569

jaeusm is on a distinguished road

Default Re: Writing a program in binary

Quote:
You know how cool it would be to say "I programmed Hello World in binary"?
Where I come from, it would be *very* cool.
In some assembly languages, there is a one-to-one mapping between assembly instructions and machine code instructions. In other words, each binary instruction is given a simple, quasi-English name. The reason for that is so the programmer does not have to remember all the bits. Machine code is intended only to be read by machines. Everything else is for humans.

Quote:
If he was able to find one of the much older computers (pre 80's) he could take a pop at it but it just isnt going to happen on modern hardware.
He could do it with today's hardware. There's nothing present in more modern hardware to prevent it.
jaeusm is offline  
Old 11-29-2008, 02:56 PM   #12 (permalink)
Saxon's Avatar
 

Join Date: Feb 2007

Posts: 6,346

Saxon is just really niceSaxon is just really niceSaxon is just really niceSaxon is just really nice

Default Re: Writing a program in binary

No but modern hardware is vastly more complex that is what would prevent him from doing it.
__________________
I am not here for long I am deploying soon so please don't expect anything long winded.

Saxon is offline  
Old 11-29-2008, 06:35 PM   #13 (permalink)
Lexluethar's Avatar
 

Join Date: Jul 2008

Location: Kansas City

Posts: 2,266

Lexluethar has a spectacular aura aboutLexluethar has a spectacular aura about

Send a message via AIM to Lexluethar
Default Re: Writing a program in binary

I'm with Saxon and a few others on this. While I'm sure you could find a program to emulate an environment in which binary will work and run as if it were a separate cmd line program there would be no purpose other than novelty. If you want to program something that will actually work and be useful use a tool like C++, VB, or Java and their compiling languages / packages.

There would be no way within todays environments to create a program that would really do anything. If you could it would take freaking forever to code it in binary.

I agree it would be kind of neat, but personally I would just go and write something that you could use and would be functional in VB or C++. And it doesn't have to be something huge and corporate, you could program something to keep track of your budget, grades, and a multitude of other things that would make every day life a little easier.
__________________
www.TerahertzPC.com
Lexluethar is online now  
Old 12-02-2008, 08:37 PM   #14 (permalink)
Dr.House's Avatar
 
True Techie

Join Date: Dec 2008

Location: Rx Counter

Posts: 143

Dr.House is on a distinguished road

Send a message via AIM to Dr.House
Default Re: Writing a program in binary

This chat reminds me of the days of teletype machines and punch cards those days are long gone for a reason! Just stick to low level languages like Assembly, you wont cry if you do :-P
Dr.House is offline  
Old 12-08-2008, 05:40 PM   #15 (permalink)
oldskool's Avatar
 
Electrical Systems Design

Join Date: Jun 2008

Location: Maine, USA

Posts: 1,611

oldskool has a spectacular aura aboutoldskool has a spectacular aura about

Default Re: Writing a program in binary

Quote:
Originally Posted by zedman3d View Post
Round here you'd get bashed.
:laughing: LOL
oldskool is offline  
Old 12-12-2008, 12:33 AM   #16 (permalink)
 
Newb Techie

Join Date: Dec 2008

Posts: 27

Invidious is on a distinguished road

Default Re: Writing a program in binary

I don't know any programming languages, well I know a little bit of some languages.

I used to have a friend who was around when computers were first being used by libraries. She worked in a library and no one knew how to use whatever machine it was that used the punch cards, so she learned how to do it because she figured she could play with it and not be disturbed. I'm not sure if she was using binary for that, but whatever she was doing she said it was frustrating.

I don't think even if given the opportunity I would want to learn binary writing. But if you want to at least be given some idea of what it was like, go find an oldy to talk to. Younger programmers probably have had fleeting thoughts about binary only to remember, oh hey, what is the point? Hehe.

I know how to convert binary to base 10, but I have no clue how to use it to make a computer do anything hehe.
Invidious is offline  
Old 12-12-2008, 09:32 PM   #17 (permalink)
oldskool's Avatar
 
Electrical Systems Design

Join Date: Jun 2008

Location: Maine, USA

Posts: 1,611

oldskool has a spectacular aura aboutoldskool has a spectacular aura about

Default Re: Writing a program in binary

That's what people who compose assembly languages do, is use hex and all that, in order for the computer to ultimately write machine code, but they do it through the language and not directly entering 1's and 0's. The computer does the translation via the assembly language code. Imagine how exciting that would be if you actually entered every single binary bit of Microsoft Office for example!!!:freak::laughing:

Last edited by oldskool; 12-12-2008 at 09:35 PM.
oldskool is offline  
Old 12-31-2008, 12:34 PM   #18 (permalink)
 
Newb Techie

Join Date: Dec 2008

Posts: 3

0x123 is on a distinguished road

Default Re: Writing a program in binary

hey aetherh4cker, hello world in binary is,
Code:
11101011000011000100100001100101011011000110110001101111001000000111011101101111011100100110110001100100001001001011101000000010000000011011010000001001110011010010000110110100001011001110110100100001
And in hex,
Code:
EB 0C 48 65 6C 6C 6F 20 77 6F 72 6C 64 24 BA 02 01 B4 09 CD 21 B4 4C CD 21
Find a way to save this as hello.com and run it from a command prompt.
0x123 is offline  
Old 01-01-2009, 05:46 AM   #19 (permalink)
mikesgroovin's Avatar
 
HONK if you route packets

Join Date: Sep 2003

Posts: 4,664

mikesgroovin will become famous soon enoughmikesgroovin will become famous soon enough

Default Re: Writing a program in binary

Quote:
Originally Posted by 0x123 View Post
hey aetherh4cker, hello world in binary is,
Code:
11101011000011000100100001100101011011000110110001101111001000000111011101101111011100100110110001100100001001001011101000000010000000011011010000001001110011010010000110110100001011001110110100100001
And in hex,
Code:
EB 0C 48 65 6C 6C 6F 20 77 6F 72 6C 64 24 BA 02 01 B4 09 CD 21 B4 4C CD 21
Find a way to save this as hello.com and run it from a command prompt.
Do you even have any idea what you are talking about?
__________________
A+, Net+, Sec+, Server+, Linux+, MOUS(2000 & '03), MCSE, MCSA, MCT, CNA, CCNA, CCDA, CCNP, CCSP
mikesgroovin is offline  
Old 01-01-2009, 01:25 PM   #20 (permalink)
Baez's Avatar
 

Join Date: Sep 2005

Location: Toronto, Canada

Posts: 5,423

Baez is a glorious beacon of lightBaez is a glorious beacon of lightBaez is a glorious beacon of lightBaez is a glorious beacon of lightBaez is a glorious beacon of light

Default Re: Writing a program in binary

He does somewhat. If you write and save the hex file properly it can run in some compilers. The command prompt part won't do anything. The binary will do absolutely nothing too.
__________________

Baez is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with my writing tablet chatfouz Everything Laptops 0 10-11-2008 10:29 PM
BFG Announces Graphics Card 100 Day Trade Up Program Osiris Other Computer HW Topics 5 03-18-2008 08:34 PM
Join The Windows Feedback Program and grab some free apps Osiris Windows Operating Systems and Software 4 12-14-2007 05:45 PM
friends log Static_11 HijackThis Logs (finished) 11 11-25-2007 10:27 PM