skysight-inc/HackerNews huggingface dataset:
> No, it's not more difficult to write static analysis tools.

I agree it's solvable, but I'd argue it's a bit more difficult to write static analysis tools when macros are implied. But maybe I'm missing something.

Here is an example:

The subsystem types in the sdl2 crate starting in 0.8.0 are generated by a macro, so racer has issues evaluating the type of video(). A workaround is to explicitly declare the type of renderer. (source: https://github.com/phildawes/racer/issues/337)

But my real concern is how to write refactoring tools when macros are implied. It's seems a lot harder than writing static analysis tools, because the refactoring tool wants to examine the source code with macros expanded, but has to modify the source code with macros unexpanded. In other words, the tool has to map from source with expanded macros, back to source with unexpanded macros. How do you solve that?

As a sidenote, I agree that refactoring generated code doesn't sound fun too :-)

> How does that describe an unsolved problem? It illustrates that Rust's bifurcation of errors into Result and panics works.

I quoted kentonv here because it shows that Rust and Go have converged towards structurally similar solutions to error handling, by using two complementary mechanisms: explicit error checking one one hand (using Result<T,E> in Rust and using multiple return values in Go) and panic/recover on the other hand.

The big difference is that Rust have sum types (instead of using multiple return values in Go) and macros (try! instead of repeating `if err != nil { return err }` in Go).

> Catching panics is important, yes. No argument there. It doesn't change the overall structure of Rust's error handling story, though.

You're right.
Sure. I can post some more details (such as scripts and photo) when I get home if you're interested.

But at a high level, it's pretty straightforward, and there's also almost certainly far better ways of doing it.

The key components are

- a Philips Hue light

- The Openhab[1] open source home automation server (currently running on an old Windows box that's always on for various other reasons). This controls the lights.

- Apache, also running on the same box. This provides a very simple web UI for the Pi.

- A Raspberry Pi - it's one of the original Pi model Bs.

- Firefox (Iceweasel version) on the Pi - the built-in one didn't seem to run the jquery that I needed.

- A cheapo touchscreen [2] attached to the Pi.

The OpenHab server has a plugin for Hue lights, and you can write scripts to make it do various things, such as switch on/off at a particular time, or on getting a command from somewhere else. It also has a REST API interface.

It's this API interface that the web app is calling. That's made up at the moment of 3 buttons (on, off and dim), and when one is pressed it sends a jquery REST call to the OpenHab server to trigger one of the commands. Technically, what it's doing is setting one of 3 OpenHab "buttons" to ON. This triggers the OpenHab rule to change the light.

The touchscreen attaches straight onto the Pi's GPIO pins. I pointed Firefox at the Apache on my server and set it to full screen mode. The screen's not great - it feels as cheap as you'd expect for £16 - but it works, and most importantly my daughter loves it.

Like I say, there's almost certainly better/simpler ways to achieve some of this - I suspect I could run the entire thing on the Pi for example, or replace the Pi with an old iPhone that I've got lying around. The OpenHab software also allows you to build a custom UI itself. But I like playing, and there's a bunch of tech things that I wanted to try out, and this seemed like a fun and useful project to test them out on.

My next plan is to get an Arduino and connect some dials to it to allow direct control of brightness and RGB.

[1] http://www.openhab.org/
[2] http://www.amazon.co.uk/dp/B00YE0UPES
Just a regular github.io page, or if you wanna be a bit more fancy https://hugotunius.se/2016/01/10/the-one-cent-blog.html.
Bernie speedtest
Like the article mentioned, this is how (some) bridge tournaments have been played for a long time for what its worth.

Not in separate rooms, but with a screen in the middle hiding your partner.

http://www.bridgehands.com/S/Screen_Bridge.jpg

Maybe its hard to get if you're not used to the game, but cheating like that is amazingly offensive.

Screens aren't used very often though - I wasnt a great player, but I played in the youth championships in Sweden a few times, and we didnt use screens, and I never once felt like it was needed - it's just not the done thing to cheat.
Possibly a short-term uptick, but problematic longer term.

Take marine shipping as a similar case. Recent vessels were desiggned for high-cost fuel and slow sreaming, or so they tell us. But petroleum prices, and bunker fuel, have plummetted.

Hulls last 20+ years.

And shipping overall is down. Problem is demand-side.
I think that covers unpaid leave; three months without pay would put us in a crappy situation.
Your code follows your data model. Fight the monolith with your database
... unless your implementation does bound checking at runtime. This actually happen with the new crop of sanitizes or even with the new hardware accelerated bound checking features of modern intel cpus.

It would be a shame if people had to disable critical safety features to workaround crashes caused by such "harmless" out of bound reads.
And here's a petition to do something about it:
https://petition.parliament.uk/petitions/123569
I replied to pcwalton in a sibling comment:

https://news.ycombinator.com/item?id=11222862
Doesn't it cost devs $99/year to be in the app store? That
's an incentive to remove quit the store if you aren't making enough money.
Surviving burnout
Is There a Looming Crisis in Silicon Valley?
Sure, but we are talking about 3.5 months (1.5 before birth, 2 after). In addition in the months before birth you are allowed to continue working if you wish so.

I'd argue most of the companies will be able to handle that. Especially since you have plenty of time to prepare.

Above is only the part which is different for men and women for obvious biological reasons. There is also a paternity system leave starting from 2 months after birth but this should ideally not discriminate either gender.
The government would most certainly be benefiting from such cooperation. I would imagine that the data so provided would save the government from doing much investigation. This is a clear demonstrable benefit. If the data is not acquirable by other means, then the cost of acquisition is infinite and the benefit is as well. Of course, this depends on the definition benefit much like Nixon's definition of legality.
Many of the chemical companies that made lead paint still exist, and the risks of lead have been known for hundreds of years. Europe banned lead in the 1920s. I do not think that there should be a statute of limitations on these things, I think that the big old chemical giants should pay for fixing this.
@IvaK_net: The use case is as follows. I have standard PSDs with smart objects for various screen sizes.

I want to show various screens on the same template. Currently, I take the screenshot and replace the images one by one.

Ideally, I would like to issue a command from my terminal to use the screenshots (which I generate from another tool) in a folder and pop them into the smartobject and export the output to an output folder.
Ask HN: Should I inline all JavaScript and CSS into index.html in my mobile first SPA?
I assume the fewer separate files are loaded by the mobile device the faster the loading times and even battery drain, am I right? Is this true for desktop as well? Are there any disadvantages to this approach?
I think it would be a worse game. :)

I used to play an ok amount of bridge.

I enjoyed trying unusual systems, but playing against them were less fun. Sure you can play some advanced relay system, but even with open information about the system needing to figure out exactly how your relay system is built takes away the focus from the core of the game that is enjoyable: Finding the right bid, and then meeting it in play.
Firefox 46.0a2 (2016-03-02) on Arch Linux, Intel Graphics. Runs very well.
> really bad code (relying on behavior of int overflow).

How's that "bad code"? On most desktop architecture, integers are coded as 2's complement, and wrap around. Modulo arithmetic is weird, but it does have some uses. Then on DSP, integers generally saturate upon overflow.

Those behaviours are both perfectly well defined. Why can't one expect to be able to rely on them? Why integer overflow can't simply be "implementation defined"?

Because of traps, such as we see upon divide by zero? Because some architecture might produce nonsensical results upon overflow? Those are put into the "undefined" bucket, but they're quite different from "the compiler can assume it never happens, and treat the alternative as dead code".
Convertible Notes Explanation [infographic]
Psychology’s replication crisis sparks new debate
LLVM works well on Windows and can even be built with Visual Studio.
Let me existence
I have created a JavaScript game that breaks iOS, help?
Disrupt AirLines Market
> unfair obligation to child-raising duties

I'd find it very disturbing if someone would actually think that ...
What about changing the appearance of the fairly unpleasant left-most bar (with the code/search/version/debugging switcher), the super in-your-face status bar, etc?
>Why? There are people on both sides of the interest-rate trade, so any change in rates creates winners and losers. Higher rates aren't inherently "better" than lower rates.

I didn't say they were inherently better. I said that it was the policy that led to all of these stupid investments being funded.

When debt is cheap (and right now it is absurdly cheap) it leads to yield chasing behavior by investors. That leads them to funnel money into often ridiculous investments, triggering bubbles where people get funded ridiculous amounts to mail pet food or open a social networking site for cats.

Hence : bubbles everywhere.

>I'm young and have a mortgage and car payment.

I save up for things before buying them.

Oh, the main reason I can't afford to do that and buy a house is because of low interest rates.

>Why should I pay more to subsidize the Baby Boomer's retirement funds?

It's really depressing how easy it was for elite propagandists to get millenials to blame their own grandmas for the sins of the 0.1%.

It wouldn't even be as bad if they weren't open about their intentions to divide and conquer these voting blocs.
You do not need to modify a copyrighted work in order to create a derivative. A music video for often use unmodified songs, but the combination of music and moving images still counts as a derivative work that require additional permissions from the copyright holder.
… or tools like setuptools?

Also, I assume you're talking about the bdist_rpm target that come from distutils.
Not a linux virus anyway.
> So simple, and easy to implement.

Ah yes, the rally cry of the person not doing the actual development work... In my experience, rarely is _anything_ "So simple, and easy to implement".
Bees collect both and eat both.
Doulci Activator 2016 – iOS Jailbreak Tools and Jailbreak Guide
I wonder how many people in the world would have any idea what on earth the sentence "Finally a common "bimbominkia"can write accidentally a Sieve of Eratostenes" means. You may be unique :-)
Ask HN: What do you hate the most in marketing agencies?
> I'm under the impression that stuff small and valuable like iPhones are transported by plane

That's not how freight works.
Sure, if you mis-frame it like this then the truck option looks better. But then, most crimes are actually really easy to pull off.

It's what comes after the crime that actually matters, and I feel like the whole 'escape with the booty' part could be much easier at sea.
if anything this is good for the game. games where there is possibility for cheating & scandals when getting caught are much more interesting. i always though bridge was dull, but i might be more interested now.
Zagreb Croatia from Amsterdam Roundtrip  Cheapest € 163 on Flychecker
I chose the things I learn not by what I think might be most profitable, but what I feel is most fun. If I wanted a job with boring but profitable technology I'd learn COBOL or MUMPS.
Multivariable and Vector Analysis
Someone had to do it. A social network for iPhone FLIR-one thermal videos. https://itunes.apple.com/app/id1042703406?ct=null&pt=null&mt.... Enjoy!
Is there any textbook other than Apostol's that follows the same approach?
Thanks for laying it out straight for me. I feel pretty stupid now that this seems to be the truth. I was led to believe I was being interviewed for a full time employee position. I wouldn't have wasted 5 rounds of interview time and a take home exercise that I spent 2 days full time working only to find out in the end they would be low balling me with this caveat. At least I have time to negotiate now.
I wrote a Chrome extension which demonstrates Typoglycemia by scrambling the words on whatever webpage you are on. It's similar to the OP's webpage but does not produce a constantly changing page of words.

You can find it here:
https://chrome.google.com/webstore/detail/word-welter/ahmpgo...
Not that easy, at least, I wasn't able to do so back around 2008 and ended up moving to Norway instead.
I lean towards the former. There are multiple reasons for this being a biological choice. One, women's childbearing period is more limited than men's, so it's rational for them to prioritize "taking care for the children" over "having a great career". Another is that because they give birth, they pretty much have to be absent from work (for a few days at least), whereas men don't, so again it's rational for a woman to take additional leave for childcare, so that only one parent gets penalized (by lower pay and less experience and future promotions) by taking time off. Of course, the latter only applies given everything else is equal; if the mother earns significantly more than the (step-)father, then it would be rational for her to take off only as many days an necessary for health reasons, with her partner providing the rest of childcare.
Can you define what you mean by organic growth in this context?
There's an enormous lump of complexity that this chap seems to be unaware of: the type system. This is the semantic analysis bit that he seems to think is done by LLVM, but it isn't.

It's like he mostly thinks of compilers as turning statements and expressions into executable code, but IMO that's one of the easier bits. Defining how different values interact, what operations are legal and aren't, and the runtime support - this is a lot of work, and in particular, it's different for every language, because it's what makes languages distinct.
Sort of off topic but I wonder why the most cited articles in the constitution are all amendments

1st - free speech
2nd - bear arms
4th - searches and seizures
5th - self incrimination
6th - cruel and unusual punishments

I almost never hear any of the original articles being cited in any heated debate.
Tim Sweeney: Microsoft wants to monopolise games development on PC
Are you sure?

When we ordered an iPad from Apple in 2011, it got handed to one of the big delivery companies (FedEx?) in China, then got put on a plane to the US.
Firebird 3.0 Release Candidate 2 is available for testing
It's an updated version of "The Law of Software Envelopment": http://static.userland.com/userLandDiscussArchive/msg018352....
> A proportional pay gap from that would be well under one percent

If only pay gap were proportional... I'm afraid that employers penalize time off work disproportionally, probably exponentially; part-time work doesn't have half the salary of full-time work, and when employees take a few weeks off, they don't forgo only those weeks' salary, but also slow down their future learning, progress and promotions. Whether that's fair or not is debatable (I'd say it makes sense from employers' point of view, but they're probably unnecessarily harsh with it for game-theoretical reasons), but it probably affects all employees taking time off equally, not just women.
These were two separate instances of layoffs. The grandparent link is not related to yours (except that both stories involve Disney, and both involve layoffs).
Though code should be rather "blue print" rather than speech. You don't express an opinion with code. You express a technical design.
"Is it possible that the price of the asset I'm borrowing against is higher because low rates are inflating asset prices? Possibly."

Is it possible that 1 + 1 = 2? Possibly. Does a bear shit in the woods? Possibly. Is the pope a catholic? Maybe. Do low interest rates spur inflating asset values? Absofuckingloutely.
Wow, my experience exactly matches you and the GP too. I've never been diagnosed with ADHD but I'm pretty sure I have moderate ADHD.
The more interesting some text is, the more difficult it is to get through it, because I'm distracted by thinking along those tangents, and then I have to reread the next sentence 5 times to absorb it, and more times I have to reread, the worse the jumping around.
I am still not sure if I understand what you need.

If you have a Smart Object, which occurs multiple times in your PSD, you can double-click it, put all your screenshots inside it and save it. Then you can simply switch the visibility of layers inside a smart object.

Using Photopea would require running it in a browser window, it would be hard to connect it with your terminal.
This is a completely different category of product than their low end consumer Evo drives, though.
The thing I'm still struggling to wrap my head around with kubernetes (and docker in general) is the management of data persistence.

If I have a pod of containers everything I read seems to say that containers need to be 'stateless' and if you're running kubernetes, will likely also be transient based on the system load & scale.

So if any container in a pod could go away or be spun up at any time, if it could live on any virtual machine in a cluster of physical machines...

where do you keep the physical database file so that it is accessible to all different instances? How do the multiple instances access it at the same time? Generally, how does the database layer "work" in container land?

It's the only piece that I really struggle to understand.
Up front: I'm one of the people that leads engineering in EMEA at McKinsey Digital Labs (MDL). So please recognise my biases here! I also hope this isn't creepy, but was browsing HN and saw your post! :D

A couple of thoughts on your points, and I 100% think reaching out to the community here is the right thing to do and hopefully I can give you a (biased!) insider's perspective!

* You're absolutely right on the smart people. I've worked at big household name tech companies in the Bay, done startups and worked at VC's: I've never worked with a group of smarter or more capable people. If you're like me and enjoy being challenged, then MDL is a fantastic place for it.

* The crazy hours. That's a bit of a trope about McKinsey outside the Firm, people telling war stories that are often exaggerated. Do we work hard? Sure, is it any harder than I worked when working at BigTech™ in the valley? No. I am also in my 30's and it doesn't detrimentally impact my life.

To you questions:

* Learning - a big plus for me and the reason I joined. Have worked on more interesting tech problems and non-tech problems in my three years here than in my previous 10 elsewhere.

* Personal growth - obviously depends on what your goals are, but I would say it's a good fit. You can become a partner at the Firm as engineer, if that's your thing!

* Earning potential - very good.

I would say however, there is some travel. So bear that in mind.

If you want, reach out to me and I'd be happy to connect you with a couple of people in similar situations who can give you first hand experiences.

PS the 'up or out' thing is not in any way related to MDL.
PPS edited for formatting
360-Degree Video New York’s $4B WTC Train Station
I think she's a woman not a "chap". But anyways, you'd be relying on the IR semantics and checking to do the legwork for you. LLVM IR is a language after all.
Maybe the biggest issue is optimizing register allocation while providing the information for all roots for the garbage collection... For non-GC languages you don't need to care about it and just agressively optimize register allocation. For GC languages you have to be careful, because the GC must know 1) which registers are holding references and which not 2) which of those registers are "alive" and which are not in use anymore (and therefore ready for garbage collection)...
You might discover that we no longer heavily relying on human labor or do you sugest that women are incapable of operating machines?
And then your rocket explodes in the atmosphere for maximal fallout distribution?
From my anecdotal data, what I noticed the last few years I worked in Texas was that I was seeing a pretty remarkable influx of middle eastern women filling technology roles.

These women were some of the most competent people I've had the opportunity to work with. If you go out and have a drink and a conversation with some of them, you'll find out that they: feel like they have two strikes against them in the U.S. and in technology.

Their response is to work really effing hard to get insanely good at what they do. And it works for them. Most of the people I'm thinking of right now had higher titles and salaries than the males they work with.

I'm not arguing that there's no discrimination or anything stupid like that. But I do think there is some nuance to the situation. For example, the leadership and culture isn't driven by them, even if they are at the top end of the individual contributor spectrum.

It's a tough nut to crack. Knowing that you have certain knocks against you can have different effects for different people. One person can look at a situation and say, "What's the point? I'm not going to be successful because of gender/education(or lack of it, in my case)/ethnicity/company culture/whatever.

Other people look at that as part of the fun in life. Bucking the odds, overthrowing stereotypes. I don't know that there's a strong gender correlation with these attitudes.

But in my very non-representative experience, where you get hired and how much you make in the technology field are not consistently tied to whether you have boobs or if you have a college degree, or if you're a privileged white male, or if you're a recent immigrant.

I would not argue that the situation is all roses for women and minorities in this country. But I don't think it's as bad as is sometimes portrayed.

I think that the real race and gender discrimination start in early life education. Women are not-so-subtly guided in different directions than men are. And many minorities just don't have much of a chance because our education and social mechanisms are mostly just crap.

The imbalances that we do see in the job market are a direct result of our inadequate and unequal social and educational systems. The market is reflecting the values that we've decided on.
CU was my first thought, too. I don't like arguing this case as a violation of Apple's 1A rights, which I don't believe exist.

There seems to be a real desire in the US, on both sides of the political divide, to offload policy making to the courts (when it works in your favour, and despise it when it goes against you). Fetishization of a centuries-old document, that has long been surpassed by others in its ability to deliver effective government, is not how healthy societies should meet and face the challenges of their day.

The government shouldn't compel Apple to do this because it's wrong and it hurts America, not because it violates Apple's supposed constitutional rights.