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

Oh yeah, I know.

comment 4y ago · link · parent

Yes, I probably should have expanded my post to say that an effects system is how this should all be handled.

comment 4y ago · link · parent

> My definition, however, does not fit point 3. This is on purpose; from the first time that I read Bob Nystrom’s post, I never believed that point 3 was a prerequisite for function colors.

> This difference of opinion is probably what caused most of the conflict I alluded to earlier, so I thought that I would lay it out, then make my case for it, along with the case that Zig has function colors according to my definition.

You're right, but it's not like they don't address that.

comment 4y ago · link · parent

I wish we had more colors for functions. I don't like the whole "colorless functions" idea. I want to, as a function, be able to constrain my caller. "You can only call me in an async function" is a cool thing to communicate. "You can only call me if you can handle errors", "you can only call me if you have read/write access to the file system", etc - I want arbitrary colors for my functions, not colorless functions.

Not only does this mean that I can express arbitrary constraints on callers, it also means that all constraints and stateful expectations are explicit, verifiable, and clear to the reader.

The post is interesting because it highlights that, colorless or not, functions have constraints and you can try to hide them and handle things automatically, via inference as is demonstrated here, but they're always there. Async is probably one of the less interesting constraints, but I find it so much more confusing when languages have colorless functions... I can't see suspension points, I can't tell wtf is going on. It's extremely frustrating.

> However, before I continue, let me say a little bit of praise for Zig: this is innovation. This is a piece of good work that, most of the time, async functions can be called the same as normal functions.

It's definitely cool and I like the definition of async they have. I think suspension is probably one of the less interesting things that a function can do, vs, say, IO, which is similarly "colorless" in languages. I just wish there were colors for all of these things.

comment 4y ago · link · parent

I've written hundreds of posts.

1. It was fun

2. As a student it let me put my thoughts out there and hear other people's thoughts. Forum discussions kinda sucked by comparison.

3. It gave me a reason to really drill into something. The "if I'm wrong it'll be embarrassing" forced me to really learn what I was saying

comment 4y ago · link · parent

All evidence points to the contrary. We have OTC drugs, or relatively accessible prescriptions, that already expand health and lifespan drastically - otherwise we'd all be dying young.

comment 4y ago · link · parent

I'm not a lawyer. I'm just saying that the CFAA is extremely broad.

comment 4y ago · link · parent

Of course I agree with that. I just think that it boils down to:

a) These tools are for companies that do XYZ

b) Lots of engineers are bad at choosing tools

both of which are pretty obvious. Except it also sorta makes this other point "you aren't Google" but... a lot of us actually do stuff at scale. A lot of us. A lot don't, I'm sure.

comment 4y ago · link · parent

Choosing technology that's battle tested at scale and under crazy load seems extremely reasonable. Just from a "I need this thing not to have a shitload of bugs" perspective. If you were choosing between two libraries, and one was used by 5 people and one was used by 5 million, it'd be hard to go with the one that is used by 5 people even if it is a better fit for the problem.

comment 4y ago · link · parent

OK. But... some of us do need to use Cassandra? Some of us do need to use Kafka? Like, more than 5 companies definitely do work that requires that level of scale...

Of course bad engineers make bad engineering decisions, and most engineers are bad, but that isn't really interesting to point out imo.

> How much data do you have exactly?

Petabytes or exabytes at every company I've worked at, none of which are names mentioned in this article.

> But have you done the math?

Yeah.

I mean, I've read this before, so I'm gonna stop here. I get it. Engineers are bad at their jobs so they default to picking the technologies they've heard of instead of the technologies that make sense. But like... working with massive amounts of data is not that rare anymore. It wasn't in 2017, it definitely isn't in 2022.

comment 4y ago · link · parent

The same way that if a company puts pages you can access at `www.example.com/1` and you then access `www.example.com/2`, which you should not access, you're violating the CFAA.

I haven't read the CFAA in a while but it is extremely broad. It boiled down to "if you access a system in a way you should not, illegal".

Or how accessing the same page a billion times per second, a page you have every right to access a few times, is illegal.

Or if you dial into a nuclear arms facility with your phone.

comment 4y ago · link · parent

Yeah, it would not surprise me to find out that this is an innocent bug, but it would also not surprise me to find out it's a bug in some other bullshit behavior that's just going off the rails in this case.

comment 4y ago · link · parent

I'm sure there are a billion frameworks that persist state automatically for you exactly like that.

comment 4y ago · link · parent

Been a sponsor for a while now. The feature set it's targeting is really promising.

comment 4y ago · link · parent

Yeah, like 30 seconds after I wrote that I was lying in bed and thinking "nope, that's not gonna do shit".

comment 4y ago · link · parent

I guess hardware RWX permissions on disks would be useful for this sort of thing.

comment 4y ago · link · parent

For me, all of those task trackers are radically slower than even a pen and paper or just a single document. Load times, the million buttons, search, etc are all worse. They're fine for teams that need to share work and make asks of other teams and prioritize etc, but for one person they're extremely inefficient.

comment 4y ago · link · parent

Email is exhausting. I've decided that I just don't care about quick turn-around on email. It sucks, but the cost of checking email throughout the day is too high - not just in terms of time, but the psychological impact of it is surprisingly negative.

I now check it ~2x. Morning and midday. If I'm doing a back and forth I may go back to that one specific thread, but that's it.

comment 4y ago · link · parent

I had one Dropbox Paper document for years called "Next Steps". It was literally just a freeform list of things I needed to get done for the project. Every day I would expand the list and cross off/ checkmark what had been done. It got pretty massive.

Now I have a company and a team so we use an issue tracker, which I find to be much much heavier but it's easier to use across multiple people.

comment 4y ago · link · parent

> The son can decide which account to log into based on what they plan to do that day.

You can log into multiple accounts at once on a Chromebook. ctrl + alt + `.` lets you switch between workspaces across accounts, and you can right click windows to move them across workspaces. I'm doing this right now so I can post on HN from my personal account while I code for work.

comment 4y ago · link · parent

It isn't the district's device. OP just enrolled it in the School's GSuite organization so, obviously, policies got pushed. They can just... not do that.

If they want to log into apps or whatever on the Chromebook, they do need to do that. At that point the device has to follow policies for accessing the school's services or whatever. They still don't own the device, but they can push policy to it. At any time the device can be removed from the organization, but that has to be done by the organization, I believe.

Of course, you can have multiple accounts on the Chromebook, so they could just have the device enrolled for one user, but have a personal account not enrolled.

It's all pretty straightforward.

comment 4y ago · link · parent

We run Chromebooks. I'm logged into one right now, on my personal account. There is no way for me, the GSuite admin of my company, to fuck with that personal account.

I can't read anything from it, I can't manage it in any way, I can do nothing. Some things in the personal account aren't accessible (you can only have one account on Chromebooks with a Linux VM), that's it.

comment 4y ago · link · parent

https://news.ycombinator.com/item?id=30915660

comment 4y ago · link · parent

My company is building a realtime analytics service for security. You have a lot of reads that can often be answered with stale data (thanks to our data modeling, which provides ACID 2.0 semantics).

I think a lot of applications could probably benefit from this if they were built with a data model in mind that leverages it properly. But if you 1:1 migrate your code that relies on ACID transactions over to something with Strong Eventual Consistency... yeah, that's gonna be a bad time.

comment 4y ago · link · parent

Very cool tech here, excited for the future. Congrats on fundraising!

comment 4y ago · link · parent

Yes? There are a million exploits that allow breaking out of a container. I didn't say it was some impenetrable force field, I said it was a security boundary.

comment 4y ago · link · parent

You can have multiple accounts on a Chromebook.

comment 4y ago · link · parent

Right, but if you add your account to their organization so that you can get onto their network dont be surprised when they push policies.
1
505152
164