skysight-inc/HackerNews huggingface dataset:
> In fact, if I see someone using binary operators in languages such as Java,JS,Ruby etc... I'll immediately consider it bad code, regardless of context - it's just not the right tool for the level of abstraction in these languages.

Clojure is written in java (and clojure). It uses bit operations to implement Software Transactional Memory and persistent collections. Is it a bad code?

You seem to think a programmer should always code on the same level of abstraction. I'd argue in many applications often you find no suitable abstraction, and have to implement it yourself.

Also linear feedback shift registers can be used without any knowledge about bits other than the fact that integers loop over when they reach maximum value (and every programmer should know that anyways). And these registers are useful for some very nice algorithms (like in-place pseudorandom permutations' generators - for example for shuffling songs in a media player, or for some ai algorithms).
> the company offers a compelling service for riders, an economically attractive one for drivers (who drive by choice), and makes the cities within which it operates better.

Incredibly opinionated. It's a pretty disputed claim that more single passenger traffic improves a city.
> Enormous compared to what?

Enormous compared to the value provided.

> We spend 3.2 trillion a year on Medicare

No, we don't. As your own source says, it is only $646 billion on Medicare, and $3.2 trillion a year in total combined public and private healthcare expenditures.

> Imagine if just 1K per person per year (300B) was spent on infrastructure every year to make mass evacuations over a few days possible.

Then it still probably wouldn't be enough, and we'd get a lot more value for nearly doubling infrastructure spending [0] if we spent it on something else.

[0] $416 billion/year in 2014, https://www.cbo.gov/publication/52463
I got curious and had to check the numbers, just to know what's real:

Australia: 7.7 million km²

United States: 9.8 million km²

Europe: 10.2 million km²

Russia: 17.1 million km²

Africa: 30.37 million km²
The OnePlus 3T seems to be officially supported by LineageOS[1].

I'd actually trust my phone more (using the official LineageOS build) as basic system components are FOSS (although there are some firmware blobs).

[1] https://wiki.lineageos.org/devices/oneplus3
Earth-like planet only 16 light years away
You're assuming the existing expense of making air travel safe is not reducing the quantity of air travel done.

Imagine it was as easy to become a pilot as to get a driver's license, there were no flight plans or restrictions on where people could take off or land and a 500MPH jet could be purchased for $150,000 because there would be less regulatory overhead and more competition in aircraft production.

Affluent people would be commuting by jet. There could easily be ten times as many air miles traveled or more.
The Canvas is much more fun and easier to work with then SVG though.
That gives Nixon too much credit. That sort of policy is exactly what would be in an FBI manual of the era.
> asm mov ax ,[ WORD PTR rndval ]

> asm mov dx ,[ WORD PTR rndval +2]

> asm mov bx , ax

> asm dec bl

> asm mov [ BYTE PTR y ], bl // low 8 bits - 1 = y

> asm mov bx , ax

> asm mov cx , dx

> asm mov [ BYTE PTR x ], ah // next 9 bits = x

> asm mov [ BYTE PTR x +1] , dl

I don't understand the need for the second asm mov bx , ax : BX is not used afterwards. Same for CX, it is never used.

> uint32_t rndval = 1;

> uint16_t x,y;

> do

> {

> y = rndval & 0x00F; // Y = low 8 bits

> x = rndval & 0x1F0; // X = High 9 bits

Er... no, if you do that, you only get the lowest 4 bits in y, and then you only get 5 bits in x (and not the right ones, of course).

It should be:

y = rndval & 0x000000FF; // Y = low 8 bits

And then you have a 'problem' for x, because you must shift it right, otherwise it doesn't fit in a 16-bit variable:

x = rndval & 0x0001FF00; // X = bits 8 to... 16 > 15, irk

So you should just do :

x = rndval >> 8; // X = bits 8 to 17, in their right place
Can I still buy the Jolla phone somewhere?

IIRC for Sony devices you get 1 year of Sailfish updates for 50 €.
Incredibly impressive... Definitely better than Google Translate, and taking the spot for my default machine translation engine. Great job!
I've actually had to write an ebook (for content marketing purposes) on growing a company and going from 3 to 9 to 30, and so on. The most interesting thing is the Greiner's Growth Curve as well as Adizes Corporate Lifecycle.

I'll leave the direct link to the pdf here even though it's gated content, so pls downvote.

https://activecollab.com/downloads/GROWTH.pdf
I had exactly the same experience. Julia's JIT compiler is (or at least was) really picky to what code it did and didn't like. Two pieces of which look 'basically' the same can have a performance difference of an order of magnitude due to the JIT liking one version and not the other.
Show HN: HardyPress, zero-maintenance, “static” Wordpress hosting service
Amazon cuts Whole Foods prices as much as 43% on first day
Uber’s Self-Driving Car Visualization Platform
Ha I thought it was related to P90X somehow

https://en.wikipedia.org/wiki/P90X
You're going through the array twice whatever you do (once when multiplying by two then a second time when adding the arrays together), Python/NumPy isn't clever enough to figure out that it can be done in a single loop.
> The OnePlus 3T seems to be officially supported by LineageOS[1].

Yes, but everything I have read, anybody who tried only the official ROM had various problems, e.g. with the camera. Hence I settled on an unofficial ROM.

But even if I used the official ROM, there is absolutely nothing on the LineageOS website that makes me trust them. No real names, no GPG keys, nothing. Just "The LineageOS project", a bunch of pseudonyms in the blog entries and apparently some LLC. Even their "Legal" sub-page does not contain anything at all.
5 Successful Tech Startup MVPs Examples
Quick tips and tricks about e-commerce customer service
It's an interesting article, and the story behind it is viable (the NSA would certainly be able to identify Satoshi with all the info they hold). However, the complete vagueness of the article and the lack of verifiable details proving Satoshi's identity for those aren't part of the NSA means I'm at least a little skeptical of this article.

Anyone can say they have a friend in the NSA who knows about an effort like this, and anyone can write an article on Medium. You can't verify it either way, sort of like how you can't fact check the kid at school who claimed his uncle worked at Nintendo.

So while I'll stay optimistic and assume he's telling the truth for now, I'll also hedge my bets and say it's equally possible he's just lying through his teeth. We just cannot know for the moment.
This is interesting and I understand how every map is a compromise but it really bothers me how distant this projection makes Antarctica look from New Zealand (one of the gateway countries to the continent, especially the Ross Ice Shelf area).
That was my first reaction, until i remembered that i've seen a globe before, and my general perception of the shapes of countries is informed by a globe and not just the mercator projection.

This map might bill itself as "the most accurate", but it's still making some crazy distortions. Mercator might get some sizes wrong, but it gets the shapes mostly right.
Economic Macro Note Explains North Korea
Would this be as fast as 'Fastest'?

%time X += Y; X += Y

It's a bit easier to read, imo.
Are you doing the "Get the book. Read the book. Do the exercises." method? If you are, what's your experience?

I have had some books stored up since forever, and graycat's post did motivate me to finally get around to reading them, but I find it hard to integrate into my daily routine. His 24h challenge killed my productivity for a day, and I can't really afford to get distracted by some tricky proof when I'm supposed to do something else.
Another truly open alternative in crowdfunding stage (I really wish it will reach its funding goal): https://puri.sm/shop/librem-5/
http://i.imgur.com/54JjaA3.png

Well, I guess ad companies have no idea how much money I make.
Partnering is probably better than trying to crowdfund another device - at least one can easily flash the phone back to Android if Jolla can no longer support it.
Are Rare Earth Elements Actually Rare?

http://foreignpolicy.com/2010/06/15/are-rare-earth-elements-...
> As far as I can tell Satoshi hasn’t violated any laws

If he's an American, he has either paid the IRS a lot of money - in which case he's not really anonymous and this textual analysis is academic - or he owes the IRS a lot of money. There are definitely laws about not paying that money back.
I spent almost a month in Myanmar (burma) 2~ years ago and would be incredibly surprised if any serious amount of software work is happening there. Yes, some is happening, but nothing compared to other major cities in SE Asia
> If you properly communicate with your chain of command, and slowly train junior personnel into the proper qualifications, the problem starts to go away. Though, you're not looking at more than 5-6 hours of sleep straight on a good day.

This, to me, is a major problem. Many (most) young humans do not do well on 6 hours of sleep or less for a long time. One could probably load up on stimulants, but this I suspect will bite you later.

Given that this happens in peacetime, do you think it can be improved with better technology? That is, instead of, say, three people watching screens 18 hours/day you get them to do the work as well (or better) in 12 hours/day if you give them better displays? I suspect it is not that simple, but would still like to know where the snag is.
If the Addicks and Barker Dams Fail (2012)
> lacking the fundamental engineering background to write software.... young coders graduate with less knowledge about the underlying hardware on which their software will run.

There's a lot of software being written in Excel macros and Wordpress web development. These tools actually get work done - they automate things that were not automated before, they publish things that were not published before, and they generate revenue and improve productivity.

Young coders, and the authors of these programs, should not be forced or expected to go through low-level programming classes to get work done. The tools are good enough and the hardware is fast enough that for 99.99% of all projects, they don't need this expertise.

I say this as someone with an EE degree (from less than a decade ago) consisting of classes that spanned the entire pyramid of complexity: from analysis and simulation of individual transistors, through construction of a CPU on an FPGA, through writing an RTOS for a microcontroller, up to programming a web server. That understanding benefits me greatly in what I'm doing today.

But I work with plenty of people who don't have that background. For all the business logic that seems to be found in any software project, that's just fine. Most of the work is in translating people's desire for the software to "do what I want" into actual requirements and then codifying those requirements into a database or UI. For construction of state machines, they should use a library or have someone more competent construct the framework and let them implement the actual states, and when the work requires an understanding of how microprocessor interrupts, they should defer to someone who understands that technology.

And yes, they should teach some version control in college as well. It would be enough to give students one major project that ends up with the filename laydn-Project-complete-final-actuallyfinal-3-done-8-29.zip, which just worked a minute ago after which you barely changed anything and now it's completely broken, and that thing that worked once stopped working at some unknown time in the past. Then just mention that git and svn are things that exist.
Thanks, I’ll look into Termux!

> No need for random forums. You should have been able to download an official LineageOS build from https://download.lineageos.org

But even if this worked (from what I have read, others had problems), there still would be nothing to make me trust "LineageOS", as I said in the reply to your sibling - there is no real name associated to the project, no GPG key embedded in the web of trust anywhere that I can find and not even on the download page are actually signed binaries I can verify myself to be trustworthy. Not even the Wikipedia page of the project lists a single individual involved!
Anecdotal evidence - I cut my teeth on C and a dabble of asm as a kid (even writing z80 opcodes directly for fun!). I vaguely remember wrangling bits to drive logic. I also wrote webpages as Apache C modules with binary logic to parse requests :D

That was a long time ago in tech terms (~15 years). In the intervening gap I spent most of my time in scripted languages (as3, c#, etc.).

Result? I don't know how to wrangle bits anymore. The added speed increase I'd add almost definitely isn't worth it (for example, flash and unity games, web services, etc.). That doesn't mean it isn't worth it for the end product - I rely on Unity, Adobe, Google, etc. to worry about those optimizations so I can stand on their shoulders and benefit.

But in terms of cost/benefit, getting into that stuff myself (again) just didn't make sense for most of my professional needs.
> The [Pyra] team posts very detailed updates every 1 or 2 weeks. When anything goes wrong or things get delayed, they include it in the update.

Are these updates available to the public or only pre-orderers? I'd be interested in following if the content is available. Is it the "Pyra News" section of the forum?
> Because porn objectifies women.

Next time I open a porn video that features no women at all, I'll be sure to take a moment to appreciate how it's objectifying women.

Regardless of your false statement, porn objectifies everyone involved. That's the point of porn in the same way that hooking up with someone for a night and going about your business the following day objectifies both of you. There's nothing wrong with being sexually interested in someone else and nothing else.
I recommend reading/skimming Networks of Control:

http://crackedlabs.org/en/networksofcontrol
The value of Likes on the creation of social economies
I can understand the feeling, but it might seem wasted but Facebook and Google have actually made it easier for small business to do business by enabling them to get segmented customers more easily by breaking down barriers for entry. 20 years ago one could not as a small company get US or global reach without using a lot of money and it was not easy (possible) to segment either. This again have increased competition and enabled new products an lower prices. The technologies pioneered by Google and Facebook (BigData, NoSql, ML) have again improved other disciplines and fields.
Apple tipped to unveil new iPhones on September 12
The new one ("Celtic Holocaust") is about the Roman conquest of the Celtic people. Definitely worth a listen if you're into history/Carlin podcasts.

Personally I'm hoping for a "Common Sense" podcast by him sometime soon !
Ask HN: Interest in Uber Jaeger tracing as a service?
I've been running Jaeger in production for a while and thinking of spinning it off as a hosted service. Would anyone be interested in trying it out when I have it deployed ?
> Make the punishment for burglary the death penalty, and burglary would go down.

Depends on the context, if it's hard to be caught or people who commit burglary today are people that are ready to accept any risk due to their socioeconomic condition then it's not a good deterrent.
> The skills required to carry out these attacks, for example, would make someone very valuable on a Western market.

I'm sure being part of the top 0.001% of a small poor country with power and prestige unimaginable to those living in countries with rule of law would any day beat making six-figure in San Francisco and complaining about human feces on the street.
I mean in the United States or any other similar democracy even the President is treated like shit by the opposition, media, and common folks. Watch this 20-second video: https://www.youtube.com/watch?v=cRMI4Z7ri8A
It's worth noting that according to this study[1], Facebook has trackers on 25% of the top 1 million websites (Google is top with 75%). This doesn't immediately explain how they get around the use of separate browsers, but with device fingerprinting techniques, e.g. checking the list of installed fonts, screen size, IP address, etc., I'm sure they can reach a high probability of recognising a single user.

[1] https://webtransparency.cs.princeton.edu/webcensus/
Why does he owe money to the IRS when he has not touched his coins?
i have one device, recently bought and never going using it. regret buying it.
Medical Journals Have a Fake News Problem
Unless you missed the sarcasm tag completely, you can't use history to define what causes segregation. It don't stand up to the scientific method, it create circular logic, and its frankly lazy.

First establish a theory. Then use theory to predict the world. Show data that support that given a starting point and a influence you end up with data similar to current, and then address potential problems. Finally compare the theory to other theories that also can correctly predict and see which one is better. Only if all fails should you get into camps and start the ideological battle like the one you are doing, in which reason can be thrown out and people can just shout at each other until a unified theory can be created and the battle lines can be silently be forgotten.
Good question. The CE version is fine for me, especially if it's hosted on gitlab.com, but then if something goes wrong I'm working on the basis that paid plan holders have a higher priority for getting fixed.

That might be bogus logic, I don't know -- it's more of a gut feeling.
All That You Need to Know about the Cedar Bevel Siding
Horrible or non-existent Mayweather-McGregor fight streams prompt lawsuit
It seems to be, roughly, a French word for latex rubber. Hence why it's used for a LaTeX tool, and for a study on deformed surfaces.
It doesn't have to be bitcoin (I'm rather thinking ETH due to fast and cheap transactions) and it doesn't have to people who care about owning it. Using it as an intermediate coin IMO makes sense because you can separate it completely and easily from your identity and you solve the problem of shady adult payment providers.
YAGNI.
What a great gravestone inscription.
Some AdSense ads will let you mark an item as already purchased if you click on the information icon
JavaScript – Understanding Prototype
Statista Digital Economy Compass 2017 [pdf]
There's a nice short article that explains how Bela does this: http://hackaday.com/2016/04/13/bela-real-time-beaglebone-aud...

The pair of PRUs in the Beaglebone black is a large part of it.
AI wrote GOT BOOK 6 for fans
CSS[1] was the defacto 'DRM' back in the day, which used two LFSRs for 40-bit encryption. Apart from being able to brute force it today, there are many other ways to break it[2].

Now the DRM on DVDs/BluRays is AACS[3], which uses AES. You might also recognise it from the 'copyrighted numbers' fiasco[4]

[1]: https://en.wikipedia.org/wiki/Content_Scramble_System

[2]: https://en.wikipedia.org/wiki/Content_Scramble_System#Crypta...

[3]: https://en.wikipedia.org/wiki/Advanced_Access_Content_System

[4]: https://en.wikipedia.org/wiki/AACS_encryption_key_controvers...
A simple option for web scraping is just to use the developer console in a real web browser.

I have a repo outlining the basics here: https://github.com/jawj/web-scraping-for-researchers
I remember a recent example. What I wrote was:

int x = somefunction();
int x_dividedby16 = x >> 4;

My coworker corrected the second line to something like:

int x_dividedby16 = (int)Math.ceil(x / 16.0);
I've read a few million words of French—nothing special, but enough that if a text gives me trouble, then it's also likely to break Google Translate. Over the years, I've collected a few example texts which give Google Translate an especially hard time, and I use those for testing other machine learning systems.

DeepL performs significantly better on the most difficult texts I've given it. It's substantially better with colloquial language, and—oddly—nautical language. It also seems to be much better at tracking relationships between words in longer sentences. Good work!
Nothing, if their job is to color code spreadsheets; everything if their job is to actually put the content into those spreadsheets.
As others have pointed out, it's an advertising technique called retargeting. Here are some of the technical details of how exactly it is done(Facebook's implementation might differ somewhat from this, but overall concept is same)

/*
DSP - Demand side partner (Entity which works with someone who wants to show their ads)
SSP - Supply side partner (Entity which works with some who have potential space on web to show ads)
/

1. When you visited Amazon.com, one of the DSP associated with them drop a cookie on your system to uniquely identify you as a user. Let's call it cookiexyz.
2. When you end up on Facebook.com, their SSP also drops a cookie on you, let's call it cookieabc.
3. Now only thing remaining is to determine cookiexyz and cookieabc are same users.
4. To do that, SSP requests a bid from Amazon's DSP(among others). While doing that, it calls one of the DSP's url(bid tag) which sends cookiexyz in request headers and sends cookieabc in query params. This uniquely profiles the user which DSP stores in their system and next time user requests a bid again, they can serve them ads based on preferences based on cookiexyz. In other words, info that your looked at some shoes on Amazon.com

/ disclaimer: I work as a dev in one of the Advertising partner for Yahoo and Bing. */
Only among the HN crowd, not at all from my users.
What's the problem they're just Micromorts after all...unless it's someone you know. maybe some of the people funding it should be part of the study.
This is totally missing the point of the Julia benchmarks. They were meant to show that you can implement fast low level code in Julia. That is why the python code also had to be written with loops otherwise it would really just test the performance of a library and not the language.

The point of Julia is to not have to deal with both C/C++/fortran and python code when creating a high performance solution. You don't always have a high performance library to utilize for your particular problem.
Sure, but sed is basically just ed in non-interactive mode, so not very different from ex. And ex on my system is basically just vim without instant redraw after each change. And then you're back in terminal-GUI land.

It's interesting how the ancestors of modern editors are still around as living fossils ...
Or it makes sense to change the American measurements.

Btw I'm not native English and I use English to write this comment despite being born in this non-English country, being grown with my native language, and still being in this country while writing this comment. Why do I do this?

Because we are an international platform.
I'm still doing mail merges with Word and Excel. Can Docs/Sheets or Pages/Numbers do this? It's the only reason I have Office installed, and I'd love to delete it!
This will turn off their ability to respond to you. That doesn't mean they are not listening.
Fresh News, Constantly Updated
Developing from an iPad
Faster than fastest:

import numba
@numba.vectorize(nopython=True)
def add2(x, y):
return x + 2 * y

add2(X, Y, out=X)

This is 40% faster on my machine. It only needs to read X and Y once, and write X once. It does take a bit of extra time on the first run, because it uses JIT compilation (LLVM).

Numba lets you implement vectorized operations in terms of elements. In the above, x and y are scalars. You get support for various NumPy "ufunc" features for free, such as the out parameter used here.

Ref: http://numba.pydata.org/numba-doc/dev/user/vectorize.html