CARVIEW |
Select Language
HTTP/2 200
date: Thu, 31 Jul 2025 04:40:34 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
etag: W/"c4802a944e3b0b6678eaf6195d2af7c8"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: origin-when-cross-origin, strict-origin-when-cross-origin
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com wss://alive-staging.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=jNeWwSsUsf%2FxUpAv8LfFVAN63r%2BhZAt0kcvOL3h9EKZfd9OazC6%2Fe3i3A3pW2Cmi5I56QTBRfEBZdXJfQP1B625czIERg3%2BKG5LC3HAzhQRoX9qZSkYUdAWbLiXERLt8vQZYfyUkw%2FyS8vKAD30EJMmlkvhKfVNcTMzJ114egwspRZjGNgL8rlc6nihZqIA7vjxIzvR33AlZ66siuCBr0JCn1ipXu6WqdaVP2IM1YYkZQy%2FgYTRmOCq8WHWTgKozvwNdkb5v4hWVo9M8UHavUg%3D%3D--3mmxNyobSB7RHzaO--qgdjI1hfmwgYl6m%2FV4UygA%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1759028769.1753936833; Path=/; Domain=github.com; Expires=Fri, 31 Jul 2026 04:40:33 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Fri, 31 Jul 2026 04:40:33 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: C2AE:33DAA7:266414:363488:688AF3C1
portable script for https://github.com/reki2000/langs-bench-dijkstra · GitHub
Show Gist options
Save wx257osn2/0de9c8f2ef5c609d600a0adf5c4fcdfc to your computer and use it in GitHub Desktop.
{{ message }}
Instantly share code, notes, and snippets.
Last active
September 10, 2022 21:23
-
Star
0
(0)
You must be signed in to star a gist -
Fork
0
(0)
You must be signed in to fork a gist
-
Save wx257osn2/0de9c8f2ef5c609d600a0adf5c4fcdfc to your computer and use it in GitHub Desktop.
portable script for https://github.com/reki2000/langs-bench-dijkstra
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Prerequisites: | |
# git | |
# curl | |
# unzip | |
# make | |
# g++ (11 or newer) | |
# clang++ (7 or newer) | |
# bzip2 | |
# zlib | |
# libssl | |
# libgmp | |
# If you use Ubuntu 22.04, you can install them like: | |
# sudo apt install git curl unzip make g++ clang bzip2 zlib1g-dev libssl-dev libgmp-dev ca-certificates --no-install-recommends | |
set -u | |
commit_hash=${COMMIT_HASH:-9fed7ba0c2d833d63bf50d3a6cdaecd67ef5cff6} | |
[ ! -e langs-bench-dijkstra ]; first_time=$? | |
set -e | |
export HOME=${PWD}/langs-bench-dijkstra | |
if [ $first_time -eq 0 ]; then | |
git clone https://github.com/reki2000/langs-bench-dijkstra --recursive | |
cd langs-bench-dijkstra | |
mkdir .asdf | |
pushd .asdf | |
git init | |
git remote add origin https://github.com/asdf-vm/asdf | |
git fetch --depth 1 origin v0.10.2 | |
git reset --hard FETCH_HEAD | |
popd | |
curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | \ | |
GHCUP_USE_XDG_DIRS=1 XDG_DATA_HOME="${PWD}/.ghcup_local/share" XDG_CACHE_HOME="${PWD}/.ghcup_cache" \ | |
XDG_BIN_HOME="${PWD}/.ghcup_local/bin" XDG_CONFIG_HOME="${PWD}/.ghcup_config" \ | |
BOOTSTRAP_HASKELL_GHC_VERSION=9.2.4 BOOTSTRAP_HASKELL_CABAL_VERSION=3.8.1.0 BOOTSTRAP_HASKELL_NONINTERACTIVE=1 sh | |
curl -L https://ndownloader.figshare.com/files/3663336 > /tmp/tokyo.zip | |
unzip /tmp/tokyo.zip -d data | |
rm /tmp/tokyo.zip | |
else | |
cd langs-bench-dijkstra | |
fi | |
git fetch | |
git checkout ${commit_hash} | |
git submodule update --recursive | |
export ASDF_DIR="${PWD}/.asdf" | |
export ASDF_DATA_DIR=$ASDF_DIR | |
ASDF_BIN="${ASDF_DIR}/bin" | |
ASDF_USER_SHIMS="${ASDF_DATA_DIR}/shims" | |
PATH="${ASDF_BIN}:${ASDF_USER_SHIMS}:${PATH}" | |
set +e | |
. "${ASDF_DIR}/lib/asdf.sh" | |
while read lang plugin dummy; do | |
asdf plugin add $plugin | |
(cd $lang; asdf install) | |
done <<EOT | |
go golang | |
python python | |
cython python | |
pypy python | |
kotlin java | |
kotlin kotlin | |
rust rust | |
julia julia | |
javascript nodejs | |
dart dart | |
EOT | |
asdf reshim | |
set -e | |
export GHCUP_USE_XDG_DIRS=1 | |
export XDG_DATA_HOME="${PWD}/.ghcup_local/share" | |
export XDG_CACHE_HOME="${PWD}/.ghcup_cache" | |
export XDG_BIN_HOME="${PWD}/.ghcup_local/bin" | |
export XDG_CONFIG_HOME="${PWD}/.ghcup_config" | |
PATH="${XDG_BIN_HOME}:${PATH}" | |
ghcup upgrade | |
ghcup install ghc 9.2.4 --set | |
ghcup install cabal 3.8.1.0 --set | |
cat python/.tool-versions >> .tool-versions | |
cat rust/.tool-versions >> .tool-versions | |
pip install numpy matplotlib | |
cargo install hyperfine | |
rust_version=($(cat rust/.tool-versions)) | |
export PATH="${ASDF_DATA_DIR}/installs/${rust_version[0]}/${rust_version[1]}/bin:$PATH" | |
rustup default stable | |
./run.sh $@ | |
rm -f .tool-versions |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can’t perform that action at this time.