skysight-inc/HackerNews huggingface dataset:
If you really care about extracting every possible ounce of performance out of Python's scientific stack, which relies extensively on Numpy, the best practical guide I have found for doing that is "From Python to Numpy," by Nicolas P. Rougier of Inria: https://www.labri.fr/perso/nrougier/from-python-to-numpy/

Here's a typical example of the kinds of optimizations this guide teaches you, in this case by avoiding the creation of temporary copies of Numpy arrays in memory:

# Create two int arrays, each filled with with one billion 1's.
X = np.ones(1000000000, dtype=np.int)
Y = np.ones(1000000000, dtype=np.int)

# Add 2 * Y to X, element by element:

# Slowest
%time X = X + 2.0 * Y
100 loops, best of 3: 3.61 ms per loop

# A bit faster
%time X = X + 2 * Y
100 loops, best of 3: 3.47 ms per loop

# Much faster
%time X += 2 * Y
100 loops, best of 3: 2.79 ms per loop

# Fastest
%time np.add(X, Y, out=X); np.add(X, Y, out=X)
100 loops, best of 3: 1.57 ms per loop

That's a 2.3x speed improvement (from 3.61 ms to 1.57 ms) on a simple vector operation (your mileage will vary!).[1] This only scratches the surface. The guide goes into quite a bit of explicit detail about how Numpy arrays are constructed and stored in memory and always explains the underlying reasons why some operations are faster than others. In addition, the guide has a section titled "Beyond Numpy" that points to even more ways of improving performance, e.g., by using Cython, Numba, PyCUDA, and a range of other tools.

I highly recommend reading the whole thing!

--

[1] Example copied from here: https://www.labri.fr/perso/nrougier/from-python-to-numpy/#an...
I've been working for three years remotely and fully agree with you. Never ever allow your job to take over your life.

I allowed, and after two years I was dreaming about eight-hour work in an office. I was a good programmer and was able to deliver results quickly. But my private life was destroyed and my mental health ruined. When I got a remote job I wasn't aware of its perils; of course, some of the problems I had was my fault.
Just the other day I showed one of our junior devs how they could turn their 10 lines of somewhat slow and obfuscated code into a 3 arguably more readable lines using a bitwise operations. And this was a front-end webapp.

Then again, more readable is subjective and some devs might see "<<" and get thrown off.
Or sed, which for many editing purposes is probably easier to use.
Its currently at 9
Play Store: 300 applications launch a huge DDoS attacks in the back of the users
Nice work! This is where legends of 10x programmers come from.... they're 2x programmers in a world of 0.2x programmers ;)
APC Microbiome Institute, Impact of Gut Bacteria on Gene Expression in the Brain
World Bank VR: Immersing Audiences on the Long Road to Conflict Recovery
Uh yes I know the cutter is there. They announce almost every damn second on the VHF they are there and to keep a 1000ft clearance.

I assume your friend never has to dock, maneuver in harbors, or navigate a TSS. Because those are the places where the rules are used. ColRegs are not even a factor at 5nm CPA. Your friend could save his crew a lot of time and brain power. Instead of trying to calculate every other ships CPA knowing who the stand on vessel and a bit of VHF work is also good seamanship.

Finally, your friend may or may not even see me 30 miles out. Sailboats have such a small radar signature I had to install a radar reflector to avoided being run down by commercial.
It's not only that, it's also the fact that public transportation is bad in most cities in the U.S. You need to have a way to get to the train in city A, and a way to travel after departing the train in city B.
In hindsight, it worked out OK for most people. Most of the time it does. The problem is that sometimes it turns out really really bad. I'm from Florida and I worked in construction during college. I was down in South Florida after Andrew. Ground zero was like a warzone. No street signs, traffic lights, etc. Almost every single house was missing a roof. There was no place to buy fuel, food, and water. I saw a lot of human misery. Especially among the poorer population. It was like this for months because of the scale of devastation. We still feel the effects of Andrew in FL. We probably have the most stringent building codes in the country and the highest insurance rates.

Major catastrophes like Andrew and Katrina are black swans. Nobody predicts the level of devastation ahead of time. It's usually hindisght, like "it was so obvious!". Therefore, I think it's ignorant to not at least advise people to evacuate at some point. Maybe not 2 hours before the storm hits. Days maybe? They always do advise evacuation of coastal regions here in FL. I always listen too.
Docker “repo” pattern
Ask HN: GitHub vs. GitLab paid plans (2017)
I've reached the point of needing 3rd-party git hosting and I'm looking at a shortlist of GitLab and GitHub.

Use case is straightforward: front end developer, team of one (me), small chance I will need to handoff of repo to a client in its entirety once or twice a year, along with written confirmation there is no trace on my system.

The paid plans are virtually the same $-wise (both single-figure $ a month). They also offer a whole raft of stuff that I can compare and contrast for as much time as I care to.

I've run GitLab CE on a Raspberry Pi 3 internally. It's been a bumpy ride with some of the recent updates, but nothing catastrophic has happened. It was a bit touch-and-go on some updates freezing my Pi, but the experience has given me a good insight into the GitLab UI, workflow and the like. And it's fine, actually.

GitHub. I do some open source things, and all the projects I'm involved with are on GitHub. I have no reason to doubt their paid-plan product is fine. Different to GitLab, of course, but fine nonetheless.

Which leaves me at this odd decision: the $ value is trivial, and the services are both fine in their own way…

…which doesn't help the decision process.

And so, I come asking for your advice and feedback: GitHub or GitLab?

Thanks for reading.
"This quickly generates a "race to the bottom" where everyone has to pay absolute costs for relative advantages."

I really like this framing. You've expressed something I've felt intuitively but never really been able to articulate (either to myself or others).
World's Fastest Beer Tap
Impressive! David vs Goliath!
Google thought Angela Merkel was a "He". And DeepL not just translated correctly, it also gave a really concise text. Following text from "Der Spiegel".

Original: Angela Merkel hat sich gegen Vorwürfe gewehrt, dass es dem Bundestagswahlkampf an Spannung fehle.

Google translate: Angela Merkel has reproached himself against allegations that the Bundestag election campaign is lacking in tension.

DeepL: Angela Merkel resisted accusations that the Bundestag election campaign lacked tension.
There is a fairly popular thought that software which is accessible tends to be better for "normal" users as well.
According to their videos, their most recent chips are made by TSMC, but the older ones are made in Russia (I believe these are used for war applications). When the Russian factory switches to a better fab process, they'll also use it for modern chips. Indeed, the Russian factory is not theirs, though, as they are fabless.
> I think Antifa is proving

Do you have any evidence linking those accounts to Antifa? Or any indication that they're Antifa? I might be missing it but I can't see anything in that image which justifies you linking it to Antifa...
That almost physically hurts to read!

The performance modelling teams working for the large CPU makers get several code traces from major database vendors to optimize the execution of critical pieces of database code. They do a cycle-by-cycle analysis.

And then people run the databases with caching and indexing disabled. Go figure
It's not happening because to launch missiles and guide them to the target you need to know where target is. Given the speed of a carrier group, the vastness of the ocean and the fact that everything above horizon will get shot it's no easy task at all.
http://www.bartelme.at/journal/archive/button_devkit

http://www.getsatisfaction.tv/

http://dev.emcelettronica.com/installing-debian-arm-qemu

http://azadcreative.com/2009/04/how-to-separate-comments-and...

http://www.bloggingtips.com/2008/11/06/free-rss-icon-list

http://www.readwriteweb.com/archives/identify_google_people_...

http://wpcrowd.com/customization/comment-form-style-with-jqu...
I don't think that's the main reason we have regulation. Preventing individuals from externalizing costs to others, against their will, is more common and much more justifiable.

The some obvious examples are environmental and food safety. Another is financial regulations to prevent "too big to fail" institutions from taking wild risks that result in bailouts with taxpayer funds.
88% of the 200 buyers which made a review on Amazon give the boosted board a score of 5 out of 5 stars. That's not something you see everyday.

https://www.amazon.com/Boosted-Dual-2000W-Electric-Skateboar...
This is why good leaders create an environment where you can be honest about such things. You are basically talking about an inhumane system led by fear. Then again we are talking about the navy here...
Agreed. There's plenty of applications even today where this kind of mentality is helpful (embedded or real-time systems, for example).

It's not even necessarily about squeezing cpu or memory performance, but finding a solution that is "native" to how computers work: binary bits.
This article is a history lesson on NK's past and current state sponsored spying and cyber attacks and ends with advice to companies, banks, et. al. to stay vigilant to all sorts of future f*ckery.

Curse you Pyongyang! If it weren't for you I wouldn't need a firewall or security plan at all.
"It is difficult to get a man to understand something, when his salary depends upon his not understanding it!"

We live in a society that puts people on an economic treadmill for their entire life. The government gives incentives for getting into debt - guarantees on student loans, mortgage interest tax break. We have property taxes in most states, so you always have a bill to pay even if you never borrow.

Then people come along an propose things like basic income which can't work (I'll do the math for you one of these days since nobody else has). What they really want is to offset the costs of basic existence. I believe those costs could be lowered if the government would focus on that instead of profits and GDP.
Do they work with checklists? That seems to be the number one reason why crews in aviation can work with such low error rates. Handoffs with strict checklists would probably cause lower error rates.
Cannabis is not considered a PED (anyone who has taken Cannabis can easily atttest to that).

Cannabis is a problem due to other political issues which means it's illegal in most major sport playing jurisdictions.
Absolutely. There's also a danger of resentfulness from those that aren't home based.
I think the short functions thing is a funny one. The benefits of short functions are definitely praised in the book, but they are really more of a side effect of the real goal: to have pieces of logic that do one single thing that can be summed up in a function name and understood as a clear input -> output 'step' at the level of abstraction above, without having to dig in to find out 'how it works' or understand any weird quirks / unexpected side effects etc.

Usually, by their nature, such functions don't end up being very long. This is great, but it remains just a nice side effect of the real goal, and one that is not more important than the real goal. To artificially break up a slightly longer function which is very focused in its behaviour, just for the sake of line count, is probably a mistake.

To be honest, I can't remember how clearly the book makes this distinction, or if it does at all, but I feel like it probably could be made clearer given how common this misinterpretation is.
>Between having sex only if you intent to marry her and having sex without even kissing her once there is a whole world of difference.

A world which is nobody's business between consenting adults.

>* I don't know about you, but I can't have sex without kissing my partner, even if it's a one night stand. I mean come on, women aren't just objects of pleasure.*

Is this based on the false premises that: (1) kissing isn't pleasurable as well, or (2) they don't kiss in porn?

>I mean come on, women aren't just objects of pleasure. They're human beings. What's wrong in treating them like so?

What's wrong is that it doesn't mean anything. Wanting to fuck someone (and just that) doesn't mean you treat them inhumanely or that there's no respect. What would respect entail? Asking about their life story?
Generally speaking, I would say that the difference in safety between a commercial aircraft and a common car is essentially the quality of who is driving.

The first is driven by a professional pilot, someone who belongs to an elite, that has spent many long hours in studying and training, that has passed several (I believe not at all easy) licensing tests, subject to continuous checks (medical, drugs, alcohol, etc.) periodical exams and ability tests, continuous update and that is never or almost never left alone in the cockpit, with a colleague ready to intervene or to assist him/her if/when needed.

The second can be driven by anyone, including almost inexperienced kids, elderly people, drivers under the effect of this or that drug, of alcohol, having distractions (think about phones, pets or children in the car), the licensing and medical tests are either extremely easy to pass or very rare, like one every 5-10 years, etc.

Still, there are not as many car crashes as there could be (i.e., if you prefer, even sub-standard car drivers can often drive good enough as to not cause too many accidents).

We don't have right now the techology to fully replace a single average car driver, and we plan to replace two much higher standard aircraft pilots?
There are billions of cars worldwide. I have two cars on my narrow driveway. It is statistically impossible to hit the other one while I park the first one. I have much higher probability to hit a car in China.
I find it incredibly hard to believe that any young code with a freshman level Computer Science education would now know bits inside and out. Then again, I went to college 10 years ago and I went to one of the better schools so maybe they don't teach that anymore?

I also acknowledge that with the invention of "code bootcamps" a lot more coders have never been to college than before. Effectively, I think, creating two types of programer that has nothing to do with age. Both types have their applications they are good at.
Only problem is it can make life a lot harder if you're looking to move back to office based job.
You could make the argument that WW2 would have turned out very differently if Hitler hadn't been allowed to meddle with operations on the eastern front (e.g. calling a position "fortified" and forbidding retreat, which led to horrific casualties and usually ended up with the generals disobeying orders and retreating anyway, so the result was often the worst of both outcomes). Germany was broken by Stalin and Hitler before the Allies even hit the beaches.
I'm currently working on an web ide that use the Canvas instead of the DOM. The Canvas is very nice to work with, it's high level and hardware accelerated.
The vulnerability of supercarriers is a myth. See [1]. TL;DR: ocean is so big that it's very hard to locate and keep track of a carrier group, especially when it takes active measures to avoid location.

[1]: http://www.lexingtoninstitute.org/wp-content/uploads/aircraf...
Is this something you have heard about on the news and/or Internet, or is there some truth behind this (that there are bots gaming the authoring process)? I would like to learn more about it, how its being done, etc.
And the title of this entry is stretching the site on mobile. Ugh.
If your screenreader is any good, it'll be a piece of proprietary software that knows how to OCR the framebuffer and doesn't give a shit about "standard" UI.
Would the same thing have happened if you were using the Brave browser (supposed to protect your privacy) - https://brave.com/?
I'm a low-level programmer and it's the first time I come across the linear-feedback shift register. I would say it's rather a part of digital circuits design.

Now, when FPGAs become more and more popular, people will be forced to learn VHDL languages and then different lesser-known techniques will surface. (It's a naive prediction, I know.)
> It's fascinating to see to what lengths advertisers go to identify users only to serve irrelevant ads. The bike ad after a purchase is completely useless and would've better been served to any other user.

On the contrary, I'd wager that a person who's purchased a bike is far more likely to buy another than a random other person. I'm not saying there's isn't someone more likely to buy one than the guy who just did. But he would be more likely than someone who has no recent bike related purchases or interest.

It could be as simple as, "Hey this is a nice bike I bought. I bet my wife/sister/brother/friend would like one too. Hey Bike Co is having a sale!".
Interesting. The three of them show the car being hit from the left side when driving on a high-way. It seems that the autopilot is bad at recognizing objects that suddenly appear on that side.

More like, if you are not a car on the left lane, then you are not. Bam, you got an accident.

Edit: Is the last video in the US? Is it normal for other drivers not to stop when they see an accident?
>It can do, it depends on context. When a statement is ambiguous, you have to infer meaning from context.

That's the whole art of casual conversation -- or any conversation for that matter, even the most rigorous scientific paper depends on millions of context-based assumptions.
> full Android application compatibility

Quite disingenuous if only Android 4.4 and below is supported.
Is there any evidence for this? Other than possible joint pains, which are likely no worse than doing a regular factory job, and sports like NFL and fighting where hitting each other is the point, and are probably more comparable to gladiator sports than something like basketball or baseball.

I suspect the better fitnes that sports persons have in most other sports, combined with the above average income, means they almost certainly have better health than the average person, even after adjusting for the fact that they likely have better physical health genes.
It is enough for you to only once have used the same browser / profile with both accounts. There are cookies to keep track of who is who and then it is a matter of matching identifiers on one platform to the other.
It is hard to believe you have been diligent enough to keep things absolutely 100% separate between Facebook and amazon.
<cynical hat> The goal is to regulate and profit from everything. Criminalizing drugs has created a huge prison industry and a large chunk of government. Since there's little money in MDMA they may as well legalize it for a specific use and regulate it.</cynical hat>

But you're right of course. Blanket regulation where none is needed is the wrong way to go about it.
Web based mail clients are nearly as bad with how much CSS etc. they strip out. Gmail is particularly aggressive. Yes Outlook is terrible, but there's plenty of security conscious developers throwing baby out with bathwater when it comes to email design .
> it's unfortunate that so many smart people use their intelligence to enable this kind of gross technology

We live in a capitalist society.

It just so happens that this "gross technology" makes advertising insanely profitable for millions of companies (mine included), which makes FB billions, so they'll happily pay really smart people millions to build it. And those smart people will happily accept millions to solve those hard problems.

It's just business. If you can figure out how to better align individual and corporate incentives with making the world a better place, we're all ears.
Python: Understanding IS Operator
The On-Line Encyclopedia of Integer Sequences
p-values. They gotta stop relying on p<0.05 which is really a low bar.
Neat, but is this focused on India?
In Julia this would read using broadcasting:

X = ones(Int, 1_000_000_000)
Y = ones(Int, 1_000_000_000)

# explicit dot notation
X .+= 2 .* Y

# or with a macro
@. X += 2 * Y

The + and * do not allocate, the operations are fused into element-wise operations so the vectors are traversed only once, and the loop is compiled to vectorized code. No need for Numpy / BLAS.
Show HN: Push GitLab issue due dates to your Google Calendar
It's not allowed anymore: https://groups.google.com/a/chromium.org/forum/m/#!topic/bli...
No. Using Brave they have no way to follow you (no cookies).
Prepared or not, I think there is some element of it being really hard to get funding to go fix things proactively vs. tapping into a Federal organization which will fund the aftermath.

I wonder if there have been studies comparing the costs? The hurricane is coming either way and there will be a need to cleanup.

Its the same in some software organizations, fixing things so they are right takes a lot of convincing vs. band-aids when the problem comes up.
How Do Transgender Remote Workers Trvael?
When Being an Entrepreneur Stops Being Fun
The device is obsolete at this point. They will never realease it just like new OpenMoko and Neo900 in my opinion.
This engineer built a sentiment analysis bot with IBM Watson and Raspberry Pi
It is not as simple as that e.g. JSOC doesn't have its own ships, limited aviation, etc. It is totally reliant on the "regular" military to support its operations. And of course it gets most of its recruits from there too - AFAIK only the SEALs do direct entry for civilians.
You Can Use ES Modules in Node Today
which is worth 1/200th of the valuation of SF unicorns..
Probability theory is the study of distributions of constant measure in measure theoretic terms. There are some good resources that mtzet mentions, but I just wanted to note that a lot of the integration terminology which you take for granted reading about probability theory is formally defined in measure theory. It's also very nice for making signal processing math more formal.
I agree. Unfortunately, it feels like there is so many people out there lacking the fundamental engineering background to write software.

I once spent an hour "optimizing" a piece of code that ran in 15 minutes, which tested an embedded system. The resulting code ran in 4 seconds. The root cause was a complete misunderstanding of how microprocessor interrupts work.

I spent a week re-writing a 4000 line C-function, which ended up to be around 50 lines of code, doing the same thing. The root cause was a complete misunderstanding of how state machines should be constructed.

These types of rookie mistakes by itself don't worry me. But the "trend" seems to be that young coders graduate with less knowledge about the underlying hardware on which their software will run.

I feel like just like Mathematics and Physics, low level programming / microprocessors / computer architecture classes should be part of many university curriculum. (Oh and I think they should teach about version control systems in college as well, but that's the topic of another story!)
I completely agree. I pity those PhD's using their Intellect for increasing Ad revenues to FB rather than creating/using algos to solve the pressing real-world problems - Diseases, Nutrition,Drought predictions,Curb terrorism etc. Are they even motivated by what they are doing..after all money is not everything (I agree FB pays a bomb).
It's unfortunate, not surprising.
Why not use Raspberry pi with Sleepy Pi 2 hardware addon, powerbank and a 3g modem? You need a smartphone for the internet, right? I always carry a dumbphone with 2 month battery life for calls + smartphone for Internet.