Toggle navigation Eli Bendersky's website Decorator JITs - Python as a DSL February 03, 2025 at 06:22 Tags Python , Compilation , Machine Learning Spend enough time looking at Python programs and packages for machine learning, and you'll notice that the "JIT decorator" pattern is pretty popular. For example, this JAX snippet: import jax.numpy as jnp import jax @jax.jit def add(a, b): return jnp.add(a, b) # Use "add" as a regular Python function ... = add(...) Or the Triton language for writing GPU kernels d
Press "Enter" to skip to content Russell Finn’s Blog Don't try to gaslight me. I know what I saw. open menu Search Category: Python OCPython, anyone? Published December 5, 2008 As dynamic scripting languages become more widely used, many developers are interested in using them to write “native” Mac OS X software, rather than having to learn Objective-C (which, of course, is a dynamic language in its own right). And in fact it is often possible to do so, using Apple’s BridgeSupport to generate the
# Tuesday Tooling: I'm a Massive Faker, With Python Need to make a lot of fake user data quickly? You need Faker. ## So What Is It? Faker, by Daniele Faraglia , is a Python module that generates fake data. Not for nefarious means, rather it is there to help you generate data to test your databases etc. ## Thanks Hat tip to Mike Driscoll for alerting me to this very handy module. Mike is a prolific Python educator who uses Twitter / X as a quick and digestible means to learn new Python techniques and mo
Sharing a complex python object in memory between separate processesI have a complex python object, of size ~36GB in memory
# [Python-ideas] Decorators that execute once rather than every import (was: codec and decorator hacks) INADA Naoki songofacandy at gmail.com Fri Aug 22 13:50:52 CEST 2014 - Previous message: [Python-ideas] Decorators that execute once rather than every import (was: codec and decorator hacks) - Next message: [Python-ideas] Allow getting all the items out of a `threading.local` - Messages sorted by: - [ date ] - [ thread ] - [ subject ] - [ author ] Longer import time makes CLI applications slower. It's
This article will discuss how to implement the fp growth algorithm in Python with all the steps for a real data
Python, programming, matplotlib, Python3, Anaconda
# Rounding in Python In software engineering, there are two principles that often come into conflict. The first one is the principal of least surprise. The second one is doing the right thing. These come into conflict when the usual thing that people do is in fact the wrong thing. A particular example of this is the behavior of rounding. In school we were taught that rounding is always done in one particular way. When you round a number it goes toward the nearest hole number, but if it ends in 5, than it
In this blog post, we'll be taking a look at how to use machine learning with Python to predict whether or not a patient has glioblastoma (GBM). We'll be
Configure the Inngest Python SDK for production. Enable signing key verification, set the API base URL, and disable Dev Server fallback for deployed apps