assainator

Members
  • Content count

    387
  • Joined

  • Last visited

Community Reputation

685 Good

About assainator

  • Rank
    Member
  1. How to build a virtual machine

    My recommendation is looking up simple scripting languages on the internet and look at its source. I found Ionscript to be particularly useful: https://github.com/keebus/IonScript
  2. WildStar CREDD System Explained

    Kind of reminds me of PLEX in EVE Online, something they have been doing, with success (afaik), for years.
  3. Step by step ARM emulator

    Thanks for the input. I remembered that I still had a Raspberry Pi around, so I'm currently using it in combination with gdb.
  4. Hello everyone,   I'm writing an ARM backend for a compiler construction course and I've been searching for an ARM emulator that lets me step through my generated code instruction by instruction showing me the values of the registers.   All the emulators and simulators I've found are aimed at running full applications and/or operating systems as fast as possible but they don't offer the features I'm looking for.   Examples of what I'm looking for: http://courses.missouristate.edu/kenvollmar/mars/ -- An emulator for MIPS https://github.com/atzedijkstra/ssm -- An emulator for the SSM architecture.   Does anybody know of any emulators that have the features I'm looking for?   Thanks a lot in advance for any help.
  5. I also recommend using http://en.cppreference.com/w/ over cplusplus.com for reference.
  6. From reading the replies, I conclude there are (a lot of) of downsides to ECS that haven't been covered in this article. Would someone be willing to write an article that tackles (some) of these downsides?
  7. Problem on physical material

    I suggest you get nVidia nSight if you have a nVidia card, AMD Perfstudio 2 if you have an AMD card and Intel's equivalent if you have an Intel iGPU. Use that software's framedebugger to debug your shaders.
  8. Is Python any good for...?

      I'd say it would be possible to expose all functionality of the engine to a scripting language after the engine has been finished as that's simply a matter of writing the required interfacing code.   The problem would be that you would need a way to insert script execution to the main loop of the engine. Or you would have to move the main loop to the scripting language.   This could however pose a security risk. Normally the engine has the scripts running in a sandbox-like environment so scripts cannot harm the end-user or crash the entire application when a single script crashes. I do not know how good various scripting languages are at calling code in a sandbox-like environment. If they are not good at it, you have a huge security risk.   So it is possible depending on your definition of 'adding a scripting language to an engine without a scripting language', this is possible.
  9. OpenGL Debugging Graphics

    This topic should end up in the FAQ or should become a sticky.
  10. I've done several runs and inspected the last few packets after each disconnect. Everything seemed to be in order, the sequence numbers check out fine. I've also seen a few re-transmits, but within 10 minutes of a disconnect. Guess I'm going to try and process the received bytes myself. See if that's the problem.
  11.   Thanks I'll try that. How can I detect a collapsed packet in Wireshark?
  12. I've been trying to write an IRC bot in C# using a TCPClient. It connects and starts receiving commands, responding to the PING command with a PONG command. That's all.   However, for some reason it hangs after 30 to 40 minutes on the function to read the next line of data. I've inspected the PING and PONG messages using Wireshark and they look fine to me. The PONGs are also received by the server as I do see an ACK packet being received by my computer in Wireshark.   The weird thing is that it works absolutely fine for those 30 to 40 minutes. I suspect I'm doing something wrong with the StreamReader but after searching the web for a few days I'm stuck.   Would somebody be so kind as to look at my code? Thanks a lot in advance. public class Bot { private NetworkStream ns; private StreamReader reader; private StreamWriter writer; private Encoding enc; // The encoding used. /// <summary> /// Initialize the bot. /// </summary> public Bot() { enc = new UTF8Encoding(); } /// <summary> /// Connects the an IRC server. /// </summary> /// <param name="url">The url of the server.</param> /// <param name="port">The port to connect to.</param> /// <param name="user">The username to use.</param> /// <param name="nick">The nick to use.</param> /// <param name="realName">The users real name.</param> public void Connect(string url, ushort port, string user, string nick, string realName) { TcpClient client = new TcpClient(); try { client.Connect(url, port); } catch (Exception ex) { throw new Exception("Could not connect to endpoint.", ex); } ns = client.GetStream(); reader = new StreamReader(ns, enc); writer = new StreamWriter(ns, enc); writer.AutoFlush = true; Send("USER " + user + " 0 * :" + realName + "\r\n"); Send("NICK " + nick + "\r\n"); } /// <summary> /// Processes a command. /// </summary> /// <param name="command">The command to process.</param> public virtual void ProcessCommand(IRCCommand command) { if(command.Command == "PING") { Send("PONG :" + command.Parameters[0] + "\r\n"); } } /// <summary> /// Receives and processes a command. /// </summary> public void ReceiveAndProcess() { string line = reader.ReadLine(); if (!string.IsNullOrEmpty(line)) { Console.WriteLine("raw : " + line); IRCCommand cmd = new IRCCommand(); cmd.Parse(line); ProcessCommand(cmd); } } /// <summary> /// Sends a command to the irc server. /// </summary> /// <param name="ircCommand">The command to send.</param> protected void Send(string ircCommand) { Console.Write("sent: " + ircCommand); writer.Write(ircCommand); } }
  13. How did you learn C++?

    I first learned PHP, after that I read that C++ was used a lot in games. Thus I threw myself in the deep trying to learn C++. I was 15 years old at the time. It took a long time before I was able to produce something usable but it did give me a lot of knowledge about C++ and debugging C++. Some of my fellow AI students know from the professor a few things one should not do or try to avoid but they do now know why or what happens if they ignore this warning.   The only way you can truly learn a language IMO is to make a lot of mistakes. That way you not only learn what you should and should not do, but also why.
  14. OpenGL AMD's Mantle API

    In my opinion there is room for both more lower level APIs like Mantle which one would only use for performance reasons and room for more higher level APIs which one uses if one wants to have shorter production times. It all depends on the application if it makes sense to choose Mantle.
  15. OpenGL AMD's Mantle API

    With the huge performance gains I see in Star Swarm & Battlefield 4 and the export list posted above, I'm really excited to have a go with Mantle myself. Does anybody have a clue if and when a Mantle SDK will be released?