Hacker Newsnew | past | comments | ask | show | jobs | submit | buckle8017's commentslogin

I swear windows is just full of sleeps and it doesn't matter how faster your system is.

It's more likely network calls that are taking a long time or timing out. A lot of developers insert function calls that under the hood hit HTTP servers, and it can take a few hundred milliseconds to stand up a new TLS connection and then however long it takes to send the request and get the response. It's also probable that the endpoints form an accidental microservice architecture in which case everyone is always hitting a different set of connections. This creates a perfect storm of having to reconnect to everything you hit occasionally which can create little slowdowns all over the place all without actually using CPU so it doesn't show up in any resource monitors.

HTTPS calls should be treated as calls to sleep() with undefined timings.


Microsoft Windows: Accidental Microservice Architecture Edition

The real question is why is my file browser blocking on an http call? Oh right, tracking/telemetry/ads.

The very start of the incident is an officer chasing a woman, she slips and falls, the officer chasing her catches up and then Pretti pushes the officer away.

That's almost certainly not the start. It's very common to not show what you did to agitate the officers and to only record after they come after you. If there are longer videos I haven't seen them, but its a very common tactic to cut out critical context to maximize emotional reaction on social media.

That depends on how aggressively the service is restarted.

Shopify is basically the only really successful Canadian start-up.

It's very hard to run a very small business here.


>Shopify is basically the only really successful Canadian start-up.

I've heard that Shopify is by itself 10% of all Canadian tech jobs paying >$100K.


> It's very hard to run a very small business here.

What do you find makes it hard to run a small business in Canada?


They don't know, they're just projecting.

Isn't slack and Flickr Canadian?

What an ignorant thing to say. Clio? Wealthsimple? 1Password? Hootsuite? Lightspeed? Ecobee? SkipTheDishes? Those are just off the top of my head.

And what's this about running a small business? I run one, no issues here. Couple employees, file my taxes...nothing special about running a business.


It's actually remarkable how difficult it's made. My only experience is here in BC. In a couple of years I've learned that it's practically punitive, and you have to want to do it really badly. The risk to reward ration is abysmal. I only continue because it's more of a passion project than an economically viable, sensible project. It could become one eventually, but my god, I'd hate to be doing this without a full time job to depend on.

Can you give more details? I'm simply a sole proprietorship in Canada so not sure what I'm getting myself into.

Don’t worry too much. I’ve incorporated in AB and BC. Neither is difficult to setup or maintain. My regulatory burden amounts to about one weekend of effort per year including corporate tax filings. That’s a baseline. Harder if you employ a team (not just subcontractors) or in regulated industries where you might have environmental compliance or similar.

This is a much better summary than mine. It really is fine if you don't venture into places where various types of compliance come into the picture.

I think some things could make your work far easier than mine, but in my case there are a lot of hoops to jump through. I initially wanted to bootstrap myself in my garage, but discovered over time that this is essentially illegal and I'm required to operate out of a business address. This is also virtually forced on me because there are a variety of compounds I can't order without a registered business and accompanying business address, which is manually verified. Fine, I totally get regulations around hazardous chemicals, though in my case it seems excessive. But, if I were to summarize the things that have been most frustrating:

  - Rents in industrial spaces are absurd in my area, and I suspect they are for most of Canada in any HCOL area. If you can't wing it out of your garage, your burn rate just exploded
  - Getting permits has been exorbitantly slow and complex
  - WorkSafeBC cooperation and inspections are a major time sink (gets better after the first stretch)
  - Getting certficates to export plants is—in my opinion—unnecessarily complex and slow, such that I don't think I'll even bother at this rate
  - Inter-provincial regulations and standards can be hard as hell to nail down. Asking random people on forums can yield better results than extensive google or LLM querying
  - Keeping track of things like write offs and deductions can span years for single costs. I understand why, but I don't like it
  - Admin and oversight often feels like half the job. I need to be on top of so many things that aren't 'the work', and it takes a lot away from focusing on making a better product
  - Shipping things is expensive as hell, and I anticipate this problem will worsen over time. Not a big deal if you don't ship anything
  - Depending on the type of business you've registered, the admin overhead at different times of the year can be significant
It probably sounds like I don't understand what regulations are for and I hate red tape, but that's not the case at all. I think small businesses are disproportionately slammed by some of the requirements they create, though. I also wonder if there are blanket policies which cause some people to be pressed much harder than necessary. It makes you wonder if any of it is worth it at all.

Again though, if you just go around repairing things or you provide software services, your life will be orders of magnitude simpler. I used to have a sole proprietorship here in BC providing software consulting services, and it was fine. I had one tax hiccup in something like 10 years, and it wasn't a big deal. I rarely had to think about it.

I do wonder if this friction could be part of why Canada arguably has a lack of interest and innovation when it comes to producing material goods. It's genuinely a pain in the ass to be allowed to do it by the books, and to continue operating accordingly.

Caveat: I could be lazy and stupid


Thanks for your comment. I have in my mind to start a hardware focused business in Ontario. I am a little afraid now, but hopefully, I have better luck than you.

Can you expand a bit more on how difficult it is to deliver hardware product orders to other countries? Whichever countries you have experience in.


In my case I need phytosanitary certificates, with the complexity and overhead varying by destination. It isn't hardware like electronics or manufactured goods, but sterile plant cultures in jars. The main requirement is having the products and pipeline inspected by the CFIA.

The primary tension and strain comes from deciding where your market is, I think. You can simplify your overhead in obtaining certificates and building your workflows by choosing to sell to a market where these factors are minimally taxing (like just selling in Ontario or across Canada), but in my case this limits my market too much. Not that many people in Canada are buying what I sell, but there are large markets in other countries that are underserved.

I have a feeling hardware is much easier. What you're developing is probably not illegal or considered high risk where you want to sell it. In my case, some of the products I sell are banned outright because the province or state it's going to considers it invasive. Even with the certificates, I can't sell some species in some locations. Figuring out all of these requirements and rules in advance is essential so your shipments don't end up rejected and destroyed at the border.

What kind of hardware are you manufacturing?


Thanks for the detailed answer.

> What kind of hardware are you manufacturing?

Simple electronics. Think a flashlight or something a bit more complex. Product contains a lithium ion battery.


Nice, that sounds fun! Some day I'd love to explore that kind of product development and manufacturing. I think there's certification involved there too, though I'm not sure if there is if it's not a home appliance. I hope it's smooth sailing!

Hardware should be much easier, especially if you get your boards fabbed and assembled at a CM (which you probably should, very few companies have a good reason to move assembly in-house).

> especially if you get your boards fabbed and assembled at a CM

I wasn't aware that this simplifies things. How does that work?


Sounds like an opportunity for co-working lab spaces.

> AI has a physical dependency in Taiwan that can be easily destroyed by Chinese missiles, even without an invasion

Taiwan has missiles with the range and warheads to strike the three gorges dam.

An attack by China would end very poorly for everybody. There are millions of people living in the inundation zone.


TW doesn't have any munitions that can remotely breach gravity dam like three gorges, i.e. bunker buster, which even if they did, they wouldn't have survivable platform to deliver it (strategic bombers, too heavy for TEL). US MOP tier 30000kg penetrator munitions isn't designed to crack three gorges, TW missile inventory are like 1500kg, at most they'll inflict scabbing or break exposed components like power infra, lock gates, which is not nothing, but not remotely compromise structural integrity of dam. This not to mention TW missile trajectory is geographically constrained and overflies the densest IADS environments on earth, assuming their TELs are survivable in the first place. They're much better off trying to threaten PRC coastal nuclear, but either way gets them the Gaza treatment.

A conventional missile or even missiles is not going to destroy a huge gravity dam like that. They are incredibly tough structures and missile warheads aren’t big. We’re talking concrete hundreds of feet thick.

To add some background. During WWII the allies successfully used massive specialized depth charges but those were much smaller dams. [0] During the Korean war the US struggled to merely destroy the sluice gates of a dam using aerial torpedos. [1] Eventually the Geneva Conventions were amended to forbid attacking dams if it would kill a large number of civilians (which was pretty obviously implied to begin with for what it's worth).

So unless Taiwan has a method to deliver something the size of a bunker buster to the underwater base of the upstream side of the dam I don't think it's going to happen. And if they did manage to pull it off they'd presumably be condemned as war criminals more or less universally.

[0] https://en.wikipedia.org/wiki/Operation_Chastise

[1] https://en.wikipedia.org/wiki/Hwacheon_Dam


Could the chinese construct a sufficient anti-missle defence?

Obviously the actual number of missiles Taiwan has is not public, but I suspect they have enough that reliably intercepting a full barrage is not something even the us could pull off.

The general calculus is that an interceptor costs as much as the missile it intercepts, so defenses are only effective against an adversary with much less resources. Hence Israel can defend against Hamas/Hezbollah, and the US can defend against North Korea, but Israel struggles against Iran and the US doesn't even try to defend against China/Russia.

China obviously has a lot more resources than Taiwan, but then you have a concentration effect where an attacker can focus their resources on a single target, but a much more resourced defender can't necessarily afford to defend that target. We saw that play out with the UK's nuclear deterrent strategy in the cold war, where they focused on overwhelming Moscow's defenses, and were (probably) able to do it despite the USSR being so much bigger.


TW missiles can't "concentrate" because TW geography = all missile flight paths travels through boost, midcourse and terminal interceptors gauntlet along PRC easter theatre command which probably has the densest IADS in the world. PRC has like 3-4x more interceptors in eastern theater (8-12x more total) than TW has missiles. That's just land based, there's also 1000s of naval picket interceptors. Imagine if all of US patriot batteries in Florida, multiplied by 3, then asking what Cuba can do to saturate. Then add in USN DDGs and the answer is realistically nothing, because the industrial math is brutally lopsided. That's assuming TW gets to coordinate salvo their entire inventory, realistically most TELs would be glassed first, every part of TW is withing 5-7 min of PRC missiles and mlrs, less if fired from strait or loitering munitions, i.e. basically faster than abbreviated TEL setup cycle TW has for their tunnel to launch strike complex.

Unfortunate probably cheaper to reroute the lake.

On the contrary.

We've been moving cities and municipalities since the dawn of civilization. That's just how life worked.

Yes water works continue to improve but the age old solution is simply to stop city growth at its sustainable level and start moving people to other, newer, better areas to live.

-------

Alternatively, you can boom bust with feast and famine economics and have tons of people die due to poor planning. That's also part of the age old deal and it's evidence is written in the many mismanaged cities across history.


> Large attendance at Democratic political rallies during the 2024 election was dismissed as being paid for by the campaign

And then they lost and the odds of those people being paid actors seems less ridiculous.


I'd separate protestors from supporters.

It's a fact that Kamala burned through $1 billion in four months, including paying tens of millions on performances (Beyonce, Lady Gaga,...) and $1 million to Oprah to host an event. That attracted supporters indirectly even though they didn't get "paid". "Incentivized" is better?


You're simply wrong.

Most of the world is priced out of purchasing oil.

When the price declines those people can (and do) buy the oil westerners aren't using.

But don't trust me, here's the data.

https://ourworldindata.org/grapher/fossil-fuel-primary-energ...


> When the price declines those people can (and do) buy the oil westerners aren't using.

You're missing that the supply drops as well since it is not economical to produce the same amount of oil as before at a lower price.

As long as the supply curve does not change (and nothing about EV usage changes the supply side here), a reduction in demand leads to lower consumption.

Edit: And in addition, your chart doesn't show anything like you purport it to show. By your claim, oil consumption by non-Western countries should have been drastically higher in 2000-2007 when oil prices were lower than they are today. Yet the opposite is true.

Oil consumption is up over time, including in non-Western countries, but that was driven by organic changes in demand, not changes in supply. Switching to EVs would act as a reduction in demand and therefore reduce overall oil usage, at least as compared to a world where vehicle transport required ICE vehicles.


it will not, ai reads and "believes" the heavily cited but incorrect papers.

All modern regex libraries have a Unicode mode.

Also regex predates utf8.


But <regex> definitely does not predate utf-8.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: