Skip to content
TILens What matters today in tech v0.4.0
Theme
Topics - Languages
Calendar · NOV 2026
‹ Nov 2026 ›
  1. JAN
  2. FEB
  3. MAR
  1. APR
  2. MAY
  3. JUN
  1. JUL
  2. AUG
  3. SEP
  1. OCT
  2. NOV
  3. DEC
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30
Favorites (0)

Community stream

Community

Hello I want to know how do I port from C to Rust?

See like this old thread I really don't understand how do I port function pointer like Example: int wl_proxy_add_listener(struct wl_proxy *proxy, void (**implementation)(void), void *data); But how do I translate to Rust like this? void…

rust-users-forum

Running code during application shutdown

I am currently rewriting a project from java to rust due to memory usage concerns. It is a music player which requires storing some state on disk. The state is auto-saved periodically but should always be saved when the application shuts down. In…

rust-users-forum

llm-anthropic 0.27

Release: llm-anthropic 0.27 This release of the Anthropic plugin for LLM mainly provides compatibility with the recently released anthropic v1.0.0 Python library, which switches from httpx to httpx2. OpenAI made the same change in their v3.0.0…

simon-willison

Your executable is a SQLite database

Your executable is a SQLite database Farid Zakaria describes a neat Linux pattern for creating a SQLite database file that can be directly used as an executable binary. The trick sets the SQLite file format's 4-byte application ID (68 bytes into the…

simon-willison

Code organisation - test fixtures for unit & integration tests

Are there any good, idiomatic, approaches out there to organising test fixtures which need to be used in both unit & integration tests? I currently have: src | ... | - test_fixtures | | - mod.rs | - - albums.rs # hard coded expected results & asset…

rust-users-forum

Notes from week 34

Testing day10 on the RISC-V path in OCaml-CI, diagnosing failed Windows containerd commits, and measuring the Tessera / Microsoft Planetary Computer download bottleneck.

ocaml-planet

Use a with block to control export (public/private/__all__)

Presently, there is a lot of debate about how to do export control. An alternative suggestion is an export context manager that remains compatible with __all__: with export(): # Everything declared inside export blocks is exported. import math…

discuss-python-ideas

How to prevent stack overflow when dropping deep structures?

Hi, I'm porting tests of custom JSON parser from another language to Rust. The original library contains test with 10 million nested JSON arrays. I can parse it in Rust easily. But unfortunately the problem happens when it goes out of scope and it…

rust-users-forum

Add the stop_exception parameter to iter() and aiter()

Add the stop_exception parameter to iter() and aiter() The two-argument iter() only covers callables which report exhaustion by returning a special value. Many callables raise an exception instead — list.pop() and deque.popleft() raise IndexError,…

discuss-python

Quoting Drew Breunig

Prior to Fable, it felt silly to waste too much time improving your coding harness or context strategies. A new model would arrive at the same price (or cheaper!) and paper over most of your problems. But then Fable landed. It was (and still is!)…

simon-willison

Newbie trying to nest instrumentation queries in array

Hi, gang, This is my second week of Python - I’m trying. I want to test a phono preamp stage at various frequencies, so I have an array named test_param where each row has 4 elements: the frequency for the signal generator, the time scale and input…

discuss-python

Request to link my PSF Contributing Membership account

I recently became a PSF Contributing Member and confirmed my voting intention on psfmember.org. My previous emails to psf-donations@python.org bounced with a “554 5.7.1 Sender address rejected: Spam” error. Could you please help me link my…

discuss-python

Guidance on creating a PyPI Organization for an open-source organization

Hi everyone, I’m looking for some guidance on creating a PyPI Organization for Plizent Foundation. I’ve already submitted an organization request to PyPI Support, but I’m still waiting for an update. I’d like to understand whether there is anything…

discuss-python

Current font/glyph/vector rasterizer?

Greetings friends, I've been poking at the Rust font stack for the past few days. I'm going to probably end up using the fontations stack as well as HarfRust to handle a good amount of my text woes. But that still leaves the problem of…

rust-users-forum

Another approach to the nonzero macro

Initialization of a nonzero number, where assertion happens at compile time: // Using macro_rules for performant compilation, tested to work in stable Rust #[macro_export] macro_rules! nonzero { ($n:expr) => { // This is in a const context const {…

rust-internals

1769 items available