skysight-inc/HackerNews huggingface dataset:
> I understand why with could not work with the = matching operator (it's a macro)

Not sure what you mean - `with` _can_ use the `=` operator, e.g. you could write:

with true = is_email_address?(email),
true = EmailAddresses.is_available(email) do
# something
end

Although this is rather pointless as it's functionally equivalent to just writing:

true = is_email_address?(email)
true = EmailAddresses.is_available(email)
# something

`=` is useful inside `with` if you have a clause that _must_ return a particular value or it's an error, i.e. you don't need to match on any other possible return value. But if you don't have at least one clause with `<-` then `with` achieves nothing.

Also, why would the fact that `with` is a macro mean that it can't use `=`?
>Telsa had to deploy their capital very efficiently in a capital intensive industry

Surely that's an easier task than deploying a similar amount of capital in an industry that isn't capital heavy.
It's only undefined behavior (on C) because the (C) standard body decided to specify it that way.

There's no reason to specify things as UB as it's currently understood.
I have found that teams who allow larger PR sizes without complaining about it can get a lot done a lot faster. Which is to say having 50 line PRs are not ubiquitously ideal, but are somewhere on the spectrum of acceptable but come with definitive tradeoffs. Reviewing and merging 10x60 line PRs is, in my experience, more time intensive than reviewing one 600 line PR.

Most of the tests for and new functionality alone in any of our PRs well exceed 50 lines. Indeed we have 2-3x more test code than actual code. So should we be writing less tests? Merging the code first and later the tests? Merging the broken, codeless tests first and then the code?

It’s all ridiculous. Just make PRs that represent unit change, whatever the means to you. The unit functionality is independent of lines of code. Sometimes that is 12 lines, sometimes it’s 800. Yeah large PRs are harder to understand but that’s why you have tests. Also XXL PRs aren’t usually happening every day. If they are, you have a very productive team and maybe you should count yourself lucky.
The EU could take a page out of Denmark's climate playbook to easily meet emissions targets.

A large contributor of projected Danish emissions has been low-lying wetlands converted to farmland via draining. Calculations predicted that reflooding these areas could saves millions of tons of emissions, so this became a hot political topic. However, the Danish climate minister recently announced that he had wonderful climate-related news to share; the emissions from these areas were significantly less than first anticipated! And with these magical news, Denmark's 2025 emissions goals have now been met. However, what the minister failed to mention was the fact that the only reason these lands emit less than anticipated is because they have already emitted most of the greenhouse gasses stored in them, just at a much faster rate than initially predicted.
You can write bad code in any language, I fail to see how that's Python's problem.
I don't get the 'too high resolution' argument in 2024. The additional power consumption is negligible as has been pointed out by others. My 2013 Nexus 5 had a 1080p display.

> if you can't drive this

I assume your use case is playing Triple AAA games. But there are others such as Indie games and emulation which both benefit from higher resolutions. Especially in emulation a higher resolution will allow you to do integer scaling for a greater number of systems etc.
If you want to prove to me that CO2 induced cooling in the stratosphere, you're going to need data that shows that the cooling continued as CO2 emissions increased. The chart doesn't show that, it shows that it cooled decades ago and has been stable.

The stratospheric 'cooling' is used as a linchpin argument against solar influence, and to say that the data is flimsy is an understatement.
pizza mouse <3
> building a factory in the US is just not feasible

Please educate me. why?
Wine Is Not an Emulator.

It’s in the name!
Same with slack when it congratulates you for catching up on messages. Each app/service assumes you are able to take the afternoon off if you happen to have 0 widgets in your widget list.
> TBH, I don't really think they compete in anything like similar markets.

Yes.
> To be sincere, I have a strong preference for written content.

At the InfoQ podcast we always create a transcript of the whole episode. It takes quite some time to turn the spoken content into written content, but it's amazing how many people come to me to tell me that they only read the podcast, but never listen to it.

Makes you wonder why one would not immediately write an article rather than spending the effort to create the spoken content.
Yeah people forget this a lot, browsers used to largely disagree with each other, and jQuery was the only sensible glue that could hold a codebase together in that regard
IMO most of the complexity of modern browsers is in all those strictly optional, app-like features. PWAs, service workers, JS JIT and all that stuff. If you want to build just a hypertext viewer, not a full-fledged OS/application environment, just leave them out and nothing of value will break. Things also become substantially simpler if you aren't looking to make your JS execution as performant as theoretically possible (and you don't really need to with how most websites actually use JS).
I would speculate that PRs of > 10k line changes are more likely to be deletions of entire modules or assets that were dead code already.
I'll have to give it a try... I imagine Nintendo will be releaseing a new console soon for their new games... I may opt out of it. I have over 1000 games for my steamdeck and growing now.
Everything can be called a computer, I want a specific type of computer. Open, commodity, appliances. It’s hard to get all three!
A lot of this is from memory so...possibly wrong...

Very but also its solveable. You stop manufacturing, realign the tools, and then move on. With the 2011(?) japanese earthquake, there were impacts of the earthquake vibrations on lithography well beyond Japan - and it took a while for the earth to settle back down to the point that lithography was stable again. Aftershocks, tsunamis, reverberation of earthquake energy are all sources of vibration that can affect lithography.

The bigger issue (to me with what you are saying) is actually within the semiconductor supply chain. At least when I was involved, many/most/a huge fraction of the basic wafers come from Japan. Two of the major players were (are?) SUMCO and Shin-etsu, and they had huge fleets of CZ furnaces because power was relatively cheap, and more importantly, generally very stable. The process time for ingot (the precursor to wafer) growth is on the order of like weeks/months and is very energy intensive. So, power stability is a big deal. The power issues after the earth quake had huge impacts on wafer availability over the following year or so.
Those apps embed a web view which allows those apps to load links to TikTok within the app.
More Biden policy winning back investment in America, is my take.

Update:

People who may not have been following closely what Biden has accomplished during his Presidency might have questions.

In this case, the Inflation Reduction Act specifically has credits to encourage battery manufacture in the US.

https://www.orrick.com/en/Insights/2022/11/Section-45X-of-th...

More generally, the IRA and the Infrastructure Investment and Jobs Act, and the CHIPS act has encouraged investment in US manufacturing, which is surging.

https://www2.deloitte.com/us/en/insights/industry/manufactur...
The developers are incompetent.

In general it's better to just stick with a distribution with a large userbase and developer community. Something stable that has proven itself over the years.

With Manjaro you are basically using ArchLinux with its many developers and contributors, except that a few extra developers are messing with the packages and delay the updates. Whenever you encounter a bug in Manjaro, you don't know if it's from the source, introduced by Manjaro or an issue with ArchLinux. You can't rely on the ArchLinux wiki and the ArchLinux forums or irc will refuse to help you. And the Manjaro developers have outright said in their forums that they are not responsible for users having a broken system after an upgrade.

It's just a waste of everyones time.
Neuromancer is genre defining and defying. To categorise it as 'just' cyberpunk is a disservice. Pity about the rest of the Trilogy; the 'Go Set a Watchman' to Neuromancer's 'To Kill a Mockingbird' if you will. Heinlein I love, but to pretend he's not serialised pulp-fiction outside of maybe 'Stranger in a Strange Land' is fairly disingenuous.
I don't even like verbs:

"site not found"

"software updating"

edit: better: "update in progress"
It's almost as if a strong hegemony can make things radically better for everyone, and we need to keep that hegemony going.

Roman empire, Pax Americana, Apple Podcast Directory. Birds of a feather :P
> Outside of Intel, pretty much everyone else uses TSMC to build their computing chips.

this isn’t correct.

UMC, SMIC and TI have more than 10 fabs each.

Nanya 3 fabs.

Micron > 10 fabs.

Intel > 10 fabs.

Tower Semiconductor 7 fabs.

Rohm > 10 fabs.

Fuji 4 fabs.

Fujitsu 5 fabs.

Kioxia 10 fabs.

Renesas 9 fabs.

and the list goes on and on.
I don't mean to diss evolution. It is simple in terms of a program, the simplest it could possibly be - but it's also massively parallel; every molecule of or around any living thing participates in it. All life, constantly, everywhere, all at once. And then it had literal billions of year to run on this rock, to get to the point of complex life in complex environment.

Like a brute-force enumeration running on a supercomputing platform, it's mighty, but it's also simple.

Also, the process is simple. The output not so much.
>For context: Tesla is guiding for $10+B a year capex spending for the next 3 years.

I know people around these parts think that Tesla has uncovered some magical factory building ability, but can you even consider the fact that maybe Toyota knows what they are doing?

>Toyota is still under-investing in EV. $1.3B is nothing.

This is one factory.
You take ONE SINGLE POINT out of that entire post just to bitch about me making perfect the enemy of good?

My point isn't that 100 people dying isn't preferential to 100 million people dying. My point is that the 100 people died for stupid, stupid, stupid reasons. Specifically the ongoing flexes of the West over the exploited Global South.
Elon Musk is saying this openly on twitter. It’s not racist. It’s mainstream discussion.
> To me this is one of those things that looks hard until you look deeply. Yes, it does take more time to do things right. But not that much more.

Nope, it's much, MUCH more. Application frameworks are not made to switch DB users, they expect a singular DB config with which they work.

Can it be changed? Sure. Will any stakeholder pay for it? Nope.
@dang The link just leads back to this page
How do I get metal
Currently TSMC has the only leading edge chip fabrications plants (fabs) on the planet and they're all located in Taiwan. They account for all new chips for all new Apple products, all new AMD products, most new Nvidia products, etc. Most companies design the the chips, but then outsource the manufacturing of them to TSMC as building a fab has astronomical upfront costs.

TSMC has acquired a lead in this area through a number of different methods. One of the main things is that they focus deeply on manufacturing. Another is that they work 24 hours a day in R&D, running 3 shifts so they basically have the lights on all the time. And as mentioned above, the upfront costs are incredibly high with a fab costing on the order of 20+ billion dollars to construct.

Intel is attempting to catch up, but it will likely be another 3 to 5 years before they are able to do so. Honestly just having R&D up and going all the time is probably a huge advantage for TSMC and probably a big reason behind their success. Regardless, suffice to say basically all cutting edge product shipments would cease in a matter of months if TSMC fabs were destroyed.
Just in case this comment gets flagged, here is the original text:

---

Sigh.
There are people who cannot program and fortunately for those people there is jQuery. Writing any kind of UI in vanilla JS is trivial and even more so with TypeScript. If that takes you a 160 hours to complete you are not the guy to be doing that work. I could pay my pest control guy to figure it out. Maybe it might take him 160 hours.

JQuery used to make sense back in the days of IE, especially before IE9, and your team was green. Even then most cross browser issues were in CSS, not JS. Those days are long gone.
That's probably up to Canadians to decide. But there's quite a lot of space. ;). Joking aside, this sort of thing was done in the UK years ago. places like Milton Keynes, Crawley, Stevenage. Its not without its issues. and not a simple endeavour. But really, its laughable to someone living in a crowded country, that one of the most , in parts, sparsely populated countries in the world, isn't apparently looking into this. It'd be a 10-15 yr plan perhaps to implement. But with government commitment, the right tax incentives etc. Look how much China has built out in the last 20 yrs. Edit- cold winters are an issue in parts of Canada but climate change is actually opening up new areas, right?
Agreed, I hate the way Django does it. I don't want my database migrations to be tightly coupled to my models - what's the point?

I'm not sure that the Django approach would make sense in Ecto anyway because Ecto schemas are explicitly _not_ "models". The function of a Django/Rails "model" is divided between different concepts like schemas, Ecto.Query, Ecto.Changeset, the Repo etc.
LGTMYOLO is the inverse of the bike shed.

Same rat brain muscle that made me buy an extra 200,000 dollars of stuff I didnt really need on my home, but I spent 6 days at Home Depot fighting over which color of mustard to paint the guest bathroom
I read somewhere long ago that there's some chemical released when you talk about your plans, similar to the chemical that gets released when you complete your plan. So when you talk about your ideas, you feel like you've already accomplished them.

Ever since I heard this, I've been protective of what I talk about and it seems to have helped me ship more things than before.
AMD's main manufacturer is TSMC. They also use other companies AFAIK.

Texas Instruments has its own factories in the USA but AFAIK they make other kinds of ICs than the popular ones that TSMC is known for, they do mostly analog and embedded (still important stuff).

The sibling post to yours lists other factories. There are definitely other companies.
Toyota initiated the hybrid as a modern platform, and they continue make the best selling hybrid in the world (Prius). But since they don't want to be in the business of making undesirable vehicles with short lifespans that require expensive maintenance, they have stuck to hybrids rather than full electric and all the extremely costly low lifespan batteries that go into them.

Speaking as a 2004 Prius daily driver, the Toyota approach works. And I guarantee I'm a hell of a lot more "environmentally friendly" than anyone who commissioned literal tons of metal to be dug out of the earth to make their "green" new Tesla.
While I generally agree with this well written criticism (ChatGPT?), you ignore Snowcrash's most interesting (to me) idea: the Sumerian "Nam Shub" (mind virus) and its intersection with the metaverse, which I found to be an all too plausible prediction.

One could write an equally scathing take on Gibson's Sprawl trilogy. (and I say that as an obvious fan given my username)

Of course Vonnegut is flawless, so any comparisons will be trounced...
You act like this is just city level. That would still be a relatively easy fix. But federal organizations like the FBI routinely benefit from asset forfeiture. People traveling with large amounts of cash for any reason are a common target. And if you think TVs are are something, imagine the hauls from a large scale federal bust.
From the guidelines:

"Be kind. Don't be snarky. Converse curiously; don't cross-examine. Edit out swipes."
"The Baroque Cycle is historical fiction"

Apart from the suspiciously well informed immortal character and the magical gold? I wonder what could explain those...
I find that children rarely have much range, but they can be cast inline with their natural inclinations or personality. There's a number of tv shows where the kid actors get worse over time, as they're asked to do more kinds of storytelling (stranger things is a good example).
Mother Earth Mother Board was my introduction to Stephenson. Glad to see a mention of it here. I reread many of Stephenson's words periodically because I enjoy it, but I can appreciate how the characters are perhaps lacking. Its hard for me to put my finger on why, but the Judge in Blood Meridian seems more like a live person than Shaftoe in Cryptonomicon.

https://www.wired.com/1996/12/ffglass/
UAW has signed majority of VW workers at Tennessee plant to join union
Unless China plans on a war of mutual total destruction, it can't take Okinawa let alone stand against the rest of Japan.
> "It is not Sweden's task to continue this investigation."

> Ljungqvist said the main task had been to establish whether Sweden or Swedish citizens were involved in the attack, which he said had taken place in international waters.

> "The answer to that question is 'no' and there is nothing in this case that poses any risk to Sweden's security now that we have seen how things stand," he said.
To say it another way, you should not expect more code to be merged in the same amount of time as less code. 250 lines is 5x more code, so what is the purpose of a statistic showing 1/5 of the code gets merged faster? That's not a good or a bad thing.

Unless the metric is actually 40% faster per LOC but that's not specified.
Electric cars require about 8kg of Lithium, and that's easily and economically recyclable.

An EV with thermal battery protection lasts about 250,000km, about the same as a gasoline car.

You can buy an EV that has passed European safety homologation (the BYD Seagull) for $8,000 in China. The TCO of that is obviously a lot better than a gasoline vehicle. The fact that you can't in Europe or North America is not due to economics.
"Shifting the burden" to the places with externalities is perhaps the key idea driving the renewable revolution and is a tool aimed at increasing theoretical efficiency, literally making us all wealthier.
I used to setup a rack for a two person engineering team. It does take focus away sometimes. Particularly if the Colo lost A/C… but thankfully that’s not really an issue these days.
It's not a mirage. Manufacturing investment is happening.

https://www2.deloitte.com/us/en/insights/industry/manufactur...

Mostly in red-states, tbh, because they have fewer regulations slowing down building stuff.

Also, Trump is a prove loser who will lose again.
I'm not convinced that projects like this can really have broad application. The value of Python is interfacing to native libraries, but as soon as you use something like PyPy, you lose access to all of that. It's the same story with the performance orientated forks of cPython.
I wrote something similar here:

https://phoenixonrails.com/blog/elixir-for-ruby-developers-t...

https://phoenixonrails.com/blog/elixir-syntax-for-ruby-devel...
Who's Alan Flanagan and why should I listen to his opinion on Huberman?

From what I can tell, Huberman is a neuroscience Ph.D. whereas Flanagan is one in nutritional science is that right? If so, by credentials alone, Huberman seems like a better reference in matters of the nervous system.

Note that I have no horse in this race, I'm really just curious!
> You are going to need to provide some proof regarding that.

That's gonna be hard to come by, I left that job more than twenty years ago and short of digging an authoring tool and making one DVD I don't see how I could convince you. Provided I even remember how the damn thing even worked.

Here's what I remember:

- around 2004-2005 (checking movies I remember posters in the hallway it's more likely to be early 2004) ?

- the studio had three authoring computers, two macos8 and one windows machine

- couldn't upgrade to macos8 because authoring software wasn't supported on macos9

- authoring consisted in linking b-frame and a-frame as entry and exit points for chunks of video

- programming was a mix of drawing video blocks, mapping some keys to them, building some loops into a kind of finite-state machine

- we used dvdshrink a lot internally to move the movie between authoring guys and color/effects/editing guys

- video blocks were overlayed with TIFF pictures to create menus effect

- subtitles were rendered as TIFF at some points in the process, explained the rough edges (I remember I was surprised it wasn't a txt file or something but DVD players hadn't the processing power to render the overlay of arbitrary text so TIFF files were generated and it could overlay them over the video)

- I remember the distributor representatives coming to check out the final master of the DVD: they would sit in a corner of the room in front of the TV and plays the menu to see if everything was right. We made fun of them because they claimed to check the DVD for quality but the TV was too crappy to actually display colours and play sounds right. Now that I think about it I believe they were more likely to check if subtitles and languages options were in accordance with the distributor's rights. They usually watched the whole movie ^^.

Concerning UOP:

- I don't remember if you could input the combination while the unskippable content was playing, I think it was something you had to do before that to disable UOP on the next block

- But it definitely was like something described in that article https://lifehacker.com/hit-stop-stop-play-and-other-tricks-t...

> These tricks may not work every time and with every DVD, but thank god for the times they do. Got a trick of your own that does the trick?

The fact it doesn't always work is because the authoring didn't always put them in.
I am curious about what vehicles these will be for. When Toyota says “EVs” they often mean hybrids. The article makes this distinction, but Toyota didn’t in any statements.
And afterwards, the brains could be recycled into SPAM!

Soylent green was ahead of its time.
Outlook and the MS online stack in general. It's all soooo bad compared to GApps. My school uses it, unfortunately :(

And in general, anything university-related seems like a shitshow. The worst UX, terribly slow, useless errors, dumb password policies... it's one of those sectors that people might say is "ripe for disruption", but god, who wants to deal with thousands of colleges in different districts, states, and countries, each with their own specific registration pathways, etc. That'd be one heck of a crazy business rules engine.

Also, the janky shittiness that is Discord. It's like a super-heavyweight IRC with the worst distractions ever. It takes ages to load (even on a M2 Max), needs to take a minute or two to update itself every time I open it (even though it's just an Electron wrapper?), has the worst UX, etc. There are some alternative clients but they don't support important features (like voice chat) yet. It makes Slack seem fast and easy. Man, I miss the old simple IM clients like Trillian and Google's first chat.
Boxes and line are a (directed acyclic) graph. So I'm not sure what you mean by 'graph-over-lines'.