Recent submissions

Comment · 4 years ago
What is it that Go supposedly calls casting? The term (or its variations) does not show up in the language specification.

People sometimes use it for type conversions but that's in line with usage elsewhere, no?

Comment · 4 years ago
I guess that basically everything you'd consider for production use allows you to configure queue sizes and related behaviour however you fancy.
Comment · 4 years ago
For example, debug/pe ImportedLibraries(), which is supposed to return all the libraries that a module imports, was stubbed out to return "nil, nil" in a minor release [1]

I just looked at the Git history and this is plain false. It already looked that way when the big source tree move (src/pkg/ -> src/) was done in 2014. Tracing it back further (to before Go 1.0 times, when there wasn't even a builtin error interface yet and the function returned os.Error), ImportedLibraries was *never* implemented in debug/pe.

Comment · 4 years ago
> google's 'reference' layout

Nothing to do with Google here, by the way. It's just the default format of the Unix date command.

So if you can't remember the order, just switch to your shell and run `LC_ALL=C date`.

Comment · 5 years ago
Comment · 5 years ago
This was never an intended feature. If I understand the article correctly, they were using an undocumented ("private") API which happened to stop working.
Comment · 5 years ago
You can always use sendmmsg(2), writev(2) or other iovec-based APIs.
Comment · 5 years ago
I don't like it either but it's not as bad as it sounds: the ban almost certainly isn't enforced mindlessly and with no recourse for the affected.

I'm pretty sure that if someone from the University of Minnesota would like to contribute something of value to the Linux kernel, dropping a mail to GregKH will result in that being possible.

Comment · 5 years ago
Most common distributions turn it on when running on a device with UEFI Secure Boot enabled.
Comment · 5 years ago
So CentOS is actually getting better with a more open development model. Awesome.
Comment · 5 years ago
Getting a hold of someone's secrets is not possible just by doing a pull request. It's really only about resource usage, at least when the runners in question provide sufficient isolation (true at least for the Github-hosted ones, or we're all in big trouble).

Unfortunately, using self-hosted runners to provide additional capabilities not supported by Github-hosted ones is basically impossible (for public repos at least) as you can't restrict a runner to an organization or project. Set up a bare-metal runner and it will receive jobs from random forks.

Comment · 5 years ago
Comment · 5 years ago
It basically expects a string as the source and a fixed-size, not necessarily zero-terminated, buffer as the destination.
Comment · 5 years ago
> As a website owner myself, I’ve had to make changes about once a year to keep things running properly in Chrome due to deprecated APIs

Does this refer to standard Web APIs or Chrome-specific and more or less experimental interfaces?

Comment · 6 years ago
This is asking for a different thing, though.

  % taskset 1 nproc
  1

  % taskset 1 getconf _NPROCESSORS_ONLN
  8

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton