Skip to content

Instantly share code, notes, and snippets.

View basileMarchand's full-sized avatar

Basile Marchand basileMarchand

View GitHub Profile
@basileMarchand
basileMarchand / Dockerfile
Created May 22, 2025 09:22
Dockerfile Python3.14.0 with JIT
FROM debian:bookworm
# Variables
ENV LLVM_VERSION=19
ENV PYTHON_VERSION=3.14.0
ENV PYTHON_VERSION_BETA=${PYTHON_VERSION}b1
# Dépendances nécessaires
# Installer dépendances système
import sys
from typing import Callable, List, Any
import cloudpickle
from mpi4py import MPI
def getInstanceId() -> int:
"""Return the MPI worker id
Returns:
[int]: worker id
@basileMarchand
basileMarchand / python_like_zip.cpp
Created July 15, 2021 07:35
Python like zip function in C++20
#include <vector>
#include <list>
#include <array>
#include <string>
#include <algorithm>
#include <iostream>
#include <ranges>
#include <map>
auto zip(std::ranges::common_range auto & ... containers){