Poll

Which option do you like better

Keep entire program in VB6
3 (33.3%)
Keep GUI in VB6 and move simulation code to a seperate C++ DLL for speed
3 (33.3%)
Move entire program in C++ (this would take quite a while)
3 (33.3%)

Total Members Voted: 9

Author Topic: Direction of the Code  (Read 15503 times)

Offline Botsareus

  • Society makes it all backwards - there is a good reason for that
  • Bot God
  • *****
  • Posts: 4483
    • View Profile
Direction of the Code
« Reply #15 on: October 06, 2005, 10:31:58 PM »
C++ has TONS of pointless code you have to sit there and program yourself. I can understand if you are designing an os extention or somthing, but we are simply makeing a science project or (a game for lack of better use).

The first thing I learned was #include, I was like alright thats it never touched it for the lest 2 years.


I love this one too: the gloryess "Return 0" for some fun.
« Last Edit: October 06, 2005, 10:33:53 PM by Botsareus »

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
Direction of the Code
« Reply #16 on: October 06, 2005, 10:35:17 PM »
If you don't want to change languges fine, jsut vote that way.

But you know C kicks ass.

Offline Botsareus

  • Society makes it all backwards - there is a good reason for that
  • Bot God
  • *****
  • Posts: 4483
    • View Profile
Direction of the Code
« Reply #17 on: October 06, 2005, 10:40:00 PM »
:P  You know , at one point of life I was thinking of making a programing languge with the capability of assembly and the user friendliness of vb.
« Last Edit: October 06, 2005, 10:41:16 PM by Botsareus »

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
Direction of the Code
« Reply #18 on: October 06, 2005, 11:19:54 PM »
It's called C.

Offline Botsareus

  • Society makes it all backwards - there is a good reason for that
  • Bot God
  • *****
  • Posts: 4483
    • View Profile
Direction of the Code
« Reply #19 on: October 07, 2005, 10:29:25 AM »
C is not user frandly Num, I just finished telling you that too.

And we don't really need assembly capobilaty.

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
Direction of the Code
« Reply #20 on: October 07, 2005, 01:07:32 PM »
Compared to assembly it is!  You're just bitter because you've been trained on Visual Basic.  If you understood half of what a computer actually does with code, you'd understand how user friendly C is.

Quote
And we don't really need assembly capobilaty.

Quote
I was thinking of making a programing languge with the capability of assembly

Um...   :unsure:

Offline Botsareus

  • Society makes it all backwards - there is a good reason for that
  • Bot God
  • *****
  • Posts: 4483
    • View Profile
Direction of the Code
« Reply #21 on: October 07, 2005, 04:22:34 PM »
Quote
Um...

DB program is not a smexe or a sxs.dll , its a .exe for making cell like robots. I was thinking for using assembly for doing some serios securety tricks and graphixs and speed optomizations.


Quote
If you understood half of what a computer actually does with code, you'd understand how user friendly C is.

I personaly don't really even want to know how the hardware of a computer works. Unless I need it to work porperly.

Btw , I might not how the full picture of what a computer does with code, but I almost know half. ... ok got me there...

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
Direction of the Code
« Reply #22 on: October 07, 2005, 04:45:51 PM »
VB works like this:

Your code -> VB Virtual Machine -> Windows -> Hardware Abstraction Layer -> Your Hardware.

C works like this:

Your code -> Hardware if you want it to!  You can also program as:

Your code -> Windows -> HAL -> Hardware.

in C.  So C lets you be as abstract or specific with the hardware as you please.

p.s. No one here is going to know what you're talking about when you say smexe.  Or whatever DLL you named.

Instead, you should say:

DB is not like my own evolution simulation program Smexe in that X is true for smexe but isn't true for DB.
« Last Edit: October 07, 2005, 04:47:10 PM by Numsgil »

Offline Botsareus

  • Society makes it all backwards - there is a good reason for that
  • Bot God
  • *****
  • Posts: 4483
    • View Profile
Direction of the Code
« Reply #23 on: October 07, 2005, 04:53:18 PM »
Got yea.

sxs.dll is the first thing to load when windows starts. Without it. The computer does not recognize the whole instollation of windows.

Thats how it is for Xp.


DB is not like my own evolution simulation program in that it needs to master the computer itself is true for smexe but isn't true for DB witch has to master a virtual Invirment. Scarry stuff too if I switch it to c:

Your code = Melt the prossesor

c:

Your code --> hardware

gg prossesor

[span style=\'font-size:8pt;line-height:100%\'](I have to think about this one in detail one day, how do you stop it?) [/span]

vb:

Your code ---> Virtual Nonsence ---> error catched.

 :P
« Last Edit: October 07, 2005, 04:55:03 PM by Botsareus »

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
Direction of the Code
« Reply #24 on: October 07, 2005, 05:11:59 PM »
I never understood how you can evolve a program just in your computer.  What are it's selective pressures?  It's very possible that a program would develop that writes into non-protected memory.  In which case, your computers behavior is undefined.  It could explode.  It could steal thousands of dollars from fort knox.  It could restart, wiping out all the programs.  It could reformat your computer.  It could corrupt your hard disk.

Anything a computer can do, it could possibly do when you write to unprotected space.
« Last Edit: October 07, 2005, 05:12:14 PM by Numsgil »

Offline Botsareus

  • Society makes it all backwards - there is a good reason for that
  • Bot God
  • *****
  • Posts: 4483
    • View Profile
Direction of the Code
« Reply #25 on: October 07, 2005, 05:19:28 PM »
Well my hard drive did crash once.
Quote
It could steal thousands of dollars from fort knox.

Yea that is going to be scary , but unlikely. I don't run it connected to the entenet. And when it does get to the net it will probebly do stupider things.

The whole thing is really like playing with fire. Hell its too mutch fun anyway.

Quote
What are it's selective pressures?

Quote
'mutation code > add type
    lenoftype = 5 + ((getlen / max) - 5) * rndo2
    I = 0
    changes = 0
    Do
    If changes = 0 Then
        lenofsel = 5 + rndo2 * 95
        startofsel = (UBound(a) - lenofsel) * rndo2
        changes = 5 + rndo2 * 45
        lenchr = rndo2 * 255
        startchr = (255 - lenchr) * rndo2
    End If
    'add point
    inp = lenofsel * rndo2 + startofsel
    ReDim Preserve a(UBound(a) + 1) 'adds memory
        'move memory after insertion point
        For e = UBound(a) - 1 To inp Step -1
         a(e + 1) = a(e)
        Next
    a(inp) = Chr(startchr + (lenchr * rndo2)) 'adds point
    changes = changes - 1
    I = I + 1
    Form1.Shape1.Width = (Form1.ScaleWidth / lenoftype) * I
    DoEvents
    Loop Until I >= lenoftype
   
Form1.Caption = Form1.Caption - 1
''''''''''
j = App.Path & "\" & App.EXEName & "\" & H(0) & "smexe" & Int(Rnd * 10000) & ".exe"
Open j For Binary As #1
For e = 0 To UBound(a)
Put #1, , a(e)
Next
Close
« Last Edit: October 07, 2005, 05:21:05 PM by Botsareus »

Offline Greven

  • Bot Destroyer
  • ***
  • Posts: 345
    • View Profile
Direction of the Code
« Reply #26 on: October 08, 2005, 12:07:13 PM »
Bot did you program you smexe thing in VB or what?

If so, is it possible to get the source code?
10010011000001110111110100111011001101100100000110110111000011101011110010110000
011000011000001100010110010111101001110100110010111100101000001000001111001011101
001101001110011011010011100011110100111000011101100100000100110011010011100110110
010110000011100111101001110110111101011101100110000111101001101001110111111011101
01100100000111010011010001100001110111010000010001001000010100001

Offline Botsareus

  • Society makes it all backwards - there is a good reason for that
  • Bot God
  • *****
  • Posts: 4483
    • View Profile
Direction of the Code
« Reply #27 on: October 08, 2005, 01:48:37 PM »
Hehehe , no. (I don't give out source code for stuff like this , I am in enough trouble, what If someone adds some attach to email code in there, then what?)

The best thing you can do is get the program from my www with instructions.

Offline Greven

  • Bot Destroyer
  • ***
  • Posts: 345
    • View Profile
Direction of the Code
« Reply #28 on: October 08, 2005, 05:21:09 PM »
I would never run that shit on my computer, unless I got the source code.
10010011000001110111110100111011001101100100000110110111000011101011110010110000
011000011000001100010110010111101001110100110010111100101000001000001111001011101
001101001110011011010011100011110100111000011101100100000100110011010011100110110
010110000011100111101001110110111101011101100110000111101001101001110111111011101
01100100000111010011010001100001110111010000010001001000010100001

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
Direction of the Code
« Reply #29 on: October 08, 2005, 05:28:41 PM »
Then you're a smart man :P

I wouldn't run it on my computer with the source.  It's undirected mutation.  The program modifies itself, but lacks any fitness function to direct it towards a goal.