skysight-inc/HackerNews huggingface dataset:
Ask HN: Python generator-alikes in other languages?
Generators in Python are versatile and powerful. What are some roughly equivalent language features in other languages? They could be called by the same name or different names, but have similar or the same functionality. Great if you can add some examples of use of such features.
>we should focus on problems where our resources can go further - e.g. in helping the global poor.

I'm not convinced that the right people to help the "global poor" are Silicon Valley technologists. Scientifically-minded entrepreneurs focused on profit but with idealistic rhetoric attempting to "help" cultures they know nothing about has, historically, not worked out great.
There several reasons to create a folder. The question is simplistic to me if the folder describe a `model' I call it model. If it describe a feature like "cart" I call it... `cart'...
Tell that to my family and friends who live in the rust belt and absolutely feel this way. I wrote that from personal experience.
Alright, I asked ASI to correct the numbers if they are wrong.

I did also read the Telegraph's article about Michael Burrage's book on this [0] which said something similar, however I trust their ability to report less than the ASI:

> Our free access is not free access at all. Arguing for the single
> market on the grounds that you can avoid a 3 per cent tariff
> by actually paying 7 per cent fee is mis-selling on a scale
> that dwarfs the PPI scandal.

[0] http://www.telegraph.co.uk/news/2016/06/13/not-only-can-brit...
D3 is a relatively low-level library for composing custom visualizations. There are some good high-level abstractions on top that integrate well with React and provide specific kinds of preconfigured charts. You might want to check out Uber's React Vis components: https://github.com/uber/react-vis
To avoid that Django does split by "app" or feature first.
"If someone manages to get code execution in your
unprivileged userland program, the odds of you keeping
them out of your kernel are already pretty low."

Could you provide some sources/examples for this?
You'll probably want to use D3 to build a React component. The component provides the API to the rest of your application, while D3 takes over dataviz heavy lifting inside the component.

The most interesting aspect, which applies to apps beyond React, is likely to be respecting the D3 selections API[1], if needed. If you're already familiar with the ins and outs of selections, then I wouldn't expect any particular problems.

[1] https://github.com/d3/d3/blob/master/API.md#selections-d3-se...
You're thinking about it from a physics point of view, which is kind of abstract, and possibly not considering all the movement involved. I'm thinking about it from the point of sprinting for the finish line at a race last Sunday. I really don't think I could have brought the same force to bear while sitting down.

Also: modern bikes have clipless pedals, not toe clips.
D3 has the reputation of being super-complicated because of all the libraries that are based on it, "simplifying" it so that everyone can use it. In the past year I wanted to create pretty unique type of data visualisation, so I dived into D3 and discovered it a makes a lot more sense than I though. Of course, if you only want a regular bar chart, you'll do better with things like C3, nvd3 etc'. But if you want anything a bit special, D3 itself is very powerful and the documentation in pretty good - there's no reason to avoid using it directly.

Definitely looking forward to try the new release.
My personal favourite was the guy who stole sex.com using only a fax on company letterhead.

https://en.wikipedia.org/wiki/Stephen_M._Cohen
Hillary Clinton announces tech platform
Cruz won Iowa, not Trump
You can check a public version (although with fewer features) available as Chromium Code Search[1].

[1] https://cs.chromium.org/
"We should have had a third runway in the 1940’s and now that will get delayed too."

What does that mean? Is a British thing?
thanks
Who is not interested in facts? Did you even read the linked article? If you read nothing else, at least read the summary. He makes very very clear that he is a static typing proponent.
Thanks. It’s definitely more fun to work on the pieces of D3 individually, rather than feeling the weight of a massive monolith. Hopefully it will encourage others to develop more reusable libraries that depend on (the relevant parts of) D3, too.
There's no especially respectful way to say this but I'll try my best since I think it's worth saying: this stuff about "mood affiliation" and "signaling" (elsewhere) and "tribes" seems like rhetoric you often reach for when backed into a corner.

It's ironic, I know, that I'm responding to your argument that "this article has nothing to rebut" by saying that your own comments are deliberately designed not to be rebuttable. But, it's true. This article self-evidently makes points that can be disagreed with, and your comments are designed to avoid that trap.
Does the article bother you?
Ask HN: Examples of reliable software you enjoy using
There is so much broken software out there that sometimes it can feel a bit overwhelming and depressing if you have been 'yak shaving' for hours/days/months on end.

It's not rare to forget what you were doing after layers are layers of workarounds and fixes you have to do before actually doing the thing you wanted in the first place.

I'm wondering if people would have examples of good software they enjoy using and trust them to work properly so others can have some hope or feel better about it overall.

A similar question was asked 8 years ago ("What software makes you happy?" -- https://news.ycombinator.com/item?id=128714) but I would like to focus on the reliability aspect of software.
See: https://deusu.org

The backend is written in Pascal.

With the exception of the blog. That is written in Node.js. I did that as a way to learn Node.js. But as soon as I find some time I'll rewrite that in Pascal too.
imagine 50 years of no war, civil uprisings, no global enemy or power hungry empire, warmongering dictator etc.
who would need latest war tech in massive numbers?

war is a seed planted for long term future. look at middle east - I guarantee you 100 years from now on, this will still be a bad place to be. who will profit from it? all that arm all sides.

when last few US wars were declared, for whatever funky official reasons, do you really believe that only US president and very few true and just in government were involved in deciding if, when, how, what tech will be used etc? in this I trust Russia much more - epicenter of power is pretty clear there.

I don't believe in some Illuminati governing everything, nor do I believe that people with real power are not corrupted to their rotten core, owning favors left and right, their missteps are overlooked and their places +-secured etc. you don't get too high in politics (or army for that matter which becomes politics from certain level) as independent and just. just my gut feeling and common sense. but boy would i be glad to be wrong!
Wow that's very innovative for HD. Why don't they put some of that innovation effort into their actual drivetrain? I loved my Buell's look and ride, but I mistrusted it's horrid 50-year-old Baker transmission which went on to completely fail at ~6,000 miles, necessitating me to disassemble the entire engine to split the crankcase so I could repair it. After seeing its guts, I no longer wanted it. It ignores a half century of innovation in motorcycle design producing a machine that I vote most likely to unexpectedly leave me on the side of the road.
You describe the things that you would miss in the gig exonomy in a language that suggests that you're entitles to those things. May I ask why?
I suspect that part of the reason is that Microsoft Word's internal representation is such a mess. Making a compiler read .doc files would be a major effort. So writing code in Word never caught on.
If Labour don't sort themselves out expect an election pretty quickly.
Nearly off topic, but the sight of a black hole close to Earth reminded me of this novellette of Geoffrey A. Landis: "Approaching Perimelasma" http://www.infinityplus.co.uk/stories/perimelasma.htm

Hard sci-fi, it's a dive inside the event horizon of a much closer black hole: 57 ly vs 7,200.
Serious question: how do you weigh something that is lighter than air?
Heh, I was referring to OpenAI Gym (https://gym.openai.com/), specifically https://gym.openai.com/envs#mujoco
US startups are very welcome to use Atlas -- many already have!
A lot of those laws came from the UK in the first place, this is the least of our problems.
No, control is not necessary for compression to leak information. It's enough for the attacker simply to know something about the original stream content (e.g. that it is audio) and how it compresses.
Start here:

https://pax.grsecurity.net/docs/PaXTeam-H2HC15-RAP-RIP-ROP.p...

Are you running the grsecurity patches? If not, everything they do that your kernel doesn't do is another reason your userland will inevitably cough your kernel up to an attacker at some point. Even with those patches, it's still an inevitability; it's just that interval is longer.

I don't run them! I do something easier: I assume that if I lose control of userland on a Linux machine, I've lost the whole box.

It is especially weird, though, to see security people engaging in this kind of risk reasoning. It seems to me that most of the times you lose code execution on your VPN server, the kernel security of the VPN server is pretty far down the list of problems you need to deal with.
Hacker puts 650K U.S. patient records up for sale
It sounds like there was some confusion here -- you do not by any means have to be from a "disadvantaged" country. Can you email me (patrick@stripe.com) and tmf@stripe.com so that we can investigate what happened?
Thanks for these, but I'd still say "Don't forget Guava".
That phenomenon is not common in locales in which Wal-Marts are closing.
Life is a test of your patienece
And now russians see Stalin age as the golden one, although they don't forget about Gulag and political repressions: instead, they wholeheartedly approve them, just as they did when it happened.
You can't comment like this on HN, and I noticed you've posted another ideological rant elsewhere. Please stop doing that.

Comments here need to be both civil and substantive. Heated rhetoric is neither, so it lowers the signal/noise ratio at both ends.
> Why would any member member of the working class want to be relegated to the gig economy, outside of being forced there by economic conditions?

With a robust UBI funded by strongly-progressive taxation replacing the social security provided by traditional employment protections (and not having the paternalistic tie to a particular employer), this could be better for the working class.

But a robust enough UBI probably requires considerable productivity advances to be economically viable, and even then the details of the implementation and the transition plan will be key.
You're answering a question that no one is interested in. The problem isn't "can any singular instance of an encrypted output be compressed". That's a trivial conclusion -- as it's theoretically completely random bits, of course some combinations of those bits are going to be compressible, maybe even highly compressible. It might be that the encrypted output is entirely a single repeated byte, in which case a 4-gigabyte message could be compressed to 4 bytes (being the integer representing how many times to repeat the byte).

The real question is, can you reliably compress encrypted messages in general? And, given that the encryption is not broken, the answer is no.
App looks very cool, how did you learn how to code?
There's this attitude that because computer work on pure logic, anything a computer does must therefore be logical and rational. The problem is that the humans who program the computers will often encode their own illogical, irrational, biased, and flawed logic. The computer is not logical and rational, it just follows instructions well. If the instructions are illogical, irrational, biased, and flawed---but executable---the computer will follow them. And when they spit out a illogical, irrational, biased, and flawed result... well, it must be logical, rational, unbiased, and unflawed, because the computer is purely logical, rational, unbiased, and unflawed.

We code our biases into the algorithms we use every day. They inherit our flaws. The sooner we all wake up to this, the better.
Its pretty much the definition of Turing complete.
When the Body Attacks the Mind – A physiological theory of mental illness
Yep, I’m going to update my examples in-place. Consider it my heavy-handed encouragement to upgrade to 4.0. (For one thing, there are lot of 3.x bugs fixed in 4.0, and I have limited resources to provide free support to old versions.) My examples are backed by git repos, so you’ll still be able to find the 3.x versions if you need them.
But why would you want to sweeten your yoghurt? Milk has enough sugars on its own.
NYT: VW Settles Diesel Emissions Case in U.S
The scary general accelerated inflation of legend, can't happen if there is unused resources in the economy.

Inflation comes because there is excessive demand against the capacity of the economy or against imports.

Anyway, after watching the Fed, the CEB, and the Japanese Central Bank the last years, is clear where the burden of proof is.
Would be great if Apple understood this and compressed IPA contents before encrypting.

Instead, when you submit something to the AppStore, you end up with a much bigger app than the one you uploaded.

To add insult to injury, if you ask Apple about this fuck up you get an esoteric support email about removing "contiguous zeros." As in, "make your app less compressible so it won't be obvious we're doing this wrong."
http://security.stackexchange.com/questions/334/advantages-a...

Not that this really matters. The advantages/disadvantages of compression are the same in both cases.
> Such resistance is hopeless in general terms of warfare, to be won it has to be considered as much a political war as it is a conventional one.

War is always political.
That's a problem for Silicon Valley, not for Beaver Dam, WI.
That is a good thought, we have discussed to maybe hire someone to do short video like that. I might be similar in that sense when it comes to writing, I'll see what we can do, but it would take some time.

Shorter term I should probably try at least to provide some screenshots and maybe a basic video of the UI where I create an app and deploy it, depends on how good of a video I can make.
> Things like this are not things that should be left up to the free market, otherwise you end up with rich neighborhoods having lots of service, and middle and poor neighborhoods having next to nothing.

To clarify, the alternative isn't really a free market approach either (since Verizon was seeking a de facto exclusive, monopoly status).

There is a free market approach to solving the problem you describe as well, but what Verizon seeking was almost the opposite of that.
Here you go: https://mikeash.com/tmp/randomfile.bin

If you manage to get that under 5MB by applying any tool which allows recovering the original data, I will be most interested to know how you did it.
When business can shift profits around the world the biggest change we need to make is to shift away from corporation tax, probably towards more land, purchase and income tax.
My first generation (non-Time, non-Steel) Pebble has refused to connect to my iPhone 6S since the day I got the new phone. Pebble doesn't seem able to help, the official answer I got was "use the old app" which won't pair to a watch with the Time firmware that their app upgraded mine to. Pairs just fine with my iPhone 5S that I use for work.

The damn thing has been sitting on my desk for months and I don't even know where the charger went. You'd think if your whole hardware experience is based around Bluetooth, you'd be able to iron out the rough edges.
For whatever reason, I'd prefer comments to this version. Note: I actually agree with the OP about pulling the logic into named conditionals whenever possible, but in the case you do want the short-circuiting behavior I would not bother with the variables at that point.

if (loggedIn() && hasRole(ROLE_ADMIN)) {
// User has permission to do this
if (data != null && validate(data)) {
// Submitted data is valid
...
}
}
I'm more surprised that there are not more corporate "death penalties" meted out. Usually the beneficiaries of bailouts or bankruptcies are the entrenched managers who brought the corporation to where it might be subject to a death penalty.

Whereas if the corporation were liquidated, the assets would be bought up by different corporations and run by different management.

Banks, most of all, are just bags of assets that can be run by other managers who run the same types of assets (otherwise these assets would be illiquid and not need active management) at other banks.

The same goes for airlines: If an airline is a brand + planes (probably leased) and routes, why EVER bail out an airline? Especially a legacy airline when it's assets could be bought by an economically viable new airline?
Apple Thunderbolt Display: F8 key does not work using Windows
No, I am pointing out that compile time defects count as a type of defect- see for example the accounting in the CMU SEI PSP: http://www.sei.cmu.edu/reports/00tr022.pdf
This is a very accurate breakdown but the simple fact is Group A is already in that relationship. Whether they choose to subsidize Group B via the hospitals, inefficient social programs, and jails or they choose to subsidize them via basic income is what's to be decided.

Group A has already agreed to a subsidy in the form of what I listed above because it's appealing to not have people starving to death in the streets.
> The people who designed HTML5 and CSS thought procedurally, not geometrically. It shows.

The problem the article points out is that they wanted styling to happen, before the entire document is downloaded. Obv. you can't say, "hey, this box should be pinned to the bottom of the footer" if the HTML for the footer isn't yet existing in the stream that's downloaded.

I think enough people fume when they see the Flash of Unstyled Content. I don't know if constraint-oriented would work. I (and I think you) would LOVE it to be that way, since css gets ridiculously weird, quick.
Early Soviet Russia is a complicated concept to talk about, as country was still in complete disarray after the civil war. Your description is true for intellectuals in biggest cities for a short while; soon after, the forces of repression and totalitarism took over the country, and unlike said intellectuals, they had true public support.
Discussion of news: https://news.ycombinator.com/item?id=11990451
The whole world would be better if thinking this way was applied every where. Not only client side rendering. Even programming languages themselves, even OSes (hi HURD~). It's slowly coming but society has bad eye sight and ADHD.
Elastic Network Adapter – High Performance Network Interface for EC2
Do I want longer range from bluetooth devices ?

I sort of thought the short range was, kind of, a feature ...

How far do you really want your mouse trails and your keystrokes to fly out into the ether ?
Possibly.

An alternative explanation is that the stated goal (reducing abortion) wasn't the actual goal.

For example, if controlling/subjugating women was the actual goal, then more actions taken in the context of 'pro-life' activism makes sense.
Who are "they"? The two major parties in Westminster are too busy imploding right now, so I'm genuinely curious what you're referring to.
What is your src IP? Both 52.95.67.208 and 203.83.223.31 are less than 80ms for me from Mumbai.
Just put it into a gas cylinder (it doesn't even need to be compressed or anything).

ELI5 version: It might be lighter than air, but that just means that it will "float" ontop of heavier things - like oil ontop of water. But all those things still obviously have a certain weight. If you put it into a cylinder it will thus under the influence of gravity still weigh down onto it, which then can easily be measured.
Why do people do this? Does it look better on systems that don't have smooth scrolling or something?
That's a good point, and the .6 is an optimistic score (I think it was from running a subset of their model)

I got the sense that the authors felt that this proves an attack of this sort was possible and viable, but that their model wasn't quite there yet.

OTOH this should be enough to acknowledge that the voice encryption/compression scheme they are attacking is not secure.
I'm sorry but I have to mention it.

The scroll jacking on your webpage is only slightly less annoying than most.

Cool app!
https://en.wikipedia.org/wiki/Generator_(computer_programmin... has examples from 16 different languages.
Having the social network of a celebrity, without actually being famous (2015)
Compile time reflection? Reflection as implemented in most languages allows you to determine the type of an object at runtime.
Realistically, I don't think you can have a minimalist, clean and focused code base with thousands of engineers pounding away at the keyboard. You ought to make some trade offs with that many employees.
Tour De France Unveils New Plan to Catch “Mechanical Doping” Cheats
Ruby, Elixir and under certain conditions, Javascript (NodeJS)
If you compress a document that simply obscures the size of the original document.

That is not generally true - if you compress AAA and ABC then the compressed version also leaks information about the content exactly like in the case of an audio stream and it reveals more information then the lengths of the uncompressed documents which don't differ.
Funny enough, my Bluetooth headphones (LG Tone something or other) has been rock solid, the only Bluetooth device I can reliably trust. My mouse, my keyboard, my Pebble, my literally everything else Bluetooth, all have failed me. My Bluetooth headset is the only thing I've never had a problem with on mobile or desktop.
I have to agree. The scrolling on that page was implemented very poorly.
Ruby and Clojure are doing decently (though obviously not as popular as say C and Java) and have pretty advanced metaprogramming.

For that matter C++ templates are metaprogramming from what I understand, and C macros are a really really primitive form of metaprogramming. Java also has reflection which is metaprogramming-ish.

I don't think the problem was metaprogramming.
He's talking about the proposal to add a third runway at Heathrow Airport vs adding new runway capacity to other London airports. It's been a big topic in London for the past couple years.

Personally, I'm against adding to to Heathrow as the Heathrow airport uses due east/west runways (planes mostly fly west when landing) and they positioned Heathrow itself due west of London. Which means plane landing patterns affect a local maximum number of people (including me).

[If you need east/west runways for the given wind conditions, I'd have thought it makes sense to put the airport either north or south of the centroid of population density, but this was done long ago now]

I'd prefer to see an extra runway at Gatwick where number of affected people is much smaller)
I never tried it, but I've heard that Solid Edge 2D Sketch mode is free, and not a demo (it: you can use it all that you want).

https://www.plm.automation.siemens.com/en_us/products/solid-...
I've used this with pretty good success. https://github.com/skellyb/react-d3-wrap
I find it it funny that people think that someone who doesn't know what the EU is will vote to leave it anyway. And then somehow remember the letters E and U long enough to google the grammatically correct phrase "What is the EU?". With correct title and punctuation too.

Of course, such people are always on the other team, never on one's own. Something that even Google probably doesn't know.