skysight-inc/HackerNews huggingface dataset:
Thank you for all your work, which must largely be a thankless task.
Are there studies on this, or is this just what we expect from economic theory?
I don't know much about Haskell but I'd say in any language you shouldn't write code to show off your erudition. Doing that kind of thing in production code is hardly the mark of a truly senior engineer. If the code is the best way to solve the problem, though, why is it so inscrutable in this language?
Canada kind of does.

As a physician, you have to pick either the public or private system. You can’t practice in both.
That's not a problem really. Good code is easy to read and mantainable.

Regarding the tee operator: it's a solved problem, you have ot import it from itertools[0], which should be where any experienced python programmer would strt.

[0] https://docs.python.org/2/library/itertools.html#itertools.t...
1:25 emergency room visits results in medical bankruptcy. That doesn’t sound anecdotal to me.
Geeze - I'm all for freely discussing engineering but wow I'm not sure I've ever seen a more directly dangerous piece of work.

For those who haven't read what this is about: The system is designed to stop weapon systems working outside specific geographic areas. This is so (for example) the US can arm a specific group in a conflict and if (when?) those arms fall into the wrong hands they are useless outside the area of that conflict.

This work discusses weaknesses in the lockdown system. It's pretty advanced work, so it isn't like a script-kiddie is going to work this out themselves.
The instructions no longer tell the whole story though. Maybe you can tell whether your code is vectorised, but you can't tell whether your data is coming out of main memory or L1 cache, and to a first approximation that's the only thing that matters for your program's performance.
Yes can be
> The only way someone like Trump comes into the scene is because things have become so putrid in politics that people decide their only option is to send someone into the White House who is perfectly comfortable throwing feces around.

That's almost poetic. And quite accurate in my particular case.
This sounds like an architecture problem, not a language problem. Can you elaborate?
>Libraries, maker spaces, men's sheds, and community gardens all fill some of the role you're talking about

I see these around the city but unfortunately I'm living with my parents stuck in the suburbs and it seems like there is nothing around.

All of the bars I have been too have been loud and packed, I feel that there is essentially 0% chance of meeting someone there. It has only been useful if going with a group and getting food/drinks so we can take one of the outdoor tables.
Yeah, if the Americans on here were smart, they would investigate things about their healthcare system further, especially when it comes to being on Medicare and retired. For that they should study the Kaiser Family Foundation's Website, backwards and forwards. One can end up in a situation where they need an extremely expensive, lifesaving medication, that subjects them to Medicare Part D catastrophic coverage levels. I have Medicare and if I lose my employer based insurance coverage through a family member, I will have to pay $50,000/year to stay alive. This is something I cannot afford as I am disabled.

Not to mention, the third leading cause of death in the United States is preventable medical errors. If you do not believe me, then Google it. You can go to the absolute best institutions, hospitals, and doctors, but you cannot evade a statistic like that. It is way to pervasive. Our healthcare system, along with is quality, are absolutely deplorable.

But the good news is, most people on here are educated and are skilled workers. They can emigrate to other countries. I would recommend the European Union countries in general, but obviously Western Europe and Northern Europe are better. But, anywhere in the European Union really is a step up from American-style care.

I am a European Union citizen. I am Croatian, besides being American. I am leaving the United States soon. I cannot wait to start a new life and adventure. I am tired of living in fear about my healthcare.
I thought Go did use DWARF for debugging info. Your remark sound as if some easy optimization was ignored. Can you please elaborate?
Infiltrating Python’s Software Supply Chain
Ask HN: I think I need a new competitive outlet. Any recommendations?
I've realized that I'm not feeling very challenged. At first I thought it was because I'm not working on any problem that's super interesting at work but after talking to several friends I made the connection to me playing Dota 2. Whenever I've stop playing Dota, I end up feeling incredibly bored, no matter what other leisure activity I fill that time with.

While I'm decently high rank in Dota I can't help but feel that playing the game is a waste of my time, so I'd rather not have to resort to it as my competitive outlet.

The thing I enjoy most about playing Dota is getting better at the game. Basically I liked the fact that I could see my rating number go up over time. I'm not sure what kind of hobby or activity I'm looking for. I think I want something that's tech career related that I can put my time into.

Has anybody else been through something similar?
High School Fizzle Syndrome – Predicting Future Success
Given the high number of accomplished people on HN, I'm curious about the phenomenon that some people call "High School Fizzle Syndrome" -- when former high school superstars fade into the background in their adult life. In this case I'm referring more specifically to the academic superstars rather than, say, athletic superstars.

At my high school there were a large number of academic superstars. These were people who routinely placed first in national and international competitions, were class presidents, had perfect GPA's and standardized test scores, were Rhodes Scholars, and went on to gain admission to coveted colleges like Harvard/Yale/Stanford/MIT. The fierce competition was encouraged by teachers and parents alike. The superstar students complied with the demand -- these were highly motivated, extremely hardworking and talented individuals. The consensus was that, as a result of their early impressive achievements, they were destined for great things later in life.

In hindsight, those traits and accomplishments were not a predictor for future success. Looking back at those high school superstars specifically, their careers in the present day range from university fundraiser to eye doctor to management consultant to employee at a large company. All respectable careers for sure. Yet, in no case does it seem like the person benefited from the work they put in during high school to distinguish themselves. In other words, their present-day careers would have been just as achievable if they had been regular high school students without distinctions.

The message was so clear: If you do this, you get X, where X is defined as some combination of the perfect job, the perfect career, great personal satisfaction, the admiration of your peers, and so on.

Why is this fable of early achievement as a predictor for future success preached so consistently in our society, when there is little evidence to support it?
They aren't useless, they are a direction which could be pursued but isn't. Why do you think it takes a one out of a million type of person to develop new technologies? Everyone dovetails into the same overarching implied narrative that everything we see has become that way based only on a few simple laws and everything was empty before that. So all our discoveries tend to cement that narrative because we aren't looking for anything else.
I've seen state-of-the-art low-latency trading software written in C# or Java.

You should not be doing any memory allocation in the critical path anyway, so garbage collection is hardly a relevant factor.
If you are writing C++, any field! Just use std::shared_ptr and std::unique_ptr from the standard library, along with std::make_shared and std::make_unique.
If their business model no longer works in France, why should they continue the market?
Disclosure: I work on Google Cloud (but this applies generally).

There seem to be a lot of arguments about disk space (arguably free in 2020), memory (free-ish because as tytso points out, they won’t get backed) and then bandwidth.

I think most people saying “bandwidth” might mean “time to fetch”, because GCS, GCR, S3, etc. all have free egress on the transfer from them to GCE/EC2. If you have a self-hosted Docker Hub or something on an EC2 instance, that’s not the case (you may pay Zone to Zone egress of $.01/GB).

If you were paying a penny per gigabyte egress, a 100MB-ish binary is only .1 GB and therefore at best 1/1000th of a dollar. On the 16 vCPU hosts that CockroachDB prefers (see their recent benchmarks), that’s equivalent to about 5 seconds of runtime.

A fair retort is that in container land, this becomes death by 1000 cuts as each binary includes all the same stuff over and over again (for minikube, the .iso is nearly 1 GB [1] now, but not because of the 50MB binary itself).

Even so, a 1GB image takes almost as long to pull from a object store like GCS as a 100 MB image (at many Gbps, the constant factors dominate). If you’re trying to run something this large as a function on Cloud Run or Lambda or Knative, you’ll probably be sad (you’ve burned about 800 vcpu seconds, economically, of compute time) but that’s why there are layers.

tl;dr: your 50 or 100 MB binary doesn’t “cost” much, but a 1 GB container image without shared layers does.

[1] https://github.com/kubernetes/minikube/issues/5013
I did compulsory military service in my European country.

I agree that is had a big advantage for me that I met people I would never have met otherwise, and would not have believed existed.

> Unfortunately it comes with the baggage of you know, killing people

I disagree in two ways.

1) A professional army, which is the realistic alternative, kills people just the same, should war happen.

2) By far the biggest baggage in my view is the involuntary servitude being forced on innocent young kids. That is not worthy a free country to me.
My wife is a medical billing expert (a billing executive at a mid-sized (multi-doctor) practice).

You are correct. It took her two years of study (with full time job) to pass her medical coder exam, and she's only really an expert in her area of expertise. There are dozens of areas of expertise. It is virtually impossible to navigate the system without an insider to assist.
I remember hearing about this portion of the App Store policy before - where "mini app stores" are essentially banned. Can anyone link to this specific portion of the policy? Curious to see what it actually says.
Instead of "scan" have you tried telling people to point their phone's camera at it?

"Scan" sounds to them like some separate action that they would need to know how to do. But at least on iOS all it takes is opening the camera and pointing it at the code - you get a pop up notification asking you to join the network.

I bet people know how to point the camera at something even if they don't think they know how to scan it.
Why would a digital signature trump actual-indellible-ink-on-skin as evidence of my wishes?
How... do you get fine PC gaming parts from working McD?
I believe the reason they are banned is to avoid a situation where doctors refuse to accept patients who only have Medicare-for-all insurance, and only care for patients who have private insurance.

Since private insurance is willing to pay far higher rates than Medicare, this would lead to Medicare-for-all failing. Doctors already exist who refuse to accept Medicaid-insured patients because the reimbursement rates are low compared to privately-insured patients.

Everything I can read about this plan says it would ban plans “on top of” Medicare, and contrasts it with other countries like the UK, Canada, and Denmark, which do have supplemental private coverage for medically necessary services available.
Why are they not considering keeping the pre 1.2 compressed runtime.pclntab and have the data be decompressed to a separate file on first run. This way, memory footprint is kept low whilst keeping executable size down?
Does the EU have precedent like the US common law system does?
I'd actually suggest Flutter for the same reason. As a fresh entrant to mobile dev, I found Xamarin apps to be peculiarly unstable, often crashing for no apparent reason.

On the plus side, though, tooling for Xamarin is a lot nicer. VS is definitely a first-class citizen, and being able to launch on a remote iOS device/simulator from inside VS is a definite advantage.
I don't know Haskell but I have worked in Scala. It's an adjustment to express yourself in functional idioms, but the payoff is that it's easier to reason about, test, and debug (not to mention parallelize) side effect-free pure functions. I often reach into this bag of tools even when working in other languages.
The same thing just happened to me. I scheduled a physical which is considered preventative which means it's free and covers things like the general blood panels..I go in, they order a blood test and a couple weeks later I got a bill for $800. I called the insurance and they said the doctor billed me as a "visit" and not a physical and I would have to call the doctor to have them change the billing code. So I did that but they wouldn't change, they said that because it was my first time at this office that they have a policy that all first appointments are billed as visits. keep in mind that this was stated no where and this was the first I was hearing about it. Anyway they refused to change the billing code and I'm stuck with $800 bill.
great idea...I wonder if a 3rd party app could enable this or if that type of access is currently closely held? I'd only consider software that has super low level hardware access so you could basically control electrical access to that part of the phone's circuitry (so backdoor features can't be built that make sneaky connections).
I'm currently working for a company whose first 4 technical hires (other than the CTO, who wasn't always involved in day-to-day development) were juniors. This was a terrible idea, as there are basic architectural mistakes baked into the codebase all over the place, and lots of issues with data integrity and things that only work most of the time. They'd have been better off with a single senior.

Agree that it makes sense to hire juniors once you've grown though.
From wikipedia:

Proposition 13 alters the balance of the housing market because it provides disincentives for selling property, in favor of remaining at the current property and modifying or transferring to family members to avoid a new, higher property tax assessment.[36][37]

Proposition 13 reduces property tax revenue for municipalities in California. They are forced to rely more on state funding and therefore may lose autonomy and control. The amount of taxes available to the municipality in any given year largely depends on the number of property transfers taking place. Yet since existing property owners have an incentive to remain in their property and not sell, there are fewer property transfers under this type of property tax system.

California also has high rates of migrants from other countries and states,[38] which has contributed to more demand for housing, and it has low amounts of moderately priced housing due to the increased property tax liability after a sale.[citation needed] In effect, because the different tax treatment makes real estate more valuable to the current owner than to any potential buyer, selling it makes no economic sense.
Isn't this why those jobs also have huge churn? The people who can get out, do. Leaving only those without the ability to find another job.

I know as a developer I have churned quickly when it turned out that "occasional overtime" meant constantly babysitting systems that were never finished, just patched together enough to run for a day without obvious disasters. That was the explicit metric in one place, they literally would not address a bug unless it caused the system to fail before the daily restart. "daily" meaning some developer had to wake up at 2am and remote in to manually restart a bunch of things in exactly the right order, then debug and fix any newly revealed problems (because this was also when new versions were started in production for the first time).

My record so far is less than an hour in a new job - I turned up for my first day and one boss was berating the other boss over the phone. As soon as they saw me they handed me the phone and ran out of the room. I got an earful before I managed to say "Hi, I'm psychlist and I was supposed to start working here today". I did actually let them talk me through fixing the immediate problem, then I hung up and walked out.

Don't work in those places. Just... don't.
Reminds me of Avisynth. Everything it does can be done by ffmpeg command line but prettier.
How is that an optimum? I think most all of us can agree that we want people to continue making games.

You may think it's inevitable, that's fine (though you'll find plenty of people who disagree), but that doesn't make it optimal.
In my opinion, any comment prefixed by TODO, XXX, or the like should not survive past the review stage. Either fix the problem immediately or accept that it's going to be wonky forever.

Edit:

Amending here to avoid replying to ten different threads individually.

1. Long-term improvements should be managed by a ticket tracking system. The code is not the correct place to manage that.

2. Most of the disagreements below seem to come down to nomenclature differences.

In my own work, the code is liberally sprinkled with "Note:"s. These are, as others have pointed out, useful for providing context of what is going on, why, how it is non-optimal, etc.

TODOs that I come across tend to be of the "You ain't gonna need it" variety. If you can get a pull through review as-is, then the thing wasn't actually a "TODO", and if it was, then it should be added as a ticket to the backlog.

XXXs tend to show up in the reviews I do as code that is explicitly meant to be fixed before the pull is merged.

So to summarize:

1. "Note:"s in code are great.

2. "XXX" shouldn't survive the review

3. "TODO" should be handled by the ticketing backlog to better separate out "actually needed" from "theoretically nice, but not necessary in practice".

Further, things that are "TODO" today often make zero sense as "TODO" in a year when the code has grown and evolved more, but since someone put it in as a TODO, I find that they rarely ever get removed since "surely someone knows what that means" (but that person is usually either gone or no longer remembers).
libunwind[1][2] should unwind correctly if a compiler emits correct DWARF CFI unwind table (required by C++ w/ exceptions; available for C in gcc/clang with -funwind-tables).

[1]: https://github.com/llvm-mirror/libunwind

[2]: https://www.nongnu.org/libunwind/
"If you have any comments about our WEB page, you can write us at the address shown above. However, due to the limited number of personnel in our corporate office, we are unable to provide a direct response."

:-)
Witcher writer Andrzej Sapkowski Tops Amazon Author Rank
Building a Real Lightsaber [video]
iOS's only security issue is users not updating and being vulnerable to well known vulnerabilities. Neither iOS nor Android will survive a truly targeted nation state attack, but for most people 0-days aren't worth protecting against.

The only exception to this is the checkm8 vulnerability, which can be performed on an A11 and older chips (so iPhone XR/XS/XS+ and 11/11 pro/11 pro max aren't vulnerable) from DFU mode, which doesn't need the device passcode.
Rust gets pretty close to this.
Even if they can all be reduced one one generic complaint, seeing the specific manifestations of is spelled out is quite helpful.

In the same way, we teach students the derived results of mathematics, instead of just telling them the axioms and assume they can figure out the consequences themselves.
This "pclntab" format duplicates what DWARF does, but is not DWARF: https://golang.org/src/debug/gosym/pclntab.go
Counterpoint: our work infrastructure for symbolizing stripped binary stacks sucks. I'd love to get backtraces with symbols from the field.

But also this entire section could be compressed and seekable and only expanded on demand. No need to leave it as a bloated uncompressed blob.
He has had three years so far but besides tough talk I haven’t seen much progress as far as health policy goes.
Is there a Raspbian + dumb (non-monitoring) monitor that’s smarter?
I use TODO in my code all the time as shorthand for: "This code is functional, but if you are going to do another iteration you may want to consider the following improvement or optimization."

It's not at all meant to be to be like an item in a TODO list. Code would be a terrible place to keep that.
I'm German and only just heard about this now. I wonder where the money goes, both in theory and practice...
The dirt poor people who gather at McDonalds have zero political power, so the local government will never fund a space for them.
worked great on my ios device
>You also cannot switch back to traditional Medicare ever, once you get a Medicare Advantage plan.

You can change plans during the annual enrollment period, from October 15 through December 7. You can enroll in or switch advantage plans or just go back to plain Medicare.

If you're on plain Medicare, you can also switch to a 5-star advantage plan between December 8 and November 30.

https://www.medicare.gov/sign-up-change-plans/when-can-i-joi...
Belated edit: I forgot to mention that you must also prevent cellular and WiFi connectivity on the phone itself. The Tor Project article recommends airplane mode on Android. But it mentions the option of wiping baseband firmware. Which apparently also takes out GPS. Probably risky, though.
> It's entirely possible (also for us) that scientific and technological advancement plateaus.

If technology does plateau and did so near where we are now, it would be extremely unlikely, because it would require two unlikely but unrelated events both happening. Mathematically, you would multiply the probabilities of each together.

> Also how is a "great alien war" the "most logical" explanation for black matter?

It's distribution is quite odd. In some galaxies but not much in others, and tends to be around regular matter even though it there isn't much force keeping it that way.
If you ever tried to develop software on phones before the iPhone, you'd understand. A buddy and I developed a pretty cool 'Cocktail App' for the Danger Hiptop.

After many months of frustratingly going back and forth, we were not able to get it onto the Hiptop app store because the carrier (T-Mobile) did not want to be responsible for someone using a recipe to make a simple bar drink and then going off and killing someone. They eventually added a 21+ category and we still couldn't get it onto the store. Never mind the fact that someone could just use the installed web browser to view the same exact content.

Of course you'd think that we should have known that we might get rejected... but the issue was that Danger couldn't even talk to the carrier until the app was written and they could physically show it to them. So it was one of those things where we knew the app might get rejected, but we took the risk anyway. It was a good learning experience.

So yes, this weird stuff around getting software onto phones has been going on for a long time. Apple was one of the first to take the control away from the telco. I don't know if that is better or worse, but it changed the economics substantially.