Browse Source

Removing broken Dylan framework (#7148)

Nate 3 years ago
parent
commit
56b100ed9c

+ 0 - 18
frameworks/Dylan/dylan/README.md

@@ -1,18 +0,0 @@
-# [OpenDylan](https://opendylan.org) Benchmarking Test
-
-### Plaintext Test
-
-* [Plaintext test source](dylan-server.dylan)
-
-## Infrastructure Software Versions
-The tests were run with:
-* [OpenDylan 2020.1](https://opendylan.org/documentation/release-notes/2020.1.html)
-
-## Test URLs
-### Plaintext Test
-
-http://localhost:8080/plaintext
-
-### JSON Test
-
-http://localhost:8080/json

+ 0 - 20
frameworks/Dylan/dylan/benchmark_config.json

@@ -1,20 +0,0 @@
-{
-  "framework": "dylan",
-  "tests": [{
-    "default": {
-      "json_url": "/json",
-      "plaintext_url": "/plaintext",
-      "port": 8080,
-      "approach": "Realistic",
-      "classification": "Platform",
-      "platform": "Dylan",
-      "framework": "None",
-      "language": "Dylan",
-      "flavor": "OpenDylan",
-      "os": "Linux",
-      "database_os": "Linux",
-      "display_name": "dylan",
-      "versus": "dylan"
-    }
-  }]
-}

+ 0 - 13
frameworks/Dylan/dylan/config.toml

@@ -1,13 +0,0 @@
-[framework]
-name = "dylan"
-
-[main]
-urls.plaintext = "/plaintext"
-urls.json = "/json"
-approach = "Realistic"
-classification = "Platform"
-database_os = "Linux"
-os = "Linux"
-platform = "Dylan"
-webserver = ""
-versus = "dylan"

+ 0 - 28
frameworks/Dylan/dylan/dylan-server.dylan

@@ -1,28 +0,0 @@
-Module: dylan-server
-
-define class <plaintext> (<resource>)
-end;
-
-define method respond (plaintext :: <plaintext>, #key)
-  let stream = current-response();
-  set-header(stream, "Content-Type", "text/plain;charset=utf-8");
-  set-header(stream, "Date", as-rfc1123-string(current-date()));
-  write(stream, "Hello, World!");
-end;
-
-define class <json> (<resource>)
-end;
-
-define method respond (json :: <json>, #key)
-  let stream = current-response();
-  set-header(stream, "Content-Type", "application/json");
-  set-header(stream, "Date", as-rfc1123-string(current-date()));
-  print(table("message" => "Hello, World!"), stream);
-end;
-
-let server = make(<http-server>, listeners: list("0.0.0.0:8080"));
-
-add-resource(server, "/plaintext", make(<plaintext>));
-add-resource(server, "/json", make(<json>));
-
-start-server(server);

+ 0 - 30
frameworks/Dylan/dylan/dylan.dockerfile

@@ -1,30 +0,0 @@
-FROM buildpack-deps:bionic
-
-RUN apt-get -yqq update
-RUN apt-get -yqq install libgc-dev libunwind-dev
-
-WORKDIR /opt
-
-RUN wget -q https://github.com/dylan-lang/opendylan/releases/download/v2020.1.0/opendylan-2020.1-x86_64-linux.tar.bz2
-RUN tar xjf opendylan-2020.1-x86_64-linux.tar.bz2
-
-RUN git clone --recursive https://github.com/dylan-lang/http
-RUN git clone https://github.com/dylan-lang/json
-
-ENV PATH /opt/opendylan-2020.1/bin:$PATH
-
-WORKDIR /
-
-RUN make-dylan-app dylan-server
-
-ENV OPEN_DYLAN_USER_REGISTRIES /dylan-server/registry:/opt/http/registry:/opt/json/registry
-
-COPY *.dylan dylan-server/
-
-WORKDIR /dylan-server
-
-RUN dylan-compiler -build dylan-server.lid
-
-EXPOSE 8080
-
-CMD ./_build/bin/dylan-server

+ 0 - 21
frameworks/Dylan/dylan/library.dylan

@@ -1,21 +0,0 @@
-Module: dylan-user
-
-define library dylan-server
-  use common-dylan;
-  use collections;
-  use http-common;
-  use http-server;
-  use io, import: { streams };
-  use json;
-  use system, import: { date };
-end library dylan-server;
-
-define module dylan-server
-  use common-dylan;
-  use date, import: { as-rfc1123-string, current-date };
-  use http-common;
-  use http-server;
-  use json;
-  use streams, import: { write };
-  use table-extensions;
-end module dylan-server;