MurphyA/hacker-news huggingface dataset:
by subjectsigma | 2025-04-05 02:25:29+00:00
Of course I wrote this comment off the top of my head, sitting on the toilet, and the second I got off I started thinking to myself, "You know, this probably already exists." So I did some research and of course it does:

* https://marta.sh is a file manager for macOS that syncs state with the terminal. You can't quite do everything I talked about but just being able to cd by clicking around in a directory tree is already super helpful for me. Unfortunately I don't think it works over SSH and it crashed twice in the first five minutes of me using it.

* There is a bash debugger, but the only good GUI I could find after 5 min of Google was a Visual Studio Code plugin. I downloaded it and it seemed to completely break the first time it hit an error. But, it does have some basic functionality like breakpoints.

* I checked if you can copy and paste from the command log in Sublime Merge, my favorite git client, and you in fact can! You can't mass-save things as a script but this is good enough for my purposes.
by jcadam | 2025-04-05 02:25:31+00:00
Location: Soldotna, AK Remote: Yes Willing to relocate: No Technologies: Clojure, Scala, Java, Python, Ada, RabbitMQ, Postgresql, Docker Resume/CV: https://drive.google.com/file/d/1Bz7ucVofUvXsWLtY3tZ7cbELxxYQLWnm/view?usp=sharing Email: jcadam.sm@use.startmail.com

I'm a senior engineer with 19 years experience across a broad spectrum of domains and technologies. My most recent role was leading development of a knowledge graph platform using a polyglot microservices architecture.

Open to FTE or 1099 work.
by scarface_74 | 2025-04-05 02:25:40+00:00
I honestly don’t personally know anyone on personal level who is trans who would talk about the issue. I do have close LGB friends who I talk to about these issues and they are opposed to it for the most part.

I have heard my gay friends say that the issue is causing support for issues that do affect them lose support because of narratives around trans issues.

If you even look what Trump is doing, he isn’t erasing LGB teens from government websites, just everything else related to it.

No, I’m not in favor of that anymore than I’m in favor of him removing everyone from government websites that is Black.

I’m all about RealPoliticks. Obama distanced himself from radical Blacks (repeat I a black) and Bill Clinton through Sister Soulja under the bus to appeal to moderates.

https://en.wikipedia.org/wiki/Sister_Souljah_moment
by sega_sai | 2025-04-05 02:26:06+00:00
I am not entirely sure if the distinct service is justified here, but in my own work, I've found that regular Chatgpt is great in writing queries. And usually I post the '\d ' output to it to describe my schema, and ask in regular language what i want. I don't think i encountered yet cases when it didn't work. The only thing I had to occassionally ask is to rewrite the query from nested query to CTE.
by Majromax | 2025-04-05 02:27:28+00:00
> Industrial policy will always fail if it’s driven by a chimeric political system

I think you're begging the question here that a chimeric political system can craft an effective, long-term tariff policy if it can't craft a long-term industrial policy.

In both cases, the operative phrase is long-term. IF they're to be effective, either set of policies needs to look a decade ahead, and an industrial policy still wins compared to shotgun tariffs.
by joering2 | 2025-04-05 02:27:33+00:00
You said the most important part. Trump and Co believes that a car or semi factories grow overnight like mushrooms in the forest. If a CEO of a semiconductor company would decide to start building a billion dollar plant in the USA, which would take 6-8 years to built, knowing that new President from the other much different party might take over in less than 4 years, that CEO would probably endup being sued by shareholders for jeopardizing the company's bottom line.

Noone in their right mind will start building factories in USA because of temporary tariffs that all might go away with an executive order and a stroke of a pen comes January 2029.
by crooked-v | 2025-04-05 02:28:51+00:00
> Hotels are like McDonalds, they are designed for the regular customer who wants to get that Hilton-feeling, regardless of if they are in Wichita or Cairo.

Stop staying at chain hotels. There are plenty of hotels out there that are what you're looking for, and have an actual business to engage with in case of issues instead of some anonymous lister on AirBNB.
by codezero | 2025-04-05 02:29:06+00:00
These are old and tired russian talking points. How exactly is russia, a nuclear power, threatened by Ukraine? They didn’t respond at all to Sweden and Finland joining NATO, despite Finland’s much larger land border with russia.

russia also annexed and occupied Crimea, and at the same time destroyed or stole the entirely of Ukraine’s Black Sea fleet. They moved their own nuclear weapons to CSTO partner state (and vassal) Belarus, pushing them closer to NATO borders.

no matter what justifications russia claims, their actions are what matter, they have no desire for any form of modern diplomacy. Do you remember how long they pretended Wagner mercenaries weren’t directly funded and supplied by the state?
by ninetyninenine | 2025-04-05 02:29:09+00:00
Same. I have a team lead who's trying to externalize a SQL query to new infrastructure. Why can't we do a database call on the current machine? why does this have to be a task for an external machine to carry out???

It's like the current machine can't wait on the database, we have to wait on an external machine that waits on the database. Why why why? I feel web developers are so used to these patterns that they lose common sense.

I'm sure tons of people will agree with the team lead. I think a lot of people just don't get it.
by romaaeterna | 2025-04-05 02:29:19+00:00
The average inflation-adjusted annual tuition for a 4-year degree has gone from $2843 to $10,892 between 1969 and 2023 in 2023-dollars. [1]

Healthcare spending per capita has gone from $2,151 to $14,570 in the same period in 2023-dollars. [2]

The inflation-adjusted home price index has more than doubled over that period. [3]

Real wages have remained fairly stagnant over these same decades. [4]

[1] https://educationdata.org/average-cost-of-college-by-year

[2] https://www.healthsystemtracker.org/chart-collection/u-s-spe...

[3] https://cdn-0.inflationdata.com/articles/wp-content/uploads/...

[4] https://www.epi.org/publication/charting-wage-stagnation/
by khazhoux | 2025-04-05 02:29:28+00:00
It’s worth a debate, even though in American culture we hold this idea as beyond any consideration.

Benjamin Franklin is quoted as saying "it is better 100 guilty Persons should escape than that one innocent Person should suffer". That's a noble thought, but those 100 criminals can cause suffering of 100s of others. So his assessment isn't necessarily accurate. Every innocent father jailed in El Salvador might save 10 children from losing their own father.
by sarchertech | 2025-04-05 02:29:37+00:00
If you’re looking at HDI, Mississippi (the lowest scoring state in the US), would rank 25 out of 41 European countries.

I can’t find IHDI by state, but given that the US only drops a few spots between HDI and IHDI, Mississippi isn’t likely to be anywhere near the bottom.

All southern states except Mississippi rank in the top 50% of European counties by HDI btw.

My point stands.
by Shorn | 2025-04-05 02:29:39+00:00
You can tell my engagement level with my job by the commit frequency on my side-project.

If I'm deeply engaged at work, I don't have many spare cycles out of hours and there's little happening - library updates and small fiddling.

Otherwise - it's full steam ahead on projects that I somehow magically find the time for.

I don't work on my stuff during work hours - disengagement from work results in more energy and motivation to do stuff out of hours.

Weirdly, I think this actually benefits those boring workplaces too. If I'm scratching the itch with what I'm doing on my side-project - it means I'm less likely to invent interesting new ways to over-complicate things at work.
by gruez | 2025-04-05 02:29:39+00:00
>One thing to note when comparing imports to spending. Import numbers are based on the commercial invoice value (i.e., how much it cost to produce) while spending is based on the sale price. So it's an...apples and oranges comparison.

The context of this is the impact of tariffs on households' budget, and in that context, invoice value is fine, because that's the value on which tariffs are applied. 30% tariffs don't mean all foods go up 30%, it means it goes up by 6% (20% of 30%).
by wonger_ | 2025-04-05 02:29:39+00:00
Yeah, I've noticed that when I have lots of stressors, I don't have any creative energy. I have to give myself permission to let go, that it's ok to forget about a side project. It's more important to focus on self-care and tackling irl problems at that point.

But when life is good, it's hard to stop tinkering. Weekend-sized projects are the best. For me, it's an urge to create and see the core 20% come to life, not to maintain the boring parts over time.

Hormonal fluctuations is an interesting theory. I always thought it's just a need for variety -- sometimes consuming (i.e. developing taste, curating, exploring), sometimes creating, sometimes relaxing. For me the cycle is months at a time.
by walterbell | 2025-04-05 02:29:47+00:00
You're disagreeing with statements by the President of Mexico, describing the result of ongoing negotiations?

Canada and Mexico share a physical border with USA, which has already resulted in unique (i.e. unrelated to the math of 180+ other countries which don't physically border USA) tariffs tailored to border security goals, under national security emergency directives which overrode USMCA.

USMCA has been historically gamed by international manufacturers seeking more favorable terms for products destined to the US market. As stated by the leadership of both Mexico and Canada, USMCA will need to be renegotiated to address issues identified by all three parties, which would then reduce the need to invoke the emergency-power tariffs that have been deployed against 180+ countries.
by Jtsummers | 2025-04-05 02:29:51+00:00
Well, I disagree but the current policies guarantee it's not recoverable so a debate would mostly be around hypotheticals. We're reducing revenue but not spending (or not enough to offset the reduction in revenue so the deficit will rise), so the debt will only continue to rise at an increasing rate.

Ironically, Trump has the record for the highest deficit ever in US history. He's on track to beat it though and with a reasonably strong economy when he took office (again, not an ideal economy, underemployment is a major issue, but not a weak economy by any stretch).
by brookst | 2025-04-05 02:30:03+00:00
To the extent markets recover it will be because there’s confidence that exposure to bizarre and unpredictable behavior from the US has been reduced.

EU / China trade pacts, China / California, Mexico / EU. People have to patch around the mistaken over-reliance on sanity from the US. It’ll happen, not sure if it’ll take a few weeks or a few years though.
by AshamedCaptain | 2025-04-05 02:30:31+00:00
This is as ridiculous as it gets -- so malicious Linux install media is the problem you want to defend against? When has this _ever_ been a problem? And more importantly -- why is this ridiculous problem so important the solution must be giving MS even more monopoly abusing powers?

People may use pendrives, but even if they literally google "Linux install" and click on the first result they are getting the media from the correct website. One could even claim it is in practice even a better situation than getting it from a random, even if reputable magazine as it was common 20 years ago.

The certificate is not meaningless; it still identifies the same publisher. E.g. if you already trusted Suse once, you do not get the same prompt again.

If you really cannot reliably identify the contents of your install media for the very first installation, what do you want to do here? And why is Windows having the advantage even improving the situation at all? With no dbx, you have a myriad of exploitable Windows versions ready to be used in your 'compromised' Windows install media. And due to the draconianess of the secure boot lockdown, most Linux users will either disable secure boot entirely, add the MS UEFI CA (with the extra bazillion of now non-MS backdoors that entails), or roll their own PK/MOK. In all 3 cases, your compromised install media 'wins' and secure boot has been useless. These are not dumb users precisely...

As usual with secure boot, the threat vectors it 'defends' against are very farfetched, made redundant with a plenitude of easier attack vectors that secure boot will not protect against, and anyway whatever protection SB may give is defeated entirely by comically easy methods (e.g. using a legit windows install media to simply boot the pc with your fake fullscreen windows install/logon dialog while you clone the bitlocker encrypted disk. Bonus points if you use that same computers' recovery partition instead of external install media, which was still an unpatched hole just a couple years ago) precisely because SB basically defaults to "trust anything from MS" instead of trusting only what the user wants it to trust. It also happens that MS not only benefits significantly from this current implementation but also has repeateadly used it to push other OSes away.
by sebmellen | 2025-04-05 02:31:07+00:00
Did I ever defend a particular industrial policy? No. You misread my comment.

My comment was intended to give the GP poster insight into the mindset of Americans who revel in the “bullying” behavior they described.

But one point of inquiry — how are foreign aid programs like USAID mercenary? Even if they are CIA fronts, it’s hard to argue that they are in any way economically extractive.
by kjellsbells | 2025-04-05 02:31:18+00:00
I used Squarespace for a domain and website for a relative who had a very low tolerance for futzing around. No major issues. They also have O365 for email and there have not been any problems with eg email being rejected.

The biggest issue: I've learned that SQS really doesnt like people trying to go their own way, even if technically it is supported.

For example:

- you can embed your own JS scripts...but it's clunky, and debugging is not fun, because you are fighting with objects wrapped in squarespace's own object model.

- you will have a far, far more pleasant time using their payment systems, appointment tracking systems, etc than trying to integrate your own choice of third party. Thats great if they already do what you want, less so if not. So you def want to look at all the ancillary services like those that your client might need and confirm that they can live with what SQS offers.

- Finally, I no longer work on this site, but I do not remember seeing any versioning, source file backup, etc. They do have a staging system though. So you might want to consider how to preserve your client's site in case of screwups.
by Jtsummers | 2025-04-05 02:32:28+00:00
No, if it were ruled unconstitutional and the President continued to enforce the policies then Congress would be justified in impeaching and removing the President. This is unlikely to actually happen with the current Congress, however.

Could the President remain in office after an impeachment? Ask again in 2-3 years, but today, no. He'd be removed, no federal employee (civilian or military) would continue to take orders from him except perhaps his Cabinet and the DOGE boys. They all swear an oath to the Constitution, not to the man. In 2-3 years, though, could be a different culture.
by no_wizard | 2025-04-05 02:34:09+00:00
There’s been a leading theory that Twilio has turned a big blind eye to misuse of the their platform for sending spam. They have all these clauses, rules etc sure; they make a good show of it, but they are really slow for example to close loopholes, if at all. They’ve done a good job of making the whole thing look like they take it seriously while being clever enough to leave loopholes and obvious workarounds to anyone who knows where to look

Or so the theory goes
by smogcutter | 2025-04-05 02:34:16+00:00
On NPR they ran a response quote from Ryan Zinke that was nominally against it, but if you read between the lines you can see them laying the foundation. It was something like “I draw a hard line at violating the constitution, that’s something I’ll never support. But also right now there are leftists and activist judges who think they can violate the constitution by taking power away from the executive”

He never directly spoke against a third term, just “violating the constitution”, and then named some enemies. It’s a long way off still, but you can see the groundwork being laid for something like “emergency measures to protect the constitution” if they decide that’s the way they want to go.
by int_19h | 2025-04-05 02:34:34+00:00
"Fire in a crowded theater" was originally a strawman introduced by the Supreme Court to justify their ruling in Schenck v. United States. To remind, Schenck was a Socialist Party member who was distributing flyers encouraging resistance to the draft during WW1, and was convicted for the same under the Espionage Act of 1917.

SCOTUS affirmed his conviction, saying that "the words used are used in such circumstances and are of such a nature as to create a clear and present danger that they will bring about the substantive evils".

Here's the flyer itself, in case you want to read those very dangerous words for yourself: https://en.wikipedia.org/wiki/Schenck_v._United_States#/medi... https://en.wikipedia.org/wiki/Schenck_v._United_States#/medi...

So, all in all, a good reminder that not only the slippery slope very real, but sometimes it's there from the get go.
by sdenton4 | 2025-04-05 02:34:34+00:00
Yeah, that's an idiotic take...

The US has benefited massively from soaking up the best brains globally. That's not going to keep happening; I have plenty of colleagues already who are refusing to travel to the US. We may well even swing into brain drain as Trump et al move closer to executing their cultural revolution.

Meanwhile, all those other countries will start trading more with each other. The US stands to be left out. Won't happen overnight, but Trump is pissing away the advantages. When the dollar isn't the global currency anymore things will really start to hurt.
by SpicyUme | 2025-04-05 02:34:43+00:00
I think there is a decent argument that some of the nihilism we see in the population comes from seeing a general unwillingness to jail or proportionately punish wealthy criminals. As we have heard for a long time, if the bill for breaking the law is too small it is just a fee and if you steal from enough people it becomes a statistic.

I'm not optimistic about this. I think removing due process to allow for exporting people without any rights is a terrible idea. The writers of the declaration of independence specifically named these.

For depriving us in many cases, of the benefits of Trial by Jury: For transporting us beyond Seas to be tried for pretended offences:
by mathfailure | 2025-04-05 02:34:50+00:00
Furthermore, Russia has no plans to invade any NATO country. It just won't let NATO invade^W expand to Ukraine. And no, this war is not how you describe it: said 'much smaller country' was 2nd biggest (in terms of military strength) in Europe after Russia itself.

And it's not a 1x1 war of big Russia vs small Ukraine: Ukraine got help from all over Europe, G.B., U.S. and Canada. Help in arms, in intel, in training, in money and other resources. Russia got sanctioned badly, by such a big bunch of countries that you'd rather be smirking not about Russia not being able to win already, but at Europe (and now U.S.) economy getting some hits... while Russian economy still stands yet. While all the sanctions are still in effect. For years.
by kragen | 2025-04-05 02:35:55+00:00
Somehow his taxonomy of optimizations doesn't have a category for things like "unroll a loop", "fuse loops", "block your array accesses", "avoid false sharing", or "strength-reduce your operations". He has a "use a better algorithm" category, but his example is switching from bubble sort to selection sort, which is a much more disruptive kind of change than such micro-optimizations, which are usually considered to be "the same algorithm".

This is rather puzzling, given that he starts off with, "Premature optimisation might be the root of all evil, but", quoting Knuth, and in context, Knuth was primarily talking about precisely such micro-optimizations: https://dl.acm.org/doi/10.1145/356635.356640 p. 267 (p. 7/41)

Specifically, the optimizations Knuth was exhibiting in that section of the paper are:

- speeding up a sequential array search by copying the search key to an empty spot at the end of the array, so that the loop only requires one termination test (are keys equal?) rather than two (are keys equal? is index in bounds?), speeding it up on typical machines of the time by 50%;

- unrolling that version of the loop 2× in a way that required gotos, speeding it up by a further 12%.

None of the optimization techniques being applied there fit into any of Tratt’s categories!

Now, I can't claim to be any sort of optimization expert, but I think these kinds of micro-optimizations are still important, though, as Knuth pointed out at the time, not for all code, and often the drawbacks are not worth it. Sometimes compilers will save you. The C compiler might unroll a loop for you, for example. But often it won't, and it certainly isn't going to pull something like the sentinel trick, because it doesn't know you aren't reading the array in another thread.

This sort of depends on what context you're working in; arguably if your hotspots are in Python, even (as Tratt says) in PyPy, you have bigger opportunities for optimization available than manually unrolling a loop to reduce loop termination tests. But I've found that there's often something available in that sort of grungy tweaking; I've frequently been able to double the speed of Numpy code, for example, by specifying the output array for each Numpy operation, thus reducing the cache footprint. The code looks like shit afterwards, sadly.
by D_Alex | 2025-04-05 02:36:20+00:00
Yes it does. Consider too that after kerosene whaling declined while world population, wealth and demand for lighting grew rapidly.

Also, kerosene for lanterns became a thing in 1846, not 1865 as claimed in the article, and by 1856 was already widespread. Wikipedia has this to say about its impact:

As kerosene production increased, whaling declined. The American whaling fleet, which had been steadily growing for 50 years, reached its all-time peak of 199 ships in 1858. By 1860, just two years later, the fleet had dropped to 167 ships. The Civil War cut into American whaling temporarily, but only 105 whaling ships returned to sea in 1866, the first full year of peace, and that number dwindled until only 39 American ships set out to hunt whales in 1876.[36] Kerosene, made first from coal and oil shale, then from petroleum, had largely taken over whaling's lucrative market in lamp oil.
by travisgriggs | 2025-04-05 02:36:21+00:00
Interesting, but I don’t see it this way at all. The west talked Ukraine into giving up their nukes and said we’ll keep you safe. All that without NATO. But as time has ebbed, and Russia meddling in eastern Ukraine went largely ignored by the west, Russia grew emboldened and decided it could just invest in a history rewrite, an airing of past grievances, and an invasion.

If Ukraine had said “fuck no” from day one, “we’re keeping our stuff, we don’t trust any of you long term at that level”, it would be in interesting world we live in.

This narrative that NATO provoked Russia into this is non sequitur. A gaslight of grandeur.