skysight-inc/HackerNews huggingface dataset:
No race condition. As long as the transaction is properly constructed (let the database retrieve the unit prices and calculate the extended cost) it will abort and roll back if there's a conflict, including if a source row (in this case, product) changes. So your transaction could look like

BEGIN;
WITH
x_lineitems AS
SELECT li.id, pt.id pt_id, li.qty, (li.qty * pt.cost) ext_cost
FROM (VALUES (${lineitem1}, ${qty1}),
(${lineitem2}, ${qty2})
AS li (id, qty)
x_order AS
INSERT INTO orders (id, total_cost)
SELECT ${order_id},
uuid_generate_v7(),
(SELECT sum(ext_cost) FROM x_lineitems)
RETURNING id, version_id
-- Line items get same version ID as the order.
INSERT INTO line_items (id, version_id, order_id, part_id, qty)
(SELECT xli.id, xord.version_id, xord.id, xli.part_id, xli.qty}
FROM x_lineitems xli, x_order xord);

-- Triggers on orders and line_items fire, still as part of
-- the transaction.

INSERT INTO order_history (id, version_id, total_cost)
SELECT o.id, o.version_id, o.total_cost
FROM orders o WHERE o.id = ${order_id};

INSERT INTO line_items_history
(id, version_id,
order_id, order_version_id,
part_id, part_version_id,
qty)
SELECT l.id, l.version_id,
o.id, o.version_id,
p.id, p.version_id,
l.qty
FROM line_items l JOIN orders o JOIN parts p
WHERE l.order_id = ${order_id}
AND o.id = ${order_id}
AND p.id = l.part_id;

-- And commit everything. If any of the parts rows we referenced
-- change mid-transaction then everything gets rolled back.

COMMIT;
Microsoft Confirms Bringing Sudo for Windows, Is Open-Source Too
A 155m shell would definitely mess up someone's day.
Sadly I can’t edit the post now. Too many upvotes, I guess. Will keep in mind for the next one ;)
Another point of view would be that "God designed it for a reason" (or other stuff you might say about the gods) would be a kind of metaphor. It is the result of evolution, but you can also say about the gods, anyways, if it is understood the difference of being scientific or being religious/mythical/metaphorical.
As locked down as the devices are, they have always, and continue to support RSS feeds from outside apple’s walled garden.

It’s like it came from some bizarro universe where only apple allows side-loading of content, but Spotify and YouTube do not (so they can take a chunk of your revenue, and censor/shut out competitors).
Completely useless for me:

> Wikipedia cannot determine your location. Please try again with a better signal.

I'm on a desktop. Plugged into wired internet. My "signal" is fine.

No way of manually specifying a location is provided.
The LISP 1.5 Programmers manual! Love this one. Your 2) is what Alan Kay called "Maxwell's Equations of Software".

And you're right, there's absolute magic in old computing papers. They were pioneers. I wish we could see more of this pioneering spirit combined with todays silicon and ease of international communication.
For the interested, I've been having fun with llama.cpp. I've got it running well, if a bit slowly, on my 2019 intel MacBook Pro. There's configs you can tweak that get it to run faster, mainly dealing with memory mapping. I've been working on documenting my findings but haven't published yet.

I say all that to encourage people to try it out with different models. It's not production quality but totally usable for testing things out even on older machines.
The main page (https://flawless.dev/) has a diagram/video that shows how it would work and it basically writes any 'side effects' to a log which is used to track their existence. If they exist in the log, you read them; if they don't you run the code that generates them and then log it.

It's interesting, but I can't imagine how it is going to work at scale, both in terms of managing state across a very large application and in terms of running thousands of instances concurrently.
According to radio news, there was information about a ship leaving a Swedish harbor right before the incident, so they probably had to figure out all they could about that and if that would mean it was a matter for Sweden or not. They seem to have handed over what they knew about this to the German investigators who are continuing their own work.
Apple has an excellent relationship with Disney, but they're still two separate businesses with different interests that only align in some areas. Disney and Epic also have aligning interests.

That said, I would like to see how much equity Tim Sweeney still has left when all is said and done because as far as I know he only had 51.4% prior to today. A controlling share, sure, but somehow I doubt Disney gave him $1.5B for ~1.3%.
> This basically sends the message "doesn't matter how good you are, we're going to spin the wheel every so often and if it lands on you you're out"

The conspiracy theory that's making the rounds is that these rounds of layoffs from tech firms have zero to do with financial reports or economy downturns, and are instead a coordinated effort, along with RTO policies, to wrestle negotiation power from tech workers and put downward pressure on tech salaries. Hence the apparent lack of criteria and indiscriminate layoffs complemented with hiring rounds.

I recall that a FANG ordered managers to decimate their teams while ramping up hiring on teams located in the same building, and HR openly rejected the idea of even having employees in the chopping block interview for those positions.
Honestly some of us cannot find a conversation with a bot interesting on premise. And not even because of its conversations capabilities or the weird moralistic limits they all have. I just cannot relate to a bot, even if it sounds incredibly human.

There is nothing interesting a bot has to say. It has no personality, but also has every personality at once. There’s no curiosity as to what it’s thinking because it’s not thinking. It has no preferences or dislikes or ability to relate to anything fundamentally human. I don’t get it, and it doesn’t matter how good bots get. At best it’ll be a tool but it’s never going to be my friend.
I work at Google, fuck em. The whole place is toxic. I hope it is at peak larping lord of the flies. But if anything about modern history has taught me anything is that there is always lower.

Those 12k people they fucked over for zero real benefit, represented due to how Google hires, 240K interviews (5% accept rate). Let’s say they only did the screen. Still minimum 2 hrs, interview plus write up. 500k hours. 250 years of FTE time just in interviews flushed down the fucking toilet. And they are blowing the doors off the place hiring in LATAM.

And the bs just keeps coming by the dump truck full.
I agree the article wasn’t trying to do that, and I also didn’t think it was good. It read like an arrogant philosopher trying to be edgy at the apex of a coke binge.

I was only really commenting on the blustery, arrogant yet often uninformed pseudo-intellectual conversations about art that always seem to happen in tech crowds. Cringey DK vibes. Even more since generative AI took off. Having worked as both a developer and a designer in software, I’m surprised I’ve never passed out because my palm was so consistently covering my face when these topics came up.
Many Israelis are from Eastern European backgrounds, and it's plausible that they may have inherited some military culture from there.
> Potential energy, U = mgh. So the energy required to raise 1m^3 of sand 1400m is 1600 x 1400 x 9.8 = 22MJ = 6.1kWh

If you lowered 10 m^3 of sand (61kWh of potential energy), to generate the minimum 100kW power to participate in grid stabilization markets, you'd have to drop that 16000kg of sand for 61kWh/100kW = 0.61hr = 2196 sec. 1400 meters in 2196 seconds is 0.64 m/sec. That seems reasonable, but you'd need a lot of these (so a wide mineshaft) to generate a more meaningful amount of power (like at least 1 MW). Current grid scale batteries are capable of outputting hundreds of MW of power.

https://en.wikipedia.org/wiki/Battery_storage_power_station

> we can store 3000m^3 of sand, so that's 18MWh.

> I'm sure they've got a lot more space than that, but it just gives some idea of how much sand you're talking about.

They're going to need 3 orders of magnitude more space then because current generation grid scale batteries store GWh of energy, and generally speaking lower cost energy storage competes by offering much higher storage capacity.
Yet I’ve worked in two types of places, the ones that had a lot of menial labourers and thus lots of shuffling of stairs and carrying of nail buckets, and in places that had very few to no menial labourers and just automated away the menial tasks or designed the systems to never need menial labour in the first place.
If you want to keep the metaphor some plasterers use ladders, others use stilts. In any case plenty of ways to skin a cat and people adapt to the workforce available to them.
Browser engine for me is like a Linux kernel for me.

Everyone should be banding together to work on one. Not making a separate one each year. We have js libraries and frameworks for that. Of course some innovations that requires to be done in engine won’t happen as fast - but on the other hand amount of innovation in software that runs in browsers will be much higher.

We saw that with IE “innovations” of Microsoft blocked decades of innovations in web apps.
And they're making a live action one baby!
Paypal is available for a great many small, part-time sellers while accepting credit cards are not. Suppose you were selling some stuff and I wanted you to mail it to me. Could you accept a credit card for payment?
I have also found some stuff here that might be worth a read:
https://christophermeiklejohn.com/distributed/systems/2013/0...
Indeed, but they don't always peak over the same period. Any alternative theory has to provide a plausible explanation for why all these other causes of death (which presumably were also causes pre-COVID) all of a sudden decided to spike/ramp up and periodically surge again (against the pre-COVID baseline).
> They have no reason to release it to the public.

The public is allowing them to borrow govt-built roads to test their products and potentially endanger the public. That's more than enough reason for Waymo to be transparent here.
Seems like it could also be Waymo going straight north, truck going straight south and bike going straight east passing just behind the truck (or rotations of this), since there seems to be just stop signs at the intersection.
Come on, you say it as if every board member is an android focused only on short term results. They've had a board when Eric was CEO and Google was doing it's best work as well.

It's not really about the board, Google has become a mature company that's not going to grow 20% YoY anymore and this is what happens to such businesses. Unless they're lead by an exceptionally strong person who can stand up to economic forces, they will turn them into IBM.
True. I mostly use virtual desktops to separate work content from personal project stuff, as well separate non-productive stuff from both of them.

But yeah you phrased it well, craning my neck to see a screen does sound much worse than a keyboard shortcut. I have my 2 monitors positioned so that I can mostly just move my eyes, but I can't fit more than 2 monitors in that space (either IRL or in a VR/AR without them being too tiny to read.)

If I didn't have virtual desktops, I'd have to just close out of more stuff, which isn't a huge deal but any amount of friction can disuade you from working on something you're not obligated to do. I definitely wouldn't have my work tools, two separate IDEs, a game engine, 3 different browser windows, Slack, Discord and Spotify all open at once in various virtual spaces, where I have to crane my neck to see them. Maybe the Vision Pro also supports virtual desktops, but I still struggle to see in what scenario it speeds up my workflow.
The EEVblog never disappoints...But this one was absolutely great. Thanks for sharing.
Exactly. Currently the iOS App Store has the McDonalds app as having...

Data Used to Track You : Contact Info & Identifiers

Data Linked to You : Purchases, Financial Info, Location, Contact Info, Search History, Browsing History, Identifiers, Usage Data and Diagnostic
Is the Mojo compiler restricted from changing the memory layout for some semantic reason or is it just llvm missing functionality? I know for other languages the semantics tends to be a major hinderance. IIRC your PhD thesis was about this stuff!

Regardless, the code in this post seems to use the same input in both versions and the change looks loop local at first blush, but maybe I'm missing something.
The Vue CheatSheet
An interactive cheatsheet of Vue, Vue Router, and Pinia.
A rolling stop is not blowing through which he was talking about I think.
so yeah, don't do that.

just saying
Not like the altruistic endeavor that is driving a car in a dense urban environment. Those are the real heroes.
> you should bear the full responsibility for that decision

That's not fair to pedestrians or other cyclists who can be injured by your decision to break the law and ignore their safety.
They’ve consistently worked towards an amicable settlement,

In the same way that the guy who tackles you in a dark alleyway and puts a knife to your neck would prefer that you submit to his demands "amicably".
1. would have been done already if there were such alloys.

2. photovoltaic generators seem popular, but the don't require spending money on a fusion core.

3. The problem is hard, so let's replace it with a harder one?
It was longer ago than you might think. Novell was a big deal back in the 90's and early 2000's.
That got removed. The math didn't math, and I assume the editors had no more luck than I did trying to independently verify it.
> Outright selling is sure to attract more ire.

Or less. If you paint the program as something that reduces everyone's taxes or other gov fees.
The full speed being, of course, about the speed of a car doing a california roll.

Google “cyclist stop sign safety”
The fix is really quite simple, develop separate routes for cyclists and motor vehicles. Where those routes unavoidably cross have proper intersections. The person you are replying to is right, four-way-stops are a travesty, both for cyclists and cars.
Failure to yield is a separate question from should they be required to stop if nobody is present.
Microsoft did a lot of weird things like that - also with Outlook, which used to use Trident to render emails, when IE was finally getting a bit better the Office team decided to switch Outlook to use the far, far worse Word HTML rendering engine instead...

Even thinking of that makes me very happy I haven't had to worry about formatting email newsletters for more than 10 years now, brings back bad memories...
it is, in fact, usually the most interesting part of the document
Did I at any point say the video wasn't important? I don't recall doing so. I did assert that the telemetry was more interesting than the video, but the telemetry being more interesting than the video feed doesn't mean the video, itself, is not interesting. You missed that in favor of being pedantic, that says something about you, and if I thought it had any chance of helping, I'd tell you to take a long look in the mirror and wonder why you are the way you are.

That'll be my last reply though, I'm watching a youtube stream of a guy trying to get gentoo to boot off NTFS, it's not going well, but it is more interesting than providing detailed analysis of simple language that you've misunderstood.
the invisible microbes of the appendix are shaping the reservoir effects for a reason
You're restating their point but I don't think you get it. "a large number" is a vague term and I think we would be apt to say "a large number of cars run stop signs." The big issue at hand is selection and perceptual biases. If we're just going on intuition here we're going to make bad decisions. You will not notice the "large number of" cyclists that have appropriate behavior because this will be normal behavior that is non-disruptive and your brain is designed to not take special notice of this. But your brain is designed to take special notice of rare and/or disruptive events. So you always over inflate those numbers and it is hard to accurately quantify. See "Perceptual vigilance" for more.
Maybe it's a sign: make healthier eating choices.
Don't give them the time of day. I never understood why cyclists acted the way they act until I started commuting to work. I felt unsafe at intersections when stopped. I felt unsafe at intersections when starting slowly. I read online about some road rules making my trips more dangerous for ME, not the cars. Now I know what I can do that's totally illegal that's keeping me safer.
If you find this idea compelling, and want to really understand why it's so radical, the best modern treatment is Chris Dixon's book Read Write Own[1] which became a "best seller" today. I strongly recommend the book — it's at exactly the right level for many on Hacker News.

[1]: https://www.amazon.com/Read-Write-Own-Building-Internet/dp/B...
What makes you "pretty sure"? Clearly not the polling, which as I have pointed out does not support your view of the situation. Do you have personal experience that provides anecdotal evidence contrary to the polling?

I am not Chinese, but I lived in China for several years and now I live in Taiwan. Anecdotally, I have not met or spoken to a single Taiwanese person who sees China as their true and native home. Many Taiwanese people have never visited China and don't have any close family living there. Of course, some do, but even those have spent far less time in China than a migrant worker like me, and are less in touch with the contemporary culture of the country.

Sure, Taiwanese people still have a lot in common with Chinese people. Nobody disputes that. But Australians, New Zealanders, Americans, Canadians and Brits all watch the same shows and listen to the same music and eat the same food and speak the same language and pray to the same god, and yet nobody would suggest that they are a monolithic people, destined to inevitably unite under a single flag. That's not how emigration works. People emigrate and then they find a new identity, and that's just as true of Chinese people as every other people.

Taiwan as a country is in an unfortunate situation of having been under a military dictatorship for 40 years, and by the time the first democratic elections came about, the die was already cast. The constitution cannot be changed, the flag cannot be changed, the official name of the country cannot be changed - any of these things are likely to trigger a Chinese invasion, because of some politicking that happened between China and the US while the people of Taiwan were still under the jackboot. This status quo is not liked by anyone, but most Taiwanese people have made peace with it. Three decades ago. No candidates in the recent election stood on a platform of uniting with China. Nobody cares about that. The idea that Taiwanese people are all secretly holding on to a dream that they could one day be part of a Greater China is a fantasy held mostly by people who live in present-day China.
Various scripts in python, shell and javascript [0].

[0] https://github.com/abetusk/www.mechaelephant.com/tree/releas...
I imagine my 2012 Macbook Pro feels like Marvin the Paranoid Android given the stonking gap between its capabilities and my actual use of it.
The fundamental problem of self-driving cars in cities is that they are expected to be 100% safe. They could be 10 times as safe as regular cars, but it wouldn't save them from headlines of "robot car kills an innocent person". And given how chaotic and unpredictable situation on the roads in a densely populated city without designated spaces for cyclists can be, 100% safety is impossible. Even if AI itself if perfect, there's physics of mass, inertia, velocity, visibility, etc. - which sometimes will cause situations that lead to collisions, unless the self-driving cars either are physically segregated or limited to ridiculously low speeds where they become useless.

Solution 1: make separate bike paths. Totally works in many cities, likely can't happen in SF because of so many reasons. Solution 2: ban self-driving cars. Solution 3: pay megabucks to PR company which would create some kind of a narrative where safety is much less important than the benefits of the self-driving cars, and if you say otherwise, you are a bad person and should be cancelled. Not sure if it's possible but it probably less impossible than making a 100% safe self-driving car.

A sane solution would be to figure out how much safety we expect, take effort to make it as close to 100% as possible while realizing it's never 100%, and rationally investigate each case of failure, while recognizing that some amount of them are inevitable. But that would be totally outdated and unusual pattern of behavior, so I don't expect it to happen in practice.
> That's not how the law works. It can specifically ban cryptocurrency mining -- after defining what that is -- without impacting other uses.

Politicians pass laws and the internet laughs. The law also supposedly made it illegal to share the hexadecimal number 09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0 but everyone did it anyway. I’m not a huge fan of cryptocurrency but I am of the old-fashioned opinion that doing math on your own damn computer is a human right, and that fundamentally unenforceable laws are silly.
It all gets confusing when integrating power over a strange quantity of time. I wish we had some kind of rational unit to quantify energy
Are you allowing for cooling towers, water treatment, pipework, and so on? Also the grid connection hardware, spare turbines, cooling pumps, etc., and O&M costs?
The paper includes this section with a few citations:

> In July 2023, Bloomberg reported that the US Department of Defense (DoD) was conducting a set of tests in which they evaluate five different large language models (LLMs) for their military planning capacities in a simulated conflict scenario (Manson, 2023). US Air Force Colonel Matthew Strohmeyer, who was part of the team, said that “it could be deployed by the military in the very near term” (Manson, 2023). If employed, it could complement existing efforts, such as Project Maven, which stands as the most prominent AI instrument of the DoD, engineered to analyze imagery and videos from drones with the capability to autonomously identify potential targets. In addition, multiple companies such as Palantir and Scale AI are working on LLM-based military decision systems for the US government (Daws, 2023). With the increased exploration of the usage potential of LLMs for high-stakes decision-making contexts, we must robustly understand their behavior—and associated failure modes—to avoid consequential mistakes.
NASA Is Laying Off
Ah, but people yelled because waymo was too timid. They probably did that because it's how people are expected to drive in California. Bit of a sticky wicket for waymo isn't it?

I tried this line of reasoning with a judge once. If you break the law just because people expect you to, it's still your traffic violation.
I just had this thought (possibly unrelated to this particular situation): We see how many accidents are caused by autonomous vehicles therefore it’s easy to blame them. However what we don’t see is how many accidents did not happen because of autonomous vehicles. I hope regulators consider both cases.
It’s not about disqualification. We aren’t considering who we have to legally hire. We are thinking about what makes for great hires. Given the choice between neuroticism or no, why choose neuroticism?