13,486 karma · joined Jun 1, 2016 (10y ago) · 4,896 submissions
comment 4y ago · link · parent
> 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
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
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
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
comment 4y ago · link · parent
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
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
comment 4y ago · link · parent
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
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
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
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
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
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.