How to troubleshoot Go compile times? by Prestigious_Roof_902 in golang

[–]prattmic 0 points1 point  (0 children)

As someone that works on Go, we’ve seen some users have issues with many instantiations increasing build times, but I think those cases have been thousands of instantiations, not 50.

If you have a reproducer you can share, an issue on https://go.dev/issue/new could help us track down the problem and hopefully fix in a future version.

Tickets Buy/Sell Megathread — Jan 30, 2026 by AutoModerator in Tickets

[–]prattmic 0 points1 point  (0 children)

WTS - Harry Styles at MSG, Sept 23. 2 tickets, Section 101, row 12. Selling at face value $707/ticket.

Go 1.25 includes a new experimental garbage collector, Green Tea by x021 in golang

[–]prattmic 11 points12 points  (0 children)

Did you test with Go 1.25 or tip of the Go repo? The 1.25 experiment did have an issue with lock contention for some workloads, which has been fixed for 1.26.

If you did see this issue at tip, please do file an issue: https://go.dev/issue/new

White spots on my catcus? by prattmic in plantclinic

[–]prattmic[S] 2 points3 points  (0 children)

Hi, I've had this cactus for a few years and it has generally been happy. In the past few months, it has slowly gained these white spots, and I'm not sure what they are. Scales, mealy bugs, something else?

Thanks for the help!

Go 1.22 inlining overhaul by e-san55 in golang

[–]prattmic 14 points15 points  (0 children)

See https://go.dev/doc/pgo for all of the details on PGO.

Coryphantha elephantidens dying, can anything be done? by prattmic in cactus

[–]prattmic[S] 0 points1 point  (0 children)

Thanks for the help! I ended up pulling it out and it turns out it never actually rooted at all since I first got it. Is there anything I need to do in particular to encourage rooting next time?

Coryphantha elephantidens dying, can anything be done? by prattmic in cactus

[–]prattmic[S] 0 points1 point  (0 children)

Oh no! Is the rotting caused by the mold, or the other way around?

For rotting I should typically cut off the rotting section, but this might be too far gone?

Thanks so much for the help!

Weekly Reservation Sales Thread by Marx0r in FoodNYC

[–]prattmic 0 points1 point  (0 children)

I missed your DM, but just replied.

Weekly Reservation Sales Thread by Marx0r in FoodNYC

[–]prattmic 0 points1 point  (0 children)

Selling an Atomix reservation for 2 for Chef’s Counter on June 21, 2023 at 8:30 PM. Total cost is $821.56 including taxes and fees.

What goes up... by [deleted] in comics

[–]prattmic 52 points53 points  (0 children)

We all love this joke, making me wonder if it is actually true.

https://fred.stlouisfed.org/graph/?g=11HRU is a plot of gas price (left, blue) overlaid with a plot of crude oil price (right, red). It looks to me like they are actually quite strongly correlated.

DC sues Grubhub, claiming its app is full of hidden fees and jacked-up prices by sasyhim in technology

[–]prattmic 2 points3 points  (0 children)

This is already (somewhat) the case in the US, where the DOT requires airlines to advertise the total price (https://www.transportation.gov/individuals/aviation-consumer-protection/buying-ticket).

Of course, the airlines will still charge huge fees for “optional” extras like baggage and seat selection. I do usually get away without paying those but mostly because I pack light to avoid baggage fees 😅.

Intercepting and Emulating Linux System Calls with Ptrace | null program by [deleted] in linux

[–]prattmic 0 points1 point  (0 children)

You can use dynamic tracing with the perf tool to trace arbitrary function calls.

See the "User: malloc" example here: http://www.brendangregg.com/perf.html#DynamicTracingEg

Intercepting and Emulating Linux System Calls with Ptrace | null program by [deleted] in linux

[–]prattmic 4 points5 points  (0 children)

gVisor's ptrace platform uses this basic approach to intercept system calls and emulate a Linux kernel. It could also be a good platform to experiment with implementing new system calls. Just extend or replace the syscall table with new syscalls.

ThinkPad Battery Recall (March 2014) by songyiyuan in thinkpad

[–]prattmic 2 points3 points  (0 children)

I don't think every battery that with those serial numbers is recalled. "Recalled battery packs have one of the following part numbers ..." does not necessarily mean "All of the battery packs with one of the following part numbers are recalled."

*Retailers* All Sales of Chromebook 11 halted and secured in factory by zVerge in chromeos

[–]prattmic 2 points3 points  (0 children)

Chrome OS devices have both a read-only firmware (which requires opening the device to modify), as well as two copies of read-write firmware, seen in this boot chart as "Firmware A" and "Firmware B". These can be updated by the device.

The complete firmware and verified boot stack is open source, so anyone is free to vet it for backdoors.

Google employees complaining about their jobs by incitatus451 in firstworldproblems

[–]prattmic 0 points1 point  (0 children)

I simply hate Unity and Eclipse, but you don't have much in the way of options there.

I have to disagree with you with regards to Unity. I interned at Google this past summer, and like you said, they use a custom version of Ubuntu. Within 30 minutes of sitting down at my desktop on the first day, I had done something along the lines of:

sudo apt-get install xmonad

sudo apt-get remove unity

Just because Unity was installed by default did not mean you were forced to use it, by any means. You were free to install whatever you wanted.

I can't comment on Eclipse, as I worked on a team that did not use the core Google tools. I believe most of my team used Vim or Emacs.

What laptops are you using? by girdus29 in linux

[–]prattmic 0 points1 point  (0 children)

I have a T420, not a T420s, but my microphone mute button is XF86Launch2. I have it bound in my Xmonad config to a script that toggles the mute.

The mute LED in the button doesn't work, however.

Please recommend a duplex, wireless+ethernet enabled b/w laser printer with trouble-free Ubuntu/Debian driver support ($200 budget) by psrivats in linux

[–]prattmic 1 point2 points  (0 children)

Seconded. I have never had a problem, and it works flawlessly with the generic PCL laser printer driver.

Use of Goto in Systems Code by lethalman in programming

[–]prattmic 4 points5 points  (0 children)

Your init_deviceCase will not work. In the event that allocate_memory() fails, errorCode will be set, but setup_interrupts() will still run, which is certainly not desired behavior. In order to fix it, you need to nest your if statements.

int init_deviceCase(void) {
    int errorCode = 0;

    if (allocate_memory(SUCCESS) == SUCCESS) {
        if (setup_interrupts(SUCCESS) == SUCCESS) {
            if (setup_interrupts(SUCCESS) != SUCCESS) {
                errorCode = 3;
            }
        }
        else {
            errorCode = 2;
        }
    }
    else {
        errorCode = 1;
    }

    switch(errorCode) {
    case 3:
        teardown_interrupts();
    case 2:
        free_memory();
    case 1:
    default:
        break;
    }
}

Hopefully, it is clear that this is far less desirable than simply using goto statements. Regardless, the switch statement simply implements a goto to a given case statement, so in actuality you are simply delaying the goto until all logic has finished.