Skip to content

Commit

Permalink
Maintenance update (#265)
Browse files Browse the repository at this point in the history
* Added workaround for Intel JCC bug (#263).

* Maintenance update.
  • Loading branch information
nuald committed Aug 30, 2020
1 parent 27fe6e8 commit e095d1c
Show file tree
Hide file tree
Showing 10 changed files with 330 additions and 286 deletions.
42 changes: 42 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,45 @@ Style/RedundantFetchBlock:

Style/RedundantFileExtensionInRequire:
Enabled: true

Lint/BinaryOperatorWithIdenticalOperands:
Enabled: true

Lint/DuplicateRescueException:
Enabled: true

Lint/EmptyConditionalBody:
Enabled: true

Lint/FloatComparison:
Enabled: true

Lint/MissingSuper:
Enabled: true

Lint/OutOfRangeRegexpRef:
Enabled: true

Lint/SelfAssignment:
Enabled: true

Lint/TopLevelReturnWithArgument:
Enabled: true

Lint/UnreachableLoop:
Enabled: true

Style/ExplicitBlockArgument:
Enabled: true

Style/GlobalStdStream:
Enabled: true

Style/OptionalBooleanParameter:
Enabled: true

Style/SingleArgumentDig:
Enabled: true

Style/StringConcatenation:
Enabled: true
472 changes: 236 additions & 236 deletions README.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion base64/Test.kt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ fun notify(msg: String) {
}
}

fun main(args: Array<String>) {
fun main() {
val str = "a".repeat(STR_SIZE).toByteArray()

val pid = ProcessHandle.current().pid()
Expand Down
10 changes: 6 additions & 4 deletions common/commands.mk
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
GCC_FLAGS := -O3 -Wall -flto
GCC_FLAGS := -O3 -Wall -flto -Wa,-mbranches-within-32B-boundaries
# Eventually, enable clang optimization: --x86-branches-within-32B-boundaries
CLANG_FLAGS := -O3
LIBNOTIFY_FLAGS := -I../common/libnotify ../common/libnotify/target/libnotify.a
NIM_FLAGS := -d:danger --verbosity:0 --opt:speed --hints:off
VALAC_FLAGS := --disable-assert -X -O3 --pkg gio-2.0 --pkg posix
V_FLAGS := -prod

CLANG_BUILD = clang -O3 -o $@ $^ $(LIBNOTIFY_FLAGS)
CLANG_BUILD = clang $(CLANG_FLAGS) -o $@ $^ $(LIBNOTIFY_FLAGS)
CRYSTAL_BUILD = crystal build --release --no-debug -o $@ $^
DMD_BUILD = dmd -of$@ -O -release -inline $^
DOTNET_BUILD = dotnet build --nologo -v q $< -c Release
Expand All @@ -16,7 +18,7 @@ GDC_BUILD = gdc -o $@ -O3 -frelease -finline $^
GHC_BUILD = ghc -v0 -O2 -fforce-recomp $^ -o $@ -outputdir $(@D)
GO_BUILD = go build -o $@ $^
JAVAC_BUILD = javac -d $(@D) $^
KOTLINC_BUILD = kotlinc -include-runtime -jvm-target 13 -d $@ $^
KOTLINC_BUILD = kotlinc -include-runtime -jvm-target 14 -d $@ $^
LDC2_BUILD = ldc2 -of$@ -O5 -release $^
MCS_BUILD = mcs -debug- -optimize+ -out:$@ $^
MLTON_BUILD = mlton -output $@ $^
Expand Down Expand Up @@ -73,7 +75,7 @@ SCHEME_RUN = $(XTIME) scheme --optimize-level 3 --program $^
JULIA_RUN = $(XTIME) julia --optimize=3 --check-bounds=no $^

GIT_CLONE = git clone -q --depth 1
DOTNET_CLEAN = dotnet clean --nologo -v q
DOTNET_CLEAN = -dotnet clean --nologo -v q
NUGET_INSTALL = nuget install -ExcludeVersion -Verbosity quiet

py_fmt := target/.py_fmt
Expand Down
42 changes: 21 additions & 21 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ RUN curl -Lo /usr/local/bin/coursier https://git.io/coursier-cli \
&& chmod +x /usr/local/bin/coursier

# https://github.com/MLton/mlton/releases
ARG MLTON=20180207
ARG MLTON=20200817
RUN wget --progress=dot:giga -O - \
https://github.com/MLton/mlton/releases/download/on-$MLTON-release/mlton-$MLTON-1.amd64-linux.tgz \
| tar -xz
Expand All @@ -49,17 +49,17 @@ RUN export VERSION=ruby-2.7.1 \
ENV PATH="/opt/ruby/bin:${PATH}"

# https://github.com/dotnet/core/tree/master/release-notes
ARG DOTNET_CORE=3.1.106
ARG DOTNET_CORE=3.1.107
RUN mkdir dotnet && wget --progress=dot:giga -O - \
https://download.visualstudio.microsoft.com/download/pr/03bf81cd-0275-4998-8a24-dc359fc5fed3/7450f821f9cd33c205378e1a0a5b2cb2/dotnet-sdk-$DOTNET_CORE-linux-x64.tar.gz \
https://download.visualstudio.microsoft.com/download/pr/b8ea2bd6-57e1-41cd-a369-c0fa1a2e42cb/ca094f98bc3c6388d048f0633f6f0f79/dotnet-sdk-$DOTNET_CORE-linux-x64.tar.gz \
| tar -xz -C dotnet
ENV PATH="/opt/dotnet:${PATH}"
ENV DOTNET_CLI_TELEMETRY_OPTOUT=1

# https://pypy.org/download.html
ARG PYPY=pypy3.6-v7.3.1-linux64
RUN wget --progress=dot:giga -O - \
https://bitbucket.org/pypy/pypy/downloads/$PYPY.tar.bz2 \
https://downloads.python.org/pypy/$PYPY.tar.bz2 \
| tar -xj
ENV PATH="/opt/$PYPY/bin:${PATH}"

Expand All @@ -85,42 +85,42 @@ RUN wget --progress=dot:giga -O - \
ENV PATH="/opt/$CRYSTAL/bin:${PATH}"

# https://github.com/ldc-developers/ldc/releases
ARG LDC=ldc2-1.22.0-linux-x86_64
ARG LDC=ldc2-1.23.0-linux-x86_64
RUN wget --progress=dot:giga -O - \
https://github.com/ldc-developers/ldc/releases/download/v1.22.0/$LDC.tar.xz \
https://github.com/ldc-developers/ldc/releases/download/v1.23.0/$LDC.tar.xz \
| tar -xJ
ENV PATH="/opt/$LDC/bin/:${PATH}"

# https://nim-lang.org/install_unix.html
ARG NIM=nim-1.2.4
ARG NIM=nim-1.2.6
RUN wget --progress=dot:giga -O - \
https://nim-lang.org/download/$NIM-linux_x64.tar.xz \
| tar -xJ
ENV PATH="/opt/$NIM/bin/:${PATH}"

# https://dlang.org/download.html
RUN wget --progress=dot:giga -O - \
http://downloads.dlang.org/releases/2.x/2.093.0/dmd.2.093.0.linux.tar.xz \
http://downloads.dlang.org/releases/2.x/2.093.1/dmd.2.093.1.linux.tar.xz \
| tar -xJ
ENV PATH="/opt/dmd2/linux/bin64/:${PATH}"

# https://nodejs.org/en/download/current/
ARG NODE=v14.5.0
ARG NODE=v14.9.0
RUN wget --progress=dot:giga -O - \
https://nodejs.org/dist/$NODE/node-$NODE-linux-x64.tar.xz \
| tar -xJ
ENV PATH="/opt/node-$NODE-linux-x64/bin/:${PATH}"

# https://www.jruby.org/download
ARG JRUBY=9.2.12.0
ARG JRUBY=9.2.13.0
RUN wget --progress=dot:giga -O - \
https://repo1.maven.org/maven2/org/jruby/jruby-dist/$JRUBY/jruby-dist-$JRUBY-bin.tar.gz \
| tar -xz \
&& ln -s /opt/jruby-$JRUBY/bin/jruby /usr/bin/jruby

# https://golang.org/dl/
RUN wget --progress=dot:giga -O - \
https://golang.org/dl/go1.14.6.linux-amd64.tar.gz \
https://golang.org/dl/go1.15.linux-amd64.tar.gz \
| tar -xz
ENV PATH="/opt/go/bin/:${PATH}"

Expand All @@ -129,32 +129,32 @@ ENV CARGO_HOME="/opt/.cargo" PATH="/opt/.cargo/bin:${PATH}"
RUN wget -O - https://sh.rustup.rs | sh -s -- -y

# https://julialang.org/downloads/
ARG JULIA=julia-1.4.2
ARG JULIA=julia-1.5.1
RUN wget --progress=dot:giga -O - \
https://julialang-s3.julialang.org/bin/linux/x64/1.4/$JULIA-linux-x86_64.tar.gz \
https://julialang-s3.julialang.org/bin/linux/x64/1.5/$JULIA-linux-x86_64.tar.gz \
| tar -xz
ENV PATH="/opt/$JULIA/bin/:${PATH}"

# https://swift.org/download/
ARG SWIFT=swift-5.2.4-RELEASE-ubuntu20.04
ARG SWIFT=swift-5.2.5-RELEASE-ubuntu20.04
RUN wget --progress=dot:giga -O - \
https://swift.org/builds/swift-5.2.4-release/ubuntu2004/swift-5.2.4-RELEASE/$SWIFT.tar.gz \
https://swift.org/builds/swift-5.2.5-release/ubuntu2004/swift-5.2.5-RELEASE/$SWIFT.tar.gz \
| tar -xz \
&& ln -s /opt/$SWIFT/usr/bin/swift /usr/bin/swift

# https://ocaml.org/releases/
ARG OCAML=4.10.0
ARG OCAML=4.11.0
RUN opam init --disable-sandboxing -n --root=/opt/opam --compiler=$OCAML
ENV PATH="/opt/opam/$OCAML/bin/:${PATH}"

# https://clojure.org/community/downloads
ARG CLOJURE=1.10.1.536
ARG CLOJURE=1.10.1.561
RUN wget --progress=dot:giga -O - \
https://download.clojure.org/install/linux-install-$CLOJURE.sh \
| bash -s

# https://download.racket-lang.org/
ARG RACKET=7.7
ARG RACKET=7.8
RUN wget --progress=dot:giga \
https://mirror.racket-lang.org/installers/$RACKET/racket-$RACKET-x86_64-linux.sh \
&& sh racket-$RACKET-x86_64-linux.sh --unix-style --dest /usr/ \
Expand All @@ -166,15 +166,15 @@ RUN curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org \
ENV PATH="/opt/.ghcup/bin/:${PATH}"

# https://www.haskell.org/ghc/
ARG GHC_VER=8.10.1
ARG GHC_VER=8.10.2
RUN ghcup install ghc $GHC_VER && ghcup set ghc $GHC_VER

# Shared packages for all Haskell code
RUN cabal update && cabal install network-simple --lib
ENV GHC_PACKAGE_PATH="~/.cabal/store/ghc-${GHC_VER}/package.db:"

# https://github.com/graalvm/graalvm-ce-builds/releases
ARG GRAALVM=20.1.0
ARG GRAALVM=20.2.0
RUN wget --progress=dot:giga -O - \
https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-$GRAALVM/graalvm-ce-java11-linux-amd64-$GRAALVM.tar.gz \
| tar -xz \
Expand All @@ -184,7 +184,7 @@ RUN gu install ruby \
&& ln -s /opt/graalvm-ce-java11-$GRAALVM/bin/truffleruby /usr/bin/truffleruby

# https://kotlinlang.org/docs/tutorials/command-line.html
ARG KOTLIN=1.3.72
ARG KOTLIN=1.4.0
RUN wget --progress=dot:giga \
https://github.com/JetBrains/kotlin/releases/download/v$KOTLIN/kotlin-compiler-$KOTLIN.zip \
&& unzip kotlin-compiler-$KOTLIN.zip \
Expand Down
2 changes: 1 addition & 1 deletion docker/versions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ class Test {
'Tcl' => -> { `echo 'puts "$tcl_version"' | tclsh` },
'Kotlin' => lambda do
prog = <<~KOTLIN
fun main(args: Array<String>){
fun main(){
println(KotlinVersion.CURRENT)
}
KOTLIN
Expand Down
2 changes: 1 addition & 1 deletion json/generate_json.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
'x' => rand,
'y' => rand,
'z' => rand,
'name' => ('a'..'z').to_a.sample(6).join + ' ' + rand(10_000).to_s,
'name' => "#{('a'..'z').to_a.sample(6).join} #{rand(10_000)}",
'opts' => { '1' => [1, true] }
}
x << h
Expand Down
36 changes: 18 additions & 18 deletions json/json.rs/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions json/json.rs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ version = "0.0.1"
edition = "2018"

[dependencies]
serde = "1.0.114"
serde_derive = "1.0.114"
serde_json = "1.0.56"
serde = "1.0.115"
serde_derive = "1.0.115"
serde_json = "1.0.57"
jq-rs = "0.4.1"

[profile.release]
Expand Down
2 changes: 1 addition & 1 deletion matmul/matmul_d_lubeck.d
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env dub
/+dub.sdl:
dependency "lubeck" version="~>1.3.0"
dependency "lubeck" version="~>1.3.2"
libs "lapack" "blas"
targetPath "target"
+/
Expand Down

0 comments on commit e095d1c

Please sign in to comment.