skysight-inc/HackerNews huggingface dataset:
$ jq -c tostream <<<'{"a":[{"b":2}]}'
[["a",0,"b"],2]
[["a",0,"b"]]
[["a",0]]
[["a"]]
$

However, filtering that and then reconstructing JSON from that is... not possible at this time:

$ jq -c tostream <<<'{"a":[{"b":2}]}'|jq -crn 'fromstream(inputs)'
{"a":[{"b":2}]}
$
$ jq -c tostream <<<'{"a":[{"b":2}]}'|grep b|jq -crn 'fromstream(inputs)'
$

:(

The reason is that tostream and fromstream can handle multiple top-level JSON texts, since jq normally does too, but then there's an ambiguity issue to resolve by having a sort of an object terminator. Filtering tostream's output with grep loses the terminators, and so fromstream cannot operate normally.

But it should be possible to define a function that does allow this, by, e.g., requiring just one top-level JSON text.

The other thing is that a path-based encoding that does not require quotes and commas would be handier -- tostream's output is itself JSON, so it's not shell-friendly. This is gron's brilliant innovation: it's got a path-based encoding of JSON that is easy to deal with in a shell script. (Mind you, I'm not sure that using brackets to denote array indices is all that easy to use, but the need to disambiguate object keys that look like numbers is critical. Also, there's an ambiguity as to keys that have embedded periods ('.') in them. And lastly, even gron can't shake off the string quotes for values.) That jq has the builtin functionality needed to do the same is not good enough if it doesn't actually do it out of the box.
It's mostly due to the sugar (whether sucrose or HFCS) that is added to just about everything presented to the average customer in the US.

Regarding whole grain pasta, as far as I know, it's fine and healthier than normal pasta. It just tends to smell and taste like a wet burlap sack.
And the US is not the top country by far, even among developed ones, in number of mass murder victims per 100000 population.

Snopes describes the report you're probably talking about as "extremely misleading": https://www.snopes.com/fact-check/united-states-lower-death-...
Ask HN: How to change DNS to 1.1.1.1 for cellular traffic on iPhone?
What's the right way to set up the cloudflare DNS for cellular traffic on iOS? (The instructions are for wi-fi only)

Is there anything better than https://www.dnsoverride.com/ (found via google)?
I'm inclined to say "too reasonably" given the fact that the statistics seem to imply a much higher risk from the self-driving software than a human driver (Uber doesn't have many miles driven and Tesla is using overall-telsa statistics to hide the auto-pilot statistics).
Medically assisted death allows couple married almost 73 years to die together
Perl 6 on Javascript is real, though. Rakudo.js has come a long way, but it's not passing all of the tests yet. It's a quite a bit bigger task to convert a kitchen sink language than a smaller language like Lua.

http://blogs.perl.org/users/pawel_murias/
This is why Waymo rulez

https://arstechnica.com/cars/2017/01/googles-waymo-invests-i...
I Made a Flamethrower Skateboard
Yes, but that's another issue with the article. Modifying the first to return a list though is trivial, you declare an List at the beginning and then you append in the for loop.
It's a full-blown, dynamically-typed functional programming language. Well, not quite full-blown: it's missing closures of indefinite extent, but still.
Fraud can occur when a party lies about assets it owns when entering into an agreement, which would be prevented if you had to present proof of ownership for any asset you claim to own? Most ponzi schemes would never happen.
While Tesla screwed up the marketing on this product and failed to even ensure the driver is looking at the road at all times, I believe the black box approach (recover crash data from every incident and work it back into the product) is exceptionally powerful, as demonstrated in the airplane industry.

It use to be that whenever an accident like this happened, people shrugged their shoulders and blamed the victim, very damaging design flaws were being corrected statistically, after many wound up dead. We now have a corporation to blame, we internalize that the human drivers cannot be trusted and technology must take over and learn from each and every accident.

The safety advances this routine will bring forth cannot be overstated - and putting presure on Tesla and other manufacturers is the best way to get them.
They would be more expensive, same as buying a laptop with no bloatware is more expensive than its loaded equivalent. Manufacturers/Labels/distributors get kickbacks from the bloatware companies per install so they can afford to reduce the price of the machine vs a 'clean' system.
The list of niceties of lua from the article:

> First class functions and closures

> A versatile data structure: the table

> Vararg expressions

> Lexical scoping

> Iterators

> Coroutines (see below)

Well, looking at modern day js:

* First class functions and closures, check

* the table: a combination of `Array`, `Map` and `Map<Number, T>` can prettify much cover typical usecases of lua tables, so js is close in this regard

* Vararg expressions, check

* Lexical scoping, check

* Iterators, check

* Coroutines, with libraries and abstractions on top of generator functions

In addition, in js land, other paradigms of concurrency exists, such as CSP (goroutines), FRP (Rxjs and co). Of course, these can be implemented in Lua as well, but the libraries may not quite as battle-tested.

The author also mentions a sane coercion system; this still true, but ever since "use strict", unexpected coercions can mostly be avoided in js.

On the other hand, js has:

1. Typescript and static typing (a bit unfair to consider this js, but ts gets access to a large portion of high quality npm packages), flow is also great

2. Multiple mature echosystems of UI frameworks (React) - for instance if you need a date picker or an autocompleter, it's just `yarn add` away; I doubt enough such libraries exist for browser side lua yet

3. Tooling support - webpack, prettier, postcss and so on

I like lua, but I feel it does not offer much in addition to what modern js already provides. Of course bring more languages to the browser is always a good thing, on the other hand I do feel this is a tough sell to the larger community.
The Audible client has a speed factor built in to it's client. The problems you describe easily go away at about 1.3x for me, and I can listen considerably faster if I'm not interested in 100% retention (some books are worth skimming, others worth reading, and a select few are worth studying)

As an aside I highly recommend reading "How to Read a Book". I don't recommend studying every detail, there is a lot in there I don't think is particularly valuable, but some of it really shifted how I thought about and approached reading.
WebAssembly still doesn't allow gc cooperation. It's still a long way away
Would you use dw or spring boot now? Our current stack is dropwizard but I've never messed around with slring boot
There is no production car with "self driving system" available right now.

There are just "assistants", and they can't and should not drive on their own.
... by eliminating the class of people who work on technology so that they no longer make money or contribute to demand for space. The criticism stands.
Per-AvE, it's not that the design was necessarily bad. AvE thinks the proximate cause was that the installation plan was changed on-site due to the sort of changed circumstance that the designers didn't know about. See the videos (I posted links already below/above).
These recommendations seem wholly legitimate. Funny thing is, though, the only person I know well who owned one (my brother-in-law) liked it but said it was simply too damn hot, which I've since heard others discuss as well. They had to return theirs, just couldn't live with it. I don't think of a normal mattress as providing ventilation, but I guess it does, at least somewhat -- less thermal mass, at least.
Digital Marketing in the Virtual Reality Age: An Endless Array of Possibilities
Fengari author here, we made our first release yesterday. See https://daurnimator.com/post/172451162334/fengari-v010-relea...
That seems overly harsh. It's a cool utility, and the author even shows it being used with pipes in numerous ways. I'm just arguing that including non-essential features is a trade-off. Often it's just complexity for ease of use, but I think this one has some possible security implications, and what you get for that may not be worthwhile.
Pop has some support for associations:

https://github.com/markbates/pop
> Different people answer differently, but many would give censorship-resistant currency as a use case. My personal answer is more complicated.

Nothing about blockchains prevents censorship.

> Let me generalise slightly to include PoS, which I greatly prefer but which is also pretty expensive, and suffers from the same fundamental inefficiency problems.

Most literature I've read suggests potentially a hundredfold increase in throughput with Proof of Stake when executed correctly.

The only fundamental inefficiency problem PoS shares, by my reading, is the broadcast mode limitation where every node needs the full chain to be broadcast before it can move forward. However, PoW systems are nowhere near that rate limit.

I'm certainly happy to be shown this is wrong. Got resources?

> Obviously, you need on chain consensus and guarantees so that the payoff matrix for the offchain game is setup correctly so that honest behaviour in the offchain game is a Nash equilibrium.

You're right, the offchain game needs to be set up so that honest behavior is the optimal behavior. But this is where the cart is firmly planted in front of the horse. What you need is not a blockchain, what you need is trust that controls are in place to resolve a dispute equitably. The blockchain is a methodology not for eschewing trust, but contracting it out in a novel way. A blockchain, folks with guns, an escrow service with a good API, international banking: they all serve the same purpose here.

We should use these tools when they serve us. But what I've seen is that for an actual daily-use currency all that's going to happen is a million little token vendors which can negotiate lightning channels to one another will show up and we'll just have new banks that are like the old banks, but with the threat of a chain resolution which may or may not occur. The practical outcome will be indistinguishable from a healthy banking system, won't actually stop fraud, will be subject to the exact same controls that other physically rooted banks are subject to, and also be a lot more confusing.

I think lightning is solid; in that it will work. I also think it reduces a play at fundamentally restructuring commerce into a flashy buzzword pitch to reshuffle the existing players on the board somewhat.

Having been deeply in the (somewhat broken) American banking system, I can tell you that the system desperately needs to be reworked from the ground up and that can only happen with a truly distributed, truly transparent (an often undersold or ignored aspect of Bitcoin but a truly phenomenal property), truly and fundamentally new way of performing commerce.

We don't have that.
These articles exhorting the benefit of using FP in the small are great, but I'd been lost forever making the leap from small (<10 line) examples vs typical apps with their CRUD behavior and in general state everywhere like a db or file system or network requests and so on. I've found this talk(https://www.destroyallsoftware.com/talks/boundaries) by Gary Bernhardt way more useful in terms of how to apply FP principles in the real world.

The other grouse I have with posts like these are they try to over-simplify FP - "using lambdas is FP" or something like that. I think this leads to folks thinking 'hmm - I know how lambdas work... so if I use lambdas, then it's good' which is missing the point completely.

I think one does need to 'grok' FP concepts completely - composition, higher order functions, tail recursion, immutabililty etc and gain an appreciation of FP vs procedural the hard way before they can hope to utilize it effectively.. I think those things help you think 'functionally' which is much more valuable in the long run rather than 'how do I bolt on FP on OOP'
I do machine learning for a living.

I don't dare update my display drivers unless I have 3 days without a deliverable because of the disaster it usually is.

Usually (yes, more than 50% of the times) it will break my displays (fail to detect both monitors, switch to some weird resolution etc), and always it will break CUDA/CUDNN so I have hours of work making that work again.

I have a completely standard setup: Ubuntu 16.04 LTS, NVidia GPU, Intel CPU.

(I've been using Linux since Slackware 0.9, so yes I do know how to configure things. I'm sick of it not getting better since then).
Yeah. There's even a clue in what it's called: a vacuum chamber.

Densities are extremely low, so you only have a few grams of material in the reactor, even at large volumes anticipated for a commercial design.

Furthermore, the reaction is extremely finicky, as demonstrated by what an incredibly hard time we are having creating and more importantly sustaining it. Any deviation from the ideal and it just goes out. So no runaway chain reactions.

https://en.wikipedia.org/wiki/Fusion_power#Accident_potentia...
Elon Musk Sends Tweets Tesla Is Bankruptcy
So this companies are pushing the self driving cars while the hardware is not there yet, this cars would hit a brick wall and ignore it because it may be a false positive.
I am not even sure if Tesla have any piece of radar installed though.

Do you have a link about the radars that are actually installed on this cars can and can't do?
People like it because it lets you unit test in Java. Most of the time IoC involves an interface with a single implementation and there will never be a 2nd.

Note that DI is just a form of IoC and both are separate from Spring. You can "manually" do DI by passing objects to constructors yourself. Some people have a complex web of dependencies and Spring can help make this manageable. Other people don't but have a hatred for passing arguments to constructors.
Why not just use contentful (linked article is written by contentful) + static gen? My company has used contentful + middleman for almost 2 years now. It took a while to hone in (payloads used to be extremely large), but once it's dialed, the experience is better than WP for both writers and designers.
I suspect little shareholders didn’t “invest” as much as “donate” to Tesla... for the fun of funding a cool guy with a stunt against ICE companies.
I assume the driver didn't want to wait and see if the car brakes at the very last moment, so it's hard to determine if the car would brake in this case.
I think you misunderstand the aim of the article. It’s not a case and point against js but for Lua in the browser. When I list positive points of Lua, I’m not implying they don’t exist in JS.
I choose Github just because of its indisputable scale and financial success. Github pushed git to where it is now. Not linux (we don't even use git remotely like the kernel devs do), not Linus, or any previous system. Github did it.

Say what you will about their ethics, their structure, their politics, that company did this thing and they're now more important to the world of software products than any prior company in that role ever has been.
From the report “NHTSA’s crash reconstruction indicates that the tractor trailer should have been visible to the Tesla driver for at least seven seconds prior to impact.”

Unless someone is operating trucks with adaptive optical camouflage, I think that the driver would be expected to note the presence of a big rig. Binocular cameras and radar may be expected to do the same, too.

(Note: Tesla models, to the best of my knowledge, do not have binocular cameras)
You have it a bit backward IMO. Java (specifically) unit tests normally require that you indirect your dependent code through an object reference in order to mock the implementation, thus creating a composition problem. Unit testing in Java turns a control flow problem into a data flow problem. You then need help in getting all the data to the right places, a problem that unit testing created. IoC containers are a solution to this problem; they then move part of the implementation of your program into your config, or embed it implicitly in constraints in how things are composed. This is usually not an improvement in ease of understanding or navigating a project, since it optimizes for changing it.

Personally I'm deeply suspicious of mocking as an approach to testing code. I much prefer a functional approach with explicit data flow between parts of the system, rather than indirecting control flow through vtables using complex ad-hoc protocols that become part of your specification by getting baked into mocks in tests. IoC and mocking promotes dataless Verber, Doer and Handler classes that have no real place in an OO model of a system.

We shouldn't forget that decoupling isn't good for its own sake. Things that change together are already coupled; decoupling them at the implementation level is usually an obstacle in every way, whether to understanding, effort, performance, whatever. Abstraction use vs programmer experience generally follows a hump shaped curve; beginners know nothing, intermediates abstract everything, while experts use fewer more powerful, more composable abstractions and code more directly elsewhere. Mocking IMO optimizes for the middle case of too many non-reusable abstractions.
They did not denied but they just don' tell us what we wanted to know, they did not tell us if the car tried to stop, if it detected an obstacle, if it actually called the alarm in that moment or minutes before, they just said aonlyu what the facts that are not damming for them.
Generic Function in Python with Singledispatch
Volkswagen USA says my 2016 Golf should have the oil changed every 10,000 miles. 5w40 synthetic, I think.

So far I've changed it twice, every 10k. To be honest, I meant to do my own change after 1000mi as it was my first new vehicle and I figured there was no harm in doing an early first change to satisfy my concern about the supposedly-old-wives-tale of flushing out breakin materials on my first-ever new car.

To make up for my guilt at doing the bare minimum I do a Blackstone oil analysis. Great so far, but what I expect out of an engine which, at 26,000 miles, has still not done half the mileage as my previous lowest-mileage car was at purchase!
Technically drop 1 isn't just tail, but it doesn't matter in this example. Tail will error on an empty list.
Ask HN: Which distributed cache is Cloudflare using for their 1.1.1.1?
I use dropwizard but I would never consider it (or any java framework) for UI related work.

Kinda curious why there was such a big migration conisdering dw is mostly just a combination of packages.
> and if we can accelerate that by adding stupid easy electronic markers to some roads, then why not?

It's not so easy.

First, we'd need to agree on a nationwide standard for these electronic markers, since you wouldn't want to have different markers in NY and California. (It would be even nicer if a U.S.-made car would also work safely in Canada, Mexico, etc.)

Second, we'd need to pay for the markers to be purchased, installed and maintained. Interstates, state highways, county roads and city streets are the responsibilities of different levels of government, which have different budgets and different politics. I can't imagine NYC, which can't even keep its major roads free of potholes, finding the funds to add electronic markers to roads.

You'd also have to make sure to reconfigure the markers if a road was under maintenance (e.g., lanes temporarily closed, lanes running in the opposite direction, etc.).
It's interesting to you, not to most other people. Source: 25 years of talking to people about encryption. Most people just want stuff to work, not to know how it works.
> a lot of the messaging from these groups are arrogant and troll-y rather than building an even broader constituency

I don’t consider YIMBY “organisation” for this reason. It’s an emotional outlet, seldom a political block. Technology workers are notoriously unwilling to put in the work political advocacy takes.
I've actually noticed that too. I remember reading his articles from the early days of HN and being enamored by their insights... mad respect. But then he tweeted something along the lines of "There's no Uber or Lyft here in Austin, Texas. How do I get anywhere?!" (Uber and Lyft had left Austin at the time) which fundamentally changed my view of the guy.
You can often get close to Haskell-y implementations in Python with help from the itertools module. There are a couple "Haskell style" Fibonacci generators with itertools floating around in blog posts, I'm sure, and I've used itertools to write all sorts of things in a pretty succinct manner.
This is simply delightful. I'm so happy to be able to read about people going of on little adventures like this even though the results would be, expectedly, limited.
No more Freebies
The question is, how are all of those 'happy people' benefiting? Could you not have purchased a mattress from a brick and mortar store? It seems it would be relevant to cite the advantages.

I can't help but feel like the entire podcasting industry was funded by businesses that are 'cutting out the middleman' as if this is a novel concept. Frankly, the mattress-in-a-box companies are nowhere near the worst offenders in this regard!
Little known fact: fission is currently our safest and cleanest energy source.

https://www.nextbigfuture.com/2008/03/deaths-per-twh-for-all...
Let's see how open they are:

"The project enables the creation of websites and ads that are consistently fast, beautiful and high-performing across devices and distribution platforms."

"Web pages and ads published in the AMP open-source format load near instantly, giving users a smooth, more engaging experience on mobile and desktop."

That's directly from the AMP's project site. Those statements are half-truths at best.
Load balancing of ECS?
Fintech App Developers
There's a public list of IP ranges on the website: https://www.cloudflare.com/ips/

There's troubleshooting utilities in the CHAOS class, e.g. dig @1.1.1.1 id.server ch txt
Everything isn't broken, but a few things might be looping
To be fair, who can really tell the difference between TVs in the store? The source is crap, the lighting in the viewing area is crap, the settings are totally unknown.. and the reality is, they'll all look good once you get them home.
AMP tech leads especially. For a quick glimpse you can read this: https://amphtml.wordpress.com/2018/03/08/standardizing-lesso...
You can find non-smart panels or monitors in most common TV sizes, but they aren't TVs because they lack TV tuners. Of course, unless you are doing OTA or no-box cable (is that even a thing anymore?) you aren't going to use a builtin TV tuner anyway.

Prices, though, are usually higher than TVs.
Also, these types of mattresses have an expiration, and I doubt they are manufactured on demand.

If they are not sold within a specified time and stored properly (not stuck in a hot warehouse or cargo container), they are useless.

Also, mattresses are not currently being subsidized by adware/analytics apps and companies.
Life after data regulation: What a post-Facebook world might look like
I'm in a city in southern Japan (so most of my traffic needs to go to Tokyo first), on a gigabit fiber connection.

--- 1.1.1.1 ping statistics ---
rtt min/avg/max/mdev = 30.507/32.155/36.020/1.419 ms

--- 8.8.8.8 ping statistics ---
rtt min/avg/max/mdev = 19.618/21.572/23.009/0.991 ms

The traceroutes are inconclusive but they kind of look like Google has a POP in Fukuoka and CloudFlare are only in Tokyo.

edit: Namebench was broken for me, but running GRC's DNS Benchmark my ISP's own resolver is the fastest, then comes Google 8.8.8.8, then Level3 4.2.2.[123], then OpenDNS, then NTT, and then finally 1.1.1.1.