skysight-inc/HackerNews huggingface dataset:
FOR UPDATE locks the row for other blocking transactions (including another select for update)
The weaker form that only locks updates and deletes is called FOR SHARE.
Transaction isolation levels do not make a difference here.

https://www.postgresql.org/docs/current/explicit-locking.htm...

So the article is correct that SELECT FOR UPDATE will ensure that another concurrent SELECT FOR UPDATE transaction never acquire the same row (it will block), though nothing prevents other non-blocking selects to query this row concurrently.

You can think of it as usual locks - only the threads that explicitly use the same lock have the mutual exclusion guarantees. If there’s another thread that does not acquire the lock and tries to access the critical section - it will be able to do so.
or look at using standard C++ with an implementation that uses the GPU: https://docs.nvidia.com/hpc-sdk/compilers/c++-parallel-algor...
I mean, they admit that they only have "considerable independence", but not "total independence":

"The Bank of Canada is a special type of Crown corporation, owned by the federal government, but with considerable independence to carry out its responsibilities."

https://www.bankofcanada.ca/about

They also add: "The Governor and Senior Deputy Governor are appointed by the Bank's Board of Directors (with the approval of Cabinet), not by the federal government."

... and the BoD are appointed by cabinet.

Does the political branch make the decisions? No. But they choose the people that do!
Hike in the woods during a storm, witness large tree limbs coming down around you all the time. Having a plurality of URLs doesn't change reality.
Very good material.

(3 time CTO)
Difficult and complicated to get funding, insanely high rent, Canadian banks and telcos are stuck in the Stone Age, and the government bureaucracy is impotent and moves at a snail’s pace.

Or we move to America and earn twice as much money.
Reminds me of this post about how open source means surrendering your monopoly over commercial exploitation.

https://drewdevault.com/2021/01/20/FOSS-is-to-surrender-your...
I did the same after having a shop investigate the drain. They didn't put all of the pieces together as the OP did, but they pointed to the fuse and told me I could pull it.
> Can humans understand the IP protocol? The TCP protocol?

Yes, but you have to frame the exchange correctly or people will look at you strangely when you start addressing and acknowledging them.
> So then their ask reduces to make the AI return a specifically not-stereotypical image of the race even though all that's specified in the prompt is the race. That could be done but doesn't seem much better.

I'm guessing that what the researchers were hoping to see was less "a specifically not-stereotypical image of the race" and more like "across many generated images, some people showing stereotypes, some people showing other stereotypes, some people showing none of those stereotypes (but possibly though not necessarily yet other stereotypes)". Diversity isn't in "one image of one person" but can be in "multiple images of one person each", and I think that the researchers are aware of that.
Indeed, to achieve that kind of success sacrifices have to be made along the way; whether in health, friendships or your morals. Some of those choices you may not have been willing to make looking back knowing the full consequences of your actions.
Some people just hate to be a corporate drone.
Hey thanks; great link!
> I can't say I have met someone born here who wanted that

Possibly because the ambitious people moved to the US.
s/Troughout/Throughout
> the only other one I can think of is cattle grazing and they make a huge deal out of charging them for the use.

Cattle grazing fees are less now than they were in 1981. Not "less after inflation", just less. It's $1.35 for 2023, while in 1981 it was $2.31. https://www.hcn.org/articles/south-public-lands-whats-gettin...

There are still extremists who refuse to even pay that nominal amount https://en.wikipedia.org/wiki/Bundy_standoff

Also harvesting trees in National Forests.
Yea, American liberals don't really get Canada -- even when they come here, my friends from the US... they wear rose tinted glasses. Most of it is fantasy. Canada's social service programmes are really not great when compared to European social democracies; welfare and disability payments are actually quite low, and we have pretty bad homelessness in our major cities. Canada is no Scandinavian social democracy. It's really just a fusion of aspects of both the UK and the US.

Universal healthcare is good but it's been underfunded for decades, slowly coming apart, and inconsistent across the country.

Public education is definitely in a better state than the US, though. And I'd argue our higher education / university system is superior in both cost and quality. So far.

Culturally, Canada might be in a better state. The culture wars not as pronounced (depending on where you are). Abortion rights etc. mostly a given. Gay marriage and rights pretty much unassailable at this point. Legal cannabis, etc. etc.

But in terms of bread and butter supports for regular working people, it's not that great. Though of course, again, the health care thing is a big caveat. US healthcare is great if you're upper middle class, wayyyyy better than anything you'd get here. But the average working class person is definitely better off in Canada compared to the US, on the healthcare front.

Anyways, housing prices here are way worse (relative to earning potential) than any American city other than I guess Manhattan, at this point. People in the Bay Area complain, but they really have nothing on the GTA or Vancouver lower mainland.
For me it means 'not gonna'.
I have been working on a MMO resurrection project of an old MMO for a while now. It's nice to know my design is actually decent. I have no MMO or game backend dev experience. I am a backend and DevOps engineer though.

I'm building the server in Go. I use goroutines a lot. I use a shrinking/growing ring buffer for requests and responses. Uses UDP and I just receive a request and pop it onto the queue. I keep the address of the client along with the packet request. The queue is read by another goroutine and gets processed and sent to a packet handler. Which does game state work, and queues a response, or passes it off to another handler. Then the go routine for the responses picks it up, reads the address and port of the client and sends it the packet.

All I have maybe 5-6 threads running in parallel and I already can log into the game and walk around with others. There's tons of work still needed. But it's nice to know my underlying design is sufficient to maybe handle the dozens of people playing for nostalgia.
Well, ignoring your minor mischaracterization of my position, yes it is a defense of meat eating. It's just not ethics you agree with. But that's the great thing with ethics, everyone gets to pick their own. There's no right or wrong, just opinions.
Reading between the lines, he’s saying his personality isn’t the type to work super hard to make super money. In other words, maybe he could have just been a high level engineer making $300k somewhere and been super happy minus the stress of creating Nvidia.

It’s not a general statement. He’s not giving advice.
"I don't like these viewpoints somewhat commonly held by this group" is not "political or ideological battle" in and of itself.
Maybe it's secretly funded by the NSA.
https://archive.ph/qA8AK
Sounds like a peering issue where your ISP and Amazon don't have good peering between each other, yet Google has good peering with plenty of excess bandwidth to get their content (YouTube) to your ISP.
I actually am building an MMO server for an old MMO. And I am using Go and Goroutines for it. I have a small rundown posted here in this thread: https://news.ycombinator.com/item?id=37972638
“n% unsafe” here refers to `unsafe` blocks that can’t be automatically guaranteed safe by the Rust compiler, not to actual concrete instances of memory unsafety.
> What do you think separates "good" assumptions from "bad" ones?

Rarely to never wrong vs often wrong.
This article uses pre-regulation examples to make a point that does not apply to modern day mining operations.

"Reclamation of mineral development was not a requirement under the Mining Law when enacted 150 years ago. Pursuant to FLPMA, the BLM issued regulations in 1981, which were amended in 2001 and require notices and plans of operation to include detailed reclamation plans. These regulations also require operators to provide financial guarantees covering the full cost to reclaim mining operations. Additionally, the BLM’s regulations allow the agency to require an operator to establish a trust fund or other funding mechanism to ensure the continuation of long-term treatment to achieve water quality standards and for other long-term, post mining reclamation and maintenance requirements after a mine is closed. These regulations provide the BLM with a mechanism to provide for protection of the environment after mining has concluded. In response to Government Accountability Office recommendations, BLM implemented a tracking system under which BLM certifies each fiscal year that the reclamation cost estimates for proposed and operating mines have been reviewed and are sufficient to cover the cost of reclamation. Currently, the BLM holds financial guarantees of $3.3 billion which is held to fund the costs of reclamation of mining operations on BLM-managed public lands. Furthermore, the BLM continuously reviews reclamation bonding requirements." https://www.blm.gov/congressional-testimony/reforming-mining...
I use asciidoctor and jinja2 to generate PDF reports at work. Works pretty well, the syntax is a lot less cryptic than LaTeX.
Looking at their careers page the typical salary is $100,000 – $170,000 for SF. Seems a little low for SF no? Is this an indication that they are not well funded or going to have issues finding top tier people?
I just found out my country also started deprecating 3G last year and will deprecate 2G in 2025. That is a bit sad, as I've just powered on some old 2G phones and they seemed to work just fine, but I guess it allows us to move forward without the tech debt.
For parallel code, the obvious answers are static and dynamic analyzers. E.g. for C and C++ you'd use TSAN and MSAN. The Rust borrow checker is essentially a memory/thread safety static analyzer baked into the compiler.

Particularly for dynamic analysis, you need to have test cases that usefully cover the design behavior. E.g. if you design a component to be safely shared, you need tests that exercise that sharing where the static/dynamic analyzer(s) will identify unsafe sharing. Likewise, if you know something is unsafe, you should probably have tests that demonstrate that the static/dynamic analyzer(s) do detect the unsafe usage.
Well I am building an MMO Server in Go, and I am in the US. Probably because I am a backend/DevOps engineer and i do a lot of Go as it is. I did a small rundown elsewhere in this thread: https://news.ycombinator.com/item?id=37972638
That's a lot of words to express "cognitive dissonance." I'm pretty sure you know exactly why "he isn't speaking from a position of fulfillment" -- you know very well that he is a human being much like yourself, and despite "the guy is worth $35b+" he puts his pants on one leg at a time much like yourself.

Your problem is you cannot conceive that once upon a time he had no more than you. But now he is in a different place. Can you not conceive how and why you would get there yourself? Because if you did, I'm pretty sure you'd phrase this comment in a different manner.
Won't know 'till we read it! Or at least a significant portion.
This was a reply to another comment on how uncanny it is that gaming hardware allowed the current machine learning advancements. It was deleted before I finished writing, but I'm not letting that stop me from sending this anyhow.

Creative immersive experiences, across the history of computing, are computationally expensive. The better computing gets, the more (visually at least) immersive the experience. The search for photo realism is an asymptotic search to compute a convincing simulacrum of reality. So much human nature drove the tip of that spear forward.

Immersion itself implies some kind of tricking of the consciousness, blending the familiar with the novel. Instructions and ideas piped into a machine that generates images. GPUs are specialized in parallel computation because that's precisely the architecture that best performs the multi-modal magic trick.

It's surprising to me how incredulous people seem about the possibility of creating a sentient machine that is fed off a large enough diet of human written material. Language is crystalized consciousness. It's the primary medium we use to communicate our inner experience to the outside. What other fuel would you use?
C[FRC[F[F]]FF]RC[FCC[FFC[]FR]]C[FRC[F[F]]FF]RC[FCC[FFC[]FR]]C[FRC[F[F]]FF]RC[FCC[FFC[]FR]]C[FRC[F[F]]FF]RC[FCC[FFC[]FR]]C[FRC[F[F]]FF]RC[FCC[FFC[]FR]]C[FRC[F[F]]FF]RC[FCC[FFC[]FR]]C[FRC[F[F]]FF]RC[FCC[FFC[]FR]]C[FRC[F[F]]FF]RC[FCC[FFC[]FR]]
> many projects everywere are failing their estimates. so the idea that developers overestimate the time it takes to complete a project is not supported by statistics.

Can you cite your own statistics? But even granting your assertion, it still would not matter because in the end the project will be done sooner the more pressure is put on, so it's better to underestimate and plan for delays than to over estimate. Managers often have two different deadlines for projects: the official deadline, and the real deadline. They simply don't tell their reports the real deadline. At many tech companies it's not unusual that a team will only make 70%-90% of their OKRs, and if they consistently make 100% they are said to be too conservative in their ambitions and encouraged to do more.

> this statement as written clearly supports management and puts blame on developers. if that wasn't your intention then it could be expressed more neutrally:

I believe my intention was clear from the other responses I got that understood what I was saying. But that's not just what management believes, I also believe that, so your version would not be a better expression of what I meant.
> After that’s chewed up by taxes

Funny thing about high taxes being a disincentive.
Related, I’m putting some money into AMD. They can only improve, at this point.
I'm not going to try to wade into this discussion and argue one way or another (mostly because I'm too tired to put that kind of effort in), but I do want to point out a case of varying word usage that I think often muddies the waters in these kinds of situations.

It's a misclassification of things. Prejudice is a feeling against a group. Racism/Sexism/etc., is an action against individuals based on prejudice. There is an old saying, "racism = prejudice + power". Basically, people can be prejudiced all day long, but if they lack the power structure to be able to do anything about it, then they can't be whatever-ist.

It's also where the notion of "systemic racism" comes from. If a law or policy disproportionately impacts a certain group of people, that is prima facia a power structure that enforces a prejudice.

In a way, it's almost like a kind of mathematics. There are operands and operators. Depending on the operands, the operations are one-way. Like the issues of zero getting anywhere near division. In the pursuit of a mathematics that is consistent, we discard a mathematics that is complete.

This distinction is important because people educated in traditionally liberal institutions have this taught to them, as well as what "counts" as power structures capable of weaponizing prejudice to become an -ism. Just as we accept in STEM fields that "division by 0 is an undefined operation", people in social justice fields accept "traditionally underrepresented groups can't be -ist". Kind of like how lawyers have their own language for things like "reasonable" and all kinds of Latin phrases that don't follow or completely befuddle the intuitive understanding that lay-people have.

For example, you'll see people talk about how certain standup comics appear to "get away" with saying things that would cause screaming fits if a person of a different background said similar things. E.g., an African American comic making comments about white people vs. a white comic making comments about African Americans. You're likely to hear apologia like, "it's impossible for a black person to be racist". What they mean is that black people historically lack the power structure to be able to activate prejudice against white people. In other words, Kevin Hart's prejudicial comments about white people aren't "racist comments" because it's unlikely to have any major impact on how white people are perceived or treated. Whereas Michael Richards using the N-word reinforces and normalizes existing systemic problems in American culture.

Again, I'm not here to argue that prejudice from one group is OK as long as that group has been historically (and let's be honest, contemporaneously) mistreated. But if you want to understand how people can make such confusing statements as "black people can't be racist" or "women can't be sexist", this is the worldview under which they are operating.

NB: I'm a big believer in Sun Tzu's exhortation to "know your enemy and know yourself". To be clear, the enemy here is "people who overly-parse words to post hoc rationalize saying mean things about other people."
There’s no way it’s lower cost. However what it could be is guaranteed line capacity and delivery dates. And if you’re doing small orders from a large foundry you don’t get that. Those things have value too and someone might be willing to pay a bit extra to get them.

My main issue is semiconductor lines are fragile beasts that need constant tinkering. So if the system requires full time staff to keep running, that’s going to be really expensive.
You can now track NYC subway rats with an app
[Dupe] https://news.ycombinator.com/item?id=37919949
> in the form of a relatively generous immigration program

It couldn't be more generous than the US, which accepts millions just walking over the border.
https://twitter.com/ID_AA_Carmack/status/957301883365937152

John Carmack @ID_AA_Carmack I was not welcome at the Ferrari dealership because of all the crazy turbo modifications on my cars · Jan 27, 2018 · 9:18 AM
For update actually does block concurrent SELECT FOR UPDATES, so the article is correct
uhhhh, I'd say that inefficiency is intentional for firearms because they just want it to be difficult/time-consuming/delayed to acquire/possess firearms. Then they can justify increasing the fees because "they need to recover the costs of program operation".

Meanwhile my Canadian tax return is pretty straightforward: open my tax app, click some download function, it pulls in stuff my bank/employer/etc has already electronically submitted to government.

The most annoying part is calculating "Adjusted Cost Basis" for cap gains/losses on stock sales. It's technically fairer than a simpler FIFO approach, but brokers/gov refuse to understand that most people do everything through 1 broker and calculate these figures for us.
I feel like if I were more coherent I could write an epic rant about how we are definitely in a bad timeline because of our technological choices. How we built the Internet "wrong" at so many little choices and now we have *waves arms about wildly* this nonsense, but I would be shouting into the wind, I think.
I recommend everyone an EU brand called Optase[1] for their suite of dry eye drops and related products! Best preservative free eyedrops I've tried (I've tried everything extensively) and its in a bottle! :D

They have a MGD Drop (red packaging) which is liquid/oily and an Intense drop (purple packaging) that is nice and thick.

You can find them rarely at retail pharmacies as they are still expanding in the US but you can order them on Amazon.
> Coziness is the biggest hurdle. As a programmer, I can make a really good salary at a tech giant. Even after 4 years of grinding and finally achieving product market fit and growth, my wife doesn't understand why I'm doing a startup. Life could be so much easier working for Google.

If this was a major factor then it would also apply to entrepreneurs in the US, yet it doesn't.
The general fund. Next question.
With new taxes? LOL. This is the government we're talking about here folks. 99% of the time I actually click on the article before commenting but I literally can't resist on this title.
Very cool! What game are you resurrecting? Are you using the original client applications? Is the client/server protocol documented or are you having to reverse engineer both the protocol and game server state?
There is stuff in here I definitely agree with (record every meeting!), but there is also tons in here that I personally disagree with (e.g., on performance management[0]). This isn't necessarily a criticism -- different problem domains likely demand different approaches and leadership styles -- just to say that I wouldn't take any of this guide as sacrosanct: if anyone reading something in here that doesn't comport with your personal experience, I would recommend deferring to your own experience.

[0] https://twitter.com/bcantrill/status/1216491216356823040
good call, thanks for the suggestion!
Plenty of US states (e.g. California) end up with total taxation up in the same range as Canadian provinces, in the higher income brackets anyways.

And Canadian corporate taxes are very low. US and Canada basically the same on this front.

https://www.canadian-accountant.com/content/taxation/canada-...

"While the lowest five corporate tax rates worldwide are held by corporate tax havens (led by Ireland), the United States and Canada have ranked ninth and tenth respectively out of 33 major economies for the past two years. The corporate tax rate in Canada is lower than all the averages of regional jurisdictions, including the global and G7, according to the average tax rates of 33 UHY international firms, assuming companies have a profit of $1 million. "

Canada's problem is not excessive taxation. It's monopolies and lack of competition and over-reliance on commodity exports.
The book has garnered some criticism from experts, which is expected for conjectures where most of the evidence has been destroyed, but I don't believe there's been a complete refutation of his ideas

> Pascoe is a conman.

As per this thread, you've made a lot of claims without sufficient back up, seem somewhat intransigent, and hold very one-sided beliefs. I think a little self-reflection is warranted, especially if your motivation is to convince people you have beyond a superficial understanding on these matters.
DOT is a horrible LA bank heist film for many reasons, not the least of which is that it was very clearly not filmed in LA.
Plenty of affordable homes in Canada at the $500,000 mortgage + down payment range. Go find a smaller city and grow with it because you have the same affordability problem in San Francisco or New York. Your tech salary isn't getting you a house there either. The time to buy a house in Toronto was when they cost $5,000 after the war or was the time to buy in 1975 when the property cost $30,000 or in the 90s when you could have gotten a house for $200,000. In 2012 for $500,000 you could get a house in 2021 it was 1.3 million now it's 1.1 million. In 2015 you could have purchased a home in New Brunswick for $25,000..

Your 1.1 million dollar home you buy today will be worth 5 million in 50 years at least 2 million in 20 years. Still as good of an investment as ever.

It's like bitcoin sure it would have been great buying coins for 5 cents and today and you would be a billionaire but you weren't able to make that bet. If you want to buy at the 5 cent level you need to find another coin because that opportunity passed. You weren't able to buy a home in 2010 or 1947 so you are never getting those prices again. You can buy today but don't expect the same prices on the same properties as if you lived in the past