Better HN
topnewbestaskshowjobs
Log inSign up

staticassertion

13,486 karma · joined Jun 1, 2016 (10y ago) · 4,896 submissions

@insanitybit
Submissions

comment 4y ago · link · parent

Permissionless has nothing to do with blockchain. As an example if you want to exchange currency without blockchain you can do that by buying gift cards and exchanging them for cash on any number of online markets.

Blockchain provides integrity guarantees given a number of malicious participants. That's all it provides over any other ACID database.

comment 4y ago · link · parent

I think it's important to note that what you're talking about is bitcoin, not the blockchain or even cryptocurrency. No aspect of cryptocurrency or blockchain plays any part at all in your story.

The reason why you could do what you did is because you participated in a young, unregulated market. Blockchain added nothing.

comment 4y ago · link · parent

(2) is an attribute of time. The legal system always plays catch up to the real world. Nothing about bitcoin prevents regulation.

comment 4y ago · link · parent

> It also enables people to finance themselves despite tyrannical restrictions imposed by bad governments. Using bitcoin I can send money to someone in Chi no a who's social rating was degraded by the CCP and who is forbidden from using banks.

In no way does bitcoin being blockchain based enable you to do this better or more effectively. It's just because it's a less regulated currency.

comment 4y ago · link · parent

The thing is it's not really particularly good at that. No moreso at least because of any attributes of the blockchain. It's really because of external reasons:

1. Lack of tooling and cooperation for investigating fraud

2. Lack of regulation

3. Programmatic interfaces

4. There are markets like the NFT space that are amazing for laundering

But no part of why it's good for crime has to do with blockchain.

comment 4y ago · link · parent

Databases have been doing that for a long time. Blockchains only add additional guarantees that matter when you have hostile participants, which only matters if you're decentralizing your system, which you probably don't want to do for a lot of things (like tracking ownership of a car).

comment 4y ago · link · parent

Presumably they're trying to shift the image of a nuclear plant from "dangerous, not in my backyard" to something more friendly and appealing.

comment 4y ago · link · parent

I feel like there was success with overloading `<<`, which is weird but very appealing for students IME, and suddenly overloading everything was on the table.

comment 4y ago · link · parent

I think it's probably reasonable when performing your incident response or even threat modeling to assume the attacker has or could escalate privileges. The linked article doesn't discuss anything that would make that harder, although perhaps practices like staying patched and minimizing attack surface are somewhat assumed (they do bring up choosing your OS based on minimizing attack surface for example).

There's also a lot you can do to harden that boundary. You can harden your kernel, you can execute user's shells in constrained environments like docker containers or restricted shells, leverage sandboxing technologies like apparmor or selinux, etc.

The user/root boundary can be a lot thinner than people expect, so I get why you'd want to point out that reliance on the attacker not escalating should be met with an evaluation of that boundary, but I think it may be understating the boundary to unconditionally not trust a host based firewall, or to say that getting onto the bastion itself is enough to disable the firewall when it does indeed require escalation.

comment 4y ago · link · parent

> if an attack can get into the bastion host, they can disable the firewall, so it cannot be used to limit egress.

This assumes that the attacker can get unconstrained root access to the system. It's fine to assume that attackers will but it's not as if you can't make that difficult.

Agree with the rest of what you said though.

comment 4y ago · link · parent

I don't see anything interesting or appealing about Go at all. I've read and written Go, I've watched Pike's talks on it, and I follow its development.

I could talk a lot about why I think it's a bad language, it would be hard to summarize it since I'd want to cite Pike's talks on "simplicity", articles on Go's GC implementation, discuss error handling, what I think makes a language "good", etc.

comment 4y ago · link · parent

> just like an MMU can restrict what process(es) can access a particular byte or block of RAM, something similar could restrict access to a common storage medium.

Sure, that'd be cool, like segmentation registers.

> of course more than that happens. I am trying to make a point and not document the minutia of the entire boot process of a modern x86_64 computer.

That's fair but it did seem like a central part of your point was that "starting up" was equivalent to existing on disk - though I suspect I was misreading your post.

comment 4y ago · link · parent

Well, more than that happens when a program starts up. It's mapped in, libraries will be dynamically linked in, an address space has to be allocated, a process structure has to be allocated, memory has to be mapped as executable, etc.

I don't think we would want "program on hard drive" and "program in memory" to be isomorphic for a bunch of reasons, one being security.

comment 4y ago · link · parent

Right, but isn't it a bit of a shame that I search "http" in crates.io, the site that theoretically should be serving the "find a crate" use case, and I don't get suggestions that are useful?

comment 4y ago · link · parent

The use of quantum seems appropriate as it's referring to quantum tunneling, which is something that comes up a lot with CPU architectures as they get extra tiny.

comment 4y ago · link · parent

I don't really see it that way. The JVM has a lot of tooling already for GC tuning and a lot of simple, powerful knobs to turn. It seems not only simpler and more straightforward to tune the JVM but the ceiling for what you can do is much higher.

With Go there's one parameter, and in my opinion it's a very strange one. It also seems strange to have to (imo) hack GC metrics in using finalizers, whereas with the JVM it's simply provided to you.

Full disclosure though, I think Go is a bad language, so I'm biased.

comment 4y ago · link · parent

I didn't say otherwise, I'm just comparing the two approaches. We have a very interesting, rare situation where one company has published a blog post on GC tuning across two languages, it seems appropriate to compare them.

comment 4y ago · link · parent

Happy to discuss. I'm sick so I'm being extra terrible about responding to emails (and I'm about to go to sleep at 6am -_-) but feel free to reach out. I could see a website being much simpler to maintain.

comment 4y ago · link · parent

I wonder if that's a discovery issue. Having used rust for years the quick answer would be 'reqwest', but I guess there's not really any way someone would know that just jumping into the language.

comment 4y ago · link · parent

> Having a decent, well maintained, stdlib that contains "the basics" that one would expect in any 21st century programming language is sorely missing from Rust, and from my personal perspective is something that would draw me back to Rust for another go at learning it.

What would you like to see in that? Genuinely curious, I've considered putting something together that's just a meta-crate that pulls in some others.

comment 4y ago · link · parent

This looks like what people have been doing with Java for years, except worse because Go lacks tuning. A common approach with Java is to bootstrap your service with a maxheap based on the environment.

https://eng.uber.com/jvm-tuning-garbage-collection/

Here's another blog from Uber on JVM tuning.

Some notes:

1. They have options

2. They have a powerful gc log, no need to roll your own finalizer thing like this

3. Choosing the max heap size, which seems like what they actually wanted here, is trivial

You could say "but that's more complex", but to me it's that the JVM has far more mature features, tons of tooling and options that they could explore and adopt, and that the obvious wins are trivial to achieve through basic parameter tuning.

Further, this GOGC parameter seems to be a very weird knob. The knobs you'd run into with the JVM will often be a lot more straightforward ie: a static value for heap size vs some number that's based on a working set percentage.

I wonder if over time Go will end up with a tunable GC.

comment 4y ago · link · parent

Has Mozilla showed any reason to bet on them in the last decade? It seems like leadership is happy to sink the company and take bonuses paid for by donations along the way.

I'd rather see a new player in the space. I have no confidence in Mozilla.

comment 4y ago · link · parent

I doubt it, given the absolute plethora of dystopian fiction content and real-world push back to technology that we've seen for centuries.

Personally, I find it to be exciting. As the site mentions, this could be absolutely massive for people whose interaction with the world is non-default, ie: those with disabilities. The physical and virtual interfaces we have are often inflexible and designed with 'the norm' in mind. Having an adaptive interface for those people to help them bridge the gap seems huge.

I recall a spoon that would avoid shaking, allowing someone with (as I recall) Parkinsons to eat without spilling their food. I would love to see that same sort of intermediary interface for all sorts of things.

Personally, I have pretty bad eye sight. I can't drive because of it. The premise of self driving cars, or even just street signs that I can read at night, would be immensely helpful, and I'm pretty close to 'the norm'.

There are maybe some valid concerns. Technology is power and power can be abused. We see that today. But ideally we'll adapt and regulate that power for societal good, as we have done with power historically.

comment 4y ago · link · parent

LastPass has been around for a very long time. I'm still using it because I haven't had much reason to migrate and I installed it probably a decade or more ago.

comment 4y ago · link · parent

Oh, I misunderstood that statement. The browser extension works perfectly fine on my computer, which is not what I would call a "desktop browser plugin", especially for software that at one point actually did have a desktop browser plugin but, afaik, does not anymore.

comment 4y ago · link · parent

I just exported all of my passwords using only the extension.

comment 4y ago · link · parent

If you end up with "X can open any file" that's something that's worth noting to a consumer. The sandbox capabilities don't have to be perfect in order to expose a scary situation.

Further, you can restrict a process to only open specific files in a number of ways on Linux, including based on path. There's room for improvement, though.

comment 4y ago · link · parent

> How often is "reduce cache misses" that different from "use as little space as possible"?

I thought the same exact thing. If I can reduce my struct sizes I can pack N more structs into my cache line. That's almost certainly going to be the best cache-based win.

comment 4y ago · link · parent

> Adding permissions is a reasonable step, but I don't think it solves the problem. We know, it's very hard to get granularity right with permission systems and there is a strong temptation to just give everything all permissions.

A lot of that stems from permissions systems being implemented outside of the code they constrain. In theory a compiler knows every reachable system call and all points of data input that could reach them, and as such it could constrain the program's capabilities accordingly.

In fact, compilers already do this for control flow integrity - it would just be a more advanced system.

> What happened if an update requests a new permission?

It's going to depend on the system. For browser extensions the new permission means a new prompt, so you'd get a CI failure until a human updated a lockfile.

> Also, how would that have prevented the current situation? Infinite loops are famously hard to detect and prevent automatically.

It really depends on the system. You could have a CPU capability that restricts cycles or forces preemption, etc.

I'm not saying you can solve literally all security problems but you can reduce risk considerably. If "infinite loop" is the scariest thing a dependency can do we're in a pretty good position. An unconditional infinite loop should break your CI tests.

comment 4y ago · link · parent

The second someone puts out a 'faker.js' that does this companies will drop it, just as they ban AGPL software.
1
656667
164