Alvar Lagerlöf
banner
alvar.dev
Alvar Lagerlöf
@alvar.dev
think then garbage collect

https://alvar.dev
Reposted by Alvar Lagerlöf
helper functions should go below the functions they're helping
November 13, 2025 at 2:16 AM
I'm liking Pluribus
November 8, 2025 at 2:28 PM
Reposted by Alvar Lagerlöf
The New York Times opinion page isn't holding anything back now smh.
November 6, 2025 at 6:32 PM
Reposted by Alvar Lagerlöf
Got to the part of "temperature" and I'm aware that a higher temperature == less predictable but never knew why.

Turns out it's very simple. Before the "score" for a set of tokens is turned into a probability distribution it's divided by the temperature. Higher values "flatten" the distribution.
November 6, 2025 at 5:47 PM
Reposted by Alvar Lagerlöf
The first (1955) Danish edition of Ray Bradbury’s FAHRENHEIT 451. Later editions did not convert the title, so this is the only SI-compatible edition! 🎢
November 1, 2025 at 7:55 PM
Reposted by Alvar Lagerlöf
When more people in Sweden can name the Democratic candidate for Mayor of New York than the Prime Minister of neighbouring Finland…maybe — just maybe — there’s a little too much coverage of US politics in Europe.
November 5, 2025 at 12:38 AM
Reposted by Alvar Lagerlöf
Berätta mer om på vilket material ni menar att en AI som ska framställa fejkad barnporr till polisens fällor ska tränas.
Utredning: Polisen ska få låtsas vara ett barn som säljer sex
Polisen ska få utge sig för att vara intresserade av att köpa narkotika eller låtsas vara barn som säljer sex på nätet, föreslår regeringens utredare. Utredningen säger också att polisen ska få använd...
www.svt.se
November 3, 2025 at 3:55 PM
Reposted by Alvar Lagerlöf
😎😎😎😎 GOOD THINGS CAN STILL HAPPEN 😎😎😎😎
November 5, 2025 at 5:22 AM
Reposted by Alvar Lagerlöf
Have you ever been so lost in the sauce that you're playing a crumpled aluminium can on tiny desk?
clipping.: Tiny Desk Concert
YouTube video by NPR Music
youtu.be
November 1, 2025 at 10:26 PM
Reposted by Alvar Lagerlöf
explaining lossless compression to an american
November 1, 2025 at 11:26 PM
Reposted by Alvar Lagerlöf
Fuck yeah, this is the way. Diverse teams build better products. Good for Python.
as facilitating “the growth of a diverse and international community of Python programmers” is written directly into our mission and core to our values, so we withdrew our application.
October 28, 2025 at 5:03 PM
Imagine naming your company after torch.exp(loss)
October 26, 2025 at 10:54 PM
Amazed by how much better git bisect can be an LLM fix suggestions.
October 24, 2025 at 12:47 PM
TIL that in SQL, you can comment out a multiline comment, resulting in a single-line comment. Neat!

-- /*
October 23, 2025 at 6:59 PM
Reposted by Alvar Lagerlöf
A lot of people need to be visited by three ghosts
October 21, 2025 at 6:12 PM
Reposted by Alvar Lagerlöf
En UD-chef och utrikesministern hävdar att ingen av de fängslade flottiljdeltagarna berättade om misshandel då UD kom på besök i fängelset. Ren lögn, enligt flera av dem, som Aftonbladet intervjuat. En läkare och tortyrexpert har undersökt dem: ”Mycket trovärdiga”
www.aftonbladet.se/nyheter/a/xm...
”Det är ren lögn” – de fängslade om ministerns påstående
Både utrikesministern och en hög chef på UD hävdar att ingen av de fängslade svenskarna i Israel berättade något om misshandeln, då ambassadpersonal kom på besö
www.aftonbladet.se
October 20, 2025 at 5:48 PM
Reposted by Alvar Lagerlöf
Edinburgh castle failing to render, likely thanks to the AWS outage
October 20, 2025 at 8:35 AM
When I expect some paragraphs of text in response, ChatGPT and Claude often give me this sparse unstructured response with a lot of unexplained concepts. Gemini seems so much better.
October 19, 2025 at 4:50 PM
You're absolutely wrong
October 19, 2025 at 1:00 PM
Reposted by Alvar Lagerlöf
"ChatGPT dies after each conversation" is a misleading statement. If anything, ChatGPT dies after each token, the same way you die after each moment of awareness :)
October 17, 2025 at 2:28 AM
Reposted by Alvar Lagerlöf
My favourite academic / IT story involves a phonecall to our IT support:

Support: Hi, Alex. How are things?
Alex: Fine thanks.
Support: So, what can I do for you?
Alex: It's my computer.
Support: What's wrong with it?
Alex: It's on fire?.......What do I do?
October 16, 2025 at 7:52 AM
I wonder if LLMs would perform better on code if newlines were turned into positional encoding for the y axis.
October 15, 2025 at 8:53 PM
October 13, 2025 at 6:56 PM
I wonder why YouTube links keep on opening in the in app browser instead of the app.
October 12, 2025 at 2:14 AM
Yeah but how big are your tokens?
October 11, 2025 at 9:56 AM