Author Topic: Program languages  (Read 6925 times)

Offline Punboy

  • Moderator
  • Full Member
  • *****
  • Posts: 142
Program languages
« on: June 01, 2004, 12:30:46 PM »
Ok. We have fun discussing programming languages here. W00t! *is on caffeine rush*
Help control the human population. Have your spouse spayed or neutered.

Offline Kramy

  • Full Member
  • ***
  • Posts: 173
Program languages
« Reply #1 on: June 01, 2004, 11:01:25 PM »
Continuing on from this thread:
http://forum.outpostuniverse.net/index.php?showtopic=896

This one is more on-topic. :P

So just out of curiosity, how do you open multiple windows in python...and maybe shove them inside eachother? :)
-Kramy
001011000100101001110001011000000110110001111000

Offline Punboy

  • Moderator
  • Full Member
  • *****
  • Posts: 142
Program languages
« Reply #2 on: June 01, 2004, 11:15:16 PM »
depends, what toolkit do you wanna use? QT? GTK? TK?  
Help control the human population. Have your spouse spayed or neutered.

Offline Kramy

  • Full Member
  • ***
  • Posts: 173
Program languages
« Reply #3 on: June 01, 2004, 11:24:01 PM »
GTK? I think that's what will be used in Jamascript once it goes cross-platform(although that may be a while, since there's only ONE programmer working part-time developing it :P ).

Jamascript:

myWindow = New Window(640,480);
ChildWin = New Window(320,240,160,120,myWindow);
ChildWin2 = New Window(160,120,80,60,ChildWin);

Opens a window, inside a window, inside a window(all centered)....I can't wait for Jamascript to go cross-platform! :P
-Kramy
001011000100101001110001011000000110110001111000

Offline Kramy

  • Full Member
  • ***
  • Posts: 173
Program languages
« Reply #4 on: June 01, 2004, 11:27:55 PM »
Btw, incase you're wondering, all this poking I'm doing is not to slight you or Python. I'm just trying to get the word out about how easy Jamascript is(and so that if it sells more maybe they'll put more than one dev on it :P ).
-Kramy
001011000100101001110001011000000110110001111000

Offline Punboy

  • Moderator
  • Full Member
  • *****
  • Posts: 142
Program languages
« Reply #5 on: June 01, 2004, 11:52:30 PM »
Python:

win1 = QWidget()
win2 = QWidget(win1)
win3 = QWidget(win1)
Help control the human population. Have your spouse spayed or neutered.

Offline Kramy

  • Full Member
  • ***
  • Posts: 173
Program languages
« Reply #6 on: June 02, 2004, 12:42:05 AM »
Hey....GTK and Jamascript look quite similar.(except I included x/y coordinates)

Jamascript:

win1 = New Window(640,480);
win2 = New Window(win1);
win3 = New Window(win1);
« Last Edit: June 02, 2004, 11:30:14 AM by Kramy »
-Kramy
001011000100101001110001011000000110110001111000

Offline Punboy

  • Moderator
  • Full Member
  • *****
  • Posts: 142
Program languages
« Reply #7 on: June 02, 2004, 10:08:39 AM »
GTK is just the toolkit. The bindings to TK are whats similar...


And you forgot your semicolons! *ghasp*! :-p

Jamascript... imma go look at that. Looks interesting

EDIT: Went and looked, its heavily based on Java and Javascript. That's why its so similar to Python. Python is object oriented based on (or at least similar to) Object-C and C++, like Java. :-P

Although Python has alot more tools available and is available for alot more platforms, as well as better support and a larger community is in place. But jamascript looks cool
« Last Edit: June 02, 2004, 10:10:37 AM by Punboy »
Help control the human population. Have your spouse spayed or neutered.

Offline Kramy

  • Full Member
  • ***
  • Posts: 173
Program languages
« Reply #8 on: June 02, 2004, 11:31:56 AM »
Ahhh, I did forget them! :P Oh well, just shows that you should always test code before posting it. :lol:

I think I'll go have a look at python too. :)
-Kramy
001011000100101001110001011000000110110001111000

Offline BlackBox

  • Administrator
  • Hero Member
  • *****
  • Posts: 3093
Program languages
« Reply #9 on: June 06, 2004, 04:06:40 PM »
Hehe... I would love to tell you to use "real" programming languages like C/C++, (actually for real hardcore programming learn ASM. :heh:)

But I won't spoil your fun. I will say this however:

Tcl = Extremely slow. it sucks.
Python = Slow
Java = Slow
ASM = fast as you can get, assuming you know what you're doing
C = very fast
C++ = still very fast, but not as much as C.
VB = kinda slow but if you know what you're doing (maybe even add in assembly - you can do that with special vb ide addins) you can get a really fast program going.

Offline Kramy

  • Full Member
  • ***
  • Posts: 173
Program languages
« Reply #10 on: June 06, 2004, 05:33:02 PM »
Jamascript: Extremely slow.

On my 1.7ghz I can increment a variable for a second. The value ends at ~170,000

On my 1.7ghz I can increment 2 variables for a second. They end at ~160,000

On my 1.7ghz I can copy a 32x32 tile to the screen and increment a variable, for a second. The variable ends at ~140,000.

It gains performance(relatively) as you tell it to do more.
-Kramy
001011000100101001110001011000000110110001111000

Offline FallTime

  • Newbie
  • *
  • Posts: 33
    • http://www.borkovec.com/falltime/
Program languages
« Reply #11 on: June 11, 2004, 08:15:26 AM »
Op2Hacker: You Forgot One REAL programming language: DELPHI! And to the ASM, I can programme in ASM but only on level of MS-DOS applications :D
Sorry for my English. I like penguins. I'm neutral 'bout Linux.
------------------------------------------------
Don't judge people of their look

Offline Punboy

  • Moderator
  • Full Member
  • *****
  • Posts: 142
Program languages
« Reply #12 on: June 11, 2004, 02:11:46 PM »
delphi isnt a real programming language. its more like a scripting language. or so it seemed when i used it.

thank god for borland :-p
Help control the human population. Have your spouse spayed or neutered.

Offline BlackBox

  • Administrator
  • Hero Member
  • *****
  • Posts: 3093
Program languages
« Reply #13 on: June 15, 2004, 09:26:08 AM »
Yeah you can consider Delphi a real language, but yes it's slow, and it needs like 3 runtime modules minimum to run a program made with it.
But it does compile somewhat.

I hate all things Borland! :heh:

Offline Hooman

  • Administrator
  • Hero Member
  • *****
  • Posts: 4955
Program languages
« Reply #14 on: June 30, 2004, 01:34:00 AM »
Quote
VB = kinda slow but if you know what you're doing (maybe even add in assembly - you can do that with special vb ide addins) you can get a really fast program going.

Err how? I came accross a way to do this by intercepting calls to the compiler but is there a better way to do this?

Python is kinda interesting but I did find it a little slow. It had some interesting compiler writing utilities though that I never really found a (modern) C++ equivalent for, at least as far as ease of use goes. (But I guess Lex and Yacc aren't really all that bad.)

If you're looking for an interestnig language, try Haskell. It's completely different from most conventional (imperative) languages. Can't say it would be much for speed but doing things take very few lines of code. It falls into the category of functional languages which focus more on what needs to be done rather than how to do it.

Java ... I hope it dies a horrible horrible death!
It's much slower than C/C++ and takes a lot more code to get most things working. (To be fair, it wasn't meant to replace C/C++ and it probably does have it's uses. Also, I was given a rather miserable introduction to it which is likely part of the reason why I hate it. *flashback* DAAAH! The horrors!)

Pascal is a dinosaur! Some people need to realize the meteor has already landed on this one. (Warning to all first year students at a certain unnamed institution: "Incomming meteor!") They must have been smoking something when they decided to switch from C to Pascal last year. :angry: Thankfully it doesn't affect any courses I'm taking but it does mean I got asked a lot of Pascal questions and have been forced (well not really) to learn some. I would rather use Java. (thumbsdown) I would choose Python anyday.

C/C++ rocks.
VB is also cool and has it's uses (despite what a lot of C programmers say, ... although I guess I use C a lot more now).
ASM rocks.
Intel assembly is probably the most fun. Itanium (Itanic :heh:) definately looks cool but I wouldn't buy one. SPARC is super easy to learn. Z80 and 6502 are just classic. (thumbsup) Nintendo assembly programming certainly sounds appealing although a bit of a waste of time (but not as much as when I read up on the IBM 360! :lol: punch cards!) I probably should have spent more time on MIPS or at least PowerPC. Say, did anyone know the Super Nintendo processor was backwards compatible with the Nintendo processor? And that the Nintendo Processor was the same used in the Apple 2e? That seems to horrify a lot of people. :heh: Anyways, at least with the Z80 I can probably build a computer some time. I've got 3 CPUs lying aroung my room as well as a few 8080s and 8086/8088. Multiprocessor retro system! Yeah! And yes, I'm serious about that. It could happen in the next few months. Oh and 68k was also a fairly clean architechture.

Err, am I rambling too much?