skysight-inc/HackerNews huggingface dataset:
Show HN: New set of Go libraries for CLI Development
Hello everyone,

I've just released three different libraries aimed at either enhancing or facilitating CLI application development.

Flags (https://github.com/reeflective/flags)
flags aims to merge the concepts from https://github.com/jessevdk/go-flags, and https://github.com/octago/sflags, both relying on struct tags to define CLI command specs. The flags library uses these underlying concepts to produce complete `cobra.Command` trees, and brings many comfort-of-life improvements for the generated applications/commands.

Console (https://github.com/reeflective/console)
This library wraps the readline library (described below) and leverages cobra commands in order to provide a closed-loop console working with cobra commands out of the box, also providing many comfort-of-life features at minimum cost, like support for oh-my-posh prompt engines, different menus and much more.

Readline (https://github.com/reeflective/readline)
Readline libraries in pure Go already exist, and the chzyer/readline one is widely used. However they might lack some features, or even a full-fledged Emacs/Vim edition mode. Most of them lack many UI features found in common shells.
Readline has been written to bring a new shell library with features found in most recent shells, with a simple API for developpers.

All of these projects each come with a complete documentation for developers, (and for readline, users as well). Advertising those in the hope that they might be useful to some.
I have to say, at least if you're tied to employer healthcare plans, there are bad Aetna and United contracts out there. I've had better runs (on the west coast at least) with Anthem Blue Cross, in terms of engaging with the system. I've been lucky enough in my life to have high quality plans that the employer subsidies (100% paid for me, 80% for my partner) with very low deductibles, and they're PPO to boot (no HMO hoops), which helps when you want to completely by pass getting a recommendation to see a specific doctor (useful when you know what you're doing)
To be fair, the current govt is preciding over a (self inflicted) economic collapse in all areas, not just the NHS.

And ultimately voters have no-one to blame but themselves. (or half of them anyway.) leaving the EU is epically dumb on a truly impressive scale.

So now looking at the NHS, complaining about under-funding and under-staffing, when those were completely predictable outcomes of Brexit isn't going to inform good health system forces.

Japan might be a better place to look if you want examples.

In truth the US has plenty of money in the pot to implement effecient health care. But for-profit companies will not go quietly into the night.
Some do it to have closure themselves too, e.g. Randy Pausch's The Last Lecture, which he said he wrote despite his family's wishes to just spend more time with him.
Sounds like a good rationale for letting a lot of people die right now.
I think the intention matters. If you did it to spite the guy behind you then you are at fault. If you did it because you thought something might cross the road and just wanted to be safe then it's not your fault even if nothing crossed the road or nothing was really there.
Does it require a jit then or more like llvm?
Huh, Foundation was developed for EOF? (Enterprise Object Framework; it was actually very much like Rails ActiveRecord). I did not realize that, I always figured it came first.
This is anecdotal, but I'm always looking at the road. If the car starts braking, (and this isn't exclusive to Tesla,) I already know if there is an obstacle or not, and my foot is always hovering over the pedals.

I feel like such a shill responding to these comments, but based on my experience, these same drivers would get into accidents in other brand's cars as well. We only focus on the story because it's Tesla.

I'm not sure what the solution is.
> Let's not forget that Russia and Ukraine had a ceasefire negotiated in May whereby Russia would have pulled back to the pre February lines, and that Boris Johnson rushed to Kiev to intervene[1].

That is the exact opposite of what the referenced link say:

> According to multiple former senior U.S. officials we spoke with, in April 2022, Russian and Ukrainian negotiators appeared to have tentatively agreed on the outlines of a negotiated interim settlement: Russia would withdraw to its position on February 23, when it controlled part of the Donbas region and all of Crimea, and in exchange, Ukraine would promise not to seek NATO membership and instead receive security guarantees from a number of countries. But as Russian Foreign Minister Sergey Lavrov stated in a July interview with his country’s state media, this compromise is no longer an option. Even giving Russia all of the Donbas is not enough. “Now the geography is different,” Lavrov asserted, in describing Russia’s short-term military aims. “It’s also Kherson and the Zaporizhzhya regions and a number of other territories.” The goal is not negotiation, but Ukrainian capitulation.

https://archive.is/1V1Wv#selection-4391.57-4411.207

There's a bunch of other things in this comment that also reflect standard Russian propaganda. For example this is straight from Russian claims but has no basis in fact:

> The result of that 7 year effort is that the sanctions politics on Russia have damaged the western economies way more than Russia.

It's true that Russia spent a lot of effort protecting their economy from sanctions. But the personal sanctions on individuals have been effective.
Great quote, thanks for sharing.
How long does that semi take to accelerate, how long to break, and how well are its drivers trained? At least where I live, Euro specced semis are slow to get going, have extremely good brakes and decently trained drivers. Same cannot be said for your average SUV driver.
I've heard it often remarked in my circles (wryly and bitterly) that "bankruptcy and gofundme are the American health care plans of choice". So yes, it would seem that for a lot of stuff the plan is just to let it go to collections and then default for as long as you can get away with it.

(n.b. I have some relatively significant physical health issues, so if I can't afford medical tourism and/or get on an absurdly good plan before I'm 26, I may end up being forced into a strategy like this)
The deeper problem is the demographic pyramid. We have lots of old people and the younger generation is smaller. Of course there's not enough caretakers, which is why the US systematically imports them from other countries, leaving those countries with the same problems.

Ultimately, there is no escaping the market. No amount of public-funding, socialism, or outright communism can escape the simple facts of supply and demand. Right now, medicine is expensive because demand exceeds supply. Do insurance companies and bad administrations exacerbate that? Yes, of course they do. But they are only exacerbating an existing problem.
The alternative you ask for then, is for people to merely die and suffer in pain while doing so. In the past, that's what we did, because there just was no option for such people.

I looked up Ivan Illich, and this essay critiques modern medicine as creating "lifelong patients." That indeed is what has happened, but the alternative is for people to just die. The reality really is I don't really believe anyone ever took death "peacefully" as he puts it here, they too raged and cried and felt all the painful emotions people feel today, they just would actually die and so those emotions would eventually cease. The argument then should be about values: do we actually value human beings as sacred, important things, and their lives are worth preserving just because they are human? The only way you can accept his argument is your answer to this is no.
Adderall is speed. It has numerous negative side effects, is overprescribed, and in many cases is unnecessary. The fact that we so easily prescribe it to children is horrible, and I suspect it will be looked back on as legal cocaine of the 1900s is today.

Adderall is bad.

Source: spent many years on adderall. Deeply regret it.
The scenario here is one where 99% of people's jobs have been automated out, so I'm kind of assuming that there are tons of robots and the 1% are somehow necessary to control the robots. And then there can't really be a revolution because the 1% will just tell the killbots to kill the rebels.
I don't consider this:

guard let foo = bar else {
...
}

to be any better than this:

if bar().is_none() {
...
}

For the record, I find the guard keyword totally unnecessary and I still have NFI what's wrong with this in Swift:

if bar == nil {
...
}

I also totally disagree about memory management being "easier" (at least with C-interop), because I think Swift's handling of UnsafePointer/UnsafeRawPointer/UnsafeBufferPointer/mutable variants/withMemoryRebound/etc isn't particularly easy to follow at all.

To be clear though: I don't think Swift is a bad language. It's perfectly adequate. But it's the fact that Apple decided to force Yet Another Programming Language down our throats that, in my opinion, offers no real advantage over many of the other choices available at the time.

"We're Apple and you will only use a language that we control" was, IMO, the driving force behind Swift, not the inherent superiority of the language itself.
I don't think I've ever taken a maths class where calculators were allowed (or made sense), from elementary through university.

The problems were usually designed to emphasize the thing you were trying to learn at the time, so once you were beyond simple arithmetic then "I think I'll need a calculator for this step" was a clue that you were on the wrong track anyway.
I'll keep saying this until it happens...the biggest AR use case, for me, is replacing the television. The fact that we all have giant boxes as the centerpiece of our main rooms is something unnatural that we take for granted. I'm not sure how far AR devices that allows for social viewing of television content are away, but I feel in my bones that it will happen and when it does children of that generation will be confused as to what a television was and why it was needed.
Nuclear reactor mystery solved, with no need for new particles
Make it $29 I'd give it a try. From the looks of it, HoloKit is just a piece of plastic with optics and some app designed for its use.
I find this product fascinating. The design looks ugly, but I can see how they got there. Mixing the real world and iPhone display in the way they are is super interesting. As is the decision to leave the edge of iPhone for touch input. Also interesting to see them leveraging Apple technologies so heavily. I can't really see this gaining any real market, but I like some of these design choices.
My guess is that I made a mistake and I skipped the "He" in the GP comment.
It may be hard to believe, but this was the same argument I heard about calculators in the 80s. All that's really changed is that calculators are "normal." AI tools aren't going anywhere. They're just stackoverflow with fewer steps. Pretending they don't exist in education means students will be disadvantaged when they get to the real world and the thing that matters are results.
As someone whose built stuff for both, I agree. With VR I can test things out on my computer and be reasonably sure that, say, the things I see in the Unity Editor will be the things I’ll see later in my headset.

Current AR workflows have tons of moving parts, are harder to test, and have all kinds of unreliable points of failure that are difficult to overcome (like finding a flat plane to use as an anchor and then hoping your content doesn’t show up backwards or upside down). It’ll improve over time for sure, that’s clear, but the current tools are not as easy to use as they probably should be.
Well said. "I don't know how to play in your fantasy world, since you have not developed it very well" is perfect, consider the saying stolen!
Why not? Because some article said so?
Wasn’t this bound to happen? The US population is aging rapidly, their need for healthcare services continues to grow, yet there are limited resources.
I’ve had an elderly parent go thru COVID, fall and get badly bruised (but nothing broken), develop a gastroenteritis - and my goal was to manage them at home and avoid a hospitalization. Fortunately it worked out, but I know it won’t always.
The only way to manage this onslaught to the system is to be able to better monitor and manage patients as outpatients - so that the heart attack, stroke etc can be avoided. The system is not quite there yet, but it is heading in that direction.
I've been doing this for ages and am a big evangelist of CTEs. Don't just copy and paste the same hairy sub-query over and over!
Three always-present perspectives: The system you think you have, the system you wish you had, and the system you actually have.
Those are a lot of words that don't actually tell us what you think MLK's values are. Until you do, you didn't actually refute anything.
Must be since it doesn’t support Ipads (now that must be a big headset!)
Funnily enough, according to official government racial classification scheme, the white looking immigrant Brazilian of European ancestry from your example is a non-Hispanic white, whereas native Spaniard immigrant from actual Spain is Hispanic white.
I mean, that's one solution to a similar problem - but we also have a fixed number of residency slots and an increasing number of med school graduates, including overseas ones who could come to the US and complete their training in US Residency programs.

https://www.aamc.org/news-insights/medical-school-enrollment...
Agreed. If your employer is trying to skimp on cost you can end up with some really poor options. Lesson there is to find an employer that offers generous benefits. Easier said than done, I know.
Amazon pricing is inflated... best to buy from one of the other sources listed on the main site.
Everyone seems to be overlooking that the costs for this are insanely high. This has to be funded by tax dollars. Why should we use taxpayer money to try to annihilate every other single living organism in the galaxy?

The reasoning that "there's a non-zero chance that if we don't, someone else will do it to us" is practically useless reasoning, especially from a policy perspective. That's like saying that the laws of quantum mechanics prescribe a non-zero probability to a planet-sized nuclear bomb materializing next to Earth and instantly exploding, demolishing all life here, yet we don't make policies based on such vanishingly low probability events.

Plus is every sentient species going to be this genocidal by nature? Humans do have a history genocide, but in civilized society today, we do everything we can to avoid war. The United States clearly has the military might to invade any number of nations in the world and easily conquer them, yet we don't for a whole host of totally valid and logical reasons. Heck, we pass laws (I assume for good and justifiable moral reasons) to protect indigenous people even though we have the might to completely obliterate them.

Everything about the Dark Forest is completely impractical when thought through with the smallest amount of sensible reasoning.
“Balls to the wall” is an aviation idiom, similar to “maximum thrust”. It refers to the ball on the end of a throttle being pushed to the firewall when wide open.

I don’t know if it’s the only error made by the HR rep that through this together.
Curiosity killed the cat. We’ve developed disgust and taboos and physiological responses like vomiting to safeguard our interactions with living things that are small enough to eat.

Perhaps an advanced form of life/intelligence that has survived contact with various others would be guided by some form of wisdom/disgust/caution/discretion. It would not be surprising if they noticed little clues like our rapid deforestation, rising temperatures, shrinking ice caps, nuclear detonations… which would make us seem slovenly or likely to have “poor friendship skills.”
If you don't want to pass a car you just drop down the speed on cruise control and widen the gap between the car you don't want to pass and you. It really doesn't matter if you are 10m or 100m behind him if you are not going to pass it.

And if you get too far behind him you might bump up the speed a notch.

And if somebody gets in the gap it's even better because they are going to eventually overtake him just like they overtook you and overtaking one car at a time might be safer than two cars at once.
> The more I witness this the more I realize that having a single payer is necessary to actually break up enough of the monopoly to get some traction on this problem. Until then there are too many middle men and bureaucrats blocking this change.

By "single payer" do you mean the European model of "socialized" healthcare? That may be necessary (I don't know) but it's clearly not enough.

I'm in France, and I hear the exact same complaints from physicians here [0], and the hospitals seem to be in terrible shape. People quitting or being on leave, hence understaffing, so more people quitting because of burnout, etc.

[0] Basically, the gist is that for some time, hospitals have been run "like an enterprise", seeking (cash) efficiency above all. There was absolutely no slack in the system, so when COVID hit, medical professionals ended up in a terrible situation. This situation has not subsided even after the epidemic became less of an issue.
Your own personalized moments in time play back at Times Square. Or subtlety getting me to learn Spanish by injecting it on things… actually hang on while I parent that last one.
>Number three recommendation: pay up for/seek out a cadillac insurance plan from a high quality insurer like Aetna or United with a low deductible (not high) and low copays. Why? Makes the patient experience much better on the back end with much less paperwork if you do engage the system.

Why would the size of the deductible/copay affect the amount of paperwork? My naive assumption would be that the amount of paperwork would be O(1) with respect to the amount of money changing hands -- same way you will always be asked if you want a receipt in a store, regardless of how much stuff you bought.

Also, how do I know if an insurer is "high quality"? Neither Aetna nor United is available in my state.

(Thanks in advance for any replies -- I still have about 3 days during which I can switch my insurance for 2023; was thinking of switching to a high-deductible plan since I don't anticipate using my plan much in 2023)
I'm also curious how turning some of those into views would compare, but this is also probably dependent on which database.
Interesting observation.

I worked on autonomous vehicles (in vision) at Daimler in 1991. During one of our test sessions, on drying pavement, the vehicle abruptly slammed on the brakes and refused to proceed past a point where the vision system could see a symmetric about a centerline set of horizontal edges on the pavement. It tightly fit our (hand-coded, being 1991) model for a car ahead. We had to revert to manual control and drive back to our staging area and wait for the track (set of runways and taxiways at a disused airbase) to finish drying.

Obviously, the state of the art has significantly improved since then, but some fundamental risk of misinterpretations could easily remain.
Existing AR apps lack stereoscopic support and lack interaction model needed for this. But wouldn't be hard to add support for this. Basically just a presentation and UI level change.
well it’s easier to face when you are financially independent

we did have a 12 year bull run after all
Definitely. I guess one can climb the ladder by first programming the NES and then SNES and just go up, maybe even learn some Japanese to immerse in the life of a Japanese game developer in the 80s/90s. Could be a long but interesting side project.
Homeslice in Shanghai is fantastic
You use the words "red-tape" and "inefficiency" there in a very patient-centric way.

Whereas from a profit point of view fewer doctors is good, more insurance red tape is good, effeciently increasing bills and billing customers is good.

The health system is set up to maximise profits. And it is doing so most effeciently. If you want a different outcome then you need a different system.
Readability over optimization is often a reasonable compromise, don't you think?
Some things should not be ruthlessly efficient; what appears to be waste is tail risk premium. Alas, that “efficiency savings” becomes someone’s bonus or profit, and a loss for the rest of us.
But you do still need the stuff they are made of...

There is much more useful mass of material in a planet than even a pile of asteroids... In fact, until you start gathering up the entire Oort Cloud (current best estimates put the entire Oort Cloud as x5 earth masses). From the inner solar system you don't even have as much mass in asteroids and comets to equal the mass of smaller "planets". It's not a stretch to imagine that you want concentrated mass to facilitate efficient industrial scale operations. It takes time and energy to drag lots of small mass together to build a big interstellar ship. So your hypothetical interstellar civilisation might want to break up large rocky planets into smaller "low gravity" chunks for processing, which if your an interstellar civilisation, is probably best done by slamming nice dense metal mass into the planet at high speed to throw big molten chunks of it into orbit, you want larger than dinosaur killer size glancing hits, not planet cracking "the moon hits earth" sized ones. This whole process gets much easier once you strip away the atmosphere as well.
Unfortunately we seem to be stuck in a local maxima, where we do not yet know how to do permanent regeneration to keep someone well in the healthy zone, but also know how to keep people into what can best be describe as "Not yet dead" (but certainly not "healthy" either).

Groups focused on longevity and removing age related diseases, in theory, should eventually get us to a point where the best parts of youth (including learning and plasticity) should make it unnecessary to have children any more, save for replacement of those who die from other causes (and maybe populating other planets etc).
Don't twist your source's words:

"Putin seems uninterested in a compromise that would leave Ukraine as a sovereign, independent state—whatever its borders. According to multiple former senior U.S. officials we spoke with, in April 2022, Russian and Ukrainian negotiators appeared to have tentatively agreed on the outlines of a negotiated interim settlement: Russia would withdraw to its position on February 23, when it controlled part of the Donbas region and all of Crimea, and in exchange, Ukraine would promise not to seek NATO membership and instead receive security guarantees from a number of countries. But as Russian Foreign Minister Sergey Lavrov stated in a July interview with his country’s state media, this compromise is no longer an option. Even giving Russia all of the Donbas is not enough. “Now the geography is different,” Lavrov asserted, in describing Russia’s short-term military aims. “It’s also Kherson and the Zaporizhzhya regions and a number of other territories.” The goal is not negotiation, but Ukrainian capitulation."

> Russia and Ukraine had a ceasefire negotiated in May whereby Russia would have pulled back to the pre February lines, and that Boris Johnson rushed to Kiev to intervene

Putin has never wanted to settle thus far. It's not due to Boris, and your single source says nothing of the sort. It's a Russian cover tactic.
Lol I live in a big city with a lot of terrible/rude drivers and literally until I read the comments here, I thought there were just a ton of super annoying people driving with their high beams on at night.

I still drive a sedan while it seems like 99% of the world has moved on to driving monster trucks and mini school bus sized SUVs. I hadn't considered the impact of the height difference.
D&D’s Open Gaming License May Have Become a Trap