Scale GPGPU Programming Language
scale-lang.com5 pointsby rav0 comments
A server error has occurred
FUNCTION_INVOCATION_FAILED
sfo1::qcpj5-1777386477345-b792e22509f4 let value = Some(param.as_ref()) else {
// Handle, and continue, return an error etc
}
// Use `value` as normal. ln -sf ../../scripts/git-pre-commit-hook .git/hooks/pre-commit
which simply adds a pre-commit symlink to a script in the repo's scripts/ dir. But hooksPath seems better. #!/usr/bin/env -S uv run --script
causes the OS run really run env with only two arguments, namely the shebang line as one argument and the script's filename as the second argument, i.e.: /usr/bin/env '-S uv run --script' foo.py
However, the -S flag of env causes env to split everything back into separate arguments! Very cool, very useful.