Sabitlenmiş Tweet
Lirion
1.7K posts


@itscamacon bruh i had this idea back in 2022 but for some reason it never occurred to me to use an envelope follower
English
Lirion retweetledi

You're confusing programming (news) with programming (hobby), there's a million channels from people who make videos on their projects rather than whatever new tool is out this week
Just a few off the dome: Sebastian Lague, Tsoding, Kaze Emanuar, Jackie Codes, James Lambert, etc
Manware@IAmManware
The programming space absolutely sucks these days. The algorithm heavily rewards AI content over actual coding content. Don't let all this noise and fear paralyze you. Believe in the path of traditional handwritten coding, develop the skills you need to clear interviews and don't forget to take care of yourself.
English
Lirion retweetledi

@tsoding @ajay9470 the reason why this (should) work is the same as they described here
x.com/ajay9470/statu…
Ajay@ajay9470
@llrion @tsoding "...All temporary objects are destroyed as the last step in evaluating the full-expression that (lexically) contains the point where they were created..." - en.cppreference.com/w/cpp/language… This is where I am starting from
English

@tsoding tldr: const_cast<decltype(x) *>(&static_cast<const decltype(x) &>(decltype(x){ x }))
we cast the temporary to a const lvalue ref, grab a pointer and then discard the const
all 3 compilers with all warnings, sanitizers, no complaints
inspired by @ajay9470
godbolt.org/z/MKvojx5cz
English

I'm at a weird point of my life where I'm doing a C++ placement new into alloca() in a pure C library just to make it compilable with a C++ compiler.
I'm sure it's UB somewhere down the line, but hey you are using C++. You already have a bigger problem to worry about.
If you have a better idea, let me know. The goal is to pass an rvalue by a raw pointer to foo_impl() while keeping foo() an expression and not turning it into a statement. GCC's statement exprs don't work in MSVC. Using lambdas as a statement exprs replacement is too much C++ for a C library for my taste.

English

@SebAaltonen yeah i rolled my own span recently and made it work as well, my only gripe is that you need an extra pair of braces in order to initialise a span with objects inline
English

soundcloud knew these remixes are too fire so it just gave up on making a waveform @BARELYALIVEUS

English
Lirion retweetledi

New blog post: A Decade of Slug
This talks about the evolution of the Slug font rendering algorithm, and it includes an exciting announcement: The patent has been dedicated to the public domain.
terathon.com/blog/decade-sl…


English
Lirion retweetledi
Lirion retweetledi
Lirion retweetledi




















