-
Add Graal JIT Compilation to Your JVM Language in 5 Steps, A Tutorial http://stefan-marr.de/2015/11/add-graal-jit-compilation-to-your-jvm-language-in-5-easy-steps-step-1/
-
The SimpleLanguage, an example of using Truffle with great JavaDocs. It is the officle getting-started project: https://github.com/graalvm/simplelanguage
-
Truffle Tutorial, Christan Wimmer, PLDI 2016, 3h recording https://youtu.be/FJY96_6Y3a4 Slides
This file contains 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 | |
set -ex | |
DEVICE=/dev/sdb1 | |
## If rdb is not supported by kernel, use loop device | |
# DEVICE=/dev/sdb | |
# offset=`sudo parted -s $DEVICE unit b p | grep -A1 Start | tail -1 | awk '{print $2}'` | cut -dB -f1 | |
# sudo losetup -o $offset /dev/loop1 $DEVICE | |
# DEVICE=/dev/loop1 |
This file contains 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
openai-whisper | |
torch | |
transformers | |
numpy | |
soundfile | |
datasets | |
sentencepiece | |
sacremoses |
This file contains 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
import torch | |
from transformers import AutoModelForSpeechSeq2Seq, AutoProcessor, pipeline | |
from datasets import load_dataset | |
device = "cuda:0" | |
torch_dtype = torch.float16 if torch.cuda.is_available() else torch.float32 | |
model_id = "openai/whisper-large-v3" |
This file contains 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
from collections import namedtuple | |
import os | |
import pprint | |
import re | |
import requests | |
import shutil | |
import subprocess | |
import tarfile | |
import traceback | |
import zipfile |
This file contains 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
# ------------------------------------------------------------------------------ | |
# Copyright (c) 2019, Nucleic Development Team. | |
# | |
# Distributed under the terms of the Modified BSD License. | |
# | |
# The full license is in the file LICENSE, distributed with this software. | |
# ------------------------------------------------------------------------------ | |
"""Time updating an EditVariable in a set of constraints typical of enaml use. | |
""" |
This file contains 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
-- Start copy from spec/lua.lua | |
local unpack = table.unpack or unpack | |
local funcdef = "([A-Za-z_][A-Za-z0-9_%.%:]*)%s*" | |
local decindent = { | |
['else'] = true, ['elseif'] = true, ['until'] = true, ['end'] = true} | |
local incindent = { | |
['else'] = true, ['elseif'] = true, ['for'] = true, ['do'] = true, | |
['if'] = true, ['repeat'] = true, ['while'] = true} | |
local function isfndef(str) |
This file contains 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
Context context = Context.newBuilder("python"). | |
allowAllAccess(true). | |
option("python.ForceImportSite", "true"). | |
option("python.Executable", VENV_EXECUTABLE). | |
build(); |
This file contains 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
"These to:do: loops are not message sends, and are compiled | |
into comparisons and jump bytecodes. The inner loop is jitted, | |
the outer isn't, but we get a bridge that executes from the end of the inner loop | |
over the jump to the beginning of the inner loop" | |
i := 0. | |
1 to: 2000 do: [:a | | |
1 to: 1000 do: [:b | | |
i := i + b abs. | |
] | |
]. |
This file contains 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
[[MCMcmUpdater updateFromServer] | |
on: ProvideAnswerNotification | |
do: [:n | n resume: true]] | |
on: Warning | |
do: [:n | n resume: true]. | |
[(Installer squeak | |
project: 'VMMaker') | |
install: 'VMMaker.oscog'] on: Warning do: [:n | n resume: true]. | |
(Installer swasource | |
project: 'BenchmarkRunner') |
NewerOlder