Better HN
topnewbestaskshowjobs
Log inSign up

GrumpySloth

4,901 karma · joined Sep 13, 2020 (6y ago) · 1,641 submissions

Submissions

comment 3y ago · link · parent

Reasoning and statistical machines who are actually pretty bad at both.

comment 3y ago · link · parent

Most non-copyleft licences require attribution. That's significantly more than than public domain. Copilot breaks even permissive licences.

comment 3y ago · link · parent

Shouldn't an em dash be surrounded with spaces on each side anyway?

comment 3y ago · link · parent

macOS on Apple Silicon and iOS use 16kiB pages without lying to applications.

Linux has a MAP_HUGETLB constant, which you can pass to mmap(), which opts your application into 2MiB or 1GiB pages. Unfortunately, last time I tried it it required the system admin to enable support in the system for that, which wasn't on by default (on Debian at least). So from the perspective of an ordinary application developer that's useless.

comment 3y ago · link · parent

Personally, I’ve never liked widgets. Not on Windows Vista, not on KDE, not on iPhone. They create clutter. If I want to interact with an app, I’ll just open the app. So maybe I’m not alone in that and there isn’t really a demand for widgets among normal iPhone users.

comment 3y ago · link · parent

I’ve only started learning Swift, so I don’t know how it performs on bigger projects, but so far I’ve been loving playgrounds, if not for the dog-slow compilation, but that’s in-character for all LLVM-based compilers, so maybe not exactly XCode’s fault.

comment 3y ago · link · parent

A charitable interpretation would be them wanting to signal to other employers that the people laid off are still good hires. But I don't know if it's an accurate interpretation.

comment 3y ago · link · parent

Does Microsoft pay this much?

comment 3y ago · link · parent

They are not synonyms. Kernels, firmware, drivers, boot loaders are all programs, but they aren’t apps.

comment 3y ago · link · parent

In C you can use “%g” printf format string (which indicates a value of type double), and then not pass a double to it, but e.g. an int. Easy mistake to make, when changing pre-existing code.

On x86 what will happen is the code will compile, but the function is going to read its argument from a floating point register instead of an integer register as it should. This:

1. Is a bug, since a completely unrelated garbage value is going to be printed.

2. Leaks the value of a register, which may be a security issue.

There are still other common issues which can easily turn into vulnerabilities, leaking private process memory, when people pass untrusted strings as format strings with the intention of printing them raw.

So you want a safe print to prevent trivial bugs in general, and security vulnerabilities in particular.

comment 3y ago · link · parent

How are you replying to them, if they're shadow banned? Wouldn't that mean their comments aren't visible to the rest of us?

comment 3y ago · link · parent

I’ve worked for 2 companies so far which maintain a bit of Android code and neither used Kotlin. GitHub search for “#android language:Java” reports 49K repositories, while “#android language:kotlin” reports 25K repositories. GitHub is biased towards greenfield projects, not legacy corporate codebases, so I’d expect the ratio of Java to Kotlin code in non-open-source software to be much higher. I wouldn’t be surprised if it’s more than 10 times higher.

comment 3y ago · link · parent

Or they develop for Android. Not a minority.

584.

Reserve and Commit(yakubin.com ↗)

1 points · by yakubin · 3y ago · discuss

comment 3y ago · link · parent

It would be nice. Currently, I have exceptions for the orientation and ICC profile tags in my static site generator for my photography website, but I could be missing something.

comment 3y ago · link · parent

It seems to have issues with some photos that exiftool doesn’t have issues with, reporting some XML errors. But it’s a lot faster, so there’s that.

comment 3y ago · link · parent

Yes.

comment 3y ago · link · parent

To be pedantic, that’s provided by bash, not devfs. You wouldn’t be able to do it like this from e.g. a C program.

comment 3y ago · link · parent

The photo under Upgrading the iPhone OCR Service Into An OCR Cluster. In the future, data centres are going to host racks of iPhones.

comment 3y ago · link · parent

pandoc has a built-in converter. Put your maths in Markdown between dollar signs and use the --mathml option to pandoc.

comment 3y ago · link · parent

Great news. Kudos to Igalia!

comment 3y ago · link · parent

Excel.

comment 3y ago · link · parent

Browsers still fail at being good document viewers:

1. For a long time now Chromium didn't support MathML. It's only coming back in the upcoming version.

2. Firefox's implementation of MathML is buggy: <http://0x0.st/o7HQ.16.mov>.

3. There is no CSS property to enable grouping of threes of digits in large numbers, so you need to put spaces into the markup, resulting in them being included when copied and search discovering completely different numbers than the ones you want to present.

4. And just try making this table reproducing the proper alignment of numbers in HTML: <https://practicaltypography.com/samples/number-grid-after.pd...>. It's hell.

comment 3y ago · link · parent

Add to it https://git.kernel.org/

comment 3y ago · link · parent

With people reaching for kqueue, epoll and io_uring to handle the C10K problem it seems that spawning processes wouldn’t be a great idea, with the latency and memory overhead of spawning itself, as well as the meagre limits of the number of concurrent processes in a system.

comment 3y ago · link · parent

> But why would the average developer want to?

As for myself, I don’t like GitHub UI, which is slow, has low information density, and is generally lollipop-like; and its social media aspect, which often turns the bug tracker into a Twitter equivalent with viral bugs, emojis to cheer and boo people.

So I set up a cgit instance for myself. Patches can be sent over mail as attachments generated with git format-patch (attaching files to mails isn’t hard). Issues can similarly be sent over mail and described in a BUGS file.

That’s sufficient for my single person projects. Probably also for n-person projects for small values of n (let’s say 7). Past that I’d set up a Gerrit instance, which IMO has the best UX of all code review tools available, free or not; and a Redmine for ticket tracking.

comment 3y ago · link · parent

Good riddance.
1
192021
55