Coder Social home page Coder Social logo

gimpact's Introduction

Background

This is an attempt to create a static executable that is compatible with the impact scheme for Modelica package management.

This implementation is an experiment to understand whether it is possible to create an implementation of impact without the need for any additional runtime support (e.g., Node.js, Python).

Status

So far, this implementation can read the impact library data and implements the search, install and info subcommands.

It currently lacks support of the refresh subcommand which is needed to build the package index.

Installation

Self-contained executable binaries are available under the release section for a whole range of operating systems.

Simply download the matching archive and extract its content to a place that suits you best (preferrable inside a directory which is part of your executable system $PATH).

Building

To build this, you need create the proper build environment. This means you need to create the following directory structure somewhere on your computer:

SomeDir/
  bin/
  pkg/
  src/
    xogeny/

Inside the xogeny directory, you need to do:

$ git clone https://github.com/xogeny/gimpact

Finally, it is essential to set the GOPATH environment variable to the full name of SomeDir.

Once this is setup, you can go to the gimpact directory and do:

$ go get

...to install all the dependencies. To run the client, you can do

$ go run client.go [options]

To build an static executable, just run:

$ go install

This will create a static executable of called gimpact in SomeDir/bin.

Cross Compiling

The Makefile includes targets to build cross-compiled executables. Under OSX, the cross compiling Go compiler can be installed with the command:

$ brew install go --cross-compile-common

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.