formatting

Tag

Cards List
#formatting

Improvements to std::format in C++26

Lobsters Hottest · 6d ago Cached

The C++26 standard introduces several improvements to the std::format library, including direct pointer formatting, path formatting, constexpr support, and a new empty line overload for std::println.

0 favorites 0 likes
#formatting

The butterfly effect in LLM. Persona format alone (prose vs bullets) flipped an LLM’s behavior by 76 points.

Reddit r/ArtificialInteligence · 2026-05-22

A study demonstrates that simply changing the formatting (prose vs bullet points) of a persona prompt dramatically flips an LLM's behavior in a Prisoner's Dilemma, from 96% cooperation to 20%, illustrating extreme sensitivity to format despite identical content (p < 0.001).

0 favorites 0 likes
#formatting

Wrapping Code Comments

matklad · 2026-02-21 Cached

The article argues that code and comments should be wrapped to different columns, with comment width relative to the comment start, and discusses how current editor tools don't properly support relative wrapping.

0 favorites 0 likes
← Back to home

Submit Feedback