skysight-inc/HackerNews huggingface dataset:
> The scare quotes are because it's hardly a library when it provides less than 5 lines of code, as you noted.

It makes the example easier to read for me, because I can figure out what it does by the context:

1. It's called "delay"

2. It's a function that takes 1 parameter, a number

3. There is a browser API called setTimeout, which takes a function and a number

4. Converting functions that take a callback to a function that returns a promise is a common pattern.

I know what delay does without even needing to see it. Maybe if you don't know the 4 things I've listed above, this makes the example harder to read, but then you probably do not need this library.

> I feel Slider is not a useful example because it doesn't extrapolate into any kind of real world web app -- which is a problem when this library is about helping you build real world web apps.

It's an example on the homepage, not documentation. How many lines of code do you want to see? I feel like if you assume that the author wrote this to scratch their own itch, then you can use your imagination and assume that they work on apps with complicated state that needs to be persisted over a network, that gets fed to functional components.

Edit: I read your other comment, and I agree it's really hard to come up with good, non-trivial examples.
The arguments you make there for the intrinsic value of Bitcoin are not incompatible with the perception that the ICO market is overheated at this point.
First, $500k is not much in terms of real-estate investing. It's not going to secure an obviously prime piece of property and it is not enough to build a property portfolio large enough to outsource management to a full timer and create passive investment. Basically it is enough:

1. In some markets to buy some property that can be actively managed.

2. Pay off a home mortgage and improve cash flow...which is probably a good consideration when thinking about real estate investing.

3. Speculate in (more or less) an "all my eggs are in one basket" sort of way on anything from houses to commercial property to raw land.

4. Place the capital at substantial risk via leverage to create a larger portfolio...but still probably not enough to create a passive investment.

In regard to flipping houses, the money is not just in getting the house at a discount. It is also in getting the improvements at wholesale cost rather than retail (or doing the work ones self). It also helps if the property can be acquired and sold in a manner that one avoids or receives or reduces real-estate commissions because 7% of $500k is real money when it is your money.

Likewise 10% contractor overhead + 10% contractor profit on $100k worth of construction is real money when it is your money. There is a reason the stars of the home flipping shows usually have contractor licenses. They also use the same crews and have relationships with businesses in the various trades. To make real money, house flippers need a continuous deal flow. It's not part time work.

If it were me, I would probably sit on it and wait for an opportunity that clearly appeared to be well above average. That means understanding at least one particular market really well and being very patient and financially conservative. Basically, it is a recognition that I am going up against professionals as an amateur and with the intent of making money more or less passively. There are lots of other businesses with better cash flow if I am actively participating.

Good luck.
Because fusion simulations are really hard. This simulation[1] took 15 million hours of CPU time to model a cubic cm of plasma. The results were used to update 5 scalar parameters in a model.

[1] http://news.mit.edu/2016/heat-loss-fusion-reactors-0121
> "late stage capitalism"

What does this even mean? Sounds like an activist buzzword. What evidence do we have that there are even "stages" to capitalism much less that we are in a later stage?
The former was depricated because the automatic tunneling transition method was depricated and none of the current IPV6 transition methods use them.

Now some software use those addresses to store IPV4 addresses in the same memory as an IPV6 address.
Yes, but the minimum wage is the US is abysmal, and "well above" abysmal is still basically subsistence in many places.
Bell Labs, over 1k PhDs at some point.
What do you mean by C not having arrays?
I don't buy that.

Every wifi chipset has working drivers; therefore there is little to no value in Broadcom's driver as "IP".

Contrast that to the value of having a free driver that can receive security patches from anyone at any time.
https://en.m.wikipedia.org/wiki/Late_capitalism

Capitalism is showing its flaws if we're paying a million dollars per job just to bring the job to our soil, although I suppose it's better then just keeping Foxconn products (or products that integrate their components) out at ports (or tariff them, like Russia with phones without a GLONASS chipset).
"It would initially employ 3,000 workers making an average of $53,900 a year plus benefits and could eventually boast more than four times that"

from article
Politicians mislead to look better?!?

Though you are right, this looks like an exceptionally misleading deal from the point of view of the taxpayer. When I think of Foxconn workers I dont think of the kinds of jobs I think we would want to heavily invest in, but I hope I am wrong.
You just saved me lots of time.
>Fist of all it is not designed for server-client cases.

WebRTC is specifically designed for server-client cases. In the case of video and audio, the server is called a "mixer" or MCU. This is extremely important for large multi-user conferences - if it weren't for a mixer, you'd have to upload your video once for every user, burning all of your upload bandwidth. Examples of services using this are Appear.in Premium and Cisco Spark.

Note that games are the #1 use case mentioned in the Datachannel draft [1]. It's perfectly fine to argue that the standard is bad, but it was designed for these use cases.

The Google developer you linked seems to be arguing for improving the WebRTC C++ library, not changing the protocol.

[1] https://tools.ietf.org/html/draft-ietf-rtcweb-data-channel-1...
I can't imagine anything better than this.

I've struggled countless times against psql, trying to rewrite queries is a painful experience and this apparently solves it forever.
>This whole late stage capitalism transition is going to be painful.

The phrase "late stage capitalism" is one I've seen crop up only in the last year or so, and mostly in the context of the subreddit of the same name.

Can you recommend some reading outside of that subreddit? I find the subreddit's content narrowminded to the point that I thought it was satire at first, but I'm open to the topic in general. Especially interested in what makes these (supposedly undesirable) aspects of capitalism "late stage" rather than just "fully realized". What I mean by that is much of what people complain about under the title "late stage capitalism" is just "regular capitalism less mired by things that aren't capitalism".

edit: also unhelpful is that the wiki describes it as a marxist idea representing an era from the 40s onward, while it's typically discussed in terms of changes that have occurred relative to times like the late 60s/reagan-era/post-ww2 era that are themselves technically "late stage capitalism"
Actually not sure how to do this with magit, but I just tried `vc-region-history' while highlighting an R method signature and body and got a pretty slick view of all the relevant commits. Would definitely prefer magit for jumping to commits, might take a few lines of elisp.

EDIT: Actually, [0] mentions =L, which seems to work flawlessly. Hacking on an option to take the selected region instead of manually specifying file and lines is easy. Alternatively, magit-blame lets you look at a specific change's commit.

[0] https://github.com/magit/magit/issues/1717
I guess the most likely scenario is that the current PM tomorrow at 10am will announce that the current goverment has resigned and that it's then upon the Speaker of the Riksdag/Parliament to try to form a new government that will meet the acceptance of the parliament.

One note: the "right-wing" alliance of four parties who was behind this impeachment notice (I should use more quotes, they really are centrist as a group) parties earlier today announced that they would not seek to form an independent government with the help of Sverigedemokraterna, the anti-immigration and rightwing-ish party currently polling at around 20-25%.

Instead they would seek to form a new government together with the social democratic party they just claimed was not trustworthy.

Yes, it's odd.

(On the whole though I'm happy that we can have a political crisis like this without the country falling apart. Everyone is behaving perfectly orderly.)
What a deal maker. Trump says he doesn't want anyone laughing at the US anymore, but if I was Foxconn I'd be laughing my head off if I got the White House to endorse this deal.
They only hijacked the radio chip, they didn't escalate to the main processor.

One way of attacking would be to intercept someone's internet traffic, and redirect them to a different site (ie, instead of going to Google, you go to get-hacked which looks just like Google).
It's a made up phrase that's being aggressively astroturfed on misc. parts of the net. reddit.com/r/latestagecapitalism
It would be good to have it as the reference player, for archivist purposes and to help the already existing open efforts achieve higher compatibility.
This doesn't mean it has to ever be run as a browser plugin or outside of a sandbox (such as a VM, an emulator or a bsd jail).
There is Mozilla Shumway which is an open source Flash runtime in JS.
I'd love a phone on which the "phone" UI was simply on choice of app but could be docked to an HDMI & USB device, then boot up windows and run windows desktop apps. I'm not too fussed if it is a little slow.

Heck, you could even just use the phone's display as a keyboard / touchpad for the windows OS while displaying a desktop on the monitor.
All this discussion about UDP and MTU reminded me of an old StackOverflow answer of mine (https://stackoverflow.com/a/276096):

"Alternative answer: be careful to not reinvent the wheel.

TCP is the product of decades of networking experience. There is a reason for every or almost every thing it does. It has several algorithms most people do not think about often (congestion control, retransmission, buffer management, dealing with reordered packets, and so on).

If you start reimplementing all the TCP algorithms, you risk ending up with an (paraphasing Greenspun's Tenth Rule) "ad hoc, informally-specified, bug-ridden, slow implementation of TCP".

If you have not done so yet, it could be a good idea to look at some recent alternatives to TCP/UDP, like SCTP or DCCP. They were designed for niches where neither TCP nor UDP was a good match, precisely to allow people to use an already "debugged" protocol instead of reinventing the wheel for every new application."
This is pretty standard for deals like this, Nevada gave Tesla 1.3 billion for the Gigafactory. This "could" draw 3 billion. It's just tax incentives, not like it's a cash payment. But anything to make Trump look bad I guess.
Probably referring to the fact that they are simply pointers into contiguous memory.
You still will be able to run your SWF files after 2020 using the latest Flash Player Projector.exe.
I assume they mean that C's support for "arrays" is essentially just C's support for pointer arithmetic plus a mapping of a[b] to *(a+b).
Since it's enough if a single sperm successfully makes the trip, that seems unlikely.

The situation is probably too complicated for a crude model like this to really apply well, but it seems to me the rough sketch of it should be more like playing Yahtzee and rolling for at least one six with a subset of the dice instead of all the dice.
(In that case the chance to succeed is the complement of the product of all chances to fail)

I think this is a very good and relevant question.
What does it actually mean for fertility?
Quality of the sperm rather than quantity is probably a much more important factor for that. (What a shame that's much more difficult to assay...)

But regardless of whether it leads to a marked impact on fertility, for an important biological function to drop like this in so large populations is a big blaring air-raid siren of a signal that someone needs to sort out why and fix it.
Everything I have ever read, seen or heard suggests to me that plans to make babies need quite a lot of buffering on your time frames in ways that can account for kids showing up vastly sooner than intended or vastly later than intended. Almost no one seems to take this into account.
Its clear users here see value in WSJ articles. To the extent that whenever it is posted someone asks how to circumvent their subscription paywall. They do good work and create articles people want to read, I don't think its fair not to suggest people actually pay for the content they consume.

If these articles didn't belong here people wouldn't be upvoting them.
I didn't want to suggest that iOS is insecure because Android systems are. For Android we know most of them are hopeless, on iOS it's security by obscurity all the way with just a generally good "track record".

Well, they patched something. Maybe they just patched the firmware image that is loaded onto the chipset on boot and there was no privilege escalation onto the iOS application processor. But if there was, the obscurity means criminals can easily look at the patch to see what it was and exploit that while the public knows nothing.
It's syntactic sugar in the sense that arr[i] is just shorthand for *(arr+i)

There's no abstraction or 'concept' of arrays there. You are literally just telling the compiler to take a certain pointer and move i steps ahead.
There are all kinds of people who have never heard of Craigslist within the United States. There are also plenty of children under 18 who have never heard of Craigslist. Despite its popularity and relative staying power, Craigslist belongs/belonged to a specific sub-generation.
Tax incentives are not the same as cash payments
Is realtime AI a thing?
And who's to say another chipset won't have a similar issue?
You misunderstand.

It isn't that a novel form of primitive life arises then gets eaten; the building-blocks necessary for a novel form of life to arise get eaten before those building-blocks have much chance of interact at all. From what we can tell it would probably take many millions of years of chemical interactions in the appropriate conditions after being seeded with carbon-based molecules from comet/space impacts (since carbon compounds seem to be relatively common).

It seems likely that life will spread and adapt somewhat quickly since it is usually easier to find new resources than enter an arms-race over existing resources. That leaves a very narrow window of time (in evolutionary terms) for life to arise >1 time independently then evolve enough to be on equal footing with the other form(s).

It also seems far more likely that if this very rare event takes place one of two things happen:
1. One form of life has a head-start in the arms race and overtakes the other, completely wiping it out
2. The two forms of life are compatible enough to exchange genetic material because they evolved from the same raw building blocks deposited on the planet; though it mostly fails to produce viable offspring in a few cases the forms successfully cross and the new third form of life successfully outcompetes its progenitor forms.

As for Mars, it seems likely that life never evolved there at all.

The next best explanation seems to be life never got beyond single-cell organisms and struggled to eek out a short existence. Before Mars dried out and/or the massive hemisphere-shattering impact struck and erased what traces of life once existed.
Containers is Linux, even on Azure ;-)
Forgoing revenue is the same as forgoing a payment.
Watching "Kingsmen" last night feels very timely.
A bank will also look at the track record of a person who is proposing to pay off a loan with cash flow from a commercial property. The bank will generally not rely heavily assurances by a potential loanee regarding property value. Typically a bank will require the use of a property appraiser who appraises the property according to standard practices for appraising property based on income.
I've looked at dartknet markets. Quite often, there are vulnerabilities advertised for thousands or tens of thousands of dollars. And quite often, they claim to be an exclusive sale (ie, they'll take it down after one purchase).

And quite often, they will be relisted for months at a time. I'm not at all saying there's no market - we clearly know that a remote code exec on a common server will sell well.

Things like "Microsoft Word Exploit" seem a lot more like Duff beer - I'm often hearing how much they are "for sale" for a fortune but I'm not convinced people are getting the significant sums people refer to on a reliable basis.
Because of conditional probabilities, your analysis is wrong. This xkcd explains the issue. Someone else linked to it already, but it exactly describes the problem -- with p=0.05 >> 5% of published results are incorrect:

https://xkcd.com/882/
https://github.com/mopidy/mopidy-spotify

You can live in the future...TODAY!
Maybe if we all pitched in a couple bucks, we could buy Mr. Trump a copy of Factorio.
There is essentially no difference between giving a company money and not collecting money from them that they would otherwise pay. Economists call these sorts of things tax expenditures. It amounts to taking money from some people and companies who pay their full tax bill, and giving it to others who don't.
England's theory tells you that once you get close to a certain free energy basin you will access its optimal minimum. To my understanding it is silent about how you get "close enough"
Crash Course: Computer Science
They will not be lost after 2020. They will run as usual using the Flash Player Standalone Projector or Swiff Player.
They are a pointer and an offset with no validation of bounds. But that's OK: C is little more than a high level assembly.
sorry about not waiting longer. I didn't want to fork.

as for leaking refs, it maybe be fixed by introducing nested "Pool" objects. objective-c runtime has similar concepts and same problem with long running loops.
The subsidy is $1.5B for 13,000 jobs. The other half of the subsidy is for capital investment and construction expenses.

It's still a huge number though.
Programmer's mistake for not validating data, not the fault of C language mechanics. Yes it would be easier if <hll features>, still gotta be careful. I've made plenty of these mistakes but never blamed the language.
Indeed, or a USB drive.
Dunno if it's still true, but Qualcomm/atheros was more expensive and mediatek was cheap crap.
> What evidence do we have that there are even "stages" to capitalism

Uh, the fact that history exists, and that within the set of historic systems which follow the basic system of property rights distinguishing capitalism [0], there's a clear sequence of different specific systems in history.

> much less that we are in a later stage?

The same is also evidence that the current stage is later than the previous ones, those it is admittedly speculative (until capitalism is displaced) that it is the latest stage.

[0] There's some debate over whether the mixed economy that is currently dominant in the developed world is properly a “stage” of capitalism (the system dominant in the 19th century and first labelled “capitalism” by it's critics) and not a successor system with some common features, but we can leave that debate aside for now.
It's definitely a concern! WebRTC solves this in two different ways:

1. The receiving end must consent to receiving packets by completing the DTLS handshake required by WebRTC.

2. The browser enforces SCTP congestion control to avoid spamming large numbers of UDP packets. Basically, it'll start throttling you when it detects packet loss.
Never forget about the most important person in all recent neural network object recognition research: Mark Everingham.

Mark was the key member of the VOC project, and it would have been impossible without his selfless contributions.

https://www.computer.org/csdl/trans/tp/2012/11/ttp2012112081...

http://www.bmva.org/w/doku.php?id=obituaries:mark_everingham

Mark Everingham passed away in 2012, bringing the VOC project to an end.
They said it's a reasonable assumption to believe your private keys likely weren't compromised. That's not the same as saying it's reasonable to not move the coins anyway.
Every term is made up at some point but "late capitalism" itself isn't a new term[1].

[1] https://en.wikipedia.org/wiki/Late_capitalism
It might not be cheaper if you think Trump is going to tariff China because of their support of North Korea.
The market can be unpredictable, but people's fickle opinions cannot, apparently. If only those things were related in any way...
Unrelated to the actual topic at hand, but anybody know which software generated this svg?

http://wizsec.jp/images/theft_flow.svg

I like graphs like this. They remind me of Charles Joseph Minard's famous Napoleon graph:

https://en.wikipedia.org/wiki/Charles_Joseph_Minard#/media/F...
> Tax incentives are not the same as cash payments

They are exactly equivalent to cash payments without the special tax treatment, so, yes, they are very much the same.
That's a great thread. Anyone who has a comment or is looking for info >>> go there.
PRE MAR IN, that is tooooo hilarious. Reality really is stranger than fiction.
https://en.wikipedia.org/wiki/Premarin
They intercept and modify packets to redirect to a web site they control. It exploits the main processor through the browser.
I'm personally disappointed on HN that this comment would receive more upvotes than downvotes.

This is a typical anti-vaxxer style of argument. It even mentions trump (sic). Which on top of that irrelevance, seriously this is the level of maturity we are at, not capitalising his name?

There 'might' be some interesting science here but point blank this comment is wrong. Like all good scaremongering there are some things worth investigating but this is leaps and bounds beyond current reality.
Previous discussion from 2 days ago: https://news.ycombinator.com/item?id=14839972
Trickle down is a completely uninteresting tautology: money is used by the wealthy, so it "trickles down".

The more interesting question is if, while tricling down, people improve their life quality.

Far from true.
Circa 2014:

https://www.net.princeton.edu/apple-ios/ipad-iphoneos32-stop...
Talking to Yourself in the Third Person Can Help You Control Stressful Emotions
The longest ground-to-ground photo ever taken (443km)
At this price is Foxconn actually investing anything or is it all taxpayer financed?
The article states that: "At $3 billion for 13,000 jobs, the Wisconsin deal would cost $231,000 per job."

By comparison, economists have estimated $125K/job-year to $202K/job-year from the 2009 stimulus (ARRA). [1]

[1] https://files.stlouisfed.org/files/htdocs/publications/revie... , page 3
Right, I'm guessing they just patched the actual wifi chip vulnerability. That's why I would like someone (preferably the author) to disclose if there is indeed a privilege escalation or not and to provide more details if there is.
Corporate welfare has existed in every "stage" of capitalism, and the justifications suit the political moods of the day (jobs for one polity, greentech for another). This isn't anything new, and capitalism would be better off without it.
I guess the old saying "Nobody got fired for buying [from] IBM." isn't true any longer?
Most of the "incentive" situations are not a choice between those two scenarios, they are a choice between having the business there and giving them an (initial) tax break, or having the business go elsewhere. It's a choice between collecting discounted taxes, or none at all, not discounted vs. non-discounted.