skysight-inc/HackerNews huggingface dataset:
Actually, with the exception of the modest benefits from moving globals to the read-only data segment it is rare to get optimization benefits from tagging something as const.

const is for enforcing correctness by the compiler. It tells the compiler about intent, but it doesn't give the compiler any extra information that it can use for optimizing.

Example: If you mark a member function as const then the compiler knows that you can't modify member variables. However the compiler won't use that to optimize the function - what it will use is its own data flow analysis that independently shows that you aren't modifying any member variables.

The distinction becomes important if you call some non-member function whose definition is not visible. At that point the compiler has to assume that that function might modify the object, though a separate cached pointer. So, the fact that the member function is const becomes useless as soon as the the compiler can't analyze code flow anymore.

I believe.
Location: Portland, Oregon US

Remote: Yes

Willing to relocate: Yes, internationally as well.

Technologies: Python, Django, Node.js, Ruby, AWS, Postgres, Neo4j, Selenium, Redis

Resume: https://linkedin.com/in/tannerbaldus

Email: me at tannerbaldus dot com

Seeking: A new position where I can continue to grow as an engineer. My primary language atm is python, at my last job I worked on a Python/Django stack to launch BMW Reachnow a free floating car share: http://www.bmwcarsharing.com/. I've also picked up node and ruby for some side projects. Such as https://mma-math.com/ which I did with node and neo4j. I'm of course, am not married to any tech stack. I view being a developer as an exercise in constantly learning and I'm willing to pick up whatever new tech to work on cool problems with a fun team.
I think language-specific package managers are just fine for sharing source code for that language with other developers of that language. But as soon as you need to do more than that they become extremely problematic. The dependency tree for a Crate (or a package in any other similar system) ends where the Rust dependencies end. It cannot describe the full dependency graph for any package that depends on a program or library written in another language. I'm more familiar with Ruby so here's a real-life example: The mysql2 gem needs to compile a C extension and link against libmysqlclient. However, the 'gem' utility only handles Ruby dependencies, so in order to 'gem install mysql2' you need to use your system package manager to provide 'libmysqlclient'. There's always going to be this disconnect and you'll have to use multiple package managers in order to get anything working. It's very error prone. Wouldn't be great if a single packager manager could describe the complete dependency graph? This is a big reason why I advocate for GNU Guix. I do devops for a living, and much of the difficulties I face are due to problems trying to glue multiple package managers together.
Yes and no, there's a standard API called D-Bus. If you want to browse it you can run a program like D-Feet and choose "session bus". It's not tied to a particular language though, rather you need bindings to it. In addition, it's somewhat more complex than AppleScript, and the APIs that most apps provide are rarely documented. It does have the concept of standard interfaces, so many apps will often implement identical APIs.
FUNNIEST My STRANGE Addiction
Not sure if you are joking or not but that is exactly what VXLAN does.
Nothing, you need one of the large manufacturers to slowly divorce itself from Windows and offer well-designed, well-suported linux machines.
Thanks! I didn't notice transparent. I added the proxy_header based on documented requirements of the 2nd server.
Adding const to globals is useful on most or all compilers. It deserves mention in C/C++ FAQs as a best practice. You can see this for yourself with simple test apps using gcc and clang.

The C++ standard doesn't mandate this, but good toolchains do put constant data in a separate read-only segment.
It's like an octopus dismissing humans as inferior because our appendages lack suckers.

I don't think humans can ever fully understanding other species. Yet, the more we observe, cut, and process other animals, the more of ourselves we discover. Rats dream and laugh! Crows use tools! Dogs understand fairness! Is it really any surprise that we have so much in common?
If you want calcium from a dairy source, eat more hard cheese. Hard cheeses have very little lactose - just pick the one with the least sugar. Cheddar is pretty good. Parmesan too.
Is this bill is passed, what does it mean for a person in India who wants to apply(from India) and get hired by a US company who has a very good skill set but doesn't have a master's degree?
If you're on Windows, then fine use whatever is available. A language specific package manager is about as good as it gets there. There are no good package managers for Windows, and I don't think there can be. I don't even know if you can isolate builds in a container like you can on GNU/Linux. That's a crucial OS feature. Besides, I aim to liberate users, not enslave them, so I develop for the GNU system, not Windows.

The third sentence is not a contradiction. I'm just saying that I can live with people using language-specific package managers, but really they would be better off with a general-purpose one.
> Once H1B lose his job, he and his family has to leave the country in 15 days

This is not true in practice. There is a rule saying that, but it has never been enforced. As long as you don't leave the country, you'll have no problem looking for a new job for however long that takes.

At least that's what my immigration lawyer told me many years ago.
several devices: MacOS, Linux, and an Intel NUC running Win7. Easier to just have dedicated hardware for each OS for my purposes.
Sorry, my comment was too short. I said nothing about money. I simply pointed out that they should have done more due diligence when choosing the CEO. (Based on what I read at the time though, sounds like they didn't even try -- they went for short-term gains based on her name recognition).
To be fair to Gentoo (which has it's share of problems[0] for sure)... it is still far more organized than older distros (Slackware, etc.) in terms of packaging, automation, currency, cross-compilation, security and community. Also, it supports more platforms and features. For Linux all around, the bar has steadily raised. The complexity of a modern system is staggering, Gentoo is the only platform I know that goes the extra mile to allow you to modify everything without sinking in a swamp of maintenance. Yes, there's a convenience cost - but there's a long term cost to not bothering that other platforms extract from you over time.

[0] https://bugs.gentoo.org/show_bug.cgi?id=597804
I have crossed 6 years on H1B. So, if I change my job, maximum visa extension I can get is for 3 years (provided my employer was kind enough to give me a copy of the I-140 petition).

This is where it gets tricky. Within this 3 years I need to get a new PERM approved by the new employer. So, say I set aside 1 year for the new employer to get all the internal budgeting approvals and initiate my GC process. Then it takes at least another 6 months (no attorney's file PERM within 6 months these days) to file the PERM. And, then say another 1 year to get the PERM result. So, this will take me 2.5 years into my 3 years limit. Now, god forbid, if the PERM gets denied due to clerical error. There is not time left for another try. Pretty much pack-up and leave.
Can anyone point me towards the new Dell XPS 15 Developer Edition (does it exist)?

I'm able to find the Windows version [0], as well as the XPS 13 Developer Edition [1], but no XPS 15 Developer edition.

I just want my 15 inches. I did 13 for years and the pain still haunts me.

[0] http://www.dell.com/us/business/p/xps-15-9560-laptop/pd

[1] http://www.dell.com/learn/us/en/555/campaigns/xps-linux-lapt...
Great basic angular 2 tutorial
> absolutely no indication that anybody, other than Jesus Christ himself descending from the skies mounted on a Harley Davidson in flames, could have saved Yahoo.

I mean, Yahoo has essentially failed so there is no way to validate your or my claims, but I disagree very much with this. If Yahoo had focused on its core strengths versus its flipping and flopping between becoming a media company or not, I think it could have become great. They also lost quite a bit of their best talent due to policy changes, work changes, etc.

Honestly I still think there are ways to turn the ship around. It may never become as big as it was before but I see no reason it can't become profitable and stick around for a long time.
Using your example, how much of a benefit is to have a "steady" ship while its still "sinking" ??
hipchat, sourcetree.
I don't know much about submarines, but I assume that you mean once the pressure hull is penetrated, the resulting pressure difference will quickly make short work of the hull.

My point was that, if I could choose the failure mode, I wouldn't pick fail-all-at-once, if I could avoid it (for most things that bear load). If I could design/create a pressure hull that somehow didn't fail all at once, I think everyone would be happy?
I love it! I've always wanted an offline fiddle.js

But please do not replace the new tab without asking, it's very annoying. Filed a bug.
I can see logo in downloaded png at every screen I have, including old 2008 Acer. Never screens display it better, older screens need to be tilted.
That is horrendous, Trump 2016!
I can see the logo just fine on the imgur link, but I can't see the original in firefox or in GIMP.

I wonder if it has to do with imgur compressing the image, or maybe approximating/ignoring the colorspace as was mentioned above.
> Linux is all about customized computer.

While true for many Linux fans, the majority of regular Linux users, especially those in the enterprise arena, do not customize anything and simply use it the way it is installed/configured by default - pretty much as they would were they using Windows or MacOS.
Code blocks look like shit and I got the recycled user ID of a past worker so all my articles appear under her name
> Note the discontinuity at 50/51 - 8 is over 15% of 51.

Wow, that's really terribly designed and risks creating a disincentive to growth for companies that would otherwise be growing quickly. Someone should write their Congresspeople about this discontinuity.
I was going to say something, but I don't think I can comment on this post without participating in that which is being parodied.
> Put another way, a sysadmin could feel confident that moving from 1.52->1.53 would be a painless and transparent operation

This is what Semantic Versioning [1] aims to achieve, but as you highlighted, it still requires the maintainer(s) of the project to actually deliver stable software, regardless of what the version is. I think some people took "move fast and break things" a bit too literally.

A project following SemVer and that has good automated test coverage is definitely on the right track though, and in generally should be a pretty safe upgrade (of course it's important to know their track record).

"Move fast and break things ... in a separate branch with continuous integration running an extensive test suite" isn't quite as catchy but is what should be happening.

[1] http://semver.org/
> Currently many forums just use a heuristic based on date and "total number of upvotes" to decide what to display.

That's why these systems often fall victim to brigading by organized trolls.
His complaint is that it isn't higher than Snoop Dogg
$2 million
Also, perhaps through growing consumer exposure to mobile, it feels like the graphical (and input complexity!) expectations for games have actually dropped recently relative to their traditional acceleration or stability. It's really only high resolution FPS and strategies that demand the full capabilities of modern desktop/console-level graphics processing.
I agree with you, and would like to add that Yahoo was in denial of who it was and what strengths it had.

Still however, comparing it to a company like IAC is quite insulting. Yahoo was something more, it was a chance for a media company to rule the internet once again. It was how tech did media.
Cavirin, Santa Clara Is Hiring AWS DevOps and Staff Engineers
https://www.linkedin.com/jobs/view/245939773
https://www.linkedin.com/jobs/view/245938481
I feel like I've seen how fillings would be replaced with drugs for about 25 years now -- I might not have any natural teeth left by the time it finally arrives! :-)
This is a really good point. I'm a lenovo guy and I've bought from their official site a couple times. It takes forever to render and the customizer is clunky.

Just give me a basic webpage with checkboxes and a price that gets auto updated.
No, the Master's degree quota is unaffected by this legislation. The version of the bill presented in the previous congress is here: https://www.congress.gov/bill/114th-congress/house-bill/5801...

I expect the language of Rep Issa's bill for this session Congress to be largely unchanged.

"Exempt" H-1B employees are not counted when determining whether or not an employer is H-1B dependent. Generally, an employer is H-1B dependent if over 15% of their employees are nonexempt H-1Bs.

The old criteria for exempt status were:

(a) at least $60k annual salary
OR
(b) Master's degree

The new criterion proposed in the bill is:

(a) at least $100k annual salary

This explicitly targets companies like Infosys, Tata, etc. who use hordes of H-1Bs but pay them just over $60k or ensure that they have Master's degrees.

Microsoft, Google, Amazon, et. al. will still be able to employ hordes of H-1Bs but they will be unaffected due to the high paying nature of the work.
I don't get it.

Of course the economy is non-deterministic. That doesn't mean that useful forecasts can't be made. Statistical models are used because of this.

I agree of course that deriving and presenting a single forecast from a statistical model is a dangerous process. Perhaps this was the link the author was portraying by their quest for an Isobar map rather than just "Rain/Non rain".

(Also, I see others are looking at "economic forecasting" as price forecasting. I read this more as macro-economic forecasting, in which the outcomes are much to manipulate)
I was a longtime Slicehost user and while Rackspace eventually phased them out, they were not competitive with the new crop of VPS providers anyway. I was paying $70/mo for my slice. I don't remember the specs, but when they went away, I switched to a Linode that was about half the cost. (Linode has now also been outmoded for my uses, and I just have Vultr and DigitalOcean servers (+ 1 dedicated server in a rack somewhere) now).
I would of liked to been told `Nothing is going to come on the market` instead of `All this wonderful technology is going to solve any problems you're going to have`. The latter results in careless behavior, the former results more careful behavior.

Personally as someone as a kid was going up out-back Australia who's parents and care giver didn't put fluoride tablets into the water because it caused the water to `taste bad`. As a result I have screwed up teeth. Discussed this with this with my parents years later. Their reasoning for my teeth problem was poor diet and eating sugary food (Completely ignoring the fact they tossed the tablets into the bin).

Fast forward into the future with a family and two children I don't have soft drink, fruit juice in the house. Who would of known, all the kids teeth are great since our last dentist visit.
Gitkraken is amazing
What company is going to sponsor H1B visa for anyone that costs $100,000 and isn't a Comp Sc grad in the Bay Area?

There are a LOT of other professions where H1B visa holders add a lot of value to the US economy. It's not just CS grads in SF.
Ask HN: Immigrants of HN, what was your job before and after you immigrated?
It means you arent welcome
Many, many years ago I had a Red Hat server running Bind. First the fan in the machine died. Then the video card died. Then finally all of the LEDs stopped working (including those in the NIC). The only way you could tell if the machine was on or not was to issue a DNS query against it ... which it happily kept answering without ever stopping.

As long as you are doing all of the usual maintenance tasks (patching, checking logs, monitoring resources etc), there isn't any real need to reboot a *nix/BSD server - certainly not just because you are nervous!
Yahoo will still be around. Essentially the assets / pieces sold to Verizon will be "Yahoo". The rest of this company will be under "Altaba".
It's the Dell Precision 5510.

http://www.dell.com/us/business/p/precision-m5510-workstatio...
“Come to Venice” – documentary
Can't get a TN for investment banking, it's not a supported occupation (one of my friends had to do this).

Similarly for a few other occupations. And, of course, some want to hedge their bets in case they do want a green card in the future.
We're all just trading second-hand gossip here, I suspect, but according the official account [1] Forstall was laid off because he didn't play well with the top management. He was maneuvering politically within the hierarchy in a way that Cook did not condone, and he could no longer be protected by Jobs. The Apple Maps fiasco probably had a lot to do with it, too.

(Unfortunately, I think they fired the guy who, among all of them, was the most like Jobs, and I think Apple has suffered as a result.)

To say that he was fired for skeumorphism is insane. Jobs was responsible for that stuff.

[1] http://www.businessinsider.com/tim-cook-why-i-fired-scott-fo...
Lispy indexing
You can virtualize or dual-boot if your photography workflow is anything like mine (mostly huge, batch-oriented). You can even use eg. VMWare unity mode to right-click to open in Lightroom in a virtualized windows or OSX instance. Performance won't be perfect but it's definitely good enough. Less so for video editing.

Personally the bigger irritation has been printer drivers. I have a Canon Pixma Pro 1 which has no drivers for Linux, forcing me to maintain out of date Windows systems to print with, at which point one can spend a thousand years defibrillating half-baked theories on color management and virtualization, or crushingly accept a partial solution.

Canon: GIVE US LINUX DRIVERS.
Interesting, did not know that bit of history. Thanks! For the curious:

https://www.w3.org/TR/html4/intro/sgmltut.html
Yahoo to be named Altaba, Mayer to leave board after Verizon deal
Switched my 68 yeard old mom to Linux five year ago. No complaints since that, except for video (so I upgraded CPU) and printer (cable or port is damaged, switched error handling to «cancel» instead of «pause»).
Bay Area is not just software. There are big pharma companies, financial firms, non-software roles in software companies, etc.
I've never been a product manager but IMO it probably goes something like this:

"The framistan line is successful but I hear from our customers that we should have some options that add [x] and drop [y], while having support for more [z]."

"We need to create a new line, a totally separate brand from framistan that has way more [x], [y] but no [z] at all. The competition has entered this space and there is clearly a market there."

They say this as often as they can, iterating over various x, y, z triples and they maximize the product line, perhaps until they hear feedback like yours.

Apple, OTOH, does whatever they want, targeting limited segments in order to keep everything simple. They lose out on lots of opportunity by restricting themselves to just parts of the market. But they also have a money tree, so it doesn't really matter.

Re: nonsense model names. As a technical consumer I much prefer these very-distinct names that change with each new release. When I read a review, it's very likely that I'm reading the right review. When I'm buying used, it's very likely that I'm getting the right product. Brands like Amazon Kindle Fire, MacBook, IMO make searching for and finding the right stuff harder. I can appreciate the elegance of a simple product name, though. Typically they're concealing the true model info under some other header, but it's usually harder to identify.
I can't speak for the rest of HN, but part of the "bashing" of Mayer is not just a personal attack on her, but a critique of our entire culture and economic system.

At the end of the day, she'll receive multiple millions of dollars for doing and achieving nothing.

Not a bad job of you can get it, but the phenomenon itself seems eminentl, judiciously and justifiably open to criticism to me.

She's just another caricature in the social pattern...
Similarly, I can look you straight in the eye and tell you that I feel fine, while I am in fact suffering great pain internally. Does this mean that I am not in pain? How could you know? You can't. There is no reason for an animal to dissimulate in this way, so we may as well accept their outward expression of pain or pleasure at face value.
I don't get the beef with cannabilism
> heightened the activity of stem cells in the dental pulp so they could repair 0.13mm holes in the teeth of mice.

Very cool. And happy to see some numbers posted in the article to measure the success. I now understand this is very PoC, but proof none the less.
I'm a theist. I totally agree that there are absolute truths. You're logic breaks down at step 2. If I don't agree with 1, your whole argument breaks down. In my experience debating philosophy throughout my education, seldom is there a Joker as in Heath Ledger's character. If a person fully believes that others don't count, at all, then the rule breaks down.

Take a counter example: homosexuals. Most societies, regardless of source, were anti-homosexual. This is historically accurate (modern times are uprooting them, but let's say we're in the 1950's).

1. I have the intuition that everyone ought to avoid homosexuality.
2. When I mean that everyone ought to avoid homosexuality, I am personally making a factual claim.
3. My intuition of 1 provides at least some evidence that 1 may be true.
4. If I have the intuition describe in 1, 1 is a factual claim, and my intuition of 1 provides at least some evidence for 1, then there is some evidence of an objective moral fact.
C. Therefore, there is some evidence for any objective moral fact.

We've now shown an implication that homosexuality is in fact immoral in a general sense. Are we ok with this? Why? Why not? Our ethics and morality, sans a center like an unmoved mover, can vacillate. Sometimes this is "good" (such as gay or interracial marriage [I am neither]) for me as it brings improved economic conditions that selfishly improve my lot directly or possibly, which I arbitrarily deem as good, from an agnostic world view. Sometimes it's "bad" (for example expelling Jews from the Spain since it took the engineers and literate people, which limited economic freedom and would have probably negatively impacted my Spanish life if my present personality and general thoughtful profession was true then).

As a quick aside for the postulate of cultural issues with homosexuality, http://news.trust.org//item/20140516162146-jipm9/ and https://en.wikipedia.org/wiki/Homosexuality_in_ancient_Rome which shows that Rome did not really have a great view of homosexual relationship. You didn't want to be the receiver. If you were, you were property.
Galfond thinks otherwise. From the article:

“Your favorite poker player almost surely wouldn't agree to play any of these guys for high stakes, and would lose a lot of money if they did,” Galfond added. “Each of the four would beat me decisively.”