skysight-inc/HackerNews huggingface dataset:
You don't understand what the following means

1 ^..^ 5

It means a Range of values from 1 to 5 excluding 1 and 5.

1 ~~ 1^..^5; # False
5 ~~ 1^..^5; # False
1.000001 ~~ 1^..^5; # True
4.999999 ~~ 1^..^5; # True

It is short for

Range.new( 1, 5, excludes-min => True, excludes-max => True )

One of the benefits if you want to get the first 10 items from an array is that you can use the numbers 0 and 10

@a[ 0..^10 ]

It also means you don't have to do so many +1 or -1 when generating a sequence

$n+1 .. $m-1
$n ^..^ $m

We don't have to declare ranges with a number past the end like Python

range(0,n+1)

0..$n

… but we can if it increases clarity

range(0,m)

0..^$m

Since we don't use prefix ^ for anything else, we have it as shorthand for the above

0..^$m
^$m

---

Perl 6 doesn't have a Z=> operator. It has a Z meta-operator and a => operator.

my %hash = @keys Z[=>] @values;

short for

my %hash = zip( @keys, @values ).map: -> ( $key, $value ) { Pair.new( $key, $value }

I would like to know which of those you can scan over and be sure it is correct without much thought.

We also don't have a += operator, instead = is also a meta-operator

$i += 2;
$i [+]= 2; # more explicit, but identical

Which means that if you modify an existing infix operator or add a new one, you get something like += for free.

sub infix:< +++ > ( $l, $r ) { $l + 1 + $r }

$i +++= 1;

Note that since operators are so simple, we don't have to re-use operators for completely different operations. Just add a new one.

---

Sigils and Twigils allow us to know the scope of a variable and that it is a variable, at a glance.

sub value () { 10 }

submethod BUILD ( $value ) {
$!value = $value || value
# ^ ^ ^
# | | \_ not a variable
# | \__________ subroutine scoped
# \_____________________ class scoped
}

There are also compile time "variables"

say $?LINE;

and dynamic variables (thread local)

say %*ENV;

This makes it so that when you modify a dynamic variable, it is immediately obvious that is what you are doing.

sub foo () {
$*foo = 42;
}

my $*foo = 0;
foo();
say $*foo; # 42

sub bar () {
$bar = 42; # compile-time error
}

my $bar = 0;
bar();
say $bar;
The author is confused. glibc does support IDN, but of course it's not enabled by default. The applications that want IDN have to opt in by specifying an appropriate flag.

http://man7.org/linux/man-pages/man3/getaddrinfo.3.html
(search for "Internationalized Domain Names")
Hey @locococo, @0x01030307
Good to know there are people who are similar!
A Paper In­ter­net
Mostly agree but:

Lua is a Lisp-lite, Ruby maybe a Lisp-lite, Python? No way, I'd go as far as say that Python is antithetical to the Lisp philosophy and yes, I know Norvig has claimed something similar in the past. It's still inaccurate and wrong. In an interview, Norvig pretty much admitted that popular appeal is more important to him than the inherent superiority [which he of course acknowledges] of the philosophy behind Lisp.
> AND the individual doesn't have to be an expert to handle their own benefits.

Not only do they not "have to be an expert", the individual does not even get a choice in the matter.

Are you a Christian Scientist, and do not use health services? Do you want to prioritize school tuition over retirement? Retirement over health insurance?

Not to worry citizen. Your older brother has made the optimal choices for you so you don't have to
Sources within the Chinese government put the death toll at 10,000 people
> It's not unethical when you engage in commerce with a regime you find unethical or when you buy from all the other companies that manufacture their goods in China

Who says it's not unethical? Why are you putting words in peoples' mouths?

On one hand you talk about having a good-faith discussion but then you go ahead and base your argument off of words you've put in someone else's mouth.

> but it's unethical if Google doesn't want to ignore 1.4 billion people?

Most people find corruption of data far worse than the absence of data. I'd rather not be told anything than be told a lie.
Doctors cut out a large chunk of a boy’s brain–now he’s doing just fine
Royal Circuits | Full-Stack Dev | Bay Area - Hollister, CA | Full-Time | ONSITE | https://www.RoyalCircuits.com

We're a printed circuit board manufacturer that specializes in quick turn prototype orders. We're one of Silicon Valley's best kept secrets – we manufacture and assemble printed circuit boards (PCB’s) for thousands of customers nation-wide, including engineers at some of the world's biggest tech companies. We’re building up our team to completely revolutionize the electronics manufacturing industry - from engineering, to sales, to production.

We had an exciting reception to this ad last month, and are looking to bring on additional full-stack and front-end developers to round out our team to work on custom web-apps that enhance and streamline the PCB manufacturing process. You'll be involved in developing tools that get orders through production as seamlessly as possible, with the opportunity to drive interesting projects involving automation, data visualization, and machine/3rd party integration.

Our stack is built around React, GraphQL, Python, Django, Postgres.

We're happy to offer excellent benefits and competitive salaries, flex hours, and the opportunity to work remotely. Our main office is in Hollister, CA, just south of San Jose. Love nature? We're conveniently near Pinnacles National Park, the country's newest national park.

I’m Mihir, Director of Special Projects here at Royal, and a former electrical engineer at Tesla and Taser. If you’re interested in joining our team, please send your resume to jobs@royalcircuits.com.
Ask HN: How do I learn Excel as a programmer?
I've come to appreciate some facets of Excel and feel it could be a valuable tool in my arsenal in addition to other languages I know. There seems to be a dearth of material on learning Excel targeting programmers/SW devs, does anyone have any good resources to share?

I'm looking for things along the lines of Joel Spolsky's "You Suck at Excel" https://www.youtube.com/watch?v=0nbkaYsR94
BBOXX | Software Developer | London | Onsite

BBOXX provides affordable energy to off grid customers in sub-Saharan Africa using an innovative IOT based solar kit combined with cashless digital payments. We are looking for experienced developers to maintain and break our back-office solution into focused micro services.

APPLY : https://bboxx.workable.com/jobs/774071

About BBOXX

Lack of energy access in sub-Saharan Africa is a significant problem, with more than 600 million people currently without mains electricity supply. In Rwanda, 9.5 million people or 81% of the population cannot access mains electricity, which has a negative impact on quality of life and limits people’s chances of achieving economic prosperity.

BBOXX is helping to address this issue by providing off-grid communities in developing countries with affordable energy solutions. BBOXX customers typically use a Pay-As-You-Go payment method, which enables very low income customers access to electricity at home that they would otherwise not be able to afford. To date BBOXX has installed more than 150,000 systems and provided around 750,000 people with access to energy.

Check out our impact here http://www.bboxx.co.uk/customers/
Wonder | Full-stack Software Engineer(s) | New York City (NYC) | ONSITE | https://askwonder.com

Wonder is a new kind of knowledge service that makes your brain scalable. We provide instant access to the intellect and fact-finding skills of a distributed network of analysts around the world. We enable anyone - from individuals up to Fortune 500s - to gain strategic knowledge when they need it most.

We are looking for senior software engineers to join us in our beautiful office in Manhattan to help make the product and the organization that goes along with it.

We're a team of twelve engineers today but we expect to grow into a household name in NYC tech over the next few years and want your help to get there!

You'll be an integral part of a startup with real traction, helping to scale both the product and your fellow colleagues. We care about building a diverse engineering organization and supporting each others' professional development.

For engineering, we expect you to have at least a few years of professional experience including some experience with Node and/or React and an interest in working across the stack to build web applications.

Current stack: Node.js, Postgres, MongoDB, Heroku/AWS

Please use this link to apply: https://jobs.lever.co/askwonder/ae00c78f-7a92-4902-b804-bd48...

Unfortunately we are unable to sponsor new visas at this time.
Reddit Says Some User Data Accessed in Security Incident
It will be quite an accomplishment when they've demonstrated it. Talk is cheap with Tesla.
Cooklist | Django / React Native / CTO | San Francisco, CA / Dallas, TX / Remote | $90K - 150K w/ restricted stock

Cooklist shows you recipes you can cook with the groceries you buy and will allow you to order groceries by choosing recipes you want to cook.

Our app can connect directly to 81 grocery chains like Walmart, Safeway, Kroger etc. and automatically download every purchase a user makes in store and online. It uses NLP to match each product purchased to recipe ingredients. Over 1,000,000 products are matched to 1,000,000 recipes.

Cooklist is live on iOS and Android. Hundreds of users are participating in the development process. 10,000+ purchases have been downloaded in the last week. We are a well capitalized team of experienced startup founders and are looking to bring 3 people onto our team. We are currently in the Techstars Retail program with Target.

You can see a demo video and find links to download the apps at https://cooklist.co or email me at daniel@cooklist.co if interested
That's a good point. Putting the 3 against the 5 series and E-Class is not really fair to MB and BMW. The 3 should be going against the C-Class and the 3-series, and there it has the highest share, but not 50%.
Yes, strict translation requires solving the halting problem in the general case. E.g. translate this dynamically typed program into a statically typed one:

if halts(input): return 1
else: return "Nope"

However, you can always write an interpreter in your desired language and avoid the halting problem. But, that's not really translation.
> Just before WhatsApp was bought by Facebook, they were asking for that $1 per year (I remember paying it) and they had 450 million users, in spite of plenty of chat alternatives being on the market ever since the 90s.

How many of those users were actually paying at the time? IIRC they allowed 1 year of free use (even more depending on your country). I don't know what the churn is going to be the moment a currently free customer becomes paying, but it is definitely non-zero. I really don't think that is evidence for a long term sustainable business model if others exist with zero total subscription fees.

> I’m not saying that the ads model doesn’t have its place, far from it, I’m saying that WhatsApp could have lived just fine without it.

The biggest reason for WhatsApp's success was the cost of SMS messaging most international markets. That's actually declined significantly since its introduction, so that's another drag on their pricing power.

Could they have lived? Maybe. But I doubt they'd have 1.5 billion users like they do now, and I don't think they long term trajectory for the business would look sustainable charging $1 a year.
And their profit margin is “only” 20-25%. That’s high compared to the rest of the industry, but not ludicrously so.

I think it’s a lower margin than luxury watches or clothes, say, where you’re mostly paying for the label, and more comparable to something like luxury cars, where they clearly have to invest a lot in design, materials and manufacturing to make a decent product.

(Having said that, a quick google suggests Rolex’s margin is only about 30%, so maybe all these businesses are more similar than I realized.)
All of the people in that page are full time employees and part of the Web Platform team at Uber. The only minor technicality is that Swojit is interning with us.
A standard called SQRL is similar to many of the concepts of U2F and can be done with an app scanning a QR code.

https://www.grc.com/sqrl/sqrl.htm
Hey do you have any full time position for engineers? I recently moved to Canada and come with embedded background.
Pulling Storage Together at Extreme Scale
It seems to me what libidn2 should be used instead. As per https://www.gnu.org/software/libidn/…

> Please be aware that GNU libidn2 is the successor of GNU libidn. It comes with IDNA 2008 and TR46 implementation and also provides a compatibility layer for GNU libidn.
Yes, a Mars/Moon base would not help the people at the impact site, ELE or not ELE. Nothing would. Those within the ca. 150 km radius would just be dead. Those at the outer edges of the 300 km radius could be helped. Note: this impacted area alone would be roughly similar to the size of Great Britain.

Even if such a "smallish" 1 km asteroid hits, in general everything will change. For example, the asteroid could still cause enough chaos to weaken a country or countries, opening up for opportunistic wars. Since the long-term effects of a non-ELE would be transient, some countries might want to take advantage of this situation and invade (resource grab or glory for motherland or righting old wrongs or something). And then, what things would be seen next - for this we would be in unknown territory.

Even without an outright war, the number of displaced people could become very large. People would likely not sit still and clean up, but try to move away. Can the receiving end handle that many people, can they move enough help in when the just-in-time supply chains are disrupted to pieces? If not, there will be a collapse into some form of chaos at the receiver. And again, people might move, etc.

For an ELE, an offworld base is the only option for continuity. If that is not in place when an ELE hits, then humankind will be dead.

A Mars/Moon base operating at large enough industrial and R&D capacity (akin to a small to medium sized country) could help restore normalcy even without an ELE.

So, I think an offworld base is required anyway, even if we don't sweat so much about 1 km rocks, but still want to be serious about protection against an ELE.
I suspect most outside the Bay Area don't know difference.
Sweden would basically be a third world country if it wasn't for resource extraction in England and Kievan Rus.
How awful that they're making cars that their customers want to buy. 


The reality is that electric cars aren't in great demand today, Everyone's working on them but most aren't in a particular hurry to push out cars that don't necessarily have a good mix of price/range/features for their customers and which they won't sell all that many of as a result.
Not alone in the least. I'll give both the pros and cons of this to my eyes.

pro: I keep my side project work _aggressively simple._ I want tech stacks that don't have complex/hard to maintain build systems, dev environments, or toolchains. I want to be able to spin up a new dev env in a matter of minutes and without needing to remember what nonsense I put together and at what versions and etc etc. My goal in my side work is to get right to the point of Building Things with minimal overhead; and it's a constant balance of avoiding adding additional complexity without being too resistant to new tools/techniques.

Con: "I miss typescript." I use it at work, and I find it makes coding in JS _significantly_ more effective and less error prone. I think for my next big project I'd definitely utilize it. (This is actually the only really glaring thing I find myself wanting for, even on old-style angular there aren't "significant friction points" enough to motivate me to upgrade yet.)
Worth noting that Ashton Kutcher is one of Thorn's co-founders, provided some initial funding, and is likely in a great position to fund-raise for it outside (and within) the usual channels.
Because battery technology isn't where it needs to be yet, where Tesla is absolutely winning when it comes to this. Honda released their plug in Honda Clarity, but it only has a range of 89 miles.
Were you on your phone when visiting the page?
> Are you suggesting we make their parents "pay" somehow? Or a program to prevent the parents from having 5+ kids when they don't have the resources?

Due to the way government assistance is structured it encourages parents to 1) not get married, 2) have more kids, 3) not begin working if they don't already work.

If we changed government assistance to encourage parents getting married that would help reduce fatherlessness and all of the negatives that come with that.

If we changed government assistance to encourage parents to have less children they would be better able to take care of the ones they have.

If we changed government assistance to encourage parents to work it would reduce the number of people who grow up on government assistance and live on it their whole lives. This would have long term positive consequences.
Not really at a controlled company like Facebook.
While everyone is piling on how SMS 2FA is oh so bad, it is worth noting that it is supposed to be the second factor here. So what happened to the first factor is the obvious question. Someone was using weak/compromised password or got social engineered would be my guesses, neither which are very good options.
Maybe there is a market, maybe not. Other possible goals could be also to attack the swedish crown distroying a symbol of their power, to humiliate the police, to seed insecurity and fear in the population and blame foreigners. Maybe the thieves where paid in advance... Is not easy to guess the real motivation currently.
Do people in those income brackets purchase vehicles that are that expensive? It doesn't seem wise to spend nearly half your pre-tax family income on a single vehicle. I've been assuming the average income of purchasers of the model 3 was in the $120k range, and even that seems on the low side for the price.
If I may pick a nit...

Propaganda is intended to change a belief or a course of action through a substantial amount of disinformation, i.e. lying repeatedly or omitting many facts. Thus the intended audience doesn't have to be big (no wide dissemination) as long as the lies / omissions are numerous and show deliberate intent to deceive.

For example, a man can conduct a propaganda campaign lasting years and make many misleading statements toward only his wife. However, it'd be a stretch to refer to a single isolated lie as propaganda, even if it were intended for an audience of millions.

I suggest the dividing line between persuasion and manipulation to be akin to 'assent' vs 'consent'. Persuasion requires agreement, the informed, equal, and voluntary meeting of two minds, not a un/mis-informed compliance or subservience of one mind toward another. The latter could never be called persuasion.
Who is going to miss WHOIS?

I'm not. If it was opt-in I bet nobody would even reveal their details at all.

At worst, you're just accidentally doxing yourself and setting yourself up for a social engineering attack.

For example, name, email, and (wrong but close) address were enough to get someone into this guy's Amazon account: https://medium.com/@espringe/amazon-s-customer-service-backd...
They don’t have to be equivalent for Kent State to have been a US based massacre of protestors.
There were always alternatives, just carried certain other costs. SMS was a major competitor, and as its prices have declined significantly internationally, the friction with using it would as well.

Being the first mover is not a infinitely defensible advantage. If another app comes along but doesn't carry the $1 a year fee, it wouldn't be hard to motivate people to switch.
i you squint you'll see CLOS
> unless they’re going to engage in coordinated labor action like they did with the drone program.

What was this?
Just give subscription users some special features, custom Emoji, or whatever. Seems like it would generate enough revenue to pay the bills, but probably not enough to make a FB type business happy.
I've heard those theories and am quite skeptical, but they don't relate to my claims.

My point is that even if everything you claim works out exactly as hoped, that will only be on day one. It is not the case that a growing majority of voters will simply be content with whatever is handed to them and be grateful. There will be ongoing debates about what that number should be, but it will almost never go down.

And I've still seen no reasonable "exit plan" for how to transition away from a UBI society where some huge majority of people have, for decades or generations, been told they will never be working a day in their life.
Monadic | Software Engineer, Haskell | Berlin | Onsite | Full-time

We're looking to hire our fourth software engineer to work in Haskell on distributed systems, version control and TUIs to build a platform for open-source collaboration and funding. Our salary is a flat EUR 100K. We're well funded and based in Berlin.

More information on the job and how to apply here: http://oscoin.io/jobs.html

If you are experienced with React, Elm, PureScript or Vue and interested in product development, we would also like to talk.

Thanks!
Stopping advertising based business models would not make a $500 computer suddenly cost $5,000. Also Windows is not ‘effectively free’, it’s just you don’t usually pay for it separately.

Stopping invasive user tracking would make internet advertising less effective, sure, but it wouldn’t prevent it completely. Ad Words doesn’t fundamentally depend on user tracking to associate search terms to advertisements for example.
Looks like SQRL is aiming higher than just 2FA, they try to be the entire login process. Thanks for the link, but not sure it's quite what I'm looking for.
Maybe for bad actors. I work for an U.S. company and we were explicitly required to get opt-in by the compliance officer. And it's messages users actually want to get (we have over 99.9% opt-in).
Not sure where in the world you live but if the medium income for Malawi is $250 dollars and the medium income where you live is $25,000 convert 1 dollar to $100. Would you pay $100 dollars a year for whatsapp? I wouldn't. For those living in the valley making 250,000 a year that translates to $1,000 dollars. To me that sounds like flushing your money away. The best phones are under 1,000.
Here is a good example of an attack against a system secured by SMS based 2FA: https://medium.com/@CodyBrown/how-to-lose-8k-worth-of-bitcoi...
> not reporting sales and not paying taxes

I don't ever assume malice when there is a simpler answer, besides this store is prominent and at the border so they wouldn't be that dumb. The simpler answer is they give a small discount on cash, and a small markup on card purchases to really encourage cash. They are a deregulated liquor state (so they don't have a state ran "Liquor board") which means they can offer much lower prices than just across the border. And I am sure the owner just prefers to go down the street to his or her local branch and say hi to the teller and just deposit cash. Some people just like to do things the old fashioned way. My barber is the exact same way -- he doesn't take card at all, only cash.
Bringing Back the Mighty Chiplet