Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alternative C# implementation #613

Open
wants to merge 24 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions IMPLS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ IMPL:
- {IMPL: cpp}
- {IMPL: coffee}
- {IMPL: cs}
- {IMPL: cs.2}
- {IMPL: chuck, NO_SELF_HOST_PERF: 1} # perf OOM
- {IMPL: clojure, clojure_MODE: clj}
- {IMPL: clojure, clojure_MODE: cljs}
Expand Down
2 changes: 1 addition & 1 deletion Makefile.impls
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ wasm_MODE = wasmtime
# Implementation specific settings
#

IMPLS = ada ada.2 awk bash basic bbc-basic c c.2 chuck clojure coffee common-lisp cpp crystal cs d dart \
IMPLS = ada ada.2 awk bash basic bbc-basic c c.2 chuck clojure coffee common-lisp cpp crystal cs cs.2 d dart \
elisp elixir elm erlang es6 factor fantom fennel forth fsharp go groovy gnu-smalltalk \
guile haskell haxe hy io janet java java-truffle js jq julia kotlin livescript logo lua make mal \
matlab miniMAL nasm nim objc objpascal ocaml perl perl6 php picolisp pike plpgsql \
Expand Down
3 changes: 3 additions & 0 deletions impls/cs.2/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.vscode
bin
obj
37 changes: 37 additions & 0 deletions impls/cs.2/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
FROM ubuntu:focal
MAINTAINER Joel Martin <[email protected]>

##########################################################
# General requirements for testing or common across many
# implementations
##########################################################

RUN apt-get -y update

# Required for running tests
RUN apt-get -y install make python

# Some typical implementation and test requirements
RUN apt-get -y install curl libreadline-dev libedit-dev

RUN mkdir -p /mal
WORKDIR /mal

##########################################################
# Specific implementation requirements
##########################################################

ENV DEBIAN_FRONTEND=noninteractive
ENV DOTNET_CLI_TELEMETRY_OPTOUT=1

# Install the .NET Core SDK 6.0 from the Microsoft repo
# See https://docs.microsoft.com/en-us/dotnet/core/install/linux-ubuntu
RUN curl https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -o packages-microsoft-prod.deb ; \
dpkg -i packages-microsoft-prod.deb && \
rm packages-microsoft-prod.deb
RUN apt-get update; \
apt-get install -y apt-transport-https && \
apt-get update && \
apt-get install -y dotnet-sdk-6.0

ENV HOME /mal
5 changes: 5 additions & 0 deletions impls/cs.2/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
bin/Debug/net6.0/step%.dll: step%.cs
dotnet build ./step$*.csproj

clean:
\rm -rf bin obj