Results 1 to 16 of 16

Thread: uses or python

  1. #1
    Join Date
    Sep 2010
    Posts
    5,762
    Mentioned
    136 Post(s)
    Quoted
    2739 Post(s)

    Default uses or python

    What uses does python have? I read its for web based stuff and if it is cba to learn it

  2. #2
    Join Date
    Jan 2012
    Posts
    2,568
    Mentioned
    35 Post(s)
    Quoted
    356 Post(s)

    Default

    It can be used for automating complex tasks too. There are several modules in-built/created by other users that could be use for several things including most of what Simba can do.

  3. #3
    Join Date
    Jan 2008
    Location
    10° north of Hell
    Posts
    2,035
    Mentioned
    65 Post(s)
    Quoted
    164 Post(s)

    Default

    It is a full fledged programming language. It can basically be used to do anything..

    Dg's Small Procedures | IRC Quotes
    Thank Wishlah for my nice new avatar!
    Quote Originally Posted by IRC
    [22:12:05] <Dgby714> Im agnostic
    [22:12:36] <Blumblebee> :O ...you can read minds

  4. #4
    Join Date
    Jan 2011
    Location
    Denver, CO
    Posts
    1,351
    Mentioned
    2 Post(s)
    Quoted
    72 Post(s)

    Default

    Python is an interpreted language that can be used for web based projects (using Django) as well as many other types of projects. One of its main drawbacks is that it's kinda slow, so if speed is of high importance to the project your writing you may want to either write the speed-dependent pieces in C and call them from Python (using ctypes), or use a different programming language entirely.

  5. #5
    Join Date
    Nov 2012
    Posts
    2,351
    Mentioned
    55 Post(s)
    Quoted
    603 Post(s)

    Default

    Quote Originally Posted by Echo_ View Post
    Python is an interpreted language that can be used for web based projects (using Django) as well as many other types of projects. One of its main drawbacks is that it's kinda slow, so if speed is of high importance to the project your writing you may want to either write the speed-dependent pieces in C and call them from Python (using ctypes), or use a different programming language entirely.
    Just out of interest, a question to everybody here, whats the "fastest" language you've used / experienced?


    Programming is like trying keep a wall of shifting sand up, you fix one thing but somewhere else starts crumbling

  6. #6
    Join Date
    Jan 2012
    Posts
    2,568
    Mentioned
    35 Post(s)
    Quoted
    356 Post(s)

    Default

    Quote Originally Posted by DannyRS View Post
    Just out of interest, a question to everybody here, whats the "fastest" language you've used / experienced?
    Possibly ASM? Although obviously it would be crazy to code in that for most purposes. C is probably the most feasible fastest language.

    Depends on the compiler and runtime environment though.
    The most important factor still lies in the programmer's ability to optimize his codes.

  7. #7
    Join Date
    Jan 2011
    Location
    Denver, CO
    Posts
    1,351
    Mentioned
    2 Post(s)
    Quoted
    72 Post(s)

    Default

    The fastest languages I've used are C and Common LISP, I've never written ASM

  8. #8
    Join Date
    Nov 2006
    Posts
    2,369
    Mentioned
    4 Post(s)
    Quoted
    78 Post(s)

    Default

    Doesn't people who want high speed basically write the program in a language that compiles to machine code and then use assembly language to optimize parts of the machine code that are critical speedwise?
    Quote Originally Posted by DeSnob View Post
    ETA's don't exist in SRL like they did in other communities. Want a faster update? Help out with updating, otherwise just gotta wait it out.

  9. #9
    Join Date
    Oct 2006
    Location
    Netherlands
    Posts
    3,285
    Mentioned
    105 Post(s)
    Quoted
    494 Post(s)

    Default

    Yes. Also practically no one writes programs in asm. It would take too much time. In simba there is still a piece of asm, which was an attempt to speed up sqr iirc.
    Working on: Tithe Farmer

  10. #10
    Join Date
    Feb 2012
    Location
    Norway
    Posts
    995
    Mentioned
    145 Post(s)
    Quoted
    596 Post(s)

    Default

    Quote Originally Posted by Echo_ View Post
    Python is an interpreted language that can be used for web based projects (using Django) as well as many other types of projects. One of its main drawbacks is that it's kinda slow, so if speed is of high importance to the project your writing you may want to either write the speed-dependent pieces in C and call them from Python (using ctypes), or use a different programming language entirely.
    This reminds me of a quote, that went something like this: There are no bad languages, only bad algorithms.
    - But ofcourse it's just another quote... :P

    It's without a doubt remarkable what you can achieve with python in so few lines. When you ever need more speed you could just use a JIT-compiler (PyPy), or introduse static typing (Cython), you could also use ctypes to extend your script with C any existing libs (or write on your self). Any thies solutions will give you ~C-speed.
    - PyPy is simply an Python-interpreter which will grant you speed much closer to C, it supports most of the major libs (EG: django).

    CPython also has a big standard library, and a large ecosystem built around it, this will simplifiy learning, and developing a lot.

    That being said... I'm currently on a old laptop from 2006, got a Core duo T-series (if I remember correctly...). The time i used to calculate PI (with a simple algo) is pretty decent:


    As a matter of fact, I've written that program (IDE) (the one in the pic) in Python. I use it to make "bots" (for games (IE: RS) and what ever...) just like you guys use Simba

    There's little you can't do in Python. I've made very good color aimbot, advanced macros using ANN or GA, realtime face- and objectrecognition algos (with the help of OpenCV)... And more so.
    Many of my projects requires speed, a lot of speed... I conqure speed limitations when needed by using eather Pypy, cython or writing C-modules.
    Last edited by slacky; 08-21-2014 at 05:10 AM.

  11. #11
    Join Date
    Sep 2010
    Posts
    5,762
    Mentioned
    136 Post(s)
    Quoted
    2739 Post(s)

    Default

    Is python similar to pascal?

  12. #12
    Join Date
    Feb 2012
    Location
    Norway
    Posts
    995
    Mentioned
    145 Post(s)
    Quoted
    596 Post(s)

    Default

    Quote Originally Posted by rjj95 View Post
    Is python similar to pascal?
    No it is not. It's a good glip between am two, but not to large..
    'most all programming languages are similar in a way, so it's not really hard to catch any syntax if one is familiar with programming.

    Here is an example of a ProjectRS06 (runescape) macro written for the program shown above (no antiban or anything "special", as it's a Private server):
    Python bot, and wikipedia - this shows you the syntax, and you may cosider the similarity your self.
    Last edited by slacky; 08-21-2014 at 05:12 AM.

  13. #13
    Join Date
    Dec 2011
    Location
    -bash
    Posts
    515
    Mentioned
    0 Post(s)
    Quoted
    27 Post(s)

    Default

    Haskell /MIPS processor

  14. #14
    Join Date
    Jan 2011
    Location
    Denver, CO
    Posts
    1,351
    Mentioned
    2 Post(s)
    Quoted
    72 Post(s)

    Default

    Quote Originally Posted by warpie View Post
    and it being (one of) the fastest interpreted languages.
    WUT?
    Python is slower than almost every interpreted language used today (it's faster than Ruby). There's plenty of benchmarks comparing Python's speed to other languages like Perl and Lua that prove this.

  15. #15
    Join Date
    Feb 2012
    Location
    Norway
    Posts
    995
    Mentioned
    145 Post(s)
    Quoted
    596 Post(s)

    Default

    Quote Originally Posted by Echo_ View Post
    WUT?
    Python is slower than almost every interpreted language used today (it's faster than Ruby). There's plenty of benchmarks comparing Python's speed to other languages like Perl and Lua that prove this.
    1990 called, they want their perl-script back :P

    Python got a few different interpreters, you're aiming on CPython (or any slower Py-interpreter).
    - PyPy can almost grant you C-speed, and in a few cases i've seen C-speed. Just a little slower than Cython, but much simpler.
    - Cython (write a python extention, still Python, but with the (alternative) to trow some types at it).. Cython will yield similar speed to C, but that's because it compiles down to C.

    Even though this might cover my statement I will indeed remove it.
    Last edited by slacky; 08-21-2014 at 05:13 AM.

  16. #16
    Join Date
    Jan 2011
    Location
    Denver, CO
    Posts
    1,351
    Mentioned
    2 Post(s)
    Quoted
    72 Post(s)

    Default

    Quote Originally Posted by warpie View Post
    1990 called, they want their perl-script back :P

    Python got a few different interpreters, you're aiming on CPython (or any slower Py-interpreter).
    - PyPy can almost grant you C-speed, and in a few cases i've seen C-speed. Just a little slower than Cython, but much simpler.
    - Cython (write a python extention, still Python, but with the (alternative) to trow some types at it).. Cython will grant you speed very close to C.

    Even though this might cover my statement I will indeed remove it.
    Perl may be old, but a programmer can accomplish anything done in Python with it (CPAN );

    And I am aware of alternative Python interpreters, but they aren't the official implementation.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •