[LATEST] Icarus Emulator [Java, Netty, MySQL, Plugins, Camera]

Page 15 of 23 FirstFirst ... 57891011121314151617181920212223 LastLast
Results 211 to 225 of 333
  1. #211
    Proficient Member jaden83 is offline
    MemberRank
    Oct 2014 Join Date
    DESKTOP-2FLLV85Location
    176Posts

    Re: Icarus Server (Production) - [Python, Multi-DB/MySQL]

    Quote Originally Posted by Caustik View Post
    Python really is fast enough, stop talking out of your arse.
    ... That wasn't my point. I never said it was slow nor did I say it was fast.

  2. #212
    Alpha Member Moogly is offline
    MemberRank
    Feb 2008 Join Date
    Pool LidoLocation
    2,322Posts

    Re: Icarus Server (Production) - [Python, Multi-DB/MySQL]

    If it matters THAT much performance to you dopes. Python can deliver, Python is coded in C and is highly embeddable into C / C++ projects. This allows you to not just leverage the power of other libraries coded in C / C++ but also achieve such power without the drawbacks of the complexity of programming too much in those languages. You could code the server in Python 3.6 with types, and use UVLoop which drops in with asyncio and just gives it a boost. So if you use the standard Python networking libraries, you can benefit from others adding on to it, as well as having it as an optional import. If it doesn't import, just use the built in networking. If you really care about the speed you can go native. If you want the JVM you can have it. If you want the CLR, you can have that too.

    Python UVLoop:
    https://magic.io/blog/uvloop-blazing...on-networking/

    If he ever drops this project from Python I would definitely find my own time to implement this server with completely modern approaches (starting with the latest stable version of Python 3) and build up from the standard libraries. Python is still my bread and butter, and it's used by real companies all over for all types of mission critical projects (not making this up).

  3. #213
    Alpha Member Caustik is offline
    MemberRank
    May 2011 Join Date
    LondonLocation
    1,837Posts

    Re: Icarus Server (Production) - [Python, Multi-DB/MySQL]

    Quote Originally Posted by jaden83 View Post
    ... That wasn't my point. I never said it was slow nor did I say it was fast.
    You spoke about how it was slow compared to other languages...

  4. #214
    Alpha Member Moogly is offline
    MemberRank
    Feb 2008 Join Date
    Pool LidoLocation
    2,322Posts

    Re: Icarus Server (Production) - [Python, Multi-DB/MySQL]

    Quote Originally Posted by The General View Post
    Python can be up to 400 times slower than C++ and pretty much slower than any other language. Just saying.

    Python 3 vs C++ g++ (64-bit Ubuntu quad core) | Computer Language Benchmarks Game

    @Quackster don't bother writing it in C++, if you have no experience in C++ you will give up quite quickly.
    https://www.python.org/doc/essays/comparisons/

    See the C++ section. Python can achieve amazing speeds, the types of speed issues you're on about only matter in the IoT world, or in the 1990's. This is 2016, people have amazing hardware to run Python code off of. C++ is great for graphics development, but then embedding a scripting language like Python becomes sane once you've implemented the performance hungry portions. You could probably code a whole server in Python, create extensions in C / C++ and finish within months, long before a C++ programmer has much working without over 9000 memory leaks and bugs they can't seem to figure out because this sections full of kids.

    Python is productive, and powerful, if you neglect the current standards you will miss out on it's beauty. I myself keep finding out better ways to do things in Python, and the nicer ways I find of doing Python code, the more I love it. I can run Python anywhere on any OS and not worry about much. I know if I truly need to extend it I can. I know plenty of Linux OS' use it internally. Hell I've seen Lua scale like crazy as a back-end web server language. itch.io is exclussively coded in Lua. :)

  5. #215
    Developer Quackster is offline
    DeveloperRank
    Dec 2010 Join Date
    AustraliaLocation
    3,470Posts

    Re: Icarus Server (Production) - [Python, Multi-DB/MySQL]



    The only thing right now preventing me from creating this as a multi-platform application is because I'm using winsock, which can be easily swapped out.
    Last edited by Quackster; 27-09-16 at 09:44 AM.

  6. #216
    Alpha Member Moogly is offline
    MemberRank
    Feb 2008 Join Date
    Pool LidoLocation
    2,322Posts

    Re: Icarus Server (Production) - [Python, Multi-DB/MySQL]

    My interest in this project lives with the Python side, guess I'll have to feed that interest on my own time. :) Sadly your git repos aren't really available so I can't tinker with the Python as it was left.

  7. #217
    PM for free snacks! Hoshiko is offline
    MemberRank
    May 2013 Join Date
    сикаLocation
    280Posts

    Re: Icarus Server (Production) - [Python, Multi-DB/MySQL]

    Should've opted for Golang, fool

  8. #218
    Developer Quackster is offline
    DeveloperRank
    Dec 2010 Join Date
    AustraliaLocation
    3,470Posts

    Re: Icarus Server (Production) - [Python, Multi-DB/MySQL]

    Quote Originally Posted by Moogly View Post
    My interest in this project lives with the Python side, guess I'll have to feed that interest on my own time. :) Sadly your git repos aren't really available so I can't tinker with the Python as it was left.
    I noticed my links were messed up, here you go fam: https://github.com/Habbotard/Icarus-Python

    Quote Originally Posted by Hoshiko View Post
    Should've opted for Golang, fool
    If I wanted to use C++ I'll use C++, there's no "should've". Sorry.

  9. #219
    Live Ocottish Sverlord Joopie is offline
    LegendRank
    Jun 2010 Join Date
    The NetherlandsLocation
    2,767Posts

    Re: Icarus Server (Production) - [Python, Multi-DB/MySQL]

    3rd time, what's next?

  10. #220
    [LATEST] Icarus Emulator [Java, Netty, MySQL, Plugins, Camera][LATEST] Icarus Emulator [Java, Netty, MySQL, Plugins, Camera] pel is offline
    MemberRank
    Jan 2012 Join Date
    Munich, GermanyLocation
    384Posts

    Re: Icarus Server (Production) - [Python, Multi-DB/MySQL]

    Quote Originally Posted by Joopie View Post
    3rd time, what's next?
    4th time.

  11. #221
    Alpha Member Caustik is offline
    MemberRank
    May 2011 Join Date
    LondonLocation
    1,837Posts

    Re: Icarus Server (Production) - [Python, Multi-DB/MySQL]

    Quote Originally Posted by Hoshiko View Post
    Should've opted for Golang, fool
    Golang is a terrible language to write software in.

  12. #222
    Developer Quackster is offline
    DeveloperRank
    Dec 2010 Join Date
    AustraliaLocation
    3,470Posts

    Re: Icarus Server (Production) - [Python, Multi-DB/MySQL]

    Quote Originally Posted by Joopie View Post
    3rd time, what's next?
    Don't know.

    Quote Originally Posted by iExit View Post
    4th time.
    Java > Python > C++

    3 times.

  13. #223
    Check http://arcturus.pw The General is offline
    DeveloperRank
    Aug 2011 Join Date
    7,607Posts

    Re: Icarus Server (Production) - [Python, Multi-DB/MySQL]

    Quote Originally Posted by Quackster View Post
    Java > Python > C++
    3 times.
    For me its:

    C++ > Java > Python

    When properly written, C++ will outperform both languages. But then again, every problem or application has its own best solution. Only reason I would write something in Python is for like a web api or some other web stuff that requires calls. No big programs. If I need high performance I would go with C/C++.

  14. #224
    Developer Quackster is offline
    DeveloperRank
    Dec 2010 Join Date
    AustraliaLocation
    3,470Posts

    Re: Icarus Server (Production) - [Python, Multi-DB/MySQL]

    Quote Originally Posted by The General View Post
    For me its:

    C++ > Java > Python

    When properly written, C++ will outperform both languages. But then again, every problem or application has its own best solution. Only reason I would write something in Python is for like a web api or some other web stuff that requires calls. No big programs. If I need high performance I would go with C/C++.
    Oh, you misinterpreted my intention of the arrows, the arrows was language changes I've done in chronological order.

    I was not saying Java is better than Python and Python is better then C++

    Nonetheless I agree with you.

  15. #225
    Check http://arcturus.pw The General is offline
    DeveloperRank
    Aug 2011 Join Date
    7,607Posts

    Re: Icarus Server (Production) - [Python, Multi-DB/MySQL]

    @Quackster:

    Is your source code anywhere publicly available? I would love to see all the memory leaks you're creating! (No jk, just want to give some feedback)

    Also, why Visual C++??? I mean out of everything you could've picked you pick THAT.

    PS: Avoid this-> all together in C++. Except when you're having ambiousity (Or however you write it) or have to pass a pointer to a function. Its cluttering and the majority of the C++ community avoids this as much as possible. Use naming conventions.

    Also you have atleast 2 memory leaks in your Request class.

    Also you read a short but return it as an int. Int is platform depended and may not always be equally sized as a short. (My suggestion don't use int at all but use long (Or even better use int<bitsize>_t eg int32_t)

    I don't think you have to cast the chars to unsigned char in readShort. (1: They keep their bit pattern anyways, 2: you already read from an char*)

    I wish you luck, because you will need it.

    Quote Originally Posted by Caustik View Post
    Your contrived benchmarks don't mean much; if Python can be used by companies like Dropbox and Instagram, what makes your habbo emulator so special?

    Also, @Quackster, if you were using modern python techniques it would probably be more pleasant to use.
    Because the reason they picked python for it is because they can easily without too much hassle make it distributed. Something which is also possible in C++ but is a bit more difficult to implement and maintain.

    Its also the reason why a lot of these services (reddit, paypal, google) moved from Java to Python. The JMS is just slower and it was easier to move to Python.
    Last edited by The General; 27-09-16 at 11:11 PM.



Advertisement