skysight-inc/HackerNews huggingface dataset:
> At my last job we had a large Scala codebase and it compiles faster then our similarly sized C# project, and much faster then my current gig's much smaller Gradle based Java 8 project

I never looked at that way before. We were a shop that used scala and Ruby.

So many of us come from interpretted languages and are used to code and tests reloading with no downtime. How does scalac match up to C# and Java compilation? I'd be interested in seeing the numbers.

Thank you!
One approach that I've found works well (YMMV, etc) is deploying with Ansible. It has a Git module built in (so it's almost 0 work to configure), and you can set up SSH agent forwarding so you never have put keys on the server that have access to your source control, nor manually SSH in and pull.
The standard way to resolve distinct variables is SSA-based decompilation. I've only worked with decompiling Java bytecode, so I don't know how the CLR works, but in Java, the compiler definitely reuses the local variable slots.

There's also no discussion of type inferencing for variables, parenthesizing expression DAGs properly. I suspect properly decompiling control flow would be in part 2, but I'd be surprised if that were anywhere near robust, based on the quality demonstrated so far. Which is sad because this sort of decompilation has been practically demonstrated and solved for, oh, 10-20 years.
did you look at Kong? https://github.com/mashape/kong
Mary celeste
There are a number of people who are asking about countries besides the US. Because of Bone Marrow Donors Worldwide[0], it doesn't matter where in the world you are and where you register, as long as you register with an organization which shares their info with the BMDW.

OP, in case you haven't thought of this already: CISA is the Columbia Iranian Students Association. They may be able to help you reach out to other Iranian friends and family. Turath is the Arab students association; that may be worth a shot too. Great Neck is right nearby, and there is literally a 100% chance that someone at CISA is from Great Neck and will be able to get the word out to the Persian community there.

You're from LA so I'm going to guess you're either from Beverly Hills or are in touch with the community there, but if not, someone at CISA will definitely be as well.

[0] https://www.bmdw.org/
A new test for artificial intelligence
The downside is that now you have a whole other ecosystem of tool wrappers that tends to lag behind the tools themselves. They also tend to be JS specific, so if you have any other assets, you'll still need a regular task runner.
Bunnings Gift Card Scam – MailShark
There's the obvious reason -- that digitization is expensive, relatively speaking -- but even more so, the rights to a lot of those older movies are not well defined. Many of those older movies are under contracts that have no provision for digitization, and in many cases the rightsholders who could grant a license are unknown. It's a mess.
> The project is based on the philosophy that much academic information should be freely available to anyone. It aims to allow information sharing within internationally dispersed teams, and the dissemination of information by support groups.

http://info.cern.ch/hypertext/WWW/Summary.html
That isn't true. I don't understand why you can't use a language that offers encapsulation.
Frankly, I would think it irresponsible if the Greek government did not have a Plan B in place - be it parallel payments or a return to the Drachma. If (when?) it becomes necessary to do so, such a plan would need to be implemented with haste - they won't have the luxury of telling the markets "we'll be doing this in 3 months, once we work out the details".
And his answer is:

I believe that we are several decades (at least) from using deep learning to develop general AI.
How is it even possible to come to that conclusion? The web was about document and hyperlinks and nothing else when it began. There was no scripting. Tables and inline images were later additions. Some of us were actually using and creating content for the web in '93; you can't ret-con us out of the picture.
a WW2 scale war is absolutely still possible. Back before WWI started, there were many economists that said war between modern countries was basically impossible due to all the economic trade. Not only did WWI happen, but an even worse war happened relatively shortly afterwards.
I can't see how that's in any way treasonous. Treason is going against your country. Investigating an alternative monetary system -- at the request of the prime minister -- hardly seems like treason. Especially if you're the finance minister. Keeping it a secret doesn't make it treason either.

Treason would be to defect from Greece to the IMF or ECB or Germany with information to sink Greece and eliminate any kind of negotiating power that they might have.
That demonstrates some design flaws of Java, yeah, because your "private" variables are effectively just globals anyway.

The guy who is not using encapsulation at all this year will be making similar mistakes (massively long bodies, proliferation of unnecessary entities, etc.) if he switches to functional programming next year. It's not a panacea.

I'm afraid this doesn't demonstrate that any tiny bit of statefulness is "exhausting."
- Read the table of contents before buying a book.

- Subscribe to Safari Books Online (expensive, but worth it) so can curate a 'queue' of books and you always have them with you.

- When you start reading a book, re-evaluate regularly whether you want to spend more time on this chapter or on this book. If not, skip ahead or move to a different book.
Question: I subscribed to a bone marrow registry a couple years ago, but now I relocated to another country. Should I register again? (both countries are in the EU)

I guess that if I'm compatible I will still be notified by the registry in the old country (or at least, my family will be notified)... and it'll only be a bit of an hassle to handle the donation, but it shouldn't be terribly urgent to resubscribe, am I right?
Holy shit this is amazing. And I'm so happy you have been event-free for so long! (To be honest, Wikipedia makes AML sound terrifying; I have ALL). I just looked over the site and the last post and accompanying blog made me feel better about jumping into this next round of treatment. Thanks so much. I'll definitely share this.
My daughter is now 7, so what do I remember about the first two years of her life? Being more tired during that time than when I was running patrols while deployed.

Having a child requires super-human levels of endurance, especially when you are attempting to balance a career, school, and social obligations.

You're probably going to lose time on your hobby projects for a few years, it's easier to accept that than fight it. At the same time, you'll learn to work smarter with the time you do have.

Having a child, is the best feeling in the world. You wake up everyday full of fear, knowing this little person depends on you for food, shelter, and guidance. You'll see them grow up, want to become involved in their hobbies, learn that leaving at 5 and making the nightly family dinner is very important to you.
What PhDs do wrong (and right) when applying for Data Science jobs
The+#1+Relationship+Advice+You+Could+Hear
Is this a regional/local situation where you live? I've worked at a handful of restaurants in the Northeastern US in the back-of-the-house staff and never once did cooks get a cut of tips.
"WIRED understands that there are multiple labs around the world working on their own EmDrives, although Tajmar's is the only new one willing to go public so far."

I'm very curious about this bit. I wonder who is working on it?
6+Ways+To+Attend+Church+Without+Stepping+Into+A+Building
First of all, you should put contact info in your github profile, and in
the "about" section of your HN profile (the email field is only visible
to you). Many prefer to discuss health matters privately.

The issues you face as an ethnic minority are severe. More than 15
years ago, it was an expensive and error prone nightmare to attempt
doing an international search across all (or relevant) country specific
donor databases. Hopefully things have gotten better since then.

If memory serves, there was a national marrow donor database in Iran.
Hopefully, you have friends or family who know Persian well enough to
help you find it.

If you are unable to find a donor match, you might want to consider a
cord blood transplant. In short, they use stem cells harvested from cord
blood to rebuild your bone marrow after ablative chemo. It was a highly
experimental treatment method more than a decade and a half ago, but it
did have a number of successes, and the state of the art in treatment
has most definitely improved since then. Yes, my knowledge of leukemia
treatment research is badly outdated.
No? Grabbing your central bank's reserves without any involvement of parliament and preparing to arrest its chief without any legal justification sounds fine to you?

It would have been the ultimate power grab by Syriza, going against all laws and democracy.

Just because Syriza got a majority in the elections doesn't mean the rule of law has been suspended.
In practice with Lua, being dynamically typed isn't really the metric we're concerned about for power consumption. Typically Lua is used as a scripting interface to native APIs and hardware (via C). This is where most of your power consumption is going to live. Powering up a wi-fi antenna? That's going to cost way more than anything you can measure in Lua. Writing a video game? Your GPU is consuming most of the power.

And Lua has proven itself in limited/constrained resource environments for over 20 years. In practice, it is really good in this space.

And a further interesting point about Lua somebody pointed out to me...now that most modern architectures are cache oriented and memory buses are often the bottleneck, it is amazing that Lua is small enough to fit in the L2 cache. Think about this...it is almost like having Lua in hardware on the chip.

Note: Canonical PUC-Rio Lua does not have JIT. You aren't burning all the cycles you think you are if you are applying typical arguments about the JVM or JavaScript JITs.

Edit: typo
I tend to agree the world is much better today.

However, to keep things in perspective I have highlight 3 recent wars/genocides:

1. The Great African War/the African World War (1998-2003): 5.4M deaths (some estimates as high as 20M);
2. Bosnian Genocide (1992-1995): 100,000 deaths;
3. Darfur Genocide (2003-ongoing?): 500,000 deaths and counting, 3 million displaced.

While my examples are no where near the scale of WW2, perhaps hidden in there is a much larger human tragedy. Namely how few people are familiar with the existence of these 3 modern events that took the lives of 6M people in the last 20 years.
Not sure, I just heard it from "friends friends"; the region is Midwest.
I wonder how they rule out the effects of the Earth's magnetic field. I can see there being some small effect due to some kind of eddy currents pushing ions into one direction. Maybe they turn the apparatus at multiple angles and check the bias to north-south?
Has any independent laboratory confirmed this effect and published on it in a peer-reviewed journal?
This is why we can't have nice things (R and Python)
> What citizens would accept attacking their brothers and sisters in another country, attacking their trading partners with whom they make their livings?

The bitter truth that Russians have to deal with is that most of the population is so susceptible to being brainwashed, they will gladly turn on their brothers and sisters after a few years of watching state-controlled media.
Actually, most header fields don't allow comments. The most common one that does (User-Agent) isn't exactly necessary for processing, and is its own little world of bizarre pain.

There's a lot of historical header abuse caused by the fact that HTTP sort of shared a syntax with email MIME headers, but HTTP implementations have generally started treating such abuses as malformed. (MIME on the other hand still hasn't. It's actually quite gory.)
I believe the intention here is to use the super-optimiser to derive specific generally-applicable optimisations that can be contributed back to LLVM as peephole optimisations, rather than running the super-optimiser as part of the usual compilation process.

That being the case, it seems like it would be advantageous to create optimisations that work at both stages of compilation - not least because the IR-level ones will be more widely applicable.
Is there any evidence for this?
If the inputs are

+ve: a | aaa | aaaaaaa | aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-ve: b | 1000 | cd

a+ would by most measures be a "smaller" regular expression than a|aaa|aaaaaaa|aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

No?

EDIT: Formatting.
Hi chimeracoder, first of all big fan of your work.

I did reach out to CISA and the co-presidents got in touch with me. And my dad has gotten the word out in the LA Iranian community. I don't know anyone from Great Neck though. And it always feels awkward asking someone that I'm not related to to put up flyers for me. A sense of shame when I need it least! Thanks for the heads up, I had forgotten about Great Neck.
This will help in the battle to verify correctness or security of client-side code. Pre-existing tools and code supporting that for ML can be applied immediately. Covert channels & information flow are getting more mainstream attention in recent years. Might work those issues out with Flow Caml, recode equivalent in this, and compile to JS. Would need an analysis on the JS code & runtime itself, though.

I mainly see it useful for what ML is always good at: developer tools. ML has been used to write many robust tools offline. There are also many tools hosted online or in a browser. Might be a step toward (a) moving existing tools online for easy experimentation and (b) deploying new ones.
Mostly interviews and Kubernetes launch showcase videos :)
A similar, more mature & full-featured, approach. Has the power of the Ocaml community going for it. Quite the head start. :)
> What citizens would accept attacking their brothers and sisters in another country, attacking their trading partners with whom they make their livings?

You might want to take a look at the data of import / exports for countries in Europe before WWII. Being someone biggest trading partner didn't stop anyone's attacks.
Are you guys willing to accept a solo hw startup founder from USA?
Having studied some meteorology in college I haven't heard a coherent example of what changes people believe have happened to the weather patterns or why. If you want to reply here, I'll check back from time to time.
Show HN: A quick way to pull PR to review (shell script with one line)
I agree that the amount of lives lost post WW2 have been largely ignored.. You may find this visualisation of deaths in WW2 interesting: https://vimeo.com/128373915
> Do you think its worth it?

My analysis -- when I pondered the same question in my late 20s: no.

At the time, I even worked for an employer that would shoulder a good chunk of the cost, and I still worked it out to be around 20-30K out of pocket (this is at a decent, but not Top 10 program.) I'd need to take the GRE, and the course load would be fairly time-consuming to graduate in 3 years. I don't know what level of drive you have, but after I crank through a 10 hour day coding in my day job, I doubt I'm going to have the energy to attend classes, do homework assignments, and study for tests.

After all that effort, what do I really get? I'm well-paid already, and I prefer small companies that wouldn't really care what my level of schooling was as long as I can get the job done. Quite frankly, I believe that I can, and do, learn far more by reading online and playing with side-projects.

That said, I thought my BS in CS was well worth it, and if money was no object, I would be a full-time student pursuing a PhD in CS.
I have one in Persian only. Do you want one in English?
NASA has a group working on it: http://ntrs.nasa.gov/archive/nasa/casi.ntrs.nasa.gov/2014000...

The Northwestern Polytechnical University in China is testing a version of the EmDrive: https://dx.doi.org/10.1088%2F1674-1056%2F22%2F5%2F050301

Finally, a number of amateurs are interested as well: http://emdrive.wiki/Building
For WSJ I've taken to selecting the headline, then right clicking and searching for it. There's usually any number of other media covering anything they do.

https://duckduckgo.com/?t=lm&q=Fiat+Chrysler+Faces+Record+%2...
"Roger Shawyer is encouraged by Tajmar's work, which he says validates his own theoretical predictions as well as his experimental results. Shawyer has often been dismissed because of his own lack of peer-reviewed scientific publications. That looks to be changing very soon; a paper Shawyer presented at the International Astronautical Conference in Toronto in 2014 is in the final stages for peer-review for publication. This describes an advanced EmDrive-powered spaceplane."
Deep Knowledge Tracing
This is why in UNIX-like systems, file/device permissions have to be checked using the authorisation that was in place at open() time and not at write() / read() time; this allows passed or inherited file descriptors to function like capabilities in this sense.

For example, when you run a setuid binary, it inherits file descriptors (stdin, stdout and stderr) that were opened by the caller - to prevent a certain class of confused deputy attacks, writes and reads on these file descriptors should not use the elevated privileges of the binary but the original privileges of the opener.
It's good to see that someone finally got around to testing this in a vacuum. Here's the paper mentioned in this story:

http://arc.aiaa.org/doi/abs/10.2514/6.2015-4083

High levels of skepticism are still warranted, as much as I would love for this to pan out. Every time this gets tested—presumably more and more carefully—the measured force gets smaller. The original test at Chinese Northwestern Polytechnical University measured 720 mN; this latest test in a vacuum chamber, only 20 μN. This is so tiny that a test anomaly would seem a much more plausible explanation than a violation of the conservation of momentum.

Of course the ultimate test would be to put one of these in space and try accelerating something with it, in the same way that the ultimate test of a perpetual motion machine would be to make one perform macro-scale net work.
One more:
https://cesanta.com/smartjs.shtml

Opinion: Lua is a better choice for IoT but alas the programming "market" has (again) chosen the worse alternative.
I have a stupid question: what do I actually need to do to be registered? Like, am I going to be driving somewhere to have a needle stuck in one of my bones, or do they just draw blood, or do I just... give someone my name?

I'd totally do this if it was laid out in a super simple way, and wasn't going to cause me significant long term harm, pain, or risk thereof.
> preparing to arrest its chief without any legal justification

Where did you see that? I didn't see that talked about anywhere. I literally did a ctrl-f in the article for "arrest" and it didn't show up anywhere.

> Grabbing your central bank's reserves without any involvement of parliament

Yeah that might be weirder. Was Varoufakis supposed to turn the prime minister in the second he suggested it? Start proceedings to impeach him?

I get that there are lawful orders and unlawful orders. How do you tell which is which? Especially given that Greece's creditors are talking about some serious financial consequences.

If the US had only UK owned banks, and the UK government was pressuring the banks to all be closed so as to choke the US via the banking system there's an argument to be made that the US government has not only the right but the duty to take things over.

I'm not saying it would be popular, and it might not be strictly legal. But I'm not sure that the UN authorizes financial terrorism either. The whole thing is pretty crazy to think about. It shouldn't be surprising that people were contemplating crazy solutions to crazy problems.
None of that's in the linked article.
Let's cut to the chase:

5. Q. Why does the EmDrive not contravene the conservation of momentum when it operates in free space?

A. The EmDrive cannot violate the conservation of momentum. The electromagnetic wave momentum is built up in the resonating cavity, and is transferred to the end walls upon reflection. The momentum gained by the EmDrive plus the momentum lost by the electromagnetic wave equals zero. The direction and acceleration that is measured, when the EmDrive is tested on a dynamic test rig, comply with Newtons laws and confirm that the law of conservation of momentum is satisfied.

[http://emdrive.com/faq.html]

So, the momentum simply "builds up". That's an exceptionally weak explanation.
I saw this work presented at an ICML 2015 workshop, and thought the HN community might find the intersection of deep learning and knowledge tracing pretty cool. It's an innovative approach to a relatively old problem.
> but also because of the realization that Japan (which I happen to be a citizen of) has learned very little since then.

Could you shed some light on what you're referring to?
The registration is a series of questions and inner cheek swabs!
That's a fair point. I tend to overlook Atom in general because its startup time is slow as molasses compared to VS Code (and especially Vim or Notepad++). However, it's still in early days too, and hopefully will improve over time. Still, VS Code is working toward debugger support and a general "IDE feel" that I'm not sure is in Atom's future. We'll see.

To be honest, as long as VS Code is free-as-in-beer, has a plugin-in system that's flexible enough for the community to go nuts with, and can adequately serve as the primary development environment for an ASP.NET app... then I'm delighted.

However, perceptions mean a lot, and in the long-run I just don't see it getting uptake from the Python/Ruby/Node.js crowd without being open source. More of a marketing issue than anything else (although there's also the concern that MS could abandon it someday).
It's been in all the other papers' reports, including the original reporting in Kathimerini. You're right, the telegraph story doesn't mention it.
80% of the time they will collect stem cells from your blood.
Have a look at http://www.w3.org/MarkUp/html-spec/html-spec_toc.html. It describes a nearly ideal language for technical documentation, and it's fully usable on any web browser ever created. That's how the web worked when authors were competent and not beholden to marketers; before the industry dismantled an outstanding hypertext platform and replaced it with an embarrassingly half-assed application platform.
Ask HN: How to store and fetch secrets (Keywhiz vs.Vault)
Looking for a centralized secret service to use for a service oriented architecture running on dozens of servers. So far, I'm come across [Keywhiz](https://square.github.io/keywhiz/) (by Square) and [Vault](https://hashicorp.com/blog/vault.html) (by HashiCorp).

What is recommend? I don't like that Keywhiz is in Java (bloated and have to install JVM), but I do like that it exposes a FUSE filesystem and implements a cache as well.
Liquid Nitrogen Generator - Applied Science [video]
"Financial terrorism"... I guess there's nothing more to discuss.
From the abstract: "We identified the magnetic interaction of the power feeding lines going to and from the liquid metal contacts as the most important possible side-effect that is not characterized yet. Our test campaign cannot confirm or refute the claims of the EMDrive..."

Given that this is a 700W microwave oven putting out a tiny amount of thrust, and that a positive finding would invalidate a basic conservation law, my money is on those wires.
You're referring to an unpublished paper by the author, which appears to be a design for a space vehicle. I asked about independent tests of the claimed effect.