skysight-inc/HackerNews huggingface dataset:
> Pain is a minor consequence of disease

There speaks someone young and healthy. Some conditions are extremely painful in the long term.

"It is estimated that more than 100 million people suffer from chronic pain in this country,[11] and for some of them, opioid therapy may be appropriate. The bulk of American patients who need relief from persistent, moderate-to-severe non-cancer pain have back pain conditions (approximately 38 million) or osteoarthritis (approximately 17 million)."

Source: https://www.drugabuse.gov/about-nida/legislative-activities/...

"aggressive marketing by pharmaceutical companies"

"United States their biggest consumer globally, accounting for almost 100 percent of the world total for hydrocodone (e.g., Vicodin) and 81 percent for oxycodone (e.g., Percocet)"

That does make it sound like a problem created by pharma drug pushing on TV. But that doesn't mean the pain isn't real either.

Really the whole thing needs to be seen as a widespread public and social health problem - which is exactly the sort of thing the US system is set up to avoid seeing. Healthcare is not just a matter of individual responsibility or a contract between someone and their employer.
Doing C/C++ without -Wall, and/or not continuously fixing the things it shows[0], is pretty insane to me. The compiler is there to help you.

--

[0] - even if by ignoring them, when you're absolutely sure what you're doing.
I really like being able to read code in source control historical diffs, pull requests, etc. IDE shortcuts aren't a full solution; not everyone has time to check out a branch at that commit, create a project (if necessary), fire up an IDE (if there's a UI available) just to understand a line of code. Similarly, static imports at the top of the file are usually remote from the point of use, so you lose that context when viewing a diff.
It appears to have been published somewhere between June and August 2015. (It links to another article published in June, and archive.fo archived it in August 2015.)
A more interesting command is /bin/[.

Yep, it's the same as /bin/test, but basically requires the last argument to be a ]. Typically /bin/test and bin/[ are hard links, that is, they are physically the same file and share the same inode(s).

You know, so you can type

if [ $foo = $bar ]; then
yes
else
exit
fi

This actually runs the command /bin/[, except most of the time it doesn't, because it's built-in to the shell.

As as side-note, an article like this should at least mention which OS and shell the author is using.
Show HN: Umbrella – the all-in-one physical and digital security advice app
What is Eurorail?
How to Resist the Self-Improvement Craze
Should compile fine, it'll just evaluate to a goto label named "https" and a comment after
You either have a high pain threshold, or just haven't experienced severe pain. Extreme pain can cause neurogenic shock.
Perfect and Fast Random Floating Point Numbers
The OP's point was about morality, and it is as immoral as cheating in any system. Whether it's a crime is entirely different. Crime necessitates a judicial system, and the whole framework of crypto currencies has be outside the purview of any government or judicial systems. So the word crime itself doesn't mean anything in this context. Secondly, your argument relies heavily on the gravity of this act, which is entirely derived from the implied value of the coin. In isolation, this is no different from someone cheating in a computer game. Note that you cannot make the computer game analogy with other markets and banking systems easily because of dependence on other inputs. This, in contrast, is completely isolated from the rest of the world. As such, the guy may not do anything with the coins, and they would cease to exist (in their universe much like how they came into being). Would your argument still hold ? The fact that people have created a secondary market out of the coins, which came into existence out of thin air in the first place, doesn't automatically determine the criminality of the act.
With no guarantee that the name corresponds with what it does (particularly 5 or 10 years in the future) and your parameter list doesn't have names at point of use (what does the 'true' argument do?) and may be overloaded.

Factoring things out into single-use subroutines is a real mixed bag. It's not a clear win at all, not at all.
On CRTs the pixels on PC monitors were arranged differently to TVs, which is why your Commodore screen was sharper than the typical console hook up.

From what I recall (it's been a long, long, time since I've studied this) PC monitors were a typical square grid layout, much like how LCDs are. Where as TVs had the odd and even lines offset by half a pixel - a bit like a hexagon grid.
That has been the problem with Wirth languages, he has written on an essay that he was kind of naïve to think that people would care for quality and flock to Algol derived languages.

The Russians are quite active in all Oberon derived languages, not only CP.

http://oberoncore.ru/

http://www.inr.ac.ru/~blackbox/

http://www.inr.ac.ru/~info21/
> Famously, he also strictly enforced his simplicity also on the compilers, by insisting that e.g. things like optimizations should "pay for themselves" by speeding up the compilation of the compiler itself more than the extra code in the compiler would slow it down

I thought I remembered a similar approach being recommended on the Conclusions page of the Computer Language Benchmarks Game, and it turns out it's a direct reference to Wirth [1]:

> In order to find the optimal cost/benefit ratio, Wirth used a highly intuitive metric, the origin of which is unknown to me but that may very well be Wirth's own invention. He used the compiler's self-compilation speed as a measure of the compiler's quality. Considering that Wirth's compilers were written in the languages they compiled, and that compilers are substantial and non-trivial pieces of software in their own right, this introduced a highly practical benchmark that directly contested a compiler's complexity against its performance. Under the self compilation speed benchmark, only those optimizations were allowed to be incorporated into a compiler that accelerated it by so much that the intrinsic cost of the new code addition was fully compensated.

[1] https://benchmarksgame.alioth.debian.org/dont-jump-to-conclu...
HN isn't populated solely by hackers any more. Personally, I like reading stuff like this because it's "bite-sized" and doesn't take very long. It's also simple and clear enough for someone that doesn't have your god-level scripting skills to implement.
But the original access helps feed the epidemic. You don't become an addict until you do, right?

Tobacco is as addictive as heroin[0], think about how much of a public health issue smoking has been. Do you think it would be that if tobacco was illegal? I could imagine making heroin legal would create many more addicts.

One of the core arguments for marijuana restriction is that it's not nearly as addictive as "hard" drugs. it's comparable to things like alcohol.

Access restriction seems like a good idea when a substance is so addictive that you develop lifelong dependence from it by default.

[0]: http://whyquit.com/whyquit/A_Henningfield_Benowitz.html

According to this, common drugs from least to most addictive (on dependence) are: Marijuana, Caffeine, Alcohol, Cocaine, Heroin, Tobacco
Fixing this would be quite possible, if the government had the appetite to do so. Mandate that H1B workers must work in the office of their employer and you remove a large market for outsourcing companies to "rent" employees to others.

It's absurd that these companies are allowed to abuse the program, and also take up as many visas as they do. I know both startups and foreign workers who have attempted to use H1B to work in the company but been denied because there aren't enough available.
It could be because the author took time to give a detailed explanation of how he implemented it. It shows to a beginner programmer that (s)he could automate simple tasks like this easily and a way to approach it.
The first paragraph mentions it's using Hyperledger's Fabric[1] blockchain implementation. I assume they're building their own smart contracts on top of that.

[1] https://github.com/hyperledger/fabric
This is getting ridiculous. The reason I quoted wikipedia was to explain why "MISRA wasn't written with java in mind". Will you argue otherwise?

> None of the points raised in this thread pertains only to one programming language.

Except you replied to a java problem with a C style guide.

> I'm sure you'll find at least one style guide forbidding multiple returns for every language that has return statements.

And if that guide can explain why java benefits from having a single return statement, I would consider it. Otherwise, I refuse to follow guidelines that were designed for different problems or cosmetic reasons.
What's the difference between cond1 and cond2 parameters? Can they be swapped? If cond1 and cond2 are booleans, they're almost indecipherable at the call site. Why not cond1 && cond2 (or symbolic equivalent)?

Abstracting away the gruntwork of your connection factory and your connection condition factory into a couple of separate routines - those are resuable bits of code, they'll let you write this code at a higher level of abstraction using reusable abstractions. But pushing the ugly wiring into a non-reusable black box and pretending it's better design - bullshit.
Here is a counterargument:

Why not pull a Denmark, legalize and give at no cost heroin to addicts, and get these people back to work? A junkie can be productive, despite an ongoing chemical addiction, whether it be meth, heroin, alcohol or whatever else, many middle class and upper class folks live productive lives despite these addictions.

Why can't we bring these people back into being productive, economically net positive members of society, and deal with their addictions with compassion, as any reasonable human being & the Catholic Church preaches?

I've employed many addicts before, if they have a choice of smashing windows all night to maybe get $100 worth of shit they'll fence for $60, or a gig that'll pay them $110 to pull cabling & set up hardware for 8 hours, they will pick the latter every time. Outside of work hours, don't expect them to be contactable, and watch your shit well, but beyond that this group of humans can be a net positive for our society despite the chemical dependency issues they have.
People use bamboo? Always been told to avoid it and use Team City. I can't find any good info on bamboo tho.
First Steps in Computer Chess Programming (1978) [pdf]
I think Denmark decriminalized heroin, but didn't legalize it. The distinction being that an addict is no longer a criminal, so they can get treatment without fear.
Representative quotes from the article: "The birds proved to have a remarkable ability to distinguish benign from malignant human breast histopathology after training with differential food reinforcement; even more importantly, the pigeons were able to generalize what they had learned when confronted with novel image sets." and "Accuracy was scored on a per-bird basis as well as through a group-voting scheme that we termed 'flock sourcing'."

I heard about this via comment: https://news.ycombinator.com/item?id=13807415

Scientific American: https://www.scientificamerican.com/article/using-pigeons-to-...
You know Trump's solution? Jail for everyone. No wonder why US has 25% of the world's total inmate population...

[0]https://www.thoughtco.com/states-spending-money-prisons-not-...
To Minimize Downtime, Prepare for Chaos
And likewise, the reason that Soon-Shiong's actions are under scrutiny is that his name has been mentioned as a possible director of the National Institutes of Health (although Obama's pick of Francis Collins is being kept on for the time being).
I always wonder how these "five conditions ANDed together in an if" make it past code review in general

Easy. Either there is no code review, the code review is done by someone who has far too much on his plate a works on the theory that as long as it compiles and runs it's probably fine or the code review is done by someone likes writing code with five conditions ANDed together in an if and thinks it's fine
While I am a big fan of Oberon, and Wirth ideas, I think the best design was the Active Oberon one, but Wirth had not much to do with it.

However Oberon-07 is a very good approach for a systems programming language, with GC, targeted at low end devices, pitty that other than Astrobe, it is largely ignored by the IoT hype.
More damaging than flooding a valley? Or hollowing out a hill?
This is exactly what Zcash did. The Zcash Founders' Reward "vests" over four years.
Haskell has not even close as many libraries, sure. I don't know ZCoin but I have implemented a (simple) Bitcoin wallet. For that you need to have a good crypto library, but otherwise it's not magic. Mining as well.

I think the lesser amount of libraries and lacking the chance of fine-tuning performance (but also your risk of screwing up your performance badly) is a very low price for the provably impossibility to have a mistake like this.

I'm just thinking back on my career, which has been full of bugs of all magnitudes. If I categorise my past bugs, there are many common patterns. Famous old-timers have names, like buffer overflows or memory leaks etc etc. Just not having the possibility to make those errors is such a freeing experience.

Also what's the big problem with no independent standardisation?
Yeah, I don't think it's all that rare for sudo to be an optional package not installed by default in distributions. At least that used to be the case back when I used try various ones a lot more.
Uhh, hate to break it to ya, but even with insurance its not all roses and sunshine in the USA, you can easily go 6 months waiting for a knee replacement here. Watched a family member go through 4 over the past decade, and its a slow process no matter the insurance provider.

Plus, hospitals here on the West Coast have amped up doing a bunch of skeezy stuff recently, you could easily end up with a non-functional leg at a place like Swedish or Providence (two major hospital systems):

https://projects.seattletimes.com/2017/quantity-of-care/hosp...
Absolutely - I spend a fair bit of time on here, but I'm only a beginning programmer, using Python. This is exactly the sort of thing that inspires me, and also it's well written in terms of understanding for someone of my level. Obviously it's trivial to 99% of HN readers at a technical level, but I think there's room for this sort of thing.

I teach for a living (music technology), and it's incredible how badly a lot of things are explained (in all fields). Clear explanation and worked examples, combined with appropriate progression in difficulty is what makes for good learning, and I think this is a good example.
Show HN: IPFS URL Clone
Analyzing RavenDB 4.0 with NDepend
Yes it is. Assignment is another word for writing state. If your programming environment doesn't include a way to set state, you will never do it. Why is doing the dangerous task of writing state so easy you just have to hit one key to do it in C++?

Let's collectively put our seat belts on, colleagues!
I don't think the bar would need to be stainless.

The reinforcement cage in concrete weight coating used on subsea pipelines is relatively ordinary steel. The steel is protected from corrosion by the concrete itself and a system of sacrificial anodes that are easy to survey and replace. (I help design pipelines)
Additionally, trying to elicit the information you need to make a diagnosis is much harder than non-clinicians realise. Present a series of yes no questions doesn't really capture all of the information that is required; I suspect this is partly why previous expert systems have failed thus far.

From the moment the patient walks into the room you are assessing their clothing, their colour, their gait, their physique, how they're breathing, their emotional state, their physical abilities.

When you are discussing their problem you are varying not only the content of the questions you ask but also the style and the wording to match the patient's level of education, understanding, local culture and terminology etc.

For certain conditions patient's will lead you completely astray if you take what they are saying as canon. There is an art to human conversation and the best doctors I know excel at this as well as having the depth and range of knowledge to synthesise a diagnosis.

After a history you will typically examine the patient. Listen to their heart and lungs, palpate their abdomen, look at their retina or their eardrum, etc.

The diagnosis is made by gathering all of this information together and then running a "pattern matching routine".

I have no doubt that machine learning software is coming for us, but the job that doctors too is often oversimplified by techies. Myself included. As a programmer and electronic engineer before starting medicine I thought that it would be trivial to replicate much of the work in software. It isn't. It will happen but after another couple of orders of magnitude improvement.

In the meantime, using machine learning for diagnostic aids is hugely valuable. The sort of things we are seeing at the moment are very much the "low hanging fruit" of medicine - that is, tasks for which the input, analysis and output is well defined and easy to feed into a computer algorithm. Examples include analysing histology specimens for cancer, analysing head CT scans for stroke, analysing cardiac monitoring for patients at high risk of heart attack, and so on. The "difficult" part is the data gathering.

As an aside, I do think the role of doctors has changed over time. Medicine has advanced enormously as a field over the last hundred years. Much of what used to be the role of the doctor is now the role of nurses, nurse specialists, nurse practitioners or even physician assistants. Yet still (in the UK at least) doctors have a never ending amount of work to do!

I'm very excited to be at the crossroads of medicine and technology and upbeat about what the future will bring for patient care.
> Then again, one probably doesn't pick Oberon if one enjoys working with the current weird OOP/FP/FRP morass.

I am passionate about Oberon, collect all Wirth related papers and enjoyed using Native Oberon back in the day, when the OS was made available on the PCs, around 1996 or so.

He is one of my "idols" in history of computing and I even had the opportunity to meet him once, as he gave an Oberon conference at CERN.

However, I have learned many paradigms and languages since those days, to be happy just doing plain Oberon on the job.

Nowadays any JVM or .NET language is more my kind of thing for it, the only thing missing is standard AOT compilation as part of their canonical toolchains, but that is slowly being taken care of.

At least some of his ideas regarding safe OS architectures seem to live on those runtimes, and MSR work.
https://en.wikipedia.org/wiki/Eurail
Yes, this bug is not about memory safety - but having the state-writing operator so easy at hand was probably what lead to the mistake in the first place. In my GP comment I went on to rant about other classes of bugs which are obsolete since the 1970s, but still happen.
I usually start with a guess my number game. Then I'll make it in reverse, adding conditions to make guesses more complex and "intelligent".
This plugin made me laugh! Those disapproving eyes.

Might go crazy if using this while developing though.. (stop harassing me, EDITOR)
The solution for stations in dense urban areas is, evidently, boring tunnels.
>> The chilling effect that could have on investment in startups would be horrific for SV.

Why ? Uber's risk factors are quite different from most startups .
Thanks for piping up about this!

The article may be interesting to go through but most of the comments were discussing fairly stock-standard "popular"/hyped software stacks, so YMMV with that specific data. Untangling all of the individual pieces into a coherent picture was also fairly involved (I gave up). I mention the link solely to reference the idea that GitLab did get lots of hits and feedback, and that you may find it an interesting idea to consider networking on here regarding server resources. It's just a thought, may not be useful.

Okay, so... a small continuous load of users is doing full index over 1 billion items within 500ms per request. That's... that needs to go into your writeup, along with what your current usage load is like. Prepare for inquiries and offers when you do your post!

Also, you're definitely going to have a lot of interest in the database system if it's homemade; your use-case (high read and query load, moderate write load) is fairly widespread, and different implementations always lean themselves toward being super-awesome at certain kinds of queries.

I'm not going to push the open-source idea myself, but you'll definitely have a bit of clamouring. That will need to be worked out; if this site is your most frequently read (cool) then you probably already have a good idea of the pros and cons of open vs closed.

Very much looking forward to hearing about this, whenever it happens. Doesn't need to be immediate by any means - comprehensive, in-depth analysis takes a while, and if it's not rushed the results are very good.
Many startups just chase having as much active users as possible. Uber has been losing money since day one
This doesn't have anything to do with the value behaviour of =. The statement in question was intended to be a simple assignment, throwing away the value of the = operator and only using its side-effect. Instead an equality operator was used, which produced no side-effect.

So if you want to blame anything, blame the concept of expression statements, I guess?
Blockchain will change the world!!! Then his examples are more items at Walmart and furniture rental. Hahaha

I don't doubt that blockchain has the ability to upend business as usual in myriad ways, and there are a lot of really exciting projects out there that have that potential... but the examples this article used definitely don't live up to the hype of his opening paragraph.
We had a Google group for Codename One: https://groups.google.com/forum/#!forum/codenameone-discussi...

Google Groups suck as a forum. They flag valid comments as SPAM and miss good comments, they reject and delete posts for no reason and without traceability. They have no SEO value so they don't help product discoverability and to make matters worse they are really hard to search properly.

We still have it but try to focus on stackoverflow which is no panacea due to its own problems but at least it works properly.
What is an Action RPG?
The bug here was a lack of writing state!
Would something like that be able to provide base-load? That's usually the first nuclear-fisson/fossil-fuel argument: can it cover baseload?
warning: comparison is always true due to limited range of data type

Surely this is a serious problem on 16 bit builds; the comparison implies that larger values are expected to be stored in this variable, the warning is a strong hint that the (size of the) types are incorrect.
The test track looks a little like a mass driver.

https://en.wikipedia.org/wiki/Mass_driver
Getting to an Airport in LA is much easier than going up north to where the proposed Hyperloop alignment ends. Endpoint wise, you really aren't going to see much migration in terms of endpoints when it comes to rail, if anything the existing areas surrounding rail stations will clump and develop rapidly, as they have along the Coaster alignment in California, or along the MAX alignment in Portland.
Oh great. As if there isn't already enough to further entrench the two party system.
This was a great book with practical examples.You get to create hacker news clone.I highly recommend it.
The Shut-In Economy (2015)