GithubHelp home page GithubHelp logo

1501_final's Introduction

1501_final

Haskell 1501 Final Project

Author: Robert Emerson

Date: 04/20/2013

Description: Executing main.hs will begin a fork bomb written in Haskell and bash.

Purpose: This program is a foray into system programming with Haskell. It uses the IO Monad, will compile, and manages to do exactly what I wanted it to do. Additionally, it is available on GitHub at https://github.com/Robert-Emerson/1501_final.

Execution: The program will prompt the user to save all files, as the easiest way to recover from this is to restart your computer. Then, if the user chooses to continue, it will run the readProcess command in Haskell. The arguments to this command cause it to launch a terminal, create a shell script containing a fork bomb in the bash shell scripting language and then execute this script.

Design Decisions: This program was initially designed to use the forkProcess function in Haskell. It was re-written to use the bash fork bomb after testing revealed that the Haskell code did not cause the computer to run out of resources and freeze. Instead, the Haskell version ran and spawned ~63,000 processes, but eventually hit the process limit enforced by the OS. To freeze the computer, a heavier weight process had to be replicated, and I chose bash.

1501_final's People

Contributors

robert-emerson avatar

Stargazers

 avatar Nishant Shukla avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.