from numpy_lru_cache_decorator import np_cache
@np_cache()
def function(array):
...
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
| # AWS Lambda 関数の公式コンテナイメージ https://gallery.ecr.aws/lambda/python で | |
| # uv https://docs.astral.sh/uv/ を使って python パッケージ管理と実行を可能にする最小限の例 | |
| FROM public.ecr.aws/lambda/python:3.12 | |
| # uv を公式イメージからCOPYする方法でインストールする | |
| # https://docs.astral.sh/uv/guides/integration/docker/#installing-uv | |
| COPY --from=ghcr.io/astral-sh/uv:latest /uv /bin/uv | |
| ENV PATH="/app/.venv/bin:$PATH" | |
| # AWS Lambda は書込可能なディレクトリが `/tmp` 配下だけなので uv の cache も同ディレクトリ配下を使うように変更する |
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 | |
| USER=$1 | |
| REPO=$2 | |
| if [ -z "$USER" -o -z "$REPO" ]; then | |
| echo '$1 : Github username, $2: Github repository name (only public repo)' | |
| exit 1 | |
| fi | |
| FILENAME=star_${USER}_${REPO} |
tl;dr I want to use Rust to program robots. Help me find the best core libraries to build on.
Robotic systems require high performance and reliability, but also have enormous complexity in terms of algorithms employed, number of subsystems, embedded hardware control, and other metrics. Development is mostly split between C++ for performance and safety critical components, and MatLab or Python for quick research or task iteration.
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
| #include <math.h> | |
| #include <GL/glew.h> | |
| #include <GL/freeglut.h> | |
| #include <cuda_gl_interop.h> | |
| #include <thrust/device_vector.h> | |
| #include <thrust/transform.h> | |
| #include <thrust/iterator/counting_iterator.h> |