Better HN
topnewbestaskshowjobs
Log inSign up

GrumpySloth

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

Submissions

comment 2y ago · link · parent

Nitpick: SSA is late 80s, early 90s tech.

comment 2y ago · link · parent

Not my experience. When I report a bug in Chromium, it’s usually quickly verified as legit, and then left for dead forever.

comment 2y ago · link · parent

Downloading a file is something that happens automatically when you e.g. navigate (or are automatically redirected) to a link which is served with Content-Type of application/octet-stream. Example: <https://0x0.st/H7bb.bin>. If you don’t modify your browser somehow, it’s not something you as a user can protect yourself against.

comment 2y ago · link · parent

A quick search led me to CVE-2010-2568, which isn’t in TCP/IP[1], but is an RCE vulnerability that could be triggered by a website triggering a file download and the user later opening the folder with the downloaded file in Windows Explorer. Windows XP with Service Pack 3 is vulnerable.

[1]: The CVE database has to have the worst search out of all bug trackers I’ve ever used.

(I think using older versions of Windows is fine. But under no circumstances would I connect them to the internet.)

comment 2y ago · link · parent

Probably through RCE-s in Windows XP’s TCP/IP stack implementation.

comment 2y ago · link · parent

What place has potatoes more expensive than tomatoes?

Outside of Asia, which is more rice-based than potato-based, potatoes have a hard-earned centuries-old reputation of food for poor people (cheap to farm, not much nutritional value). But even after checking the prices in Japan, tomatoes are several times more expensive.

Maybe you’re not looking at the price per kilogram, but price of package for packaged vegetables?

comment 2y ago · link · parent

Except tomatoes are more than 4 times as expensive as potatoes. :D

comment 2y ago · link · parent

Pedantic note: compiler doesn’t elide bounds checks in code using iterators. They’re not there to begin with. Iterators in the standard library are implemented using unsafe code, which calls non-bounds-checking variants of functions getting elements from collections. There is nothing for the compiler left to do here regarding bounds-checking.

comment 2y ago · link · parent

There is also the compiler. A language may claim to be implemented without any unsafe code in the standard library, but all that happened is the unsafe code got hidden in the compiler, in how it generates code, in intrinsics etc.

comment 2y ago · link · parent

I’ve had rustc turn my branchless code consisting purely of bitwise operations into branching code. There was probably nothing rustc-specific about it. Just LLVM estimating that branches would be faster in that case.

comment 2y ago · link · parent

Industrial revolution was the key to Europe’s current prosperity. Without it, it was going in the direction of mass starvation, because old farming methods weren’t able to sustain the growing population. The increased population would have been a disaster without the industrial revolution.

It’s the reason England crushed China, even though England’s population has always been microscopic in comparison to that of China.

comment 2y ago · link · parent

My bad. That’s not been an issue in my code, as I use arenas to manage memory and never put an owning container as key in a HashMap.

comment 2y ago · link · parent

You can.

https://doc.rust-lang.org/std/collections/hash_map/enum.Entr...

comment 2y ago · link · parent

Maths is typically written fast, so subtle spacing is too weak a signal to distinguish meanings. Where I studied maths, we even crossed our zeds horizontally to make it easier to distinguish from carelessly written 2s. Similarly, even though the country uses commas, the uni uses periods, for the benefit of clarity. Almost noone uses semicolons in function application in writing.

comment 2y ago · link · parent

In this case though the comment starts with a categorical negation of something that was said in a tongue-in-cheek way in the comment being replied to. It suggests a counterpoint is made. Yet it’s not.

comment 2y ago · link · parent

It’s not so arbitrary. I’ve grown up in a country which uses commas, but it’s still really confusing even to me, when writing e.g. f(1,2). Is that function applied to 2 arguments or 1? For this reason I always use period as decimal point.

comment 2y ago · link · parent

I think you two are agreeing.

comment 2y ago · link · parent

Pipelines are executed in parallel.

comment 2y ago · link · parent

The Schrödinger’s cat.

comment 2y ago · link · parent

Blaise Pascal, several centuries earlier.

comment 2y ago · link · parent

It doesn’t matter what someone in the past thought they were for. That’s what they are for in practice, names are irrelevant here, yes, they are quite bad. But the ones in stdint.h are just typedefs for those, so that’s what we are left with.

comment 2y ago · link · parent

No. It’s for tightly packing data in data structures. Bitwidth is exactly what’s important here.

comment 2y ago · link · parent

So you’re fine with software provided as opaque binaries without source code or only as SaaS? Because without copyright you’re going to get more of that and no licence is going to stop that.

comment 2y ago · link · parent

During installation the guide tells you to run a program, which generates an fstab based on current mounts. So by default it will configure /tmp the same way it’s configured in the live cd.

comment 2y ago · link · parent

> You and the author appear to be the same guy.

We are not. We’re not even on the same continent.

comment 2y ago · link · parent

> What many free software advocates actually want is a world without copyright on software.

Some of them sure. The subset of them who are GPL advocates are simply confused though. GPL is not possible in a world without copyright. In a world without copyright I can release software, which can be written from the ground up or be based on something open source, doesn’t matter, and not share the code with anyone. Just the binary. I can also create AWS based on open source software and nothing like AGPL will stop me from providing proprietary services based on it.

If you want to see an argument from someone who opposes copyright, but has more consistent views on the matter, I recommend this piece: <https://github.com/BurntSushi/notes/blob/master/2020-10-29_l...>

And the reason I pointed to the fallacy is that multiple people in this thread suggest that making a proprietary product based on open source software constitutes taking something away from users of this software. This is illogical. They still have the original. The only person who loses in this situation is the original author, not the users.

comment 2y ago · link · parent

> It is setting up a situation where users will not be free.

No. It is setting up a situation where users can choose between a free option A and a proprietary option B based on A. Being sad about A being too liberal is suggesting it’s more important for you that B doesn’t exist than that A exists.

> If you expect people to treat MIT licensed software as GPL licensed software,

I don’t. Contrary to GNU and FSF websites, GPL is not a synonym for freedom. Most people, outside of GNU-centric places like this post about Emacs, prefer more liberal licences.

comment 2y ago · link · parent

The poster I replied to complained about someone choosing MIT over GPL, not a proprietary licence over GPL. Noone is blocked from contributing for legal reasons. Quite the opposite.

comment 2y ago · link · parent

Yeah. I can get this angle. This is why we don’t have small independent companies making C and C++ compilers today. Only BigCorps which fund this development with money made from less honourable business.
12345
55