Readit News logoReadit News
porridgeraisin commented on Go is still not good   blog.habets.se/2025/07/Go... · Posted by u/ustad
throwawaymaths · a day ago
It's also completely insane if youve ever done any scientific work.
porridgeraisin · 5 hours ago
Apart from the extra verbosity, what gives?
porridgeraisin commented on Europe's crusade against air conditioning is insane   noahpinion.blog/p/europes... · Posted by u/paulpauper
alkonaut · 5 hours ago
26-28 daytime temp is lovely. 26-28 at night would be horrible without AC though.
porridgeraisin · 5 hours ago
Here the main issue is humidity. Even on low temp days (relatively speaking) if it's humid you usually need AC to be comfortable.

And it's humid a lot of the time.

porridgeraisin commented on Europe's crusade against air conditioning is insane   noahpinion.blog/p/europes... · Posted by u/paulpauper
alkonaut · 5 hours ago
We should have AC everywhere where night temperature is regularly over 20C part of the year. I get 30C some days almost every summer but almost never over room temp at night - meaning I can easily just open a window in the evening and the house is cool.

The only real problem with more widespread AC is it might lead to the short term win long term loss where people build cheaply (without _at least_ 300mm/1ft insulation and triple glass windows etc) and then spend continuously on heating and cooling instead. The simple solution to this in places where AC is banned: allow it only for well insulated buildings. Yes it’s where it’s least needed but it gives incentive to fix the root cause first.

porridgeraisin · 5 hours ago
> regularly over 20C

I chuckled. Here in Chennai we (speaking for my family and a few others, I didn't ask everyone) set the AC to 24C when we use it, and don't really use AC when it's "cool outside", which is like 26-28C.

Ceiling fans are on 24x7 though, even when the AC is running.

porridgeraisin commented on Waitgroups: What they are, how to use them and what changed with Go 1.25   mfbmina.dev/en/posts/wait... · Posted by u/mfbmina
porridgeraisin · 6 hours ago
Love this. Majority of concurrency in a usual web service is implemented using waitgroups IME (see below) This will greatly simplify it.

  var wg sync.WaitGroup
  wg.Add(1)
  go func(){
    callService1(inputs, outParameter)
    wg.Done()
  }
  // Repeat for services 2 through N
  wg.Wait()
  // Combine all outputs

BTW, this can already be done with a wrapper type

  type WaitGroup struct { sync.WaitGroup }

  func (wg *WaitGroup) Go(fn func()) {
    wg.Add(1)
    go func() {
      fn()
      wg.Done()
    }()
  }
Since you're doing struct embedding you can call methods of sync.WaitGroup on the new WaitGroup type as well.

porridgeraisin commented on Waitgroups: What they are, how to use them and what changed with Go 1.25   mfbmina.dev/en/posts/wait... · Posted by u/mfbmina
evanelias · 7 hours ago
You can just use golang.org/x/sync/errgroup instead, which has always provided this style of use.

errgroup also has other niceties like error propagation, context cancellation, and concurrency limiting.

porridgeraisin · 6 hours ago
errgroup cancels the whole task if even one subtask fails however. That is not desirable always.
porridgeraisin commented on From M1 MacBook to Arch Linux: A month-long experiment that became permanenent   ssp.sh/blog/macbook-to-ar... · Posted by u/articsputnik
sylens · 10 hours ago
I realize touchpad quality is subjective but is a Framework 13 not an option?
porridgeraisin · 9 hours ago
55-60wh battery unfortunately. That cuts off 2.5hrs-ish of usage on linux, compared to 85wh laptops.

Didn't hear great things about the build quality and touchpad although these were just reddit reviews.

I really like the repairability though, so I'll be watching their product line.

porridgeraisin commented on The ROI of Exercise   herman.bearblog.dev/exerc... · Posted by u/ingve
p1esk · 9 hours ago
I wake up at 7am, take kids to school, go to a gym 8-9, go for a swim in the ocean 9:15-9:45, start working at 10. Feel great.
porridgeraisin · 9 hours ago
I always wondered how routines like this work (not the activities themselves, but the timings)

If you swim till 9.45, how are you out, bathed, dried, changed, home, and at your table by 10?

porridgeraisin commented on From M1 MacBook to Arch Linux: A month-long experiment that became permanenent   ssp.sh/blog/macbook-to-ar... · Posted by u/articsputnik
porridgeraisin · 13 hours ago
I am still in the market for a laptop that a) has good linux drivers b) has a big battery ~80wh or more c) metal build d) good touchpad, screen, keyboard, e) strictly no dGPU. I genuinely don't care about the CPU, all of them are good enough for me. Although I suppose if I'm going to be spending on a laptop in 2025, I will be looking for one with 24 or 32GB of RAM instead of 16GB.

Macbook Pros satisfy b), c), d) and e). I currently have an HP laptop that satisfies a), c), d), and e). But is just 43Wh (now 36Wh after a few years).

porridgeraisin commented on I'm too dumb for Zig's new IO interface   openmymind.net/Im-Too-Dum... · Posted by u/begoon
LAC-Tech · 14 hours ago
Web servers, games, and applications, that sort of thing.

Some people definitely do systems programming in, but it's a minority. The std library is not set up for it at all, you need something like rustix, but even that results in very unidiomatic ("unsafe") rust code.

In Zig it's all in the std library by default. Because it's a systems programming language, first and foremost.

porridgeraisin · 13 hours ago
Actually I was also under OPs impression... can you tell me few specific problems with using rust for systems programming? BTW, I have only ever done something that resembles systems programming in C.
porridgeraisin commented on The issue of anti-cheat on Linux (2024)   tulach.cc/the-issue-of-an... · Posted by u/todsacerdoti
Retr0id · a day ago
Right, but you can splice your recompiled version back into the original binary, complete with proprietary components. I've done this before, maybe I should write up the process.
porridgeraisin · a day ago
Please do!

u/porridgeraisin

KarmaCake day742March 26, 2023View Original