Welcome, guest! Please login or register.

    Author Topic: Mopar Weekly (#5)  (Read 2572 times)

    0 Members and 1 Guest are viewing this topic.

    OfflinePure_

    • Member
    • ****
    • *
    • Posts: 4,690
    • Thanks: +0/-0
      • View Profile
    Mopar Weekly (#5)
    « on: June 30, 2015, 05:00:27 PM »
    News (for the week 29/06/2015)

    General Discussion

    US Same-Sex Marriage Legal Nationwide (by Rodgerwilco)
    In recent news, the U.S. federal government decided to legalise same-sex marriage throughout! Make sure you contribute to the discussion we have been having at some point.
    Some feel like it's a decision that should not have been taken by the federal government but rather on a state-by-state basis.



    Game Development

    Blackwake (by Frell)
    Frell has been working on his game for a while now and implied in a post that it should be included in the news, so why not! His thread gets updated often so make sure you keep up if you aren't already. His game is a pirate PVP multiplayer, one with ship battle and weapon physics - it sums up to some really entertaining and unique gameplay.





    Server and Client Development Showoff

    Mopar - Emulation Framework (by sini)
    Sini has been working on a separate official server from David for a while which you might have caught a glimpse of on the last member feature.
    He has done enough to be able to show off the code now. Make sure you check out the design because it seems to show some promise and sini is definitely proud of it! He has recently finished up the cache updating and thus a cache library which you can find on github.

    Skarred Lands (by sk8rdude461)
    Sk8rdude has been making consistent progress on his server for months now, so it's definitely worth a mention. He suggested that it was far off a beta stage however he has plenty of updates to read through.





    Web Design/Development

    An Introduction to PHP (by EcoPS GM)
    Wow a full tutorial! It's still being redesigned but Eco did a wonderful job on the basics to PHP. This is definitely recommended to new programmers who want to dabble in a bit of server-sided stuff. It's quite thorough and easy to follow.

    Extending JavaScript using sweet.js (by justaguy)
    Never fear it's here!! Make sure you check out the syntactical "sugar" of sweet.js shown off by justaguy! It makes your stay with JS much more pleasant ;)



    Senior Member Feature - t4
    This week we have managed to get a hold of t4 - a competent veteran programmer among our ranks.

    Initiating dialogue like a true autist using secure TLS handshake
    Quote
    <Pure> ur being drafted for the moparscape news ~~~
    <t4> ~~~ ok

    The "before" MoparScape?
    I hung out on SwiftIRC with a few RuneScape clans, this was back in 2005 or so. Around that time i got slightly bored of the grind and felt like cheating.
    I remember trying different software like SCAR and some other bad color detection bots. That didn't work out too well. After a while I gave up and found private servers, I lurked MoparScape and other related forums and eventually got my own going.
    At that point I started to learn Java already haven worked with children's languages like QBASIC. Then around (I think) 2008 I decided to register on MITB. Hence me being here now!

    What was the appeal of RuneScape to you? It was clearly powerful enough to motivate you to learn to program.
    A lot of my friends at school used to play and we would compete against each other for wealth and stats. I was probably one of the last to abandon ship because I got the farthest.
    I played from about 2003 to 2011 or so with large breaks between. Near the end it was just me proving to myself I could accomplish the prestige (and by that time I had written custom private bots with some help).
    It was a curiosity that fuelled my endeavors of how far could I push by the botting method before getting banned. The game became more about botting than playing the game. A meta-game if you will.

    What were the first things you did on MoparScape?
    If I recall I mostly talked in the debate, general and operating systems child boards of MITB. I wasn't as competent a programmer as I am now and I knew I would get my ass wrecked by some of the older members.
    I tried starting a MITB linux group (LUG). I was very fond of learning about linux and systems engineering stuff back then.

    How did you end up on IRC?
    I jumped on IRC around the time I registered on the forums, it seemed like the best way to become a part of the MITB community.


    What are you known for in MoparScape now?
    Don't know really, most people probably think I'm an asshole. To answer the question more directly, probably my posts in the general programming child board. I'd post more, but the forum has been a little dead in those sections. :( . I'd love to see those sections turn into a stackoverflow.

    What kind of work have you done regarding RSPS (public or private)? I know you had documented some of the 377 protocol, etc.
    I've written a few server bases in the past and was a big fan of using Netty for Java. I've written some basic proof of concept C servers, but never bothered releasing any.
    The only thing that saw the light of day that has any sort of impact is my work documenting the 377 protocol (one of my favorite revisions). An older member, whom I'm not sure wants to be mention, was kind enough to supply me with a near completely refactored 377 client.
    I also recall writing a deobfuscator for J-Shrink (lol). It was always fun running that on the shitty Java botnets kids used to distribute here.

    Could you elaborate on your programming prowess, since you haven't displayed it too much on the forums?
    I've been programming in Java for a long time and as I already mentioned had an early start with procedural languages. Shortly after Java I picked up on Python, C, and C++ and around that time enrolled in a Computer Science program at university.
    Since then I have completed the degree. Over the years I have seen many different technologies, languages, and paradigms that I can't even begin to list. Some academic favorites include Haskell, x86 and MIPS assembly, algorithms, and operating systems design.
    I've also held many internships positions at various international companies. I am currently employed full time post-graduation on a research and development team.
    I specialize mostly with C and C++ programming on Linux platforms and am known to be anal about code correctness, documentation, and optimization.
    If you are interesting in picking up C and C++ the right way, I highly recommend reading K&R C and Effective C++.


    How is your personal life going, you mentioned you got a degree recently? etc
    Great, I've got my own place, a few cars, great entertainment system that spans the whole house, etc. I love work.
    I love the people there and the stuff I am able to work on (a lot of super scalale C++ server software that span many nodes and is able to eat hexa-core CPUs and hundreds of gigabytes of memory). I also love the benefits of being a software engineer.

    May you expand on these benefits? Surely that includes playboy bunnies?
    Comfortable work environment, freedom to go out to lunch, to come in/leave when I want, to take off when I want, and of course the pay. The stipulation is of course you need to deliver


    What is your advice to newcomers, particularly those who want to learn how to code?
    Don't try learning from RSPS. It's okay for it to spark your interest, but I suggest learning software architecting and a language before you sit down and go for the gold.
    There is a lot involved in creating scalable, efficient, and readable software. Hacking the client doesn't lend itself to the aforementioned pitfall, so I'd recommend checking that out. There's a lot to learn there and you just might spark interest in other members.

    Do you have any advice to programmers relating specifically to RSPS? i.e. a cool design pattern you saw somewhere or a nifty library?
    A trick for developing a C++ server would be using the select() system call to allow for a non-blocking accept/recv loop (meaning you can accept new player connections and read incoming data from existing players synchronously).
    How select() works is it tells you when a given socket is ready. So you could pass the socket (file descriptor) to an event callback to produce a design similar to Netty.
    Combine that with some sexy C++11 features like threading and atomic variables and you're well on your way to do some asynchronous processing (like player updating, server events, etc). If you're interested in POSIX networking I highly suggest checking out this.

    You could use Protobuf to declare language independent structure that get sent over the network (packets, like one of the login blocks).
    There is an official tutorial/guide provided by Google for C++, Java, and Python.

    Linkback: https://www.moparscape.org/community/moparscape-announcements/112/mopar-weekly-5/671157/
    « Last Edit: July 01, 2015, 06:51:25 PM by Pure_ »
    i won the forum

    OfflineDavidi2

    • Member
    • ****
    • *
    • Posts: 23,308
    • Thanks: +0/-0
      • View Profile
    Re: Mopar Weekly (#5)
    « Reply #1 on: June 30, 2015, 05:05:15 PM »
    Quote
    Sini has been working on a separate official server from David for a while which you might have caught on the last member feature.
    It's not separate. It's the same 'project', sinisoul is just trying to create a new core for it.

    Offlinesini

    • Member
    • ****
    • *
    • *
    • Posts: 5,785
    • Thanks: +0/-0
      • View Profile
    Re: Mopar Weekly (#5)
    « Reply #2 on: June 30, 2015, 05:06:37 PM »
    t4 taking tips from me to use protobuf

    I TOLD YOU ALL SO

    Good idea confirmed.

    OfflineDavidi2

    • Member
    • ****
    • *
    • Posts: 23,308
    • Thanks: +0/-0
      • View Profile
    Re: Mopar Weekly (#5)
    « Reply #3 on: June 30, 2015, 05:07:50 PM »
    Senior Member Feature should be renamed to "irc user feature"

    you should interview Limits :^)

    OfflinePure_

    • Member
    • ****
    • *
    • Posts: 4,690
    • Thanks: +0/-0
      • View Profile
    Re: Mopar Weekly (#5)
    « Reply #4 on: June 30, 2015, 05:10:48 PM »
    t4 taking tips from me to use protobuf

    I TOLD YOU ALL SO

    Good idea confirmed.
    I noticed how it coincided with your idea which was pretty cool.

    Quote
    Sini has been working on a separate official server from David for a while which you might have caught on the last member feature.
    It's not separate. It's the same 'project', sinisoul is just trying to create a new core for it.
    idk seems like a whole different thing

    Senior Member Feature should be renamed to "irc user feature"

    you should interview Limits :^)
    I think that most senior/interesting people are on IRC. The interesting people on the forums I imagine I cannot get a hold off (since the forum is kinda dead in that regard).
    i won the forum

    Offlinet4

    • Member
    • ****
    • *
    • *
    • *
    • Posts: 6,799
    • Thanks: +0/-0
      • View Profile
    Re: Mopar Weekly (#5)
    « Reply #5 on: June 30, 2015, 07:18:48 PM »
    t4 taking tips from me to use protobuf

    I TOLD YOU ALL SO

    Good idea confirmed.
    I had no idea you were using protobuf, gj

    OfflinePure_

    • Member
    • ****
    • *
    • Posts: 4,690
    • Thanks: +0/-0
      • View Profile
    Re: Mopar Weekly (#5)
    « Reply #6 on: June 30, 2015, 08:32:43 PM »
    I have just updated this with some web development stuff, if you notify me regarding missing content I do take suggestions.
    i won the forum

    Offlinejustaguy

    • Member
    • ****
    • *
    • Posts: 721
    • Thanks: +0/-0
      • View Profile
    Re: Mopar Weekly (#5)
    « Reply #7 on: June 30, 2015, 09:01:56 PM »
    and Effective C++.

    +1 for Scott Meyers' C++ books.
    RIP

    Offlinet4

    • Member
    • ****
    • *
    • *
    • *
    • Posts: 6,799
    • Thanks: +0/-0
      • View Profile
    Re: Mopar Weekly (#5)
    « Reply #8 on: June 30, 2015, 09:19:27 PM »
    and Effective C++.

    +1 for Scott Meyers' C++ books.
    It's the only reason I like the language

    Offlinesanga282

    • Member
    • ****
    • *
    • *
    • Posts: 5,812
    • Thanks: +0/-0
      • View Profile
    Re: Mopar Weekly (#5)
    « Reply #9 on: July 01, 2015, 07:18:47 AM »
    Senior Member Feature should be renamed to "irc user feature"

    you should interview Limits :^)
    #mopar has the real senior members
    Dear Mary,
    Just admit that you slept with someone else. This is getting out of hand.
    Sincerely, Joseph

    OfflineLothy

    • Member
    • ****
    • *
    • *
    • Posts: 7,007
    • Thanks: +0/-0
      • View Profile
    Re: Mopar Weekly (#5)
    « Reply #10 on: July 02, 2015, 07:59:26 AM »
    Interview me, interview me.
    <&Speljohan_> i wouldnt want to live in a society where Mopman isnt monitored 24/7

    Offlinesini

    • Member
    • ****
    • *
    • *
    • Posts: 5,785
    • Thanks: +0/-0
      • View Profile
    Re: Mopar Weekly (#5)
    « Reply #11 on: July 02, 2015, 02:54:20 PM »
    Interview me, interview me.

    Describe the Donatello incident

    OfflineLothy

    • Member
    • ****
    • *
    • *
    • Posts: 7,007
    • Thanks: +0/-0
      • View Profile
    Re: Mopar Weekly (#5)
    « Reply #12 on: July 02, 2015, 03:57:02 PM »
    Interview me, interview me.

    Describe the Donatello incident
    Maybe when I give my interview answers!
    <&Speljohan_> i wouldnt want to live in a society where Mopman isnt monitored 24/7

    Offlinex Albi x

    • Member
    • ***
    • Posts: 131
    • Thanks: +0/-0
      • View Profile
    Re: Mopar Weekly (#5)
    « Reply #13 on: July 04, 2015, 04:22:33 AM »
    ok

    Offlines1gma

    • Member
    • ****
    • *
    • Posts: 1,234
    • Thanks: +0/-0
      • View Profile
    Re: Mopar Weekly (#5)
    « Reply #14 on: August 21, 2015, 07:10:53 PM »
    idk if ppl read this shit but

    Quote
    A trick for developing a C++ server would be using the select() system call to allow for a non-blocking accept/recv loop (meaning you can accept new player connections and read incoming data from existing players synchronously).
    How select() works is it tells you when a given socket is ready. So you could pass the socket (file descriptor) to an event callback to produce a design similar to Netty.

    select() scaling is poor, most C/C++ networking libs use it as a fall back if more sophisticated mechanisms do not exist (e.g. epoll() on l00nix, IOCP for win). i like libuv (https://github.com/libuv/libuv) as a "portable" wrapper for all that shit and wish that it had existed when i cared about rsps
    shellder

    Offlinet4

    • Member
    • ****
    • *
    • *
    • *
    • Posts: 6,799
    • Thanks: +0/-0
      • View Profile
    Re: Mopar Weekly (#5)
    « Reply #15 on: September 13, 2015, 11:32:15 PM »
    idk if ppl read this shit but

    Quote
    A trick for developing a C++ server would be using the select() system call to allow for a non-blocking accept/recv loop (meaning you can accept new player connections and read incoming data from existing players synchronously).
    How select() works is it tells you when a given socket is ready. So you could pass the socket (file descriptor) to an event callback to produce a design similar to Netty.

    select() scaling is poor, most C/C++ networking libs use it as a fall back if more sophisticated mechanisms do not exist (e.g. epoll() on l00nix, IOCP for win). i like libuv (https://github.com/libuv/libuv) as a "portable" wrapper for all that shit and wish that it had existed when i cared about rsps
    you're completely correct. select is kind of bad because you must do an o(n) operation to scan through the file descriptors everytime an event is ready. however, select is much easier to use and a good starting place for moparscapers. besides, runescape is hard bound at 2k players afaik... good luck getting that many people on a rsps in 2015.

    OfflineiKilem

    • Member
    • ***
    • *
    • Posts: 223
    • Thanks: +0/-0
      • View Profile
    Re: Mopar Weekly (#5)
    « Reply #16 on: September 14, 2015, 01:28:44 PM »
    idk if ppl read this shit but

    Quote
    A trick for developing a C++ server would be using the select() system call to allow for a non-blocking accept/recv loop (meaning you can accept new player connections and read incoming data from existing players synchronously).
    How select() works is it tells you when a given socket is ready. So you could pass the socket (file descriptor) to an event callback to produce a design similar to Netty.

    select() scaling is poor, most C/C++ networking libs use it as a fall back if more sophisticated mechanisms do not exist (e.g. epoll() on l00nix, IOCP for win). i like libuv (https://github.com/libuv/libuv) as a "portable" wrapper for all that shit and wish that it had existed when i cared about rsps
    you're completely correct. select is kind of bad because you must do an o(n) operation to scan through the file descriptors everytime an event is ready. however, select is much easier to use and a good starting place for moparscapers. besides, runescape is hard bound at 2k players afaik... good luck getting that many people on a rsps in 2015.
    I'd recommend poll() if you want something simpler than epoll (and more portable). It's similar to select() but fixes a few of its problems.
    ~iKilem

     


    Users found this pages searching for:

    Copyright © 2016/17 MoparScape. All rights reserved.