skysight-inc/HackerNews huggingface dataset:
Efficient Recursive Fibonacci
A thought I wanted to share:

As a programming beginner you often get in touch with fibonacci to explain recursion:

def fib1(n: Int): Int = {
if (n <= 1) n
else fib1(n - 1) + fib1(n - 2)
}

And then you get told that this is simple but very inefficient. You see an efficient loop implementation afterwards and agree.

I think that this could give the impression to a lot of beginners that recursion is inefficient in general (it was like that for me). So recently I thought of an efficient and simple tail-recursive fibonacci implementation and came up with this one:

def fib2(n: Int, a: Int = 0, b: Int = 1): Int = {
if (n == 0) a
else fib2(n - 1, b, b + a)
}

I think this is simple enough as well and could help to introduce recursion to beginners without the wrong impressions.

(The examples are written in Scala and can be tested online here: https://scastie.scala-lang.org/iushI0EXSHy51MPXsFZOUQ. If you don't know the formula of Moivre/Binet, this is interesting as well: https://en.wikipedia.org/wiki/Fibonacci_number#Closed-form_expression)
Please, do this kind of analysis with every new.
Money isn't consumed, the money paid can be passed out to other employees as raises. Whereas time spent waiting in line is a dead-weight loss. (Ok, it's not a 100% loss since you might be able to do something somewhat fun with that time, e.g. maybe you listen to a podcast while you're sitting in the parking lot. But it's not an ideal way to spend your time, and there's no way for anyone to get their time back)
I wish the animations could be switched off. They're distracting and don't add anything.

Didn't we just have that discussion on the compression thread?
Any opinions on ProtonVPN? I use it now more or less everywhere. No problems with it - it's fast enough (though definitely slows down my connection from about 12 to 16Mb/s to about 5 to 10 Mb/s.

I chose it b/c the organization behind it seems trustworthy. I don't know what the author has in mind when he labels the billing practice "shady".
I don't know what it's like in the US, but in Netherland, a lot of people are worried about the dropping number of men in education. It's becoming increasingly dominated by women, but it's important that kids also see men in front of the class.

I think my oldest son's school has only two male teachers, and my youngest son's childcare has only one male childcarer (what's the word for that?). It'd be healthy if it was a bit more equal.
Does this online text editor support viewing older revisions and changesets? (I have never used Google Docs, which I assume is used within Google.) If this is the case, I'd like to see a copy of this rumored earlier version. The one I have read obviously had a response added to it, but if things have been cut without indication, that would change my opinion much more dramatically.
Just because someone attacks you doesn't mean your hypothesis or arguments should change. If you believe what you say is reasonable then it is not rooted in a personal animus. That is all I am pointing out.

Often, however, our arguments have a strong unacknowledged bias. When we're challenged the bias becomes more visible.
Doesn't help if I don't get to use it..
I think it's about 1984 where Computer Science suddenly peaks and drops back to below 20%. It's the only field to do so; the others keep going up. Though Engineering stays below 20% the entire time.
> 5 of them have now spoken up saying that.

Who's the 5th? We've got the 4 from the Quillette article and ...?
Then can we at least postpone the renaming until someone actually complains about it first-hand, rather than "just in case" and on someone else's behalf?
I don't buy it. 60s car had rocket like shapes for the sake of aerodynamics. The flat/angled look comes from somewhere else. .. Maybe even a counter reaction to the rounded everything of the 60s / 70s.

Kinda like flat design not long ago.
PSPDFKit for Web is a hybrid renderer. It can render on the client or server, depending on device capability and power. This allows you to view a 500MB+ file even on a slow connection via your smartphone, make notes that are instantly synced to our on-premise server via https://pspdfkit.com/instant/ and then later you can continue to markup the file on either your desktop browser or maybe a native iOS app such as https://pdfviewer.io/.

We currently deliver SDKs for all major platforms with Windows coming in Q4 and they all have the same high-fidelity renderer and deliver the same result.

With pdf.js, how the output renders also depends on your browser, and it just doesn't support some of the more complex graphics with knockout groups, patterns and gradients.

See Mozilla's presentation where they say that full support for these is not even planned: https://youtu.be/4yLzRoErOHw?t=20m27s

Our customers are in Enterprise B2B space. Some might still use IE11 (which we fully support). Some care that their PDF files do not leak and only want streamed access. Most care about annotation syncing. Some apply watermarks on-demand. We solve a different category of needs than the more consumer-focussed pdf.js.
Quite refreshing to hear a European voice in this debate (not suggesting that she represents all Europeans -- but it definitely strikes a chord with me).

She's wrong about one thing though:

Damore was fired, basically, for making a well-meant, if amateurish, attempt at institutional design, ... , he was fired, in short, for thinking on his own.

No, he was fired because Google is already neck-deep into being investigated by the DoL for gender pay discrimination [1] and they have a class action lawsuit coming up about the same issue [2]. He was fired for the same reason that they recently hired a chief diversity officer [3].

Believe me, at that point they would do almost anything to avoid those cases turning south (and what that would mean for the corporate public image), and giving voice to someone who has even the slightest doubt about diversity in the workplace is a big fat political No-Go.

James Damore made the mistake of saying the wrong thing at the wrong time, that's all.

[1]https://www.theguardian.com/technology/2017/apr/07/google-pa...

[2]https://www.theguardian.com/technology/2017/aug/08/google-wo...

[3]https://techcrunch.com/2017/06/29/google-hires-intels-former...
Surely there is more context to that story.

It's unbelievable that it was only the memo. And quite likely just the last straw.

I can easily imagine someone that produces poor quality once publically probably did so many times privately and likely more of a symptom of underlying inadequacy than the actual reason for firing.

But you know, headlines..

And yes, have no previous experience or knowledge about this so sorry if I'm armchairing a bit.
I did the calculation for Ohio-class capabilities assuming it was only loaded with the smaller 100kT warheads (W76), as the 450kT ones (W88) are relatively rare, according to Nukemap's estimates for a 840m airburst a single sub can cover 1500sq km (~1/3rd of RH, 10x DC) in 20psi (severe damage or complete destruction of concrete buildings, ~100% fatality), 1800 in 1000 rem (~95% protracted mortality) and 7700 sq km (Delaware, half of Connecticut) in 5 psi (~universal collapse of residential buildings, widespread fatalities).

MIRV are fucking terrifying.
Computing Fibonacci numbers using only addition is very slow. Here's a much faster algorithm that uses multiplication:

fibonacci n = fst (fib n) where
fib 0 = (0, 1)
fib n = if even n then (c, d) else (d, c + d) where
(a, b) = fib (div n 2)
(c, d) = (a * (b * 2 - a), a * a + b * b)
I have had best success by using the (very stable) version provided in (X)ubuntu LTS, which I'm always staying with, so I'd say it is about finding a good strategy for version selection.
A friend had a 126, each morning he would load the four schoolchildren by the door and then roll-back the canvas top and pass-in their schoolbags.

It was also quicker to reverse by putting a foot out the door than flapping the stick around the mushy gearbox trying to find reverse gear.
I don't understand your point. Mine is that being attacked should not change one's ideas. Getting fired is bad, but it isn't new information pertinent to the original debate. It may inform your ideas about the climate in which the debate is occurring, which may radicalize you personally. It shouldn't radicalize your position.
But what if you don't need to because the money goes to fund alternative methods?
The site is down, so I can't tell if it models fallout. Not an expert, but I get the impression that you can get lethal fallout a hundred kilometers from the target site. But it would require very bad luck with regards to the wind direction.

There is a very fascinating book detailing the immediate survival of such a scenario.
LineageOS is pretty good on security and privacy. But IIRC you may NOT have the latest patches even if you have the latest version.

There is a XDA post somewhere explaining this.
500 Startups’ Australia accelerator program is axed by its partner
Buoyant Bitcoin Stirs Crypto-Bubble Fears
Necessity is the mother of invention: Mobile innovation in financial inclusion
Bingo. 98% of "crypto" is, basically, Pets.com (or worse) right now. Cryptocurrency is really, really useful for some things, just as the web is. On the other hand, there's an awful lot that simply doesn't make any sense - even ignoring the fact that many crypto advocates seem to have no idea how people work or what the constraints of any given problem are[0], a lot of it is technically and economically unsound.

[0] See also the "put voting on the blockchain and give everybody an identifying number to verify their vote" people who seem to have absolutely no idea why we have a secret ballot.
Exactly, by forcing a license (you made up) onto my creation, you are basically taking my property and enslaving me.

You are saying to me: "Nice work you got there, now, I am going to use it under my conditions. Oh you don't want me to share the software? Too bad, not sharing is evil! I'm sharing it anyway."

Yes, you are free to say this but then I can choose not to share my software with you. I will only give you my software if you agree to MY conditions. I made the software hoping to share it with people on my terms, so that I can earn a living from it.

Am I evil for expecting you to honor the terms we agreed upon when we made the exchange of your money for my software product? Am I evil for setting terms that I like for the trade that we are making?

Imo any party can have any terms in a trade, if you agree to mine and I agree to yours we have a deal, otherwise: go find another solution to your problem.
It is difficult to look more late 70s/early 80s than this car :)

But interestingly, the blue car behind it in this picture looks almost like the design of a modern city car from today to me. So that's where the real vision was?

http://www.citroenet.org.uk/prototypes/karin/images/005.jpg

EDIT: I might be wrong, I assumed the photo was from the 1980 Paris Salon show due to the article text above it, but it's probably from later. Oops.
LaunchVic cuts ties with 500 Startups after sexual harassment scandal
Interesting, thank you for sharing. Though my main concern was more about introduction to recursion without an exponential algorithm.
> He was very clear that he was talking about the group not any individuals.

Since when does that excuse anything? If he'd written "Jews are, in general, hateful monsters. Not the Jews who work here, they're great, but most of the rest" does that statement become acceptable?

More importantly, Mr Damore does not know all the women at Google personally. He cannot. So when he says "In general, women are less suited to/interested in programming careers", he cannot possibly implicitly mean "but clearly that does not apply to every woman currently employed at Google, who were all hired because they are the best in the world at their jobs". Damore asserts that Google practices discriminatory hiring practices. For this to be true, Google must have at least once hired a woman where a better male candidate was available, and more importantly must do so more often than they do the reverse.

If you are going to make general statements about a group of people, then you should not be surprised when individuals in that group assume you mean that statement to apply to them.
> If you're the type with a lot of tabs open

I'm not and I don't store/restore tabs on close, so that's not the case here. It's just Firefox + Vimperator + uBlock origin with about:blank as home page.

I'm on Linux/X11 if that matters.
>Who care if the kernel, heavily modified and buried 100 layers deep is Open Source if all the apps users actually use are proprietary?

I guess by this definition any open sourced library that an "end user app" uses doesn't count either.
Who Invented the Piano?
The steering wheel looks like Squidward.
You can combine nuclear speculation with (induced) tsunamis with the (hypothetical) Russian Status-6 Ocean Multipurpose System: https://en.wikipedia.org/wiki/Russia_and_weapons_of_mass_des...
I'm sorry you didn't feel any of the challenges had substance. They were still challenged.
Engine before the front axis, making the engine weight work against the rear-axis, ouch! That's a recipe for poor driving dynamics.

This could have legs as an EV though.
Got a link? The John McWhorter I'm familiar with is a linguist at Columbia.
CEX.io seems ok.
Future of Fake News
Yes, but the limit being present at all potentially highlights a problem and it may be one of many. You shouldn't need an upper limit to password/passphrase size and if you have to have one because something breaks otherwise then the site really is doing something wrong. If they are getting that so wrong, what else problematical is sat waiting for Mr Hacker to discover?
Just tested it out and confirmed.
I meant important public services being farmed out to incompetent private suppliers is the norm.
Show HN: Mantis – Scala Client for Ethereum Classic
A copy of the request would be nice.
I like a lot the "tabs outliner" extension for Chrome. It's especially useful when you work with many tabs open at the same time, and want to preserve sessions, etc. Unfortunately there is now alternative to that in Firefox. Session Manager comes close, but is painful to use.
So I'm still looking forward to such extension for Firefox, because honestly I prefer FF to Chrome for most of the things.
How to Build a Mobile Taxi Booking or Ride Sharing Apps Like Uber
Where Big Data Begin: Paperclip Mojo
Pesquisadores apresentam protótipo para celular sem bateria
> The "different = inferior argument" is strongly implied.

Is it?

For the average person working at a big company it is much more important to have a good fun team than a productive team.

After all a fun happy team benefits me on a day to day level whereas if company profit jumps 20% I'm unlikely to see any benefit.

The exceptions are a few tech giants who hand out lots of stock.
The Architecture of Neural Networks
A channel is committed to using one unspent transaction output (UTXO), settling it consumes only that UTXO and all of the other channels a given party might have are completely unrelated.

What is the use of the hub? You can just connect the merchant directly, even if you are just an occasional customer. You don't need the entire blockchain to use LN, so more users will be running Lightning nodes than Bitcoin nodes.

If you have an intermediary node (you call it a hub), there is no requirement for it to close its channel with the merchant, once you close your channel with that intermediary node.

Credits: Yoghurt on Bitcoin Core Slack
Amen. Where I live, the biggest traffic noise is mopeds with tuned exhausts driven by obnoxious 15-year olds late at night. They're louder than most racing cars I've heard. Certainly much much louder than the V8 cars at the muscle car garage not far from where I live.

You can drive a moped at 15 yo, limited to 50cc engine and 45 km/h. The latter is often circumvented by boring the exhaust and it makes them super loud (and illegal). Lots of parents in rural areas and faraway suburbs buy their kids mopeds at 15 so they don't have to be driven around.
It's usually the other way round - women don't want to date men who earn less. You probably heard your version from the feminists.
I think I agree with you, buuuut "rand98765" is your current username.
None of that negates the fact that these guys have had tons of press coverage. They haven't been censored at all.

I'm not going to get into whether Trump was actually racist or sexist because that's not the point.
You have a vastly different definition of rant than I do, aside from that why do you believe this should only be discussed behind closed doors, that is infact one of the points the author was attempting to explorer the idea that with in google anyone that did not have left political leaning felt they were not allowed to express those positions with in the company.

You seem to agree
How Blockchain Optimizes Health IT Software Development
> He was very clear

But, see, it's equally clear to other people that he was dogwhistling like crazy. This is the problem with this "discussion" - one side is doing the "only exact literal words count for meaning" dance (which, for me, is complete bullshit) whilst the other is saying "that's not how the real world works, context and implication is important".

The two sides are never going to agree - which is ok - but one side is going to struggle with this kind of issue forever until they accept how reality works.
That looks exactly like the Xsara Picasso of early 2000s.
Go is a good example - I have several services that consume ~20MB of RAM so no need for beefy boxes. Although that's why I also chose to use Kubernetes - extremely easy to pack a bunch of services.
Thanks, just added it to my HOSTS file...

I don't know if the Streisand Effect is going to happen with this one, but it seems very odd that the DMCA could even be applicable here.

Edit: https://www.copyright.gov/help/faq/faq-protect.html#domain

Can I copyright my domain name?

Copyright law does not protect domain names.
Can someone provide some context? How can a line in an adblock list be subject to a DMCA takedown request?
http://raypeat.com/articles/articles/unsaturated-oils.shtml
Lots of Google's software is open source. It is easily checked.

Regardless, I worked at Google for many years and agree with him.

Implementing MapReduce, BigTable, MegaStore, even things like G+ or Teams is not a people oriented task. It involves long hours of working with machines, alone, punctuated with code reviews in which your code is systematically criticised by your co-workers but in a predictable and non personal way. There are occasional meetings but most engineers I knew there saw meetings as a necessary evil and got annoyed if they were too frequent.

When I was a SWE the bulk of my work hours were spent working entirely with machines, or with processes that were run by people but were largely mechanical and formalised, like resource requests.

I believe this sudden argument that coding is a highly social activity is motivated reasoning. The motivation being to try and arrive at the politically correct opinions required to survive in the modern Google workplace. If you tried to describe programming as a highly social and people-oriented activity to the average man on the street they would think you were bullshitting them, I have no doubt about that at all.

Teaching is people oriented. Social care is people oriented. Most of your working hours are spent in front of people, talking to them. Programming is the opposite - most of your hours are spent in front of a machine. Talking to others is probably not the bulk of your job. If it is you probably aren't a developer, regardless of what you might think: you might be a tech lead manager at most.
Why You Should Use PureScript
Chinese quantum satellite sends 'unbreakable' code
Yeah, first thing I did was add it to my uBlock filters.
Speed was the big difference. It's interesting that speed limits in the U.K. haven't increased since the first motorway was opened in 1958, yet cars have got a lot safer. I wonder if autonomous vehicles will change that...
Last week I installed Windows on my laptop (which was, is, running linux).

Sidenote: I was really happy to successfully install it on the same disk as linux and not crap up my bootloader.
Ok. So I host Hack Days (shameless plug: We're at Noisebridge[0] every Sunday -- come out!) and I live stream every weekend on FB (here: https://www.facebook.com/groups/sfhackdays/)

My biggest gripe is cross platform streaming capabilities, stream quality, and the lack of cooperation when we need distribution to increase viewership.

It's a bummer. I hope this is a solution to any of those problems.

[0] https://www.noisebridge.net/wiki/Hack_Days
As awesome as Lazarus appears to be here, Rebol is even more amazing in my opinion. There is no designer, but the GUI DSL is mind bending. Red is a Rebol inspired language that is also tiny with a compiler as well so you can build a nice cross-platform-native GUI and distribute it as a tiny executable (~1.5 MB). You can see the GUI stuff for both Rebol and Red. There's a YouTube video by Nick Antonnacio (spelling) that shows him building something like 40 GUI apps in an hour ranging from email apps to games like tic-tac-toe and snake...it was pretty crazy to see the first time.

I'm checking out Lazarus currently.
I get a strange feeling of relief from knowing that non-x86 architectures have their share of quirks, too, even though I never get close enough to the bare metal have to deal with such things.
Yeah. How did this even happen?
What do people encrypt?
Reading this gives me chills. Just one more step of many towards living in a police state. I feel like the particular sort of freedom I was raised to enjoy in the 80s and 90s is slipping away.

And as a black person, it really feels like the obvious abuses of police power continue unabated. There's finally a parade of evidence showing just how egregiously the cops treat us, and that door is at risk of closing, if the SCOTUS affirms this over the other circuit's opinion.
How Information Got Re-Invented
They definitely are, but in a circumstance like this the most _urgent_ problem they've got is a bunch of ex-employees with a legal action brewing. Implicitly admitting liability without a quid-pro-quo isn't going to happen.

Which isn't to say HR won't want him gone. Just not yet.
Thanks, now I remember from my PCI DSS days.
Hyper.is is a Mac terminal. I used it for a time, and would always go to hyper.sh looking for docs or whatever.
They do, it's just that the way they do that has nothing to do with ETH or BTC http://www.r3cev.com/blog/2016/4/4/introducing-r3-corda-a-di...
IANAL, but I'm guessing the DMCA takedown request cites "circumvention of access control."[1] Would be useful if the maintainer published the request.

1. http://blockadblock.com/adblocking/is-adblock-plus-violating...
It's not and I am glad it isn't. The GPL is sometimes enforced and rightly so, code authors choose this license and donated their time and skill under this condition (the GPL) of their choosing. Re-licensing it or ignoring the licenses is a crime, you lied that you would uphold the license when you started using the software.

Don't get me wrong, I love the GPL, I love free software! Choosing a license though, GPL or proprietary, is entirely up to the author of a piece of code though. Forcing open licenses upon authors is detrimental to freedom in general.

Worrying or not worrying about it has nothing to do with the ethics of breaking the GPL (or any license).
It has, there are people who moved from YouTube to Facebook. In a h3h3 podcast [1] Soflo, a ex-YouTuber who now posts content on Facebook, explains a bit how it works and that he can publish the same content over and over again and still get money for it.

[1] https://www.youtube.com/watch?v=7PZSOFsjJRo
Does not make much sense. Is the website address itself under copyright?
For bacteria that cheat, food is at the forefront