Giter VIP home page Giter VIP logo

eo-sys's Introduction

logo

EO principles respected here DevOps By Rultor.com We recommend IntelliJ IDEA

mvn PDD status codecov Maven Central Hits-of-Code Lines of code License

EO objects for interactions with operating system.

This is how you make a write syscall to print "Hello, world" to the console (here 1 is the handle of stdout):

[] > app
  "Hello, world!" > msg
  QQ.sys.call > @
    "write"
    1
    msg
    msg.length

This is how you get the current process ID using getpid:

[] > app
  QQ.io.stdout > @
    QQ.txt.sprintf
      "Current PID is %d"
      QQ.sys.call
        "getpid"

This is how you detect what OS you are with:

[] > app
  QQ.io.stdout > @
    QQ.txt.sprintf
      "This is %s"
      switch.
        * 
          QQ.sys.uname.is-windows
          "Windows"
        * 
          QQ.sys.uname.is-unix
          "Unix"
        * 
          QQ.sys.uname.is-macos
          "MacOS"
        * 
          TRUE
          "something else"

How to Contribute

Fork repository, make changes, send us a pull request. We will review your changes and apply them to the master branch shortly, provided they don't violate our quality standards. To avoid frustration, before sending us your pull request please run full Maven build:

$ mvn clean install -Pqulice

You will need Maven 3.3+ and Java 8+.

eo-sys's People

Contributors

renovate[bot] avatar yegor256 avatar rultor avatar graur avatar maxonfjvipon avatar mximp 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.