Code Monkey home page Code Monkey logo

spielplatz's Introduction

Spielplatz

Ein online-Spielplatz um DDP auszuprobieren.
Erreichbar unter https://ddp.le0n.dev/Spielplatz

Inspiriert von anderen Sprachen wie Go, Rust und Dart.

dark mode light mode
showcase-dark showcase-light

Lokal Ausführen

Vorraussetzungen

  • Ein Linux Betriebssystem (das Linux-exklusive seccomp feature wird benutzt)
  • Go (mindestens version 1.22.2)
  • npm

Installieren

  1. Die Spielplatz und Kompilierer Repositories klonen
  2. Den Kompilierer bauen
  3. make install-dependencies ausführen

Ausführen

Um das Programm zu starten führt man run.sh aus. Das Makefile sollte dann alle Abhängigkeiten automatisch installieren (eventuell muss das sudo Passwort angegeben werden).

Wahrscheinlich benötigt run.sh root permissions. In diesem Fall müssen auch Umgebungsvariablen angegeben werden: sudo PATH="$PATH" DDPPATH="$DDPPATH" ./run.sh

Via Docker Ausführen

Vorraussetzungen

Installieren

  1. Das Spielplatz Repository klonen
  2. Die entsprechende LLVM Version von https://github.com/llvm/llvm-project/releases/tag/llvmorg-12.0.0 herunterladen
  3. Docker starten
  4. ./docker-build.sh <llvm_archive> auführen, wobei <llvm_archive> der Pfad zur heruntergeladenen LLVM Version ist

Bsp.:

wget https://github.com/llvm/llvm-project/releases/download/llvmorg-12.0.0/clang+llvm-12.0.0-x86_64-linux-gnu-ubuntu-20.04.tar.xz
./docker-build.sh clang+llvm-12.0.0-x86_64-linux-gnu-ubuntu-20.04.tar.xz

Ausführen

Das Docker Image kann mit docker run -p 8080:8080 ddp-spielplatz als container gestartet werden. Der Spielplatz sollte jetzt unter http://localhost:8080/Spielplatz erreicht werden können.

Konfiguration

Man kann im root des Projektes eine config.json Datei erstellen um das Programm einszustellen. Die standart Konfigurationsdatei sieht so aus.

{
	"port": "8080",
	"exe_cache_duration": "1m",
	"run_timeout": "30s",
	"memory_limit_bytes": 4294967296,
	"cpu_limit_percent": 50,
	"max_concurrent_processes": 50,
	"process_aquire_timeout": "3s",
	"useHTTPS": false,
	"certPath": "",
	"keyPath": "",
	"pprof": false
}

spielplatz's People

Contributors

bafto avatar notle0n avatar dependabot[bot] avatar felixbtzr avatar

Stargazers

Andre Matutat avatar  avatar Florian avatar  avatar

Watchers

 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.