!UNVBThoJtlIiVwiDjU:nixos.org

Staging

361 Members
Staging merges | Find currently open staging-next PRs: https://github.com/NixOS/nixpkgs/pulls?q=is%3Apr+sort%3Aupdated-desc+head%3Astaging-next+head%3Astaging-next-21.05+is%3Aopen116 Servers

Load older messages


SenderMessageTime
15 Mar 2026
@emilazy:matrix.orgemily given the UNSAFE_TODO I'm guessing this is some neglected corner of the browser 06:31:33
@emilazy:matrix.orgemily [0] is precisely GNU extension right 06:31:42
@vcunat:matrix.orgVladimír ČunátNot in standard C06:31:43
@dramforever:matrix.orgdramforeverdang06:31:49
@emilazy:matrix.orgemily isn't there an __attribute__((align(…))) or something. maybe something like that got standardized 06:32:10
@vcunat:matrix.orgVladimír ČunátYes.06:32:24
@dramforever:matrix.orgdramforeveroh, lol yeah06:32:32
@dramforever:matrix.orgdramforeverhttps://en.cppreference.com/w/c/language/alignas.html06:32:43
@dramforever:matrix.orgdramforeveralthough still06:32:55
@dramforever:matrix.orgdramforeveri'm not sure if that's what they even wanted06:33:04
@dramforever:matrix.orgdramforever i'm [13677/56297] into building chromium-unwrapped and my laptop hasn't exploded yet 06:33:32
@dramforever:matrix.orgdramforeveri think that's a good sign that i will be able to test this after all06:35:19
@vcunat:matrix.orgVladimír ČunátIn standard C this certainly works to ensure what they apparently wanted.06:36:16
@vcunat:matrix.orgVladimír Čunát(I do use it.)06:36:22
@vcunat:matrix.orgVladimír ČunátC++ does have it as well, so probable there as well.06:36:42
@dramforever:matrix.orgdramforever this definitely aligns 06:36:44
@dramforever:matrix.orgdramforever but the old code obviously also just didn't align 06:36:52
@dramforever:matrix.orgdramforeverso maybe they don't actually mean like, type alignment06:37:04
@dramforever:matrix.orgdramforeveror maybe they just messed it up06:37:20
@emilazy:matrix.orgemilyI think they might mean "pad it out"06:46:06
@emilazy:matrix.orgemilybut it's definitely baffling with a flexible array06:46:13
@emilazy:matrix.orgemily maybe you can git blame it. how long can that take on the Chromium repo 06:46:55
@dramforever:matrix.orgdramforeverthe answer is "seconds" btw06:56:10
@dramforever:matrix.orgdramforeverthere's a "Blame" button06:56:14
@dramforever:matrix.orgdramforeverwhich leads to https://codereview.chromium.org/2490303002/patch/260001/27000606:56:17
@dramforever:matrix.orgdramforever

still no idea what "alignment" means, but it looks like

  • chromium intends to at least use [1] for FAM
  • they don't enforce it
06:57:29
@dramforever:matrix.orgdramforeverugh i don't want to figure out how to report chromium bug06:58:03
@emilazy:matrix.orgemily

It's definitely a benefit

07:03:42
@emilazy:matrix.orgemily

base/metrics/persistent_histogram_allocator.cc:247: char name[sizeof(uint64_t)];
Please add a comment about this, so it's clear why it's like this.

07:04:13
@emilazy:matrix.orgemily

commit-bot: I haz the power
4 years, 1 month ago (2016-11-22 02:17:58 UTC) #80
CQ is trying da patch.

07:05:10

Show newer messages


Back to Room ListRoom Version: 6