.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $6.00

   







Go Back   .com.unity Forums > Shrapnel Community > Space Empires: IV & V

Reply
 
Thread Tools Display Modes
  #11  
Old March 29th, 2005, 10:15 AM
NullAshton's Avatar

NullAshton NullAshton is offline
Major General
 
Join Date: Nov 2004
Location: Floating in space.
Posts: 2,297
Thanks: 0
Thanked 0 Times in 0 Posts
NullAshton is on a distinguished road
Default Re: OT: One-color Lava Lamp

C++ is easy? It's a whole lot harder than Visual Basic.
__________________
Hey! I found squirrels!

Vala - "The last time I was this bored, I took hostages!"
Reply With Quote
  #12  
Old March 29th, 2005, 04:25 PM
Fyron's Avatar

Fyron Fyron is offline
Shrapnel Fanatic
 
Join Date: Jul 2001
Location: Southern CA, USA
Posts: 18,394
Thanks: 0
Thanked 12 Times in 10 Posts
Fyron is an unknown quantity at this point
Default Re: OT: One-color Lava Lamp

Compared to languages like COBOL, FORTRAN, LISP, etc., C++ is quite easy to work with. A huge number of modern languages (Java, Python, C#, PHP, Delphi, etc.) are based off of C++, so you get the advantage of getting a head start on them as well...
__________________
It's not whether you win or lose that counts: it's how much pain you inflict along the way.
--- SpaceEmpires.net --- RSS --- SEnet ModWorks --- SEIV Modding 101 Tutorial
--- Join us in the #SpaceEmpires IRC channel on the Freenode IRC network.
--- Due to restrictively low sig limits, you must visit this link to view the rest of my signature.
Reply With Quote
  #13  
Old March 29th, 2005, 04:35 PM
NullAshton's Avatar

NullAshton NullAshton is offline
Major General
 
Join Date: Nov 2004
Location: Floating in space.
Posts: 2,297
Thanks: 0
Thanked 0 Times in 0 Posts
NullAshton is on a distinguished road
Default Re: OT: One-color Lava Lamp

C++ in concept is very simple. You set varibles, then do various operations on them with functions. In practice, however, it can get complex. The hardest part I believe is remembering the functions, as well as 'thinking' in C++. There are many functions to interact with the user, and those can be difficult to work with at times. Also, programming forces you to think in other directions than you're used to. It took a bit of work to get that program to cycle the colors. I had a varible that told the program what colors it needs to decrease or increase.
__________________
Hey! I found squirrels!

Vala - "The last time I was this bored, I took hostages!"
Reply With Quote
  #14  
Old March 29th, 2005, 05:23 PM
geoschmo's Avatar

geoschmo geoschmo is offline
National Security Advisor
 
Join Date: Jan 2001
Location: Ohio
Posts: 8,450
Thanks: 0
Thanked 4 Times in 1 Post
geoschmo is on a distinguished road
Default Re: OT: One-color Lava Lamp

I just started a C++ class. Had my first class Monday. Yay me.
__________________
I used to be somebody but now I am somebody else
Who I'll be tomorrow is anybody's guess
Reply With Quote
  #15  
Old March 29th, 2005, 05:30 PM
NullAshton's Avatar

NullAshton NullAshton is offline
Major General
 
Join Date: Nov 2004
Location: Floating in space.
Posts: 2,297
Thanks: 0
Thanked 0 Times in 0 Posts
NullAshton is on a distinguished road
Default Re: OT: One-color Lava Lamp

I learn C++ by myself. No class for me
__________________
Hey! I found squirrels!

Vala - "The last time I was this bored, I took hostages!"
Reply With Quote
  #16  
Old March 29th, 2005, 06:51 PM
Will's Avatar

Will Will is offline
Lieutenant Colonel
 
Join Date: Mar 2001
Location: Emeryville, CA
Posts: 1,412
Thanks: 0
Thanked 0 Times in 0 Posts
Will is on a distinguished road
Default Re: OT: One-color Lava Lamp

Quote:
geoschmo said:
I just started a C++ class. Had my first class Monday. Yay me.
I'm not sure if this is supposed to be a pun or not!

In general, there isn't really much of a difference between programming languages. Sure, some have some syntax that make it a little more difficult (think assembly, etc). Some come with built-in libraries to handle the more complicated stuff (think Visual BASIC, etc.). But in the end, just about every language is Turing-equivalent, which means anything you can do on a Turing Machine, you can do with the language. Just don't try to program a Turing Machine, that's a nightmare (think assembly is to Turing as VB is to assembly). In the end, the choice usually comes down to the factors of how much time you have, what platform the program is on, and the "expected lifespan" of the code.
__________________
GEEK CODE V.3.12: GCS/E d-- s: a-- C++ US+ P+ L++ E--- W+++ N+ !o? K- w-- !O M++ V? PS+ PE Y+ PGP t- 5++ X R !tv-- b+++ DI++ D+ G+ e+++ h !r*-- y?
SE4 CODE: A-- Se+++* GdY $?/++ Fr! C++* Css Sf Ai Au- M+ MpN S Ss- RV Pw- Fq-- Nd Rp+ G- Mm++ Bb@ Tcp- L+
Reply With Quote
  #17  
Old March 29th, 2005, 08:20 PM
narf poit chez BOOM's Avatar

narf poit chez BOOM narf poit chez BOOM is offline
Shrapnel Fanatic
 
Join Date: Mar 2003
Location: CHEESE!
Posts: 10,009
Thanks: 0
Thanked 7 Times in 1 Post
narf poit chez BOOM is on a distinguished road
Default Re: OT: One-color Lava Lamp

What's a Turing Machine?

I've heard of the Turing Test, but never a Turing Machine.
__________________
If I only could remember half the things I'd forgot, that would be a lot of stuff, I think - I don't know; I forgot!
A* E* Se! Gd! $-- C-^- Ai** M-- S? Ss---- RA Pw? Fq Bb++@ Tcp? L++++
Some of my webcomics. I've got 400+ webcomics at Last count, some dead.
Sig updated to remove non-working links.
Reply With Quote
  #18  
Old March 29th, 2005, 09:52 PM
Will's Avatar

Will Will is offline
Lieutenant Colonel
 
Join Date: Mar 2001
Location: Emeryville, CA
Posts: 1,412
Thanks: 0
Thanked 0 Times in 0 Posts
Will is on a distinguished road
Default Re: OT: One-color Lava Lamp

Turing Machine is a theoretical computer. As far as I know, an actual Turing Machine does not exist, only machines that are equivalent to it (in the mathematical sense). I guess it would be possible to build one, but it would be highly inefficient. It's called a Turing Machine after Alan Turing, who thought it up while doing cryptography work for Britain in WWII.

The following should be sprinkled liberally with "IIRC"... it's been a while since I've looked at the specifics of Turing machines:
Basically, you have a set of "states", denoted by Q, and an "alphabet", denoted by a capital gamma. The alphabet has at least two "symbols", of which one is the "empty symbol", usually "0". The states are initialized to one of the symbols in the alphabet. A state "s" existing in Q is called the "start state", and a set of states F exists in Q denoting "final states". Finally, there is a function denoted by lowercase delta that maps actions to be taken with this Turing Machine. You start in s (the start state), and keep going until you get "stuck" in a state; if this state is a "final state", that's your answer, otherwise the answer is undefined. So, for example, you start in s, which holds the symbol "a". Delta maps s and "a" to 'change current state symbol to "b", move to state s3'. And you would keep going until you reach a point where you loop in a single state forever, or reach some condition, etc. It all depends on the specific definition you use.

The point of the whole thing is that anything your computer can do, or any computer, a Turing Machine can do. A corollary is that what any one computer can do (compute), any other computer can as well. So, the first electronic computer, ENIAC, could have done exactly the same calculations as the world's fastest supercomputer now. The only difference is it would be a bit harder to tell ENIAC to do the same thing as the supercomputer, and ENIAC would be a lot slower. But the idea is, it is theoretically possible for that to happen.

So, Turing-equivalence basically means that you can translate any program into pure mathematics, and vice versa, and thus any way of programming can accomplish exactly the same thing as any other way of programming. However, hardly anyone is insane enough to do the translation that way. It's like doing mathematics entirely within the space of Russel's conversion of arithmetic to logic, where proving that 2 + 2 = 4 takes 21969 steps, including all the subtheorems, etc. used to get there.
__________________
GEEK CODE V.3.12: GCS/E d-- s: a-- C++ US+ P+ L++ E--- W+++ N+ !o? K- w-- !O M++ V? PS+ PE Y+ PGP t- 5++ X R !tv-- b+++ DI++ D+ G+ e+++ h !r*-- y?
SE4 CODE: A-- Se+++* GdY $?/++ Fr! C++* Css Sf Ai Au- M+ MpN S Ss- RV Pw- Fq-- Nd Rp+ G- Mm++ Bb@ Tcp- L+
Reply With Quote
  #19  
Old March 29th, 2005, 11:33 PM
narf poit chez BOOM's Avatar

narf poit chez BOOM narf poit chez BOOM is offline
Shrapnel Fanatic
 
Join Date: Mar 2003
Location: CHEESE!
Posts: 10,009
Thanks: 0
Thanked 7 Times in 1 Post
narf poit chez BOOM is on a distinguished road
Default Re: OT: One-color Lava Lamp

Don't know what Russel's conversion is, but I get your point.

I can prove that 2 + 2 = 4 with 4 peas.

2 peas here.
2 peas here.
Put them together and get 4 peas. A pre-schooler can understand that, if their parents have been teaching them.

However, as I understand your point, to unravel all the impulses from start to finish would take a long time. (Read somewhere that it takes millions of calculations just to move your little finger - Don't know how true that is).
__________________
If I only could remember half the things I'd forgot, that would be a lot of stuff, I think - I don't know; I forgot!
A* E* Se! Gd! $-- C-^- Ai** M-- S? Ss---- RA Pw? Fq Bb++@ Tcp? L++++
Some of my webcomics. I've got 400+ webcomics at Last count, some dead.
Sig updated to remove non-working links.
Reply With Quote
  #20  
Old March 30th, 2005, 01:30 AM
Instar's Avatar

Instar Instar is offline
Major
 
Join Date: Aug 2000
Posts: 1,246
Thanks: 0
Thanked 0 Times in 0 Posts
Instar is on a distinguished road
Default Re: OT: One-color Lava Lamp

C++ is easy, believe me... wait till you try doing assembly (or even just the raw machine bytes...), or COBOL.
C++ is easy, because you can do easy C stuff. After some basic procedural stuff, moving on to simple objects is easy enough.
Pointers are easy enough, but for some reason people get them wrong...
Anyhow, starting C++ is easy. Understanding the high level ideas is harder.
__________________
When a cat is dropped, it always lands on its feet, and when toast is dropped, it always lands with the buttered side facing down. I propose to strap buttered toast to the back of a cat. The two will hover, spinning inches above the ground. With a giant buttered cat array, a high-speed monorail could easily link New York with Chicago.
Reply With Quote
Reply

Bookmarks


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 On

Forum Jump


All times are GMT -4. The time now is 12:26 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2024, Shrapnel Games, Inc. - All Rights Reserved.