skysight-inc/HackerNews huggingface dataset:
> It's pretty easy to turn that around and say that people with cash can displace and kick around anyone they want. I don't think you have less right to live there, I just think it shouldn't be money that is determinate. For instance, you could apply for placement that is need-blind.

The bottom line is that there aren't enough homes for everyone who wants to live there, so it comes down to how we allocate what there is. "Auction it to the highest bidder" has its issues but has a lot to recommend it: it's transparent, understandable, nondiscriminatory in a lot of respects, gives people a way to care more or less strongly, and means we get a market price for homes in that area that tells us where we should be building more homes.

We could use something like a lottery but that would mean a) houses would go to some random set of people who wanted to live in NYC, not the people for whom it makes the biggest difference b) we create a bunch of incentives for corruption - both the lottery itself and then people doing sublets/fake family transfers/... if they find someone who wants the place more than they do. Of course it's possible to fight that kind of corruption and for some things the principle is important enough to be worth it, but it's better if we can design the system so that it naturally doesn't happen c) we wouldn't be incentivising developers to build the homes that people most want.

(All that said I do think there should be a land/property value tax, to ensure that people only buy expensive land/buildings if they're going to actually use them, and to compensate the rest of the country who's priced out)

> This does preference people that already live there, but that seems elementary that the economic system should not have an inherent tendency to split up communities.

I did not fit in the "community" of the town I grew up in, and was very unhappy there. The city I moved to has been a lot better for me. So I feel quite strongly that everyone should get a fair chance at that, regardless of where they happened to be born.

> People should be able to move when they want to, not when they are forced to. The reason everyone wants to move to NYC is for economic reasons. Maybe if more places weren't destitute, fewer people would need to move around as much.

True as far as it goes, and I'm all for e.g. building much denser (NYC-like) neighbourhoods in other cities to help them gain the same advantages. But in the meantime we still have the question of who gets to live in the city that a lot of people want to live in.
I remember the ie6 era very well, and got hired by an agency exclusively for my CSS-fu.

The boss became kind of `jealous` of my skill and the praises i got for it, and would complain that the website did not look perfect on every browser, sending me screenshots of broken sites on his computer.

I spent about 2 months making sure they looked pristine on ALL browsers on ALL platforms, even installing Mandrake Linux and RedHat 7.20 (iirc) just to test them.

No dice, sites still malfunctioning on the boss' pc, who was really happy I couldn't make perfect sites. The more i got obsessed with it the worse the sites would look on his ie6 browser.

After yet another smug comment from him I stormed his office in a rage fueled raid and i ran to his pc shouting that this is IMPOSSIBLE, grabbed his mouse and clicked on the "?" menu and About.

He was using some obscure chinese aternative modded version of ie6 (iirc UC Browser), probably installed just to complicate my life.

tl;dr: vaffanculo, Marco.
What are your gripes with yapf ? I'd like to use a formatter for my Python code; should I rather wait for something better ?
I count myself as the young generation (21), static linking is out of the ordinary since it is rarely done for software I run (outside my Rust and Go development).

But I still think it's how software should be deployed, it should be the norm.

I blame developing in Go.
Agreed, code generation can be unpleasant, but I think it depends on your workflow.

The key point with the Rust Swagger codegen is that it generates a whole crate, so you just import it and don't really need to worry that it's auto-generated.

Our Swagger/OpenAPI specifications are mastered in a repository separate from our client/server code.

Our plan is to use CI on these repos to generate crates and push them to an internal crate repository. We've prototyped this, but are limited until the alternative crate repositories (https://github.com/rust-lang/rfcs/blob/master/text/2141-alte...) work completes. (We've been quite active in pushing this forward.)

All the client/server code that uses the APIs then just imports the crate as usual.

(I think this is pretty slick.)

It's kind of clever to generate the OpenAPI document from the service that's implementing it, but how do you handle multiple parallel implementations of the same service?

For example, we're building software that we sell to telecoms operators, and one of our APIs is for retrieving information about a telephone number. Depending on the operator, they might store their data in a number of different types of databases (there are standards, but not everyone follows them :( ). These databases are fundamentally different from each other; it's not just different flavors of SQL - it's actually different query primitives. As a result, we have different implementations of this service - one per database type (there is essentially no common code between them). I think defining the API separate from the implementation is pretty crucial to making this work.
> Use an IDE.

Explain.
Because some of us actually like both languages, Rust and C++, and dislike the misconception some have about what C++ is capable of, because they only know how to write "C with a C++ compiler" kind of thing.

Any complex language that gets wide market adoption evolves into "complex beast that due to its age has quite a number of disadvantages and no two codebases I've seen are the same".

Even something like C.
Where would one look if one wanted to learn COBOL though?

One would look at google. https://www.tutorialspoint.com/cobol/index.htm
... because it's illegal to flout fair-housing regulations.
I have 4 tattoos. The oldest is 20 years, newest about 6. I don't care about the motives in any of them any more. Oldest is a cross and I'm 90% atheist now :) All the tattoos are crude by today's standards.

I don't mind at all though and I will never get them removed. I look at them (rarely or when somebody asks me about them) like a history of my personal development. The cross reminds me that even the things I care most about at one point will change, fade, die.
State of women in tech
> My point was that there is no mechanism to do top level resource allocation

How could it make sense if bigtask(a) is a separate function, maybe in another DLL / shared object ? Maybe bigtask is not even written in C++ but in C, Rust, D, whatever. Maybe it's not even using malloc but directly OS primitives.
The argument is that they can make it small - room sized, with the new magnates. This reduces the every one of the subsidiary technical challenges to doable, basically you don't need big machines to dig big holes, you don't need 30000m^3 of concrete here, there and everywhere, you don't need a supply chain that involves 20000 people in 40 countries... so the co-ordination costs go away as well.

It's pretty like the idea with data analytics or software ; if you can do an iteration / update by yourself in 10 minutes you will be able to solve the problem (for reasonable problems) in a few weeks for sure. If you need to spend a month assembling the data and compiling the code before you can commit a change you are simply not going to ever be able to make progress.
You might be interested in lattice Boltzmann methods. They solve complex equations (navier stokes for example) using similar rules like Life. They can also be coded in 3D.
You mean under PACE?

I was after a act addressing the issue directly (or revision of another act) or else a clear statute standing alone with a unencumbered commencement order.

I have had the debate while cuffed to a young officer gleefully chirping no such law exists, and I replied as pretty much you have to me.

This below is clarification and I believe supports my originally intended declaration, however I don't think I sufficiently eliminated ambiguity in lay terms from my wording, adequate to claim correctness absolute:

<quote>It is established case law that, while offering significant mitigation at sentence, there is no defence of entrapment in English law (R v Sang [1980] AC 402). However, it is also considered to be an abuse of court process for agents of the state to lure citizens into committing illegal acts and then seek to prosecute them for doing so. State-created entrapment of this sort will result in a stay of proceedings.</quote>
https://www.lawgazette.co.uk/law/the-law-regarding-entrapmen...
Make Science Sexy Again. Corporate Survival Depends on It
That is like saying functions are not a plus, because you need to learn the functions and the mapping to the code used to implement the functions.

The Go assembly language is no different from having macros, functions or anything else providing a higher level of abstraction to relieve the developer of thinking about every little nuance of the underlying language.
A lot of older browsers, like elinks or something, actually fork the process to call OpenSSL directly. So long as you update the OpenSSL library, the browser can make use of modern standards.
Even given how unreliable this ended up being over time the very fact that it was built in the first place is remarkably impressive.
Why not use a constant current supply instead? Inline resistors are a very primitive way of limiting current.
Poor rural Victorians 'had best diet'
Well said. Appreciate the sound advice. Very actionable.
Ask HN: How do you deal with irritating dumb coworker?
How do you deal with a coworker? that keeps asking for your help on something. But never really listen to you. and keeps asking you the same question in different ways?

it's really killing my productivity. plus its creates bad atmosphere.
As opposed to condominiums, townhomes, duplexes, etc.
"stop with all the pointless tribalism "

I'll challenge that, because I think tribalism (living in small groups) is the way more akin to our genes. And much from the rising mental problems of humans today comes from living on your own in a big anonymous pool of strangers.

But those small groups could then indeed work (more) together for the common good.
Why would you be annoyed by the avoidance of merge conflicts?
IDEs provide graphical debuggers and colorization to show which code actually gets compiled.

For example on Visual Studio, paths not taken on conditional code get grayed out.
https://encrypted-tbn2.gstatic.com/images?q=tbn:ANd9GcQV2HAS...

I enjoy the joke about the perpetually shifting fusion acquisition time frame, but it would be fair to add that in terms of actual funding, we have been under the "fusion never" level. I feel like the context for the saying has always been that the proper financing assumption holds.
A few years back, I was an out-and-out SAS guy. This was mainly because the company I worked for had everything in SAS.

Then, our company acquired a competitor to SAS; SAS was booted out and literally, overnight, we were asked to stop using SAS and switch over. Thanks to this development, my team and I scrambled to port it over to the new tool. Of course, the transition wasn't smooth and a lot of our programs couldn't be migrated. This is when I began exploring Python and fell in love with it. I rediscovered programming, powerful ML libraries and the awesomeness of the open-source paradigm.

I end my random anecdote to say that I'm grateful for this (unexpected) development that helped me accelerate my career in data science, which would have definitely not happened if the abrupt removal of SAS hadn't taken place. I would've most likely still be churning regular dashboards built on legacy SAS code for some bank.
BRB getting a Lego tattoo, always liked Legos.
Ha.

Wonder when the first company that was targeting fusion was started.

It seems there weren't any until the 2000s sometime. Now there are lots. People with the money to sink 10s of millions into the idea think that it's close.

Danny Hillis will bet you that someone will do this by 2020:

http://longbets.org/605/

They have lots of skin in the game.
Also top comment in a thread from yesterday: https://news.ycombinator.com/item?id=16542395
as a very junior or entry-level employee it would seem like overkill in most teams

You don't have to start with the senior project manager. Try to find someone who's equally entry-level and been there less than year and talk to them. They'll no doubt be happy to talk and teach you the important things that you actually need to know in your position.
Just five years back, this question would've been sacrilege in the 'data analytics' community.
I've often thought it's probably a cracking time to be get some COBOL skills - you could jack your day rate up to the point you could probably name your price. There's an institutional incentive to replace it eventually, so not a long term thing, but you could probably milk it for a good few years.
Yes this seems to be interesting advice about integrating into any non-trivial project, whether at a new job, at an existing job (e.g. changing team or starting on a client project) or starting to contribute to OSS stuff
Thanks, makes perfect sense; not sure of what other features to add right now so might base it on number of seats to suit other organisations more.
> Why the hell isn’t there a simple “download now, pay if you keep more than 4 hours” kind of option, for example

So, one thing I've seen a _lot_ of new apps do is basically this; but sadly, includes some annoyances itself.

Instead of "download, pay after x hours", they instead have a subscription model gating most of the features of the app. They give you 1 (week|month) free, as that's easy to do with in-app payments automatically. Of course, now you have to remember to cancel this subscription if it turns out it's not what you're after, which is annoying, albeit pretty simple on iOS.
WJS #131: Chrome 65, PhantomJS getting archived, NPM ci for faster builds, more
Why would developer style cause merge conflicts? We did just fine, thanks.
Only the third party issued tokens have counterparty risk i.e you trust the issuer to redeem them somehow. Is that different than an ethereum ERC20 token? The native asset itself (XLM) has no counterparty risk.

> The only networks capable of providing fast, cheap, worldwide payments are decentralized protocols without trusted third party intermediaries, like Bitcoin (Bitcoin Cash) and Ethereum.

IMO it is a trade off between degree of trust and scalability. Bitcoin requires no trust but has a costly PoW consensus algorithm which does not allow instant transactions and has a very low tps limit. You can't have both (unless someone comes up with a better consensus mechanism)
International Calling Cards: Do You Still Need Them?
I was talking about the nation as a whole. Arkansas accounts for about 1% of that population but even there I think my point holds true.

There's measures and processes that can ensure politics better reflects the will of the people. I would guess that in Arkansas, like many other places, it's Republican's who are fighting against these things, and Democrats that are fighting for them. Why? Because the Democrats know that in general, the people support their policies, and the Republicans know in general, the people don't support theirs.

I just googled "Arkansas Voter Suppression" and found this recent story:

http://fortune.com/2017/03/25/arkansas-voter-id-law/

"Arkansas’ governor signed a measure Friday requiring voters to show photo identification before casting a ballot, reinstating a voter ID law that was struck down by the state’s highest court more than two years ago.

...

The American Civil Liberties Union, which filed the lawsuit that led to the previous law being stricken, said the latest measure raises the same concerns that voters will be disenfranchised. Holly Dickson, legal director for the ACLU of Arkansas, said the sworn statement provision in the latest law is an improvement but that the measure still will risk hurting voters.

“Of course we have concerns that voter ID is going to do harm because that’s been Arkansas’ experience so far with voter ID,” Dickson said."

Extreme primary challenges like you mention only really have an effect in first-past-the-post systems, because the party thinks it can win with 30% of the vote and has no need to reach across the aisle to work with the other 70% if they can get a small group motivated enough to vote. Obviously targetted voter suppression makes this even easier, while moves to require votes, or just make it easier to vote complicate it.
I think the "for reasonable problems" is the question for fusion.
But that's not "humanity", that's "within the US".

Note that Pinker's argument is global, but not total, and not strictly monotonic.
We produce our crypto heater by batches
The Finger protocol
How do you get people to configure the pre commit hook consistently? As far as I know this can't be done automatically, right?
The GPL is a license. If you don't abide by it, you don't get to download a copy of the software, sell it or create derivative works.

The history of WP itself enforcing the GP is instructive. More recently, Panasonic Avionics has been sued for $100M due to GPL violations.
Ad-blocker Ghostery goes open source, and has new ways to make money
Alteryx looks cool. Except for the pricing, which is mind-blowingly ridiculous.
That said, the material sciences advances required, especially high temperature superconducting magnets, simply were not there in the 70s. So a moonshot project to achieve it may have been a failure at massive costs, discouraging humanity from fusion research for a long time.
Serial Attached SCSI?
Actually I've put said example in a precise context:

especially *when it comes in its extreme flavour* of 'I just can't learn this new field/langage/tool/technique because I'm not a kid anymore'.

As for the misconception itself: 'kids learns better and faster that adults' can only be false, because if it was true then every kid would learn everything better/faster than any adult. Can a random kid learns cutting edge brain surgery techniques faster than every living adult? Nope, and here goes our misconception.

Now I get what those persons are really trying to say: they mean 'When I was young I was required to learn, but now I'm grown you won't get me back to school'. Which is still irritating to me (in the context).
Renewables are expensive to set up and scale (you're gathering smallish amounts of energy from large areas!), but cheap to pull power out of.

Fusion could potentially be extremely compact, extremely energetic, and not _that_ expensive to set up relative to how much power you get out of it. Renewables could make energy _cheap_, but fusion could make it practically _free_.
وظائف المطاعم بمصر
To me there's a lot of similarities between this and type inference.

"First, as we step through this program, we don’t think about specific values of x like 13. Instead, we think about the set of possible values x might take on. At different points in the program, x might be an element of all integers, negative integers, or positive integers plus 0. In other words, we think of x as a symbolic value (i.e., a set of possible values) rather than a concrete value (i.e., a particular element of that set of possible values)."

vs:

"We expound a view of type checking as evaluation with ‘abstract values’."

http://okmij.org/ftp/Computation/FLOLAC/lecture.pdf
Well, we're mostly software developers - I'm sure we all understand being an hour away from completing a project for the past several days of development.

Scale that up, and...
C++: lvalues, rvalues, glvalues, prvalues, xvalues, help
I'm not sure if the Earth is large enough to distribute 8 billion humans into sufficiently separated small groups, and such a scheme isn't even on the political horizon.
Close to half of American millennials now have tattoos [1], so I figure in 40 years tattoo removal technology will have greatly advanced due to demand :)

Maybe I’m optimistic.

1. http://shoulditattoo.com/2016/09/03/tattoo-facts-statistics/
Revisiting “Holy Grail” Bugs in Emulation
But you're not supposed to program that way in C++ at all. Ask a veteran C++ programmer, and they'll tell you that buck n00bs should start out using the STL, smart pointers, and generic algorithms, make sparing use of inheritance, and never touch bare pointers.
Funny Klee [1] wasn't mentioned.

[1]: https://github.com/klee/klee
Sacked saleswoman told to pay Intel £45k after losing discrim case
It took sixteen years from our realization that fission based power was possible to the first plant running. Seems possible.
YBCO is not new, but the production of it in the amounts and quality necessary for large superconducting magnets is still difficult. You need to produce long stretches of the material to create large magnets efficiently, and that isn't trivial.

The old superconductors typically used in this kind of magnets have been pushed to the limit already in Nuclear Magnetic Resonance, ~23 Tesla is the strongest existing commercial one and this seems to be a limit for that technology. The first NMR magnets that use YBCO are expected in the next years as far as I remember, I don't think any exist yet.
We need babel for CSS.
> US stopping the Nazis

First of all, the US didn't stop the Nazis. The Allies did. Saying the US stopped the Nazis belittles the sacrifices of all the other great nations that worked together and those that suffered the civilian cost of that wretched war -- and I say that as a German.

Secondly that analogy is incredibly misleading. The Nazis wore uniforms. They were clearly identifiable. Nazi Germany was a formal nation state with a government and institutions. Unless you're going to argue for ethically questionable decisions like the firebombing and carpet bombing we're talking about mostly military engagements against military targets.

But yes, even in a "just war", if you kill someone, you know for a fact you're killing someone and you don't know you're saving lives. It's how you justify the killing but it's not the act itself.

You save a life by pushing someone away out of the way of a falling tree. You don't save a life by killing them. I don't know what is so difficult to understand about this.

This doesn't mean you can never make a moral argument for killing someone or that you can't ever say with high confidence that a killing will likely result in lives being saved, but it's an extremely important distinction.

If a bank robber points a loaded gun at a hostage and threatens to kill them and you have every reason to believe them, it's easily justifiable to kill them rather than wait for them to pull the trigger first.

If a nation state declares war and invades another country, it's easily justifiable to kill their soldiers and lieutenants.

But you're still killing people. Calling it "saving lives" is a moral judgment, not an objective description of what you're doing. It describes the motive, not the action. Using it as an objective description assumes the motive is honest and exclusive.

I'm not sure whether you're aware of this, but nobody ever started or joined a war simply to "save lives", even the US didn't join WW2 until they were directly attacked and decided to retaliate rather than remain isolationist.
Nope. The company was shut down
If i would do `Session.query(UserCls).delete()` in SQLAlchemy I would also delete all users in the table.

I don't know go syntax well enough to see a problem here, is it because the User instance has no primary key yet? In this case I would expect gorm to emit `delete from users where user.id is null`.
If they are broken by another piece of logic then they can't be proven to not terminate.