Challenge Overview
Project Overview
This contest is going to do some initial research to using Node.JS to kick off Code Compilation and Testing. This contest is going to use C++ Code for proof of concept.
Competition Task Overview
This contest is going to write Node.js code to kick off process to compile and run C++ Code and monitor resource usage of that process, like time, memory etc.
Following is the general requirements.
- use child process to kick off process for compiling and running C++ Code.
- use g++ command to compile C++ Code, please use this option "g++ -W -Wall -Wno-sign-compare -O2 -s -pipe -c -o"
- The node.js code should be able to capture the status of compilation and running, like compiling success/failure, output of the running code.
- The C++ Code should not be trivial, you can write up some code based on some SRM problem, or learn from others in the practice room.
- The Node.js code should moinitor resource usage of that process, including time and memory, see https://stackoverflow.com/questions/10730429/how-to-get-a-child-process-memory-usage-in-node-js as one possible approach to monitoring the memory utilization
- THe Node.js code should pipe in input to the c++ code (like test input).
- The solution should be based on CentOS 6.4 with default gcc.
Final Submission Guidelines
Submission Deliverables
Below is an overview of the deliverables:
- Node.js Code
- Sample C++ Code
- Detail Deployment Guide describing your solution.
Final Submission
For each member, the final submission should be uploaded to the Online Review Tool.