Better HN
topnewbestaskshowjobs
Log inSign up

Hello71

1,909 karma · joined Sep 24, 2012 (14y ago) · 1,011 submissions

Submissions

comment 6y ago · link · parent

that's implementation defined

comment 6y ago · link · parent

Arch doesn't even have 5.6 in staging, let alone testing, let alone core. It was released less than 24 hours ago, that's barely enough time for the maintainer to test it on their own machines. No distribution releases a .0 kernel after 12 hours of testing to anybody except people who have explicitly opted into testing. and at that rate, there's a good chance you'll get -rc kernels too, and those are full of bugs (that's why they're -rc).

comment 6y ago · link · parent

http://blog.llvm.org/2011/05/what-every-c-programmer-should-...:

> warning: after 3 levels of inlining (potentially across files with Link Time Optimization), some common subexpression elimination, after hoisting this thing out of a loop and proving that these 13 pointers don't alias, we found a case where you're doing something undefined. This could either be because there is a bug in your code, or because you have macros and inlining and the invalid code is dynamically unreachable but we can't prove that it is dead.

comment 6y ago · link · parent

the fda doesn't regulate any of those drugs, that's the dea.

comment 6y ago · link · parent

this deliberately ignores the new features we've gotten in the meantime.

gcc is slow when you turn on all the optimizations. when computers were run by SysOps and every program needed to be recompiled from scratch for each slightly-different machine, it wasn't worth making the compiler ten times slower to make the program five percent faster. today, when browsers are compiled once and then run by millions of users for billions of hours a day, the tradeoff is different.

sure, autoconf is bad, particularly today when it's used completely wrong, but is it really worse than when programs had to be completely manually ported between different Unix versions, in a day when "package manager" had yet to be a twinkle in anybody's eye?

is everything great now? no, of course not. but you're grasping at the completely wrong straws here.

comment 6y ago · link · parent

there are other threading options available than C11.

comment 6y ago · link · parent

redirections aren't parsed by exec....

comment 6y ago · link · parent

> Certainly you can. You just have to reduce the effective sector size that the file system can use.

get back to me when you find a high-performance (FAT doesn't count) Linux filesystem that supports sector sizes of 496.

comment 6y ago · link · parent

That's moving the bar though. Only in the past decade or so has it become reasonable ("reasonable") to include entire runtimes together with an application. Java started in 1995, Python started in 1991. This was an era when one of Java's main targets was SIM cards and other highly minimal devices, so not only would the target already have a JVM, but it would be wholly impractical to ship your own. Even on desktops, downloading just a fraction of Java for each program would be a massive waste of limited bandwidth and disk space.

For that reason, Java and Python didn't start out with fully self-contained bundles as a design goal. It just wasn't practical in the 90s. Obviously, yes, if they had managed to correctly predict and plan for three decades of technological improvement, then sure, we'd be working in a very different technological landscape. But they couldn't possibly have, and solutions built on the old languages are always fraught with disagreement. So, we use new languages, like Go and Rust, which are developed with modern needs in mind.

comment 6y ago · link · parent

I've used Gentoo for almost a decade now, and no, that's not true. emerge doesn't just randomly keep source files on disk, and certainly not in a form easy to link to. In fact, Gentoo is worse than Debian for static linking, because not all packages have IUSE=static-libs. If it doesn't, you need to patch that ebuild and potentially many dependencies to support it. On the other hand, on Debian, the standard is for -dev packages to come with both headers and static libraries.

comment 6y ago · link · parent

Which reasonably-popular modern languages can be reasonably said to have ignored cross compilation? Interpreted languages like JavaScript and Python obviously don't have any problem, JIT languages like .NET and Java explicitly have a cross-platform layer, and modern compiled languages like Go and Rust specifically have cross-compilation as a goal. Rust still needs a libc though, but that's not Rust's fault, that's the result of trying to work together with the system instead of DIYing everything. (see: problems with Go doing system calls on BSDs, Solaris, etc)

You can't look at C which started in the 1970s and C++ which started in the 1980s and have expected them to even consider cross-compilation, when Autoconf wasn't even released until 1991.

comment 6y ago · link · parent

I don't see how zig cc would help with that. Your distribution probably also doesn't ship all the source files for your packages either, and there's no other way to statically link.

comment 6y ago · link · parent

An interesting read: https://www.popehat.com/2011/09/25/anatomy-of-a-scam-chapter.... A series of articles about a similar mail fraud, this one using printer toner instead.

In chapter one, Ken explains why this is absolutely fraud:

> Whether a communication is fraudulent — for the purposes of criminal law, torts, or consumer protection law — depends upon communications as a whole. Scammers cannot insulate themselves with fine print, hidden disclosures, or contradictory disclaimers when the entire solicitation is intended to defraud and is misleading to a reasonable person.

Although the mailing in OP is somewhat less scammy, on the totality of the evidence, any reasonable person would clearly decide that it is mail fraud.

comment 6y ago · link · parent

although the picture is very blurry, by my reckoning, that part is roughly the sixth largest font on the page, the top three being "Website Listing Service", "Web Listings Inc", and "DESCRIPTION OF SERVICES", "SUBSCRIPTION INCLUDES", and "INQUIRIES". there is absolutely no way that "THIS IS NOT A BILL" is the largest text.

comment 6y ago · link · parent

so the answer to the second question is "yes, most likely"?

comment 6y ago · link · parent

Location: Toronto, Canada

Remote: Yes

Willing to relocate: Yes

Technologies: C, Python, shell, networking, build systems

Résumé/CV: https://alxu.ca/resume.pdf

Email: see resume

comment 6y ago · link · parent

this seems like a fed conspiracy theory video, a la freemen on the land OPCA arguments.

comment 6y ago · link · parent

with a QLC drive, like the 660p, 8 cycles is 4% of your total drive life...

comment 6y ago · link · parent

GNU comm prints a warning if either file is not sorted, unless all input lines are pairable.

comment 6y ago · link · parent

hopefully this will make the actual costs of private health insurance more clear. right now right-wing media emphasizes the cost of public health insurance, which sort of works because the cost of private health insurance is hidden in the company's balance sheets instead of individuals'.

comment 6y ago · link · parent

so what you're saying is that without TEE, Netflix would shut down? come on. Netflix would clearly keep operating with or without DRM, all TEE does is make it harder for the user to access their legitimate (non-Netflix) content in anything but the most approved way. it entrenches mainstream operating systems and makes it harder to use FOSS. sure, I'll concede that Netflix is not the most damaging to user freedom, but that's not what OP is about. nobody would give a shit about this vulnerability if it was just Netflix, because Netflix is broken against hardcore attackers anyways. TEE proponents want to expand its use to more user-hostile applications. that's my concern.

hardware encryption is arguably a better use of TEE, but as far as I know, no actual implementations use SGX for that purpose. the TPM is used, but it's not fast enough for actual encryption. the OS loads the keys from the TPM and does the encryption in regular software.

comment 6y ago · link · parent

that sounds vastly overgenerous. if that were truly the case, then TEE wouldn't be built into every consumer system. if it were actually to protect against malicious cloud providers, then TEE would be only available for special (read: expensive) processors. see: intel and ECC memory. the goal of TEE is to benefit big corp and fuck the user, and just because it can in theory be used for other purposes is barely a consolation.

comment 6y ago · link · parent

> The SLoC of IPSec kernel code are comparable to the SLoC for WireGuard kernel code.

I haven't checked whether this is true, but even if it is, that's a damning indictment of IPsec, because on Linux, the entire connection establishment is in userspace, and the kernel only handles per-packet encryption and authentication. WireGuard has the entire negotiation sequence, authentication, routing, timeouts, rekeying, etc in the kernel. With IPsec, you need to have a userspace daemon to manage all of that, with significantly more LoC than the bare per-packet essentials. With WireGuard, you just load the keys into the kernel and you're done. I bet that you're also counting Zinc against WireGuard, but not counting the entire crypto API against IPsec (which, unlike with WireGuard, you might end up actually using).

I suspect that it's not actually true though in the first place, once you add in all of the other stuff like iptables -m policy that only exists to support IPsec.

comment 6y ago · link · parent

the "none" cipher isn't even that bad... if you do a packet capture, you can clearly see that the data is unencrypted. the worst part about IPsec is that there are many modes which look secure, but actually aren't secure at all. examples: encrypted but unauthenticated packets, encrypted but unauthenticated channel negotiation, encrypted by default but downgradable cipher negotiation...

comment 6y ago · link · parent

my point is that it would appear that "Anyconnect Secure Mobility Client" has a shitton of vulnerabilities. sure, wireguard may have some vulnerabilities, but you don't need a formal audit to tell the difference between "this might have some issues" and "holy fuck this is a fucking dumpster fire". you need an audit to tell if "this might have some issues" is "this has some issues" or "this is actually pretty good". in particular, "Anyconnect Secure Mobility Client" appears to have a significant number of local privilege escalation exploits, some several dozen since 2011. that doesn't necessarily mean that the protocol is shit, but it probably does. it probably means that no serious security professionals have examined it, and the vulnerabilities that have been found are just the easiest ones that can be found with a scanner.

but even ignoring all of that, wireguard has significantly better security guarantees. https://www.wireguard.com/formal-verification/ claims that "WireGuard has undergone all sorts of formal verification, covering aspects of the cryptography, protocol, and implementation." with references to several formal proofs of the protocol.

furthermore, wireguard has actually received a CVE: CVE-2019-14899, which was posted here only a few weeks ago. it's not wireguard-specific though, it's a general problem with VPN setup on general-purpose operating systems.

comment 6y ago · link · parent

this cisco anyconnect system? https://www.cvedetails.com/vulnerability-list/vendor_id-16/p...

doesn't seem very secure to me.

comment 6y ago · link · parent

yeah, a generic, probably pointer-heavy hash table is definitely gonna be worse on memory. I'm surprised that it's that much worse on time though, I expected it to be closer. I guess probably the cache misses are worse with such a large table though.

comment 6y ago · link · parent

seems like it would be worth comparing to the old "awk '!a[$0] { a[$0]=1; print }'". I would assume that such arrays are implemented internally using hash tables. probably not as efficient as a C implementation, but the used parts of the interpreter should fit in I-cache, so it should be within a few times as fast.

comment 6y ago · link · parent

that's what discourse does. it's frustrating because it's significantly slower than the built-in browser search, probably in part due to excessive network accesses, but also probably due to poor caching and inefficient implementation.
1
111213
34