skysight-inc/HackerNews huggingface dataset:
Sure, here's an example with lenses, taken from actual code I've written:

(for {
_ <- EventLenses.duid := UserDuid("12345")
_ <- EventLenses.contexts := Seq(EventContext.NilContext)
_ <- EventLenses.url := "http://news.ycombinator.com"
} yield ()).run(originalEvent)

This code will take an event, set it's duid, contexts and url. If you squint hard enough it almost looks like:

originalEvent.duid = ...
originalEvent.contexts = ...
originalEvent.url = ...

The thing that's cool about lenses is that they compose nicely. E.g., the contexts lens is defined as:

val contexts: Lens[Event, Seq[EventContext]] = query >=> getterMLens("cx") >=> Lens.lensu(...)

This means that first we take the query lens, compose it with a lens that gets the "cx" parameter, then do the actual work of decoding the "cx" param.
Safari's engine, WebKit, is open source. There are no secret advantages. Other browsers are free to read WebKit's code and copy its techniques.
What is wrong with UTF-16 support?
Even 1mb symmetric would still be considered good in many rural areas. As the article notes, many of these folks are still on dialup.
How+to+get+Cheap+Ticket+to+See+1000+Islands,+Niagara,+Wonderland+and+Many+More+
That's pretty much the reality of it. The other group of users who have issues with Reddit (as we've seen yesterday) are the moderators; in particular the moderators of really large communities. Many others just seem to jump onto the bandwagon.
https://en.wikipedia.org/wiki/Hashcash proof of work
Works great for Teamspeak3.
Required 'level' to join server is 22. New identity takes roughly two seconds of compute time to reach 22. Spammers never bother after first ban.
Jailbreak iOS 8.4 with Taig 2.3.0 Cydia 1.1.19
It is a good maxim for internetworked software where the cost of failing early is much lower than the cost of leaking information due to buggy error code.
While I agree with many of the ideas in principle, I'm wondering if startups are really the best benchmark to compare with. Much of what the article states might be closer to the ideals of Lean-driven firms such as Toyota. In fact, many successful attempts have already been made to bring these principles into healthcare. Without questioning the effectiveness of startups, I doubt that all of their organizational principles are well suited for a context where shortcuts and experiments can lead to real harm.
Ok, but how much energy and manpower does it take to keep this in working condition? Even moving the crew from china to japan to service the plain would have cost money and used fuel from conventional transportation.

It's a vehicle on life-support from fuel but not using it directly.

Cool to see things moving along in the right direction though
Even doubting the usually thrown around number of 6 million is punishable by law in countries like France. So now we can't debate the casualty count? Talk about double standards.

France also did the same with the Armenian genocide recently.
Slashdot's metamoderation achieves this well. http://slashdot.org/faq/metamod.shtml

It's not fully transparent -- not to the moderators and meta-moderators, at any rate -- but it's an effective check and balance for "policing the police."
You are right about the bonds, in fact it should end up being very profitable.

If fiber is run through people's neighborhoods, 1gb is not any sort of hard limit, it is just a nice round number that coincides with 1gb ethernet being a limit of most people's equipment. Even now DOCSIS 3.0 can give people 300mb connections over cable, so cable has advanced an enormous amount.

Just like an ethernet cable has scaled up from 10mb to 1000mb fiber can carry more. You could wire your home up with a 40gb network right now if you wanted to pay for the $400 network cards and more expensive routers.
>Spain lacks a cultural framework that would make the population want market based reforms

I'm no expert on Spanish matters, but didn't they elect their current government, which advocated market based reforms, right in the middle of the crisis??
Great quote from a resident (in a press release linked from the OP):

“Our family has lived in Goshen for almost 30 years. Over that time during town meeting, we’ve debated the costs of a fire truck, an ambulance, several highway trucks and police cruisers, capping our dump, a new elementary school, an addition to the high school and now the construction of a regional broadband network. Never [before] in the history of Goshen have we had to change the venue of the meeting because so many people turned out.” All 240 voters were unanimous in their support of the bond authorization.
Almost all discussions are focused inwards. That a foreign agency is trying to spy is no surprise. The big shock* comes from the details how german agencies were not only incapable of protecting anything but even helped foreign agencies to spy on our government and industry (obviously, spying on all citizens was not even a real topic for the governemt).

*) Unfotunatly, its mostly some media who even care about this stories. Most citizens are too lazy to even admit that this is a big scandal and Merkel uses her strategy of just doing nothing until media cannot earn enough money with the stories so that everyone just forgets. The only bigger outcry came from the industrial spionage allegations (media were like 2-3 weeks on it) because $$$.
Seriously: do you think it can revert the "native mobile apps is the only future" trend?
> Whenever there is one of those types of articles there is always several people claiming that whatever NSA is doing is exactly what they should be doing, and at any point its what everyone else is doing too.

It's not that what intelligence agencies do is morally OK, it's that it's practically necessary for a country not to be at a terrible disadvantage economically.

> So is there something which would not be appropriate if NSA did? Assassinate leaders, murdering school children, causing nuclear meltdowns... where is the line so we in the future can point to that whenever this kind of news pops up?

NSA does signals intelligence, not assassinations. I don't know what rules are in place as to what's OK in spying/sabotage and what isn't, but I imagine it's something not super unreasonable...
Has he actually been awake for 76 hours straight or is there an autopilot feature he can enable to get a few micronaps in?
That emotionally sucks, but the guy hadn't actually done his job for almost a year and still felt entitled to it?
No, here-documents should not be required. The security settings should be a lot more intuitive, etc.
Shouldn't it be "Iceland abolished blasphemy" ?
Adding 1,200 image components to a web app and never cleaning up the ones that aren't visible is a poor approach to building a mobile web application.

It doesn't matter what technology you use, it's a bad idea.

So he's basically tested the performance of a badly architected application.
It's an encoding that isn't good at anything: it's neither ASCII-compatible (like UTF-8), nor fixed-length (like UTF-32), but because most characters require only 2 bytes, developers frequently assume that none require more, leading to bugs when a character eventually is represented by 4 bytes.
No for fucks sake, it does not make a lot of sense.

If we allow this shit to happen, we lose as a democracy. How on earth do you think it could be even remotely acceptable to spy on a journalistic outlet?

/rant
Coroutines, Go style.
Prior discussion: https://news.ycombinator.com/item?id=9762412
is possible in USA to get fired with no procedures, or not getting any money?
It seems you are misunderstanding the situation because you are talking about not making “it” an option and you are then reiterating what I also said.

Even if I repeat myself: I think there should be one default formatting that is standardized and there should be the option to emit in other formats such that everyone can read in the individually preferred format.

With fmt you don't need to establish formatting rules on a project basis, anymore. Everybody can just configure their editor to format the code how they want it to look. That is why I think rustfmt should be compilable as a library, too.
Solar Impulse 2 Aircraft Breaks Records
Personal projects. As a junior it's hard to get the authority to make long-term architectural decisions in the workplace. It's not really enough to work inside someone else's architecture; seeing something grow from nonexistence is the one true path.
Why "might as well"? Things can be optimal in some places and suboptimal elsewhere.
In bash at least, cd with no arguments takes you back to the home directory.
Their ATS can only exist by free-riding on the public price discovery in displayed US markets under Reg NMS. They protect their customers from trading at "wrong" prices by letting traders on faster exchanges determine what the "right" price is for them.

As a thought experiment, imagine IEX captured 95% of market share as a displayed exchange. The 350 microsecond delay wouldn't matter since it's applied to everyone and there would be no reference markets for them to price against. It'd just be another market with a slightly slow matching engine. Relative speed still matters so fast traders would have an advantage.
I don't see andreyf's comment as being supportive; rather, it comes across as sardonic but lucid.
And all successful activists.
"We've decided to pivot on your cancer treatment. Our infection control program has also been sunset."
I see two differences hidden between much overlap: expert/layman and embrace constant retuning/embrace creeping detuning. Since we are only taking about allowing investors to tap into possible efficiency gains in the execution of bureaucratic processes (and not into actual resource allocation, as it happens for example in highly regulated but not fully state-run healthcare systems or in renewable energy programmes), there is a natural upper limit for disoptimization. So in a way this problem is much easier than other, very similar regulation/gaming the system scenarios and a loose reins approach should be less risky.
I occasionally filch URLs from from http://www.aldaily.com, which was the case with this one. Their tag was:

"The Japanese literary scene is plagued by rehashed American literature. Contemporary novelists are “brainless writers of crap.” Exhibit A: Haruki Murakami..."

(I modestly used as a title the last sentence of this bit:

"Mizumura discusses the problem in a broad cosmopolitan context, warning the world not only of the impending fall of Japanese but the likely fall of all national languages in the age of English and the internet. Japanese is just the canary in the coal mine."

but the inexorable "original article title" HN policy eventually prevailed ;-)
>How can you even mix rich and the poor in the same ship? Assuming both rich and poor have to pay the same fare, it would be either too much for the poor, or "too cheap" for the rich (meaning, they will use a more exclusive vessel). The "segregation" just happens naturally.

My guess is that the rents in the building are not uniform.
Even Apple is allowing side loading from iOS9 iirc.
>>rules are in place as to what's OK in spying/sabotage

I don't know, I guess I would assume that anything goes in most situations. Having paid attention to what's been done in the past...
I hope not everyone is this short sited.
> The real question is how a framework holds up in production

You're completely right, and that's why I'm also very skeptical about this framework. I'll see how it holds up in a year or two before using it.
So you're a big a.s. cii fan?

I don't feel like looking up why you think that's a real comment. Just sounds like "Paid for by the council of American Samoans who don't bother actually reading or watching anything because they're probably illiterate".
Promoções de suplementos com descontos
>The original trader still has the ability to capture his information rents in a single trade on one market... That's all anyone is guaranteed

Yes this is the essence of it. Based on other posts, I would guess that if you really wanted to make simultaneous trades in multiple markets, then you could. But even if HFT really did render this impossible, it's not a bad thing, since it trading in two exchanges simultaneously actually gives more rents to the large trader than the theoretical ideal of a single continuous double auction. And if you want to trade in A then trade in B based on the results of A, then you certainly don't deserve to be the first to make it to B.
Voat is built in asp.net MVC, so once the .net framework goes to the next version they can actually use either of those easily
I've used a switch statement essentially as a jump table for this purpose. I'm curious whether that would have worked, or if you were doing something different enough that you needed a goto.
Yes. Most of the US is employment-at-will by default, which means that you can legally be fired without cause, notice, or compensation other than that due based on work prior to the moment of termination.

(Now, there are still reasons for which it is illegal to fire people, and, in part to avoid disputes over whether one of those were involved -- and, on the procedural end, in part to actually work to resolve issues that might be resolved short of firing -- employers will often apply substantial procedures before firing, and even when firing offer a severance package, potentially explicitly contingent on an agreement not to sue.)
Duplicate of https://news.ycombinator.com/item?id=9826131
All 50 states have "at-will" employment, which means the employer can let the employee go or the employee can choose to leave at any time with no reason given. There are limitations on certain kinds of jobs, and severance packages are common but only for full-time or salaried employees I think. https://en.wikipedia.org/wiki/At-will_employment
Well unlike many on this site, you demonstrate a slight bit of reading comprehension.
I hope OP will reply - stating that some totally unacceptable thing "makes sense" does indeed sound supportive, at least to my naive soul.
Protip: always start a Part N post w/ a paragraph saying "If you haven't read Part N-1, here it is blablabla".

(Wow, I feel like patio11 now)
And they SHOULD let their banks suffer the consequences of bad decisions.

That's the only way a bank will learn to properly weigh benefits versus risks. If they get bailed out whenever a bad risk blows up, they won't learn to avoid or charge rates appropriate to the level of risk.

And depositors should also think twice about where they put their money.

If we want banks that don't default, we should have banks that only issue mortgages for less than 80% of a home's pre-bubble price. Let the buyer or another lender be on the hook for the risky part of the loan.

And if this bank fails, let its assets be turned over to a corporation owned by all the depositors, whose shares they can buy and sell. There's no reason to make the taxpayers pay to recapitalize the bank and keep the unwise bankers in business.

If there's a demand for that level of risk and the low rates it pays, that will solve the problem who want that level of security.

But we want to be insulated from risks and have them spread around to other people when dumb investments blow up. So even wise investors are stuck paying the costs. And we DO eventually have to face these costs despite all the borrowing and money creation we do to paper them over.
I don't know much about Rust and Rust library, so I have a question: what if I what to develop Windows only software in Rust, will I need to convert back and forth between UTF-16 and UTF-8 (or whatever Rust uses in other parts of the library)?
Indeed, Apple briefly added a sort of full-screen mode to iOS Safari (Google "minimal-ui" viewport for more info) but removed it due to abuse.
Good point. Society should favour those who take fallow domain names and turn them into productive IP!

I suspect he did "nothing" (our term) with them by simply getting mere email via that domain, or running a background service, or even just musing in the back of his mind about building a business for which workbetter.com would be a good domain.

But let's just say Mehta starts his "coworking" space. Then perhaps society later deems it good to have a program that takes the underemployed and increases their skill levels. Or encourage those whose jobs have been replaced by robots to find more spiritually fulfilling and socially valuable volenteer jobs in the community. Then we can take the worksbetter.com name away from the useless coworking space and redirect it to a socially more beneficial use!

Look, I hate squatters, but Keen seems hardly even close to being one of them. What he is is someone who shows that the cost of getting rid of squatters is higher than the burden of having those parasites around.
The C standard does not allow casting directly between function pointers and other pointers; they might not even be the same size. Using a union or memcpy will allow you to standards-compatibly reinterpret the bit pattern of a function pointer as a data pointer or vice versa (modulo size differences), but creating the resulting pointer, even without dereferencing it, might cause a crash if the bit pattern is a "trap representation", and in any case dereferencing it isn't guaranteed to do anything useful. ...Not that a portable program has any business trying to read instruction opcodes in the first place.
Nuking Users with Dan Huard (reddit's newest community admin) on diggnation
Tail call optimization

https://mail.mozilla.org/pipermail/rust-dev/2013-April/00355...

https://github.com/rust-lang/rust/issues/217

> I'm sorry to be saying all this, and it is with a heavy heart, but we
tried and did not find a way to make the tradeoffs associated with them
sum up to an argument for inclusion in rust.

> -Graydon
p2 (https://www.eclipse.org/equinox/p2/), the provisioning platform used in Eclipse, uses a SAT solver (specifically, http://sat4j.org/) to resolve complex plug-in dependencies (with version range constraints and other OSGi-specific niceties) when you install or update plug-ins in Eclipse.
Sheesh, it's such a little thing. "success" vs "return success;"
A bitecode interpreter is another place where it's nice to have gotos.

Here's the base code without gotos:

typedef enum { ADD, MUL, ..., END } opcode;

void run() {
opcode ins;

while (1) {
ins = fetch_next_inst();
switch (ins) {
case ADD:
perform_addition();
break;
case MUL:
perform_multiplication();
break;
...
case END:
wrap_up();
return;
}
}
}

You have 3 jumps on each loop. From the break to the end of the loop, then from the end to the top, and one from the switch to the right case. The first one might be optimized away, but let's remove it explicitly.

typedef enum { ADD, MUL, ..., END } opcode;

void run() {
opcode ins;

start:
ins = fetch_next_inst();
switch (ins) {
case ADD:
perform_addition();
goto start;
case MUL:
perform_multiplication();
goto start;
...
case END:
wrap_up();
return;
}
}

Assuming a non lousy compiler, we haven't improved anything yet. But now the fun starts. We can go down to one jump for each iteration.

typedef enum { ADD, MUL, ..., END } opcode;

#define NEXT() \
do { \
ins = fetch_next_inst(); \
goto *jump_table[ins]; \
} while(0)

void run() {
opcode ins;
static void *jump_table[] = { &&add_l, &&mul_l, ..., &&end_l };

NEXT();
add_l:
perform_addition();
NEXT();
mul_l:
perform_multiplication();
NEXT();
...
end_l:
wrap_up();
return;
}

Voila! a single jump every time around. Now, depending on what kind of architecture you're running on, the size of the cache, etc, this may or may not be faster.

Granted, this is not the kind of code you write everyday. But sometimes speed matters, and good luck writing this without gotos.
It's written in a wry, underhanded way, invoking the mindset of someone at the intelligence agencies. I really see no need for the OP to clarify. But if I'm wrong, and OP's true position differs from ours, what of it?

Edit: chinathrow is actually correct, I thought OP was being sardonic but they seem to be sincere based on their follow-up comments.
After the CVE score for BEAST and RC4 got adjusted and the RFC 7465 was introduced I've seen some payment systems update their system quite quickly (in a matter of days),
and if they didn't they'd probably fail their next PCI audit:
https://news.ycombinator.com/item?id=9198889

Perhaps it helps if you write your payment site operator/bank private emails asking them to allow other ciphers beside RC4, mine looked like this (actual site name removed):

According to Qualys SSL Labs the site **** [2] only supports the RC4 cipher,
and thus is not RFC 7465 compliant [3], and Google Chrome qualifies the site as
"Your connection to **** is encrypted with obsolete cryptography."

The site **** is even worse [4], it uses only 768-bit DH key exchange in some
situations (instead of 2048).

There is an online tool [5] that you can use to generate/compare
configuration for popular web-servers, using the intermediate level is
recommended [6].

For your information I sent a similar email last year to **** and they have
fixed their problems, and get a nice 'A' grade from SSLLabs now.

Apparently this use of RC4 all comes down due to a mistake in NIST's
classification of the severity of the BEAST vulnerability [7], but both Google
Chrome[7] and Mozilla Firefox[8] are trying to avoid the use of RC4 completely,
and mitigating the BEAST vulnerability is no excuse for not providing good
ciphers (in addition to RC4 if you must) when my browser supports TLS 1.2 with
AES-GCM which is NOT vulnerable to the BEAST attack.

I suggest you to include the Qualys SSL Labs test when testing sites for
PCI-DSS compliance, they are usually quite good at reporting the latest TLS
vulnerabilities for a server.

[1] http://www.visaeurope.com/media/images/pci%20dss%20validated%20web%20listing%20march%202015-73-18412.pdf
[2] https://www.ssllabs.com/ssltest/analyze.html?d=****
This server accepts the RC4 cipher, which is weak. Grade capped to B.
Certificate uses a weak signature. When renewing, ensure you upgrade to SHA2.
[3] https://tools.ietf.org/html/rfc7465
[4] https://www.ssllabs.com/ssltest/analyze.html?d=****
This server supports insecure Diffie-Hellman (DH) key exchange parameters. Grade set to F.
Certificate uses a weak signature. When renewing, ensure you upgrade to SHA2.
The server supports only older protocols, but not the current best TLS 1.2. Grade capped to B.
This server accepts the RC4 cipher, which is weak. Grade capped to B.
[5] https://mozilla.github.io/server-side-tls/ssl-config-generator/
[6] https://wiki.mozilla.org/Security/Server_Side_TLS
[7] https://code.google.com/p/chromium/issues/detail?id=375342#c30
[8] https://bugzilla.mozilla.org/show_bug.cgi?id=1088915
[9] https://www.ssllabs.com/ssltest/analyze.html?d=****
Is there source available somewhere? What is the Lisp component? Clojure?
At least reserve the word, in case you change your mind in the future? I guess it's too late now...
The turn away happens already.
http://money.cnn.com/2015/07/01/investing/puerto-rico-bond-h...
'Business" captures:

1. That Apple isn't a nice person or a mean person because Apple is an "it" not a "they."

2. That the only important thing is running a sound business and that decisions are ruthlessly grounded in economics.

3. That none of it is personal.
I meant it makes sense legally or practically - it's not unheard of that allied intelligence communities cooperate to spy on each other's citizenry.

I don't think we lose as a Democracy just from the spying alone, but rather what is done with it.
Moderators can ban people for posting things. OP was talking about banning people for upvoting things. Your point about the link being removed vs the content doesn't fit. Let's say it just partially bans them and still lets them post stuff that won't make it to the actual page, but if anyone has the link they can see it. Is that really a meaningful distinction?