Community stream
Community
ttok 0.4
Release: ttok 0.4 ttok is my CLI tool for counting tokens, using OpenAI's open source tiktoken library. It hasn't been in updated in a couple of years, but I finally fixed a Click warning, updated CI, and added a --list-models command to list…
Quoting Carson Gross
Computer programming is, fundamentally, about two things: Problem-solving using computers Learning to control complexity while solving these problems I have a hard time imagining a future where knowing how to solve problems with computers and how to…
Why no Dependent Matrix Type?
Hello, I don't really know how to really introduce this topic. Background: I want to implement compile time safe matrix multiplication. For that i want to have a struct with const generics for the number of columns and rows. Then i want a function…
Rust abstractions for kernel sources
Hi, I just got my my kernel Rust enabled and have compiled a working minimal LKM, but see that I now need access to some of the kernel calls under the net framework. Which leads me to believe I need to create some Rust abstractions so that I can…
Include a helper for writing `__repr__` in the standard library
I have wanted this a few times and I’m curious whether others would find this useful. For this class: class Point: def __init__(self, x, y, z, color): self.x, self.y, self.z = x, y, z self.color = color def __repr__(self): return…
Anarcat: PSA: Europe changes time forward soon, North America next, for the last time?
This is a copy of an email I sent at work. I'm not sure I should be making noise about this here, feedback welcome. This is your bi-yearly reminder that time is changing soon! October 25th in Europe, November 1st in North America. Less people in…
Allow profiling an entrypoint (dotted.name:func) (maybe `-e`?)
minimal problem statement: profiling a module or script muddies the profile with import-time computation. it would be nice to profile just a function open problems: what to put in sys.argv[0]? (this is apparently already a problem for the proposal…
Django Weblog: Django security reporting update
We are no longer accepting new security reports for the Django project through HackerOne. Existing reports submitted through HackerOne will remain open and continue to be handled by the Django Security Team. If you discover a security issue in…
Eli Bendersky: Monte-Carlo simulations
Monte Carlo simulations (or methods) is the technique of applying randomness and the Law of large numbers to the solution of various scientific and engineering problems. One of its first documented uses was by Stanislaw Ulam and John von Neumann for…
Zostera, our new implementation of WireGuard in OCaml
How to implement a VPN in OCaml
Quoting Ben Affleck
I've always been kind of into computers since I was young. And then when film started to move from analog film to digital, I became more interested in that aspect of it. And the visual effects workflow for many years has included machine learning.…
Claude Haiku 5.5
As previously promised, here's Anthropic's new fast, low cost model: Introducing Claude Haiku 5.5. The previous Haiku, 4.5, was very much showing its age. It came out almost a year ago, and was priced at $1/million input and $5/million output -…
Trait object with associated types in field - requires generic param?
I currently have: trait ListModel { fn get_stuff(&self, row: i) -> Stuff; ... } struct List { model: Rc<dyn ListModel>, ... } I think I want to change my model to use row IDs instead of usize indices. If I do this: trait ListModel { type Key: Eq +…
1769 items available