skysight-inc/HackerNews huggingface dataset:
Hey, I'm highly enthusiastic about what Magic Leap is doing, and I'm looking for an internship next summer. I've been following the company quite closely, I actually reached out to the team via email (info@magicleap.com I think) about a month back because I didn't see a spot for internship applications, but didn't hear back.

I'm currently interning at Apple. I'm passionate about prototyping for cameras as an AR platform, and the opportunity to pursue those ideas taken to the next level with Magic Leap would be incredible. I'm particularly interested in rapid prototyping, software engineering, and UX.
I'm not from the US or China.

I think that outside the US, the reputation of US-made good has never been particularly strong. We see US cars, and compare them to Japanese cars and see mostly failings.

So far as Chinese goods go, I have no particular knowledge of wrenches.

However, I'd note that (Chinese made) Apple products are generally of pretty good quality.

I'd also point out that the ZeroHedge article doesn't really make a strong case that quality is decreasing at all. And you realize the Onion is a parody, right?
It is significantly better than undefined behaviour, as it results in a noisy failure rather than silently incorrect results. Compile-time failures are best, sure, but I'll always take an exception over what is essentially data corruption.
Nervous about nukes again? Here’s what you need to know about the Button
What your back end could learn from Redux
Agreed. While the US and CA rates sometimes differ, it's not by much and they usually loosely track each other.

This is the effect when you have 2 economies that are so closely tied.
afaik (talk to your lawyer when changing jobs! they're really not that expensive!) non-competes are unenforceable in the vast majority of cases in CA. There may be limited exceptions for executives. There is even a question if asking for it invalidates the entire employee agreement.
There's an interesting video of a humpback whale being freed from a net:

https://www.youtube.com/watch?v=tcXU7G6zhjU

We don't know for sure if it really is showing appreciation at the end, but humpback whales are social animals so IMO it's plausible. It certainly makes a big effort at breaching despite being trapped for a long time and despite there being no other whales nearby. Why would it do that if it's not trying to communicate with the humans?
I just went to Alaska. It was my first time and I couldn't believe the amazing beauty I've seen. I would love to go back. You mentioned kayaking, any suggestions on where to go?
Haven't noticed that anyone is talking about the fact that just a week ago, the Chinese government issued a press release about "legalizing" ride-sharing apps [1][2]. Article 21 of the new law, which should take effect this November, basically says that subsidizing the drivers would be illegal, effectively killing Uber's strategy.

The Uber case is classic in China, governemnt using "laws and regulations" to kill foreign businesses. Didi's competitive advantage was just being Chinese, nothing else. Now that Uber has surrendered, I wonder if the regulations will actually be implemented.

[1] http://news.xinhuanet.com/politics/2016-07/28/c_129186192.ht... (Official press release in Chinese)

[2] https://techcrunch.com/2016/07/28/china-issues-guidelines-to... (Article in English)
I'd like to put out there that Crystal is absolutely awesome. The language itself is Crystal clear, but the language documentation and API documentation - oh my!

I had never worked with compiled languages before I tried Crystal, but had always had a huge interest in getting into that. When I wanted to learn the compiled ecosystem I looked at languages like Go and Rust, but the learning curve for those was a bit overwhelming for a newbie. A while later I found Crystal, and much thanks to the simple syntax of the language I learned a ton of new things about compiled languages very quickly.
The absolutely best part of the language is that it is written in plain Crystal, and I've been looking at their own implementations for various things a lot - something I've never done before, having worked mostly with Node, Lua and PHP before.

Nowadays I can delve into Go documentation, packages are clear to me and I just understand how things should and should not be implemented to achieve a good efficiency and performance level. The Little Go Book makes sense, the I/O package is simple and this is probably all thanks to the syntax of Crystal, the amazing language & standard library documentation but most importantly the source of Crystal being written in Crystal.

I'm currently working on building a business using Go, because I absolutely need Windows target support - something which Crystal does not yet have. But the second it gets that, I'm moving back. Don't get me wrong, Go is really great and nice to work with - but Crystal is my mentor. Please note that I have not worked with Ruby before, so the whole language was new to me.

To summarize; even if you only wish to learn, Crystal is in my personal opinion the best choice to go with.
Show HN: ProtoSketch Lite for iPad
Mozilla offers unbranded builds where this about:config override is still available:

https://wiki.mozilla.org/Add-ons/Extension_Signing#Unbranded...
Training your sysadmin, dev, devops team against a load that is significantly bigger than what you are seeing now, so you can cope with that bigger load when it comes.

Training against more difficult opposition than you can face in matches so when you do face the difficult opposition you're ready for that.

Not sure why you're missing that analogy.
Something like FNVHash is so small (like a handful of lines), that it's extremely easy to just copy-paste the function into some place, without realizing it's already copy-pasted somewhere else.
Sure. But most of the time you are writing/developing/debugging code, it is not running in production at the same time.
You definitely have that completely backwards.
>Everyone wants to compare $WorstThingAmericaDoes with $BestThingChinaDoes

this is so true. not only for china but for technologists who find success anywhere except the US. either it is a self-assuaging tactic or it's creating noise to convince people on the fence to move to what is _perceived_ as a worse place to live(beijing in this case)
Vancouver's condos all started leaking within 5 years of construction. With it being 15 years since the building codes changed and not a single similar problem, I think it's safe to say that the new building codes fixed it.
Maybe they do it because less food for orcas means less healthy orcas to hunt their own calves?
(2) wasn't particularly aimed at Ruby, although some “creative” uses of metaprogramming can be very hard to debug. But languages designed for systems programming typically have features that, when used wrong, result in totally catastrophic modes of failure.
>duty to their shareholders to use that asset to generate profit

This is so widely said but almost never applicable. You could say this hurts Comcast's profitability because it damages rep. You could say Google is in flagrant disregard because they invest in new technology. Or Apple, because they donated money to charity.

It's simple to see that this must be true: If you could predict which things were profit-generating, then no business would make bad decisions!

I don't know what the legal criteria is, but I'm guessing it'd have to be some pretty severe misdeed (huge negligence?) or outright fraud before there's any legal implication. Before that, you'd imagine the board would step in.
IIRC, they effectively hash your credit card name details and match the hash, against your profile in FB/Google/etc.
I'd say the poorer you are, the more you need the tax deductions honestly.
Yeah I forgot to mention that even if most of the time you don't care about "security concerns" with regular hashtables, there are cases where a weakness in your hashtable can be used to bring some of your services down. That has happened!

However, many of the times that is not a concern, but as always, case by case basis.
https://www.reddit.com/r/videos/comments/4vupn6/a_turkish_tv...
I'd love to have the same thing but with the ability to compare fonts side-by-side. For example, I can't really tell the difference between "Bitstream Vera Sans Mono" and "DejaVu Mono".
And it already got a port of Sidekiq: https://github.com/mperham/sidekiq.cr
That's exactly the same as maximizing profits.
This is like one of those evil spirits/creatures that changes shape while you are wrestling with it!
> believed to be the birthplace of King Arthur.

believed by who? I thought it was pretty widely agreed that he never existed.
The practical approach is to make things hard enough to discourage theft in the first place or make life harder for the thief afterwards. You cannot usually cover all possible scenarios for a trained insistent attacker.
End of lease Cleaning Melbourne
PX4/XB1 use a fairly low-end AMD CPU (Jaguar core, ~1.6GHz). Apparently it also does not quite appreciate heavy use of 64 bit multiplies (as used in xxHash64 for example).

Modern phones (e.g. iPhone 6) in terms of CPU are actually very impressive indeed!
> It's human nature to become defensive when presented with conflict with your current way of thinking, and yet here they didn't do that.

I wonder if this attitude is correlated with their choice of the more laissez-faire BSD license compared to GPL MySQL. It seems to indicate a less strong personality attachment to the project.
> When you go live

There's the problem, nowadays when you go live you'd have to be able to move faster than the electrons that communicate that something is happening.

Which means you need to first remove or impair your target's means of communication, which means you need to go live before taking action.

It's turtles all the way down.
Yeah, should revisit this and test more hash functions. Just ran out of time I wanted to spend on this (hey, I got some actual work to do too :))
Its similarity with Ruby? It doesn't _feel_ like I would have to learn completely new paradigms
That depends on where you're standing and what your timeframe is. Which, by itself, is enough to put the boot to the aforementioned pernicious lie: it's impossible to "maximize profit" for the shareholders, because the shareholders aren't unified in purpose.
That's only because of policy - there is no legal backing for, or against it. The policy's only in place because there's no shortage of able-bodied men.

Once things get grim enough, the army will take anyone. Towards the end of the second world war, the Germans were drafting children and old men.
Keep earning your title, or it expires
"what can I recommend to non-technical people when they need a website quickly and inexpensively that won't make me feel like I'm setting them up to get owned"

https://www.strikingly.com/
There's some benches between various languages, including Crystal as well, for those interested https://github.com/kostya/benchmarks

EDIT: There's also this: https://github.com/nsf/pnoise
Implement Matlab Syntax on JVM
I code in Ruby for about 4 years now, and Elixir still doesn't seem easy for me to get started with.

Crystal, on the other hand, is as if I'm writing Ruby.
As with anything, it depends. It's never seemed hard to me and I'm sure we can all agree that it's among the easier languages for people to learn. At least people coming from indoeuropean languages.

As for errors, I've noticed that spending time in the US and using colloquial English a lot, has wreaked havoc on my English grammar. Or maybe it's the distance from schooling that did it.
> In the quote below, he names the AND function "f", which in itself is a bit strange. What's wrong with "and" or ∧?

'∧' usually denotes the logical AND operator, which does not operate on integer values, (i.e. writing 22 ∧ 78 = 6 is weird). So it's not a bad idea to give this function a different name.

He could have made that explicit though.
Asian parents usually regards their children's academic achievement as family prestige. As the result, the children spent a lot more time studying compared to other children from other families since young age. At the extreme end, getting scolded for getting a B is not unheard of.
> It is significantly better than undefined behaviour, as it results in a noisy failure rather than silently incorrect results.

This might be true in a deterministic setting, since the likelihood that a test suite will find the error is very high. But in a non-deterministic concurrent setting, throwing an exception that might be only caught once in a blue moon is just as bad as not doing anything about errors.
The Fibonacci comparison is a poor example of performance gains because Ruby is using large number data types to ensure the correct result. This is according to the crystal language website itself.

"However, Crystal might give incorrect results, while Ruby makes sure to always give the correct result."

https://crystal-lang.org/2016/07/15/fibonacci-benchmark.html
> please break down these pleasant chunks of unreadable code into model properties and use them here and anywhere else where you have such kryptonian blocks. Good code is readable, semantic, and easy to follow and update. I pitty the poor soul who would have to participate here with you :). I, for one, would probably delete and start over to spend less time. I know there are situations where it's unavoidable but this one clearly isn't the case. Python really is beautiful, Python is english...write me some poetry please.

> You have a lot of repetitions of datetime objects that can be stored in a variable. You have a lot of comparisons on the object that can be stored as model properties. Separate them and let these methods breathe please. This looks like callback madness in js. I can't even follow the parenthesis to grasp the flow of conditions here. Even my IDE formatter left me.

Wow. If I saw someone code review like this on my team, they would get one warning. If this behavior was repeated, then they would be fired. There is no place for condescension in the team, even from Senior -> Junior level developers. If anything, this is a great stepping stone for (kindly) teaching a jr. member how to refactor into code that is more readable. Unnecessary jabs like "i pity the poor soul... clearly this isn't the case... looks like JS... even my IDE formatter left me..." and snide hand-wavy remarks like "python is english.. write me some poetry" are only useful to stroke e-peens and push people down publicly.

What would have gone a lot further, in my opinion, was refactoring the code then sending it to the jr. dev and telling them that you refactored their code for them. Tell them that - if they'd like - you'd be happy to walk through the changes and explain why those things were helpful/useful. It's not a contest about who can write the best "poetry". It's about getting along, helping each other, and getting work done.

Jr. devs, if you are reading this, please don't despair. I promise that all teams aren't this bad to work on. There are places where you don't have to be afraid to be the butt of a joke in an HN post and you will actually learn things. If your team is more like the one in the post, you're much better off just leaving for your own sanity.
If you think about this from a rhetorical perspective, it's incredibly effective.

My previous comment on this post remarked on the political motivations for this, I'm expounding a bit.

Basically you're saying "Let's restrict rights for sex offender (an incredibly loose term but with huge emotional connotations" and no matter what your political opponent says, you can tar him with being "soft on sex offenders".

If I were a politician, this would be a no-brainer masterstroke. I would do it in a minute to ensure my re-elections.

I just find it incredibly sleazy.
I'll take a shot at this (your bait). For context have an undergrad in Math, my parents are mathematicians and theoretical computer scientist. Read quite a few biographies on famous mathematicians, and one salient inescapable conclusion is that the most prominent mathematicians tend to be European or American, and very rarely Asian (chinese, Korea or Japan). There are of course exceptions, but few. The top mathematicians are not Asian, just a fact. And yet, the majority of IMO gold winners are, not sure how to explain the discrepancy, but the most likely conclusion is that solving Olympiad math questions has very little correlation with with doing creative mathematics.
Elixir is not a fast language. Not even close. Yes, it handles concurrency and parallelism beautifully which in turn enable distributed applications to perform quite well. But the language itself is significantly slower than Crystal / Rust / Go / Swift. It's not in the same category at all.

That said, it's a great language worth recommending.
I knew I'd seen this pattern before! The XOR texture [1] is very similar. Apparently it was overused in early 2D games to test texture mappers (or for "fancy floor tiles", lol)

Actually, looking at the XOR, AND, OR textures side by side, it's easy to gain more intuition for them.

I definitely recommend reading some of the articles at [2], they're pretty entertaining and straight-forward.

[1] http://lodev.org/cgtutor/xortexture.html

[2] http://lodev.org/cgtutor/
US economy grew only by 1.3% (as opposed to the expected 2.3%); the news sent XAU and JPY soaring. The silver cloud was that the consumer spending still looked decent; such tariffs without massive structural changes to the US manufacturing will come with a recession.

People don't understand why people manufacture in China - it's less about wages now, and more about logistics. Considering the global decline in demand, it's unlikely US (or any others in S. Asia / Africa) will be able to repeat the China/Asian Tiger story on such a mass scale.
I live in Sitka, and it's a pretty cool place for kayaking. We face the open Pacific, but there are a bunch of small islands just offshore that protect most of our immediate coastline. So the water right next to town is relatively calm. Then there's a larger volcanic island about 7 miles out, which protects us from open ocean swells. The sound in between has moderate seas. If you want big seas, you can head southwest and be on big open ocean swells.

But there's amazing kayaking throughout coastal Alaska. The panhandle has the inside passage, with miles of relatively protected waters. You can kayak in Glacier Bay, or up near Homer, or the Aleutians if you're badass.

If you go with a tour, be careful who you book with. There are operations that take care to bring people to places that are good for beginners to kayak. For example one company here brings their clients to a secluded cove where people won't face big swells or wind or boat wakes. But another company launches people right from downtown, where they immediately face big boat wakes, and the wind can pick up uncomfortably for beginners.
For one thing many corporate firewalls filter port 22 even got outbound traffic
What's the natural consequence approach there?

I would ask him for his favourite ice cream, take him out to the supermarket if he likes to come with me, buy a 2L box of it, and let him eat it the whole night if he wishes. Be happy he's enjoying the moment, enjoy it yourself, connect with him. Repeat this every night until he wants to eat something else. He has to find out, using his own experience, why it's unpleasant to eat only ice cream for dinner every night, so that, one day, a week from now, a month, two months, he would choose to eat proper dinner because he truly wants to, from his heart, rather than doing it because his parents are forcing him to.

If he's going to be a broken man either way, at least he grew up with a father who listened and empathised with him, and accepted him for who he is, rather than being physically restrained in bed, yelled at and controlled.

To love someone, we accept their choices, even when we know those choices have bad consequences, at the same time we trust they will eventually find their own way.

mom and sisters.

How does your wife react, and what does she actually feel? Inside she's upset and hurt and worn out to be blamed for something outside of her control, but I have a hunch she doesn't act that way in front of him. You can't force her to be vulnerable in front of him, but you could redirect his anger to yourself, explain to him why you're doing that (your wife is worn out and you want to protect her), and then you could choose to show him your sadness when he's angry at you.

I put "natural consequences" in quotes because I think it's a joke.

I'd love to know if any techniques I could try, that would work, while treating it as a joke. I'm serious.

The very highest if barely known.
Then comes that which people know and love.
Then that which is feared,
Then that which is despised.

Who does not trust enough will not be trusted.

When actions are performed
Without unnecessary speech,
People say, "We did it!"

Tao Te Ching - Chapter 17
Have you actually tried to set up an anonymous gmail account recently? Because I think you'll find that it is borderline impossible. Gmail's algorithms end up requiring SMS authentication when you're working over tor, which essentially deanonymizes you or requires the additional step of getting a burner phone for SMS; neither of which is good and probably will get you on all sorts of lists...
Do you subscribe to the microservice philosophy? I ask because you come from the era of shared objects, and I personally still consider libraries with well defined APIs to be much simpler than dealing with multiple processes possibly running across different hardware.

I do break my infrastructure apart, but far less aggressively than some advocates.

I'm curious what 25 years had lead you to believe.
Elixir gets plugged so often in other-language threads - whether it's Julia or Ruby or, like here, Crystal - that if it wasn't FOSS I'd have decided it's being astroturfed.

I guess it's a good thing that people like it so much, but it's really starting to feel marketing-y by now.
Inspector Chingum Special – Compilation Part 4
Corrupting data with no warning or visible signs is far, far worse than crashing the application.
After reading this blog post [0], I remain completely unconvinced that seattle's generic design problem is caused by anything except zoning.

[0] http://seattleurbanism.blogspot.com/2009/10/townhouses-part-...
I recently gave a quick 10 minute talk on Crystal if anyone wants a video introduction https://www.youtube.com/watch?v=oC9IknG40po
Additionally: "Burner phone" does not work in many countries. Where I am you cannot anonymously buy a prepaid phone.
Solar-powered 3-D printer prints glass from sand
Sounds like when it was the 60s and Japan was on the rise. It's almost as if, people in the occident have collective amnesia.
This article hits close to home!

What should be done in a company that's basically committed every error you could commit? What's an engineer to do? Just switch jobs?

I joined a company a few years ago that had hit a wall with its tech stack after 8 years. They brought in a new technical lead who convinced everyone to approve a "rewrite everything from scratch on new stack" approach (even though it rarely works).

2 Years and $40-50m later:

- The thing's nowhere near done. Customers all still using old legacy product that's not been updated in 2-3 years now since resources were diverted to rewrite

- 88% of the eng org has turned over

- current eng org doesn't know how 20-40% of the codebase works

- customers have caught on and started leaving en masse

- Rest of company has turned over as well as they realized nothing useful was going to come out of engineering for years more if ever

It's a bit confusing. What the heck should we do at this point?

I take some solace in knowing that I've seen firsthand what NOT to do in situations like this.