1,210 karma · joined Jul 19, 2024 (2y ago) · 1,613 submissions
comment 2y ago · link · parent
comment 2y ago · link · parent
If you know the machine and platform ahead of time, not really. For frontend JS this isn't the case. But for backend code it absolutely is the case.
Sure, theoretically the JIT can sit in the background, see which functions are called the most and how they're call and then re-JIT pieces of code. In practice, I'm not sure how often this is done and if you even gain much performance. You MIGHT in a dynamically typed lang like JS because you can find out a bunch of info at runtime. In something like C# though? You already know a bunch at compile-time.
comment 2y ago · link · parent
Node.js is popular because js is popular. You pretty much guarantee an infinite pool of developers for, like, ever. And you can even use those developers across the entire stack with greater velocity and much less onboarding.
async is cool, but not that cool. CGI was doing basically that a long time ago, and it was even more automagical.
> Tech Empower Web Framework still features JavaScript frameworks that outperform Rust frameworks. How do you explain that?
The benchmarks are constructed in such a way that highlights the strengths of the particular JS JIT implementation. JS is good at a lot of things, so if you just do those things, it might appear that it has okay performance.
People do the same thing with C# vs C++; this has been a problem forever. Sure, C# is about as fast or close if you have 16 gigs allocated to the GC and your app is using 100 megs. Now run at 95% memory usage with lots of churning and the order of magnitude differences come out. It's just a fundamental problem with GC langs.
comment 2y ago · link · parent
But, if you want a dynamically typed experience, look no further than PHP or Perl. Also significantly faster, and, if I had to bet, you could probably iterate much faster in Perl. It wouldn't be fun, but honestly, I doubt that Perl is more footgunny than JS.
comment 2y ago · link · parent
For example, compare the speed and implementation of std::sort and qsort (it's almost an order of magnitude difference in run time for big N!)
comment 2y ago · link · parent
Also you can do that same thing in Rust or C++ too. Very common in C++, speeds up programs quite a bit.
comment 2y ago · link · parent
Relatedly, now random apps can't record the whole screen. This is a good thing, now they get explicit user permission and go through xdg. I don't know how anyone could be opposed to this - it's objectively more empowering for you, the user.
comment 2y ago · link · parent
I mean, would you like VSCode tracking your mouse movements across the entire desktop and your keypresses and then sending them off to Microsoft? Probably not, so we're all in agreement.
comment 2y ago · link · parent
Libertarians are, first and foremost, cowards. Trying to get them to actually tell you their political views is like trying to extract sugar from a stick of gum. There's no point in trying, just assume they're being dishonest about their positions on democracy and assume they'll vote for the candidate who threatens democracy.
This election is already, more or less, completely fucked. Nobody is really approaching it in a reasonable way. Everyone, even on the left to an extent, just pretends that Trump hasn't repeatedly and continuously tried to threaten democracy. Instead, we're talking about who cackles more or how black Kamala is. So, at this point don't bother. Those who understand the threat to the US' legitimacy understand it, and those who don't, don't.
comment 2y ago · link · parent
It's a lang for an interactive shell, typing literally translates to developer speed. I understand the want for clarity and maybe that's nice in large scripts, but the main goal is to be a shell. So, optimize for that. Also, you probably shouldn't be using powershell for large scripts anyway.
The only recent lang I've seen that has a handle on this is Rust. You can tell they put a lot of thought into having keywords be as short as possible while still being descriptive.
comment 2y ago · link · parent
comment 2y ago · link · parent
We definitely do if they act in malice. "Do no harm" and all. I guess then it comes down to how stupid you think corporate leadership is.
IMO, most of the time they're not stupid. I don't think Tabacco executives genuinely though getting people hooked on nicotine was fine. Not to mention they did everything they could to make the occurrence of nicotine more potent...
> are you really OK with Gates or whoever making a $100M donation? do you really think corporate donations are somehow worse?
1. I'm not 100% okay with the ultra-wealthy influencing elections, because their interests are also at odds with the average American person (who is who your representatives should serve!), but:
2. I do think it's slightly better than corporations influencing elections. Bill Gates is still a person and probably doesn't advocate things that directly harm humanity. The same is not true for corporations - many of them literally exist solely to harm humanity (and make money in the process).
comment 2y ago · link · parent
But - I will say in terms of sexuality among women - it's not all rainbows (ha). The majority of bisexual women I know would not date bisexual men, and they make it known. The "gap" in progressivism exists there too, just much less. Meaning, a lot of bisexual women are willing to accept all kinds of women and have a self-expression of wide variety, but many still look for what they deem to be a traditional, heterosexual man (when they are dating men).
It's complicated and then that really gets into a more intersectional issue because the elephant in the room is there's many strings connecting sexuality to masculinity. I think, in general, there's less genderized implications for behavior for women who are bisexual than there are for men who are bisexual. Being a bisexual man just comes with much more assumptions and baggage about identity in terms of masculinity/femininity that I don't really see for bisexuality in women. You can sort of see this in statistics, where bisexual women self-identify significantly more than bisexual men.
But bright side: this is improving, too. I see a lot less men hiding their bisexuality these days than I saw 10 years ago.
comment 2y ago · link · parent
I think we need to come to terms with men being in positions of abject "weakness" - or what we currently perceive as weakness. And we do that through visibility. Through PSAs, television shows, movies.
I also think clothing would be a good place to start, just because it's so immediately obvious and visible. Get protests allowing men to wear skirts at work, and make it clear they're still men. I don't think that will fix anything really, but I think it could force the issue to be looked at.
comment 2y ago · link · parent
I don't mean myself, I mean the heterosexual women and men I know. I'm gay, almost all my friends are women and it's just what I've observed.
And, to be clear, I'm not blaming women. Because relationships, too, are a performance.
This part is really important:
> Women want to deal with things like grappling with the shame of dating a man who paints his nails and the social repercussions of that
It's not just men who lose respect when masculinity isn't performed to a high enough standard, women associated with them lose respect too. Women have a lot to deal with, it's unreasonable for them to also take on additional emotional burden when they already have to manage the appearance of their relationship to outsiders.
As for how I know how they "feel" - well, I don't. But I see their actions and what they choose to tell me. From what I've seen, it's extremely risky for heterosexual men to be vulnerable in their relationships. The odds are incredibly high that will come back to bite them, often immediately, sometimes much later. And, women seem very hesitant to talk about any perceived feminine traits in the men they date. Typically, they do the opposite, almost talk them up. I think there's some perception management going on.
comment 2y ago · link · parent
Insurance companies have an incentive to make medical care as awful and inefficient as possible. There's a tug-of-war here: doctors want to provide the highest quality care as fast as possible; insurance companies want to provide the least amount of care as rarely as possible.
Well... they're the ones paying.
These doctors are struggling to deal with "regulations" - they're struggling to deal with insurance. The sheer administrative overhead of medical insurance is staggering. You can go ask doctors, any of them will tell you.
comment 2y ago · link · parent
I agree this is viable, but you have to understand that for heterosexual men they face a lot of day-to-day backlashes for this. You have to understand the vast majority of women will not consider a relationship with them. And they will suffer in their career as well. Lack of masculinity, or rather perceived masculinity, in men means lack of respect across the board.
Because progressivism has not focused on that, so we're still dealing with many decades old understanding of masculinity. Even extremely surface-level reimagining, such as painting nails, is fringe. And I think that really demonstrates the problem.
I mean, forget emotional intelligence or vulnerability. We're battling black nail polish. We haven't even begun to take a crack at the simplest, most surface level stuff. Let alone the deeper stuff.
I said this in another comment, but modern heterosexual men are in a strange position where they have to perfect the art of performing masculinity in most situations, and then leaving hints of progressivism where other's find it most convenient.
Ultimately, even the most progressive woman is looking for a man who is somewhat kind and maybe he can get away with painting his nails. But he must still be masculine, he must not cry very much if ever, and he must always be a low level of emotional labor. Women want to deal with things like grappling with the shame of dating a man who paints his nails and the social repercussions of that, they don't also have the bandwidth to deal with, say, depression. That's step 100, we're still getting past step 1.
comment 2y ago · link · parent
They're forced to perform an adequate display of masculinity to please individuals such as yourself, because the moment they don't they get this sort of treatment. But performing such masculinity doesn't grant them what it used to before. So, one would think they would leave it behind!
But they don't, because you don't welcome it. They have nowhere to go. Certainly, other men won't take them into their communities. And women won't either, because such men are weak and not worth their breath. So where do they end up if they choose that path?
So naturally they don't choose that path.
The problem here is that they can't "leave behind patriarchy". That translates into dying alone still. The reality is toxic masculinity is molded not just by men, but by women. Mothers, sisters, classmates. From the moment they leave the womb, boys understand there are strict rules they must conform to.
Enforcing these rules, which you're unintentionally doing with this sort of "boohoo" mentality, is part of the reason we're in the mess. Meaning, you yourself are upholding patriarchy in ways you might not understand.
Part of deconstructing toxic masculinity and giving men a fighting chance in a progressive world is being open to listening to them and giving them the space for vulnerability. You can't do that when you're hell-bent on never listening. When in such a position, men and young boys are set up for failure. They can't perform to a level that is deemed sufficient for progressivism, but they also can't perform for a level that is deemed sufficient for women and other men.
Only a select few, who have mastered the art of perfectly performing outward masculinity while selectively dropping little kernels of progressivism, succeed.
The solution is a modern progressive movement for men, but there's huge pushback to this idea. Even the notion men don't have to conform to even surface-level gender roles, like the clothes they wear, is met with huge uproar from men and women.
I mean, just ask yourself: do you think the average progressive woman would even humor dating a heterosexual man who does drag? Do you think the average progressive woman would even humor dating a heterosexual man who splits the bill?
The answer is a resounding no. Whatever little bits of progressivism men have gotten are pretty much just side-effects from feminism and gay liberation. But just side-effects. Men still can't act feminine, and they certainly can't do anything that might get them perceived as gay.
I mean, I find another placeholder for fa*got online just about every month. Heterosexual men are sorely lacking in progressivist movements that help them and their self-identity.
comment 2y ago · link · parent
Of course it's not really true, just a bit true. Going to the gym won't make you stop hating yourself, any bodybuilder will tell you that. Going to the gym, no-fap, etc are all chosen as channels because they provide an immediate sense of accomplishment while being relatively easy. But they don't materially improve the circumstances of your life.
It's simple to spend an hour at the gym and you will immediately feel better. But you didn't magically gain friends, a community, a sense of belonging or a reason to live. Those require being uncomfortable and pushing yourself mentally, emotionally, and socially. That's much more difficult than pushing weight.
Ultimately young men just want to believe and feel like they're doing something right.