Wow...this place has changed...
Moderator: Halo Moderators
-
- Commando
- Posts: 2589
- Joined: Thu Jun 24, 2010 6:36 am
Re: Wow...this place has changed...
Ugh... Math... Hurt... brainnnnnn
-
- Ranger
- Posts: 724
- Joined: Mon Aug 27, 2007 2:13 pm
- Location: performing dark rituals on halo...
Re: Wow...this place has changed...
Huh. So its only specific to integers, and not all mathematical formulas. Thats really helpful actually...my lesson thingy probably will go over that, but, im new at this so it probably left it out.nil wrote: It does integer division if you only use integers. For example, 4 / 3 = 1, but 4.0 / 3.0 produces a floating-point 1.33333333333.. and 4 / 3.0 or 4.0 / 3 produces that floating-point as well.
Side note: I have been officially introduced to "Hello, world!", and made my first freakishly simple program. I know its just a print greeting, but still...better than three days ago.
I've been told by conflicting sources that Python is suitable for creating applications, and another who said it isn't. (To which I replied wouldn't any high level language be able to write an application?), from what I understand, a high level language is put through a compiler or an interpreter anyway, to turn it into byte code. So what does it matter? If anything, Python seems more efficient than something like Java or PHP.
"One Death Is An Anomaly. One Hundered
Thousand Deaths Is an statistic"
Thousand Deaths Is an statistic"
Re: Wow...this place has changed...
Python is perfectly suitable for creating applications. I happen to know of a very powerful server application that runs primarily in python with certain critical sections written in C. See the list on wiki for more information: link.
Python does run in an interpreted environment. Java runs in a virtual machine. By default .net programs run in interpreted mode. The objective-c runtime environment adds significant overhead that is similar to having to run an interpreter but it provides many benefits.
The runtime difference is usually less than an order of magnitude so isn't worth considering in most situations. Unless you need to squeeze as much performance as possible out of your processor, you'd be better served fixing algorithms or getting better hardware. It wouldn't make much sense to use interpreted languages for writing drivers or kernel code but you probably could if you really wanted to.
There is also an increase in memory footprint. It takes up more space to have program running that translates your program into machine instructions. It's usually the memory issue that stops you from seeing interpreted languages on embedded platforms. But even that's changing: Java on Android, Objective-C with it's runtime environment on iOS.
Python does run in an interpreted environment. Java runs in a virtual machine. By default .net programs run in interpreted mode. The objective-c runtime environment adds significant overhead that is similar to having to run an interpreter but it provides many benefits.
The runtime difference is usually less than an order of magnitude so isn't worth considering in most situations. Unless you need to squeeze as much performance as possible out of your processor, you'd be better served fixing algorithms or getting better hardware. It wouldn't make much sense to use interpreted languages for writing drivers or kernel code but you probably could if you really wanted to.
There is also an increase in memory footprint. It takes up more space to have program running that translates your program into machine instructions. It's usually the memory issue that stops you from seeing interpreted languages on embedded platforms. But even that's changing: Java on Android, Objective-C with it's runtime environment on iOS.
Re: Wow...this place has changed...
Once you're done with Python, start on Objective C so you can write some Mac OS X apps. Then study some OpenGL so you can do 3D graphics with those apps. There are some standard Objective C and Cocoa and OpenGL books you can buy that will do well as references also.
Oh, and check out my Eschaton plugins at HDM!
Oh, and check out my Eschaton plugins at HDM!
Either you are groping for answers, or you are asking God and listening to Jesus.
-
- Ranger
- Posts: 1894
- Joined: Tue Oct 16, 2007 3:57 am
- Location: "I didn't just take your mom out to dinner. I ate your mom for dinner."
- Contact:
Re: Wow...this place has changed...
O hai, learn all you can, if you need PDF's I haz.
Mota-Lev was here 30/4/2010@2:18pmG[v]N wrote:HUGE NOTIFICATION
THIS GRAVY HAS BRAINS

Who is online
Users browsing this forum: Ahrefs [Bot] and 19 guests