skysight-inc/HackerNews huggingface dataset:
> Complex else clauses in with

This has proven controversial, but sometimes the Else behavior is very sensitive to which of the With expressions failed (especially for better logging) and I maintain that the least terrible approach involves augmenting the With clauses using atoms to identify each expression when it fails, ex:

For example:

with {_, {:ok, key} } <- {:phase_key, get_key() },
{_, {:ok, door}} <- {:phase_unlock, unlock(door) },
{_, %Thingy{} } <- {:phase_thingy, fetch_thingy(door)},
{_, %Widget{} } <- {:phase_widget, fetch_widget(door)} do
else
{:phase_key, {:error, _msg} = err} -> # I can tell the key was missing, rather than the lock broke
{:phase_unlock, {:error, _msg} = err} -> # I can tell the lock broke, rather than missing a key
{:phase_thingy, nil } -> # I can tell this nil value is a missing thingy, not a widget
{:phase_widget, nil } -> # I can tell this nil value is a missing widget, not a thingy
end

As a big bonus, when something crazy-unexpected is emitted to cause a WithClauseError--like "hello world"--you have a much better chance of quickly diagnosing what happened from log messages, instead of inspecting a dozen different logical branching or trying to blindly repro it.

Pre-buttals:

"Just rewrite those 4 functions to return better somehow" -> No, that's not always practical or even possible. In the above example, the signatures of some of these functions are already perfectly fine on their own. The ambiguity comes when they get used near others in different ways, and trying to assign globally unique features to match on is a bad idea.

"Create 4 private functions to wrap things" -> Ugh, now the person reading the code has an even harder time, since they need to refer to functions elsewhere in the file, any of which might be hiding unexpected bonus behavior. Those 4 private functions might not even be useful in other with-statements in the same module, causing you to make even more private functions... and all of it still falls apart the moment your Else logging/cleanup needs to record or revert something from a prior (successful) step.
During its golden era (1950-80), LMB was set apart by emphasizing small groups, internal funding, and staff scientist tracks.

Right now, LMB is not very different from the classical principal investigators and postdoc pyramid model that is so pervasive in Academia.
There’s no rule against it, and it’s what Congress has done, so it’s what’s happening.
Similar thing.

Had time and autonomy from a client, so took sweet time examining the domain, the existing systems et al. Spent a few months writing the basis and the framework around what will be done, based on years and years of experience I had with bad frameworks and codebases, combined with working on the same domain for their parent company years ago.

And it worked. We delivered features insanely fast, hundreds of forms were migrated, feature generators would create 90% of the boilerplate code and the code was small, readable and neatly clustered. Maintaining it was a piece of cake, leading to us not having enough work after a while so I negotiated our time to half a week for the same money.

After a while, client deemed us too expensive to pay for only 2.5 days of work - after all, how does it make sense - if we are paying them that much, they should work 5 days!

So they cut us out. Two things happened:

1. Devs that got moved to other projects in the company told me they didn't know development could be so smooth and tried to replicate it in future projects, even tho they say it failed a lot of lessons they picked up from the framework were highly relevant in their future careers.

2. The company found a cheaper developer, he said "this is unusable and has to be rewritten" and rewrote it into "clean code", taking longer than the original project took. At least he works 5 days a week now.
How large? "anywhere from 120 metres to 260 metres in diameter".

Is that bad? According to NASA, "If a rocky meteoroid larger than 25 meters but smaller than one kilometer ( a little more than 1/2 mile) were to hit Earth, it would likely cause local damage to the impact area. We believe anything larger than one to two kilometers (one kilometer is a little more than one-half mile) could have worldwide effects."

So... it would really suck if it hit a populated area, though that's unlikely.
It doesn't mean anything for court caseload.

There seem to be a lot of posts in this thread that are misinterpreting what the judgement means. Here's what I understood from reading it:

• This case does not affect Congress' ability to delegate defined lawmaking powers to the executive. Congress can continue to delegate whatever they want.

• It will therefore not have any impact on the speed with which the US government can pass laws.

• It does not award the courts any new powers.

• What it does is go back to the pre-1984 system in which the meaning of ambiguous rules were decided by the courts.

• It does so on the basis of a specific law called the APA, in which Congress spelled out that the courts should defer to agencies on matters of fact, but does not say courts should defer to agencies on how to interpret ambiguous law. Also that law was passed specifically to limit the powers of the executive. So, their ruling seems founded in the will of Congress.

Because ambiguous rules would have to be decided on anyway, and they were already being decided in the context of a court case, this won't affect the number of cases being decided.

I think the only way to attack this ruling would be to show that there was some law that superceded or replaced the APA, or that the relevant section of the APA itself was unconstitutional. But why would it be? As the court points out, the fact that ambiguous law is interpreted by the courts is a very old and unremarkable arrangement. The Chevron decision was the radical deviation from normal practice, reversing it just puts things back to how most people already think it works.
Do you understand the implication of the answer to that question being "No, and it cannot delegate those powers"?

Congress would have to vote on giving approval for each new drug, not the FDA's bureaucrats.

Congress would have to vote on each individual edge case for welfare programs (SNAP, Social Security, Medicaid, etc), not their respective agencies.

Congress would have to vote on which individual people get Pell grants, how much, and how much their parents are expected to contribute to their university schooling, not the Department of Education.

Congress would have to vote to approve contracts for every federal agency.

The federal government would not function without some degree of delegation.
Indeed. I live in Northern Europe and have a 17.2 kWp solar plant. During the summer, I see ~100 kWh uselessly (for me) go to the grid every day for a pittance, and I can't really use it.

4 months of the year (almost 5 if it's a really bad year like last year), there's virtually no production.

I work in the smart energy field, including with home batteries. The de facto standard size is still 10 kWh because the promised drop in price hasn't yet materialized on this market. I'd fill that up in 45 minutes during a sunny summer day. I maybe can use half of that during the night. If I were to charge my car during the night, then sure, I could use that, but it's just 10 kWh. That's like an 1/8th of the car battery.

50 kWh? Okay great, I'd fill that up in 5 hours. Don't really know what I'd use those 50 kWh for. Charge my car? Okay sure, but I don't drive every day, and never in the morning, so it makes so much more sense to do solar surplus charging once or twice a week. You rarely want to charge to 100% SoC anyway, and you should probably leave some additional capacity for FCR purposes.

100 kWh? The problem is that in summer when I can fill that in a day (assuming max power scales with the capacity), I cannot really empty the battery because my consumption is so much lower during the summer. I will only top it up a little bit every day at best.

What I really need is a fucking 10 MWh sand battery underneath my driveway that I can seasonally charge and then use during the winter for heating. Maybe it could also keep my driveway snow and ice free? Who knows.

And A/C in the summer I guess. That is actually what I'm going to get, because it turned out to be more stressful and agonizing to see 100 kWh go out on the grid for almost no monetary gain than I thought it would. Call me egotistical I guess.

Domestic solar is kind of a scam. I knew that going in, but I didn't anticipate the accompanying stress.
Same here. Consolidating to one BIG monitor
Appointing people based on party loyalty is always cited as one of the major reason the Soviet Union became a slow-motion train wreck. It's not something America should emulate.

Not to mention that packing the courts could well be interpreted as an open attack against the separation of powers
Your last sentence is very interesting to me. Can you explain what you mean? Or suggest something to read?
It's just a frontend framework.

If you already have fundamental web dev knowledge, you'll be able to switch between them easily.

That's why I like Remix. It's react + web fundamentals. I'm happy to jump into a Vue, svelte, angular project. It's not all that different
To anyone wondering, to save you some googling: yes, both the mentioned instances aren’t obviously-unreasonable in context. One was someone formally asking the ATF whether it’d be illegal if they made a machine gun with a shoe string, and would that shoe string then be an illegal machine gun part and the ATF going “yeah, duh” and the other was someone seeing exactly how close they could get to selling machine gun conversion parts without crossing the line, and the karmic principle of FAFO kicked in.
If those code checkers are experienced programmers, who do not annoy people with arbitary guidelines and standards, then yes, this might also work. But I do not think they are always necessary as a seperate full time role, if everything works normal otherwise. And with working normal, I mean there is enough time to refactor and document and clean up and is actually done.
Don't worry, lobbyists are experts at crafting bills and have the money necessary to motivate congress critters into action!
Great project!

I am working on something very similar: https://news.facts.dev/

I tried to keep it completely self hosted, using Astro for the frontend and LLama3 as large language model.
I agree on both counts. The House was, by definition, the populist component of the government. That was the only representation that We The People got. The state legislature was supposed to elect the state senators, and the state legislature was to nominate an even smaller group of electorates to choose the president.

But the fact the state legislature elected the state senators reflects your point that the senate was intended to be more "serious."
at terminal velocity would you feel that things have "stabilized" and then not notice anything until it stops, when I imagine you would feel crushed into your chair?
I'm with you on that. Lit is the way to go. It is in the 3.x version but it never released a real breaking change but also it doesn't carry bloat for compatibility as it is a thin layer on browser APIs. The core dev team is great too, not looking to jump the next hype bandwagon.

WebComponents are the future (and the present) of web development.
Sometimes rules/ideas are useful for specific stages or projects, but people tend to forget to be critical and decide for each project in particular the set of rules they want, and not to make out of them "axioms".

Related to artistic stuff, I think some modern art can be understood much better if you at least are aware (have seen / thought about / discussed) the older art. It's not like 19th century art is invalid or irrelevant - the relevance is also in the process and defining what came before and after, plus personal preferences.

Maybe the rules of thirds gets out of fashion, but might be still be useful for some projects, for understanding the evolution, or just because some people love it (like it's perfectly fine to like 19th century art compared to modern).
Going below the surface has been a big thing in London for a while now, it's real estate so limited and above ground so expensive. Many of the most posh neighborhood townhouses in London have deep multi-floor underground layers.

With an environment that seems to be continually warming and becoming more hostile, going underground will probably become a natural defense that humans will take as we retreat from the harsh heat, wildfires, etc.
the only guy I've ever known to correctly pronounce SUSE was an older fellow who was, towards the end of the 00s, pronouncing "Ethernet" with a short e, as though it were to rhyme with "meth"

anyway, that's why I'll always call it Soos even if I know I'm wrong

that guy probably also pronounced it "GIF" but it's been too long to say for sure
I suppose this would be useful for large supply chains. Once you get away from that and move to shipping from warehouse to store, though, this would be a largely be a waste of time. Stacking a pallet with various different sized boxes and shapes is a bit of an art form that is largely learned through trial and error until you "get" it (I was on a full time night stock crew while I was in college). It would literally take more time for workers to refer to the layout than it would for them to simply stack the goods onto the pallet.
The current pace of legislation is glacier slow
RustDesk Installs Chinese Root Certificates (4 months ago, 68 points, 19 comments)

https://news.ycombinator.com/item?id=39256493
To me, this seems absurd and counterproductive. But then again, the Dutch are known to be direct communicators.

Im wondering though, if so much of the words are intentionally left ambiguous, where does the fault of a miscommunication typically land? In Dutch culture, the fault almost always lies clearly with the speaker. They should have been clearer. However, if so much of the communication is done by the listener, does the fault of a miscommunication end up there as wllt?
Fairly common: triggering a side-effect that uses some state value, only when a different piece of state changes.

useEffect(() => {
doSomething(someState)
}, [otherState])
How do they verify the output preserves semantics of the input?
I suspect they meant "hundreds of thousands"
They at least cite it as an inspiration: https://www.janelia.org/models-of-inspiration
FBI puts a $5M bounty on the missing Cryptoqueen
Congrats on your success! The generally accepted definition of Feature Flags/Toggles seems to be this one: https://martinfowler.com/articles/feature-toggles.html
Channels can be a useful primitive, but without more structure they're tough to reason about. I really wish that the Go team would provide more implementations of common patterns and publicize them; things like x/sync/errgroup are fantastic, and I'd love to see more.
> Today's startups need twice that

The laser printer was invented in the 70s. Back then, property prices (both rental and purchase) were much much MUCH more reasonable for both companies and their employees, with the latter being a significant contributor to the explosion in wages.

Or to rephrase, you needed way less money for any given thing 50 years ago because the associated costs were much lower.
The submitted project is a framework for building programs. Kubernetes is a platform for deploying and running applications. So no.
Installing a VPN on Apple Vision Pro: How to do it and why you should
This is a confusing take.

The iOS ecosystem has a much stronger claim to "might as well be a games console" specifically because it was so vertically integrated, which is why their business model looked essentially identical to one from the launch of the App Store. Yet the market evolved and it's clear that "might as well be a game console" is no longer an adequate defense for these leading smartphone platform owners.

While there are differences between Google/Android/PlayStore and Apple/iOS/AppStore when it comes to platform control and accessibility, and therefore a case to be made that they could be treated differently, this difference seems to point in the entirely opposite direction what you seem to be arguing.
There's no federal constitutional requirement for anyone to have legal training or certification to practice law in the USA.

The requirements to practice law in the federal system are set by the judiciary itself. This dates back to England where getting "called to the bar" meant the judge giving you permission to go to a physical bar separating the spectators from the court.

It wouldn't make sense to mandate judges to be lawyers if they decide who is and isn't a lawyer. That would give the judicial branch control over their own appointments.
It seems like an important distinction that unlike the US their government intentionally collapses if the legislature no longer supports the executive. Given two separate legislatures, the filibuster, the presidential veto , fixed terms, etc. it might just make sense for the US government to work a little differently.
"Federalist Society" and "commitment to technical accuracy" are diametrically opposed concepts. You are right about them not caring about the practical effects of their actions.
I don't know why the article references "dark matter" but doesn't make the full connection to microbial dark matter: https://en.wikipedia.org/wiki/Microbial_dark_matter

It's not just fungi that are difficult to culture. The (vast?) majority of bacteria, virus, and archae species are undocumented because we don't know how to grow them in a laboratory or even stain them so that they're visible on a microscope slide. Except for the occasional glimpse on an electron microscope slide, most of them are completely invisible to science.
It won't force Congress to do shit. The same flip flop will still happen, but instead of 4-year executive terms, it will be driven by lifetime court appointments. The court is going to remain Republican for the foreseeable future, unlike the presidency.
Jsx doesn't "render to xhtml". Its syntax is similar to XML, but not the same. It's similar to HTML, but not the same. It's similar to XHTML, but not the same. In most react apps it renders to function calls like createElement or _jsx. The reconcile will turn these into DOM objects without any markup representation at all.
> This seems much different than what Gemini Earn did. Having smart contracts enable swaps is very different from taking people's money and lending it our through micro lending.

I agree it's not 1 to 1, it's a different thing, I was just saying that it does seem like the SEC is taking these crypto company shenanigans much more seriously now, and I'm really grateful for it. It would have been better five or six years ago, but I'll take the small victories where I can get them. Even if Gemini Earn wasn't quite as bad as Metamask, it was still bad to make misleading promises about safety of your investment.

I accept my share of the responsibility for not reading the terms thoroughly enough, and for not being more skeptical of 7% interest when banks were only offering like 0.5%. It was short sighted of me, I guess I got caught up in the crypto hype like a lot of people did, and I do think Gemini should be held accountable for a bit of the misleading marketing they did.

> I was also interested in Gemini Earn until I read the terms and decided it was almost a guaranteed way to lose all of my money.

As I said, credit to the SEC because I did get all of it back (though I would have much rather gotten it back early because it of course lost value in limbo due to inflation and not being investable in the market).

----

I was thinking about how a generally pretty skeptical person like me got caught up in this; I don't gamble and I've never fallen for an MLM and I don't play the lottery, and I think I figured it out.

Whether accidental or not, cryptocurrency was able to launder its reputation through academics. Blockchain is academically interesting and as such a lot of academics got caught into it too, and I guess I put more trust into them than I should. Seeing Philip Wadler working for IOHK made me think that it was a better investment than it should have been.

I forgot that academics are still regular humans and aren't immune to hype trains either.
That's why high-carbon sources like coal and oil should be subject to carbon taxes: to price in externalities.
The Apple case was settled by a judge and the Android one by a jury.
No... You should learn the most popular frameworks. Why just react? Build the same project with svelte, Vue, angular. You'll learn a lot which applies across any web framework, that's more important.

If you're messing around and having fun, sure learn some hipster frameworks.

If you want to have highly saught -after skills years from now, basic web Dev with most popular frameworks on top is by far the safest bet.
Realistically the president doesn't do all that much to affect the course of the country relative to congress.
AFAIK, the ///+ solved most of the problems with the ///, but it failed so badly in the market I’m still looking for one to buy for a reasonable price (I want to try to make it do 384x560 graphics, arguably possible with its interlaced mode).
The technician effect.

See e.g. https://news.ycombinator.com/item?id=11799365
I've always been a bit confused about the idea that an advanced civilization would be uninterested in us because we've "only" reached the ability to communicate via radio waves. We're either a threat or an ally to these other civilizations, and if you were them and you detected a society that was clearly on course to eventually catch up, it would be in your best interest to treat them like one of those things ASAP so you can have a hand in their development.

To me it feels most likely that our signals just have not had enough time to get to them.
With hack judges like Aileen Cannon, good luck!
"during 2019-2020, the last flu season prior to the COVID-19 pandemic, flu vaccination prevented an estimated 7 million influenza illnesses, 3 million influenza-associated medical visits, 100,000 influenza-associated hospitalizations, and 7,000 influenza-associated deaths."

https://www.cdc.gov/flu/about/qa/vaccineeffect.htm

Time will tell how effective covid vaccines are when it's mutating as rapidly as it is. The covid vaccine will definitely reduce zero infections if people do not get it.
> the power structure and individual incentives for legislators have made the hack a useful way to keep the system running

And abdicate responsibility from people we can hold accountable via elections to anonymous bureaucrats that may be knowledgable in their fields but we'd never know it.

If it's important, Congress should be willing to write it into law (or amend the Constitution?) instead of depending on a 40 year old hot fix.
Glad you asked here. I was taking down notes during the article to inquire about if this would help me get into running. I have very flat arches as well, but I've never been a runner and my knees are already pretty bad.

(Aside: I think you meant "avid runner here")
And imagine how our allies feel. If you can’t count on the U.S. for more than about 3 years at a time, then you quickly move away from them and insure you aren’t so tied to them that a foreign election suddenly makes you vulnerable. Which then makes everyone weaker as a whole and easier to pick off.

Which is why U.S. foreign adversaries have been actively sowing chaos for a decade.
But, this decision didn't take those powers from Congress. It took those powers from federal agencies. Congress empowers the agencies, yes. But, Congress also deferred any technical decisioning to the agencies. Those agencies are filled with actual experts who are fully committed to their field. Now, the court just said that those experts aren't the right place to enforce anything but judges are.