skysight-inc/HackerNews huggingface dataset:
Yes, you'll get a segmentation fault, consider this code, compiled with debug information:

#include <iostream>

using namespace std;

class myclass
{
public:
virtual int sum(int a, int b)
{
return a + b;
}
};

int main()
{
myclass test;
cout << test.sum(1, 2) << endl;
cout << ((myclass*)0)->sum(10, 11) << endl;
return 0;
}

Debugging:

(gdb) b main
Breakpoint 1 at 0x4008ae: file test.cpp, line 16.
(gdb) run
Starting program: /tmp/test

Breakpoint 1, main () at test.cpp:16
16	myclass test;
(gdb) ni
17	cout << test.sum(1, 2) << endl;
(gdb) info vtbl test
vtable for 'myclass' @ 0x400a30 (subobject @ 0x7fffffffe410):
[0]: 0x400974 <myclass::sum(int, int)>

Notice that the function address to be called is not know at compile time, the compiler wrote a lookup table, named vtable, to know which function it will call based on the class instance.

(gdb) disassemble main
[snip]
0x00000000004008ae <+8>: movq $0x400a30,-0x10(%rbp) ; see the vtable address here
=> 0x00000000004008b6 <+16>:	lea -0x10(%rbp),%rax ; ohh, the vtable address is the 'myclass test' instance*
0x00000000004008ba <+20>:	mov $0x2,%edx
0x00000000004008bf <+25>:	mov $0x1,%esi
0x00000000004008c4 <+30>:	mov %rax,%rdi ; pass this to RDI
0x00000000004008c7 <+33>:	callq 0x400974 <myclass::sum(int, int)>

* it means that the first (and only one, in this case) field of my myclass is that vtable.

(gdb) print test
$1 = {_vptr.myclass = 0x400a30 <vtable for myclass+16>}
(gdb) info register rax
rax 0x7fffffffe410	140737488348176
(gdb) x/x 0x7fffffffe410
0x7fffffffe410: 0x00400a30
(gdb) x/x 0x00400a30
0x400a30 <_ZTV7myclass+16>:	0x00400974

Then, the compiler knows that it must call '[0]: 0x400974 <myclass::sum(int, int)>' function.

Compare with:

((myclass*)0)->sum(10, 11)
0x00000000004008e5 <+63>:	mov $0x0,%eax ; vtable address is 0 :(
0x00000000004008ea <+68>:	mov (%rax),%rax ; the address to RAX is 0, and we cannot access that segment of memory - BOOOM
0x00000000004008ed <+71>:	mov (%rax),%rax
0x00000000004008f0 <+74>:	mov $0xb,%edx
0x00000000004008f5 <+79>:	mov $0xa,%esi
0x00000000004008fa <+84>:	mov $0x0,%edi
0x00000000004008ff <+89>:	callq *%rax
I have some ways I battle this: I listen to one repetitive track without vocals on repeat, I use pomodoros (http://pomodorotechnique.com) to break my time up and battle exhaustion and sometimes I'll put my headphones on to make sure I don't get distracted.
I keep a cheap USB network adapter around (I think it used to work with an old Wii) for just this purpose.
I see your words. Let's do some math.

Please explain to me, using a worked example, how a person earning 30,000 GBP pretax (triple minimum wage) can buy an apartment that costs 200,000 GBP (cheapest I can find anywhere apart from under Heathrow Airport).

For extra credit, work out the additional time taken for the purchase if the person buys 500 pints per year at a cost of 5 GBP per pint.
That AEI stuff is BS. Totally BS. Lying with statistics.

See this fairly devastating takedown:

http://ritholtz.com/category/wages-income/
> Isn't Oracle Linux mostly a joke of a copy-cat distribution?

Yes, it's RHEL with the serial numbers filed off.

> isn't Oracle Linux mostly just an excuse to drain Oracle users for OS license money

It's:

1/ revenge on Red Hat for buying JBoss when Larry wanted it.

2/ part of Oracle's vertical integration story.

Oracle Linux sales reps will tell you Oracle DB isn't fully supported on RHEL (i.e. they reserve the right to force you to reproduce production support problems on a rebuilt platform) and Oracle have been trailing certification on the last couple of releases of the DB on RHEL vs. OEL.

I imagine the end game Oracle are hoping for is undercutting Red Hat until they can run a hostile takeover, then shut down either the JBoss or WebLogic product lines, and generally do unto Linux what they've been doing to MySQL.
... I should add, a tipping point for awareness may be when a commercial performance monitoring company adds BPF support (and latency heat maps, etc), and then promotes this feature. There's a lot of performance monitoring companies out there, many are well funded, and have professional marketing/sales departments.
We actually hook it into our build process. Basically:

* we have 100% code coverage except for some well-defined exclusions (e.g. // LCOV_EXCL_LINE comments to exclude code that is logically unhittable)

* on each checkin, our continuous integration server (Jenkins) runs the tests and checks that coverage is still 100%

* if not, it fails the build

This means that _every new checkin_ either has unit tests that exercise all the code, or // LCOV_EXCL comments that make it obvious to a code reviewer what isn't covered (and they can then sensibly judge the risk). It's a good way to keep our code quality high, and avoid the possibility that we quietly skimp on unit tests when under deadline pressure. Also, if new members of the team don't realise how important good unit test coverage is, they'll find that out on their first checkin when the build breaks, rather than several weeks in.
Oh wow, I didn't expect that from Slackware... I hadn't noticed that the message is gone, I guess. I can't help but to think it is kind of rude to keep using xscreensaver but not honor the request of its author. It's purely the principle of the thing because I agree that the message is ugly. That's not in true Slackware spirit imho (in the sense that this is a less-than-necessary patch). I am a little bit disappointed. :(
Where did I say I expected it to come right away?

I ran 5 km three times a week for about four months. It was fucking awful every time, so I stopped.
Currently use Google, SFDC, GHE and Workday. NetSuite may be coming soon, we're very much so in the cloud!
there might be a lot of value in located near airport for businesses which rely on air freight, which probably drives costs up, since it competes against residential for land.
"As a business, you are not entitled to a profit. Especially not at the expense of your employees welfare."

That's funny, but true. You know what else is at least as true? No people are entitled to employment, especially at a loss to the business.
Largest Coal Mine in U.S. layed off 15% of its work force
How much is significantly faster? 30%? I need fast Scala compilation and I am not impressed with new processors. I am waiting for Skylake-EP, it has good OC potential and could handle 256GB DDR4 and bunch of NVMes.

For stable OC you need water. Air cooling will overheat too soon.. Sometimes I run 24/7, the computer is very loud but stable. Dont ask for voltage, its way in red. This is what I use:
http://www.antec.com/product.php?id=704370&pid=17&lan=us
thats java8
Where did you get the idea that I didn't give myself a chance?

I ran 5 km three times a week for four months, and it was always fucking awful.
I built an app to help make Amazon and iTunes affiliate links from iOS, because I was playing with some similar schemes. Might be useful to others interested in this. The app is currently free, though I'll likely add an in app purchase of some kind soon.

https://geo.itunes.apple.com/ca/app/rivet-effortless-affilia...
http://rivet.link
Australia is being fueled by huge external stimulus from China, which won't last forever. It's not the best example to use. Some of the mature European democracies provide much more useful data.
This was a predictable effect of increased regulation of public companies, (SOX) etc, and awareness that a founder can move more strategically without being concerned with quarterlies and accountability to shared owners.

Politically it's unsustainable. If we see a half dozen more unicorns with household names people will tie completely private ownership to concerns about inequality: no way for the average person to buy a share and participate in growth.
... now we just need to figure out how to lure the surveillance target into our EM-shielded cage.
Poe's Law strikes again.
Tor users are complaining about the captchas. I'm not sure why you think it's so hard to create a sample captcha page to demonstrate the experience. You just need two pages: one with JS-enabled captchas and one with JS-disabled captchas. Do you need me to do this for you?

Alternatively, you can create a dummy CloudFlare instance with /0 under Captcha, and put the URL to this in the docs, but this wont let users try the JS-disabled captchas.

The only difference between this demo and the actual Tor experience is that over Tor, these pages load more slowly. But people are more annoyed at seeing the captcha in the first place, not the fact that they sometimes load slowly...
Capsule shadows are a huge step toward a broader photorealism in games.

You've probably played a number of games (this is especially true in open-world environments) where direct sunlight looks amazing: Everything casts shadows realistically, giving the scene a very believable sense of illumination and depth. But walk into the shadows, and all that vanishes: Even if the environment has some approximation of global illumination, no shadows are calculated (since there would be far too many secondary light sources versus the single sun).

Screen-space ambient occlusion helps somewhat, but it's a hack that looks good sometimes and weird other times. Capsule shadows, if calculated from the top one or two secondary light sources, can approximate the shadows resulting from that complex network of bouncing light in a much more realistic and believable way.
You are essentially making the luddite case. The counterargument usually goes like this: yes, people would be fired and there will be serious pain in the short run; however the machines will drastically improve productivity, therefore reduce prices, so real wages will go up along with demand and the extra income not spent on, say, buying feed stock for your horse, will go in creating other jobs and economic sectors that will make use of the available labor. The government can and should ease the transition by offering skill-training and incentives.

While economically sound, I'm skeptical this process can go on forever. The human biology and mind is clearly limited, while the progress of machines does not seem to be. So eventually you will hit a fundamental limit where larger and larger chunks of the workforce will simply be too old, uneducated or simply too human to keep up.

How close we are to this fundamental limit it's anyone's guess, but I would venture to say we are closer than most think. At the point where a serious part of the population is unable to participate in the labor market, this ceases to be an appropriate system to distribute the fruits of economic activity and some form of basic income is required to maintain social order.
> so much that people dislike freedom

They don't dislike it as much as they are just unwilling to obtain it at the expense of losing security, healthcare benefits, jobs, income, peace, food and many other things.
The in vogue term for secular Bhuddism is mindfulness.
Could you correct this code
/* Diner.c
*
* Created on: Mar 07, 2016
* Author: Zaadcs
*/

#include<stdio.h>
#include<string.h>
#include<stdlib.h>

int main(){
printf("Please enter the cuisine you like from the list American(AM), Mexican(MX),Chinese(CH),India(IN): \n");
food();
help();
char d[10]={'\0'};
return 0;
}

int city()
{
char city[5]={'\0'};
scanf("%s ",city);
if ( (strcmp (city,"SE")==0) || (strcmp (city,"BE")==0) || (strcmp (city,"KL")==0))
{
if (strcmp(city,"SE")==0)
printf("\n Restaurants in Seattle are open from 10am to 10pm\n");
else if (strcmp(city,"BE")==0)
printf("\n Restaurants in Bellevue are open from 10am to 9pm\n");
else
printf(" \n Restaurants in Kirkland are open from 11am to 8pm\n");
}
else
{
printf ("\n Please enter city from choice only\n");
exit(1);
}
return 0;
}
help()
{
char e[10]={'\0'};
}

void hacked(){
printf("\n Well done !! You have exploited the code successfully\n");
}

int food()
{
char cuisine[5]={'\0'};
scanf("%s",&cuisine);
if ((strcmp(cuisine,"AM")==0) || (strcmp(cuisine,"MX")==0) || (strcmp(cuisine,"CH")==0) || (strcmp(cuisine,"IN")==0))
{
if (strcmp(cuisine,"AM")==0)
printf ("\n American food is for $10 \n");
else if(strcmp(cuisine,"MX")==0)
printf("\n Mexican Food is for $15 \n");
else if(strcmp(cuisine,"CH")==0)
printf("\n Chinese Food is for $12 \n");
else if (strcmp(cuisine,"IN")==0)
printf("\n Indian Food is for $18 \n");
else
hacked();

printf("\n Please enter city of your choice from the list Seattle(SE), Bellevue(BE), Kirkland(KL) : \n");
city();
}
else{
printf("\n Please enter cuisine from choices only\n");

}
return 0;
}
So worstcase * 0.5 + bestcase * 0.8?
So Kubernetes is another layer on top of basic AWS primitives?

I already have AMIs, autoscaling groups, health checks, ELBs, etc. Why am I adding another unnecessary layer of abstraction?

Disclaimer: Devops/sysadmin who would like to get off the hype train and get real work done.
Well, I just don't know what to say to this. Sounds like the kind of thing someone who gets paid well above the minimum wage would say.

Check out this Wikipedia article https://en.wikipedia.org/wiki/List_of_minimum_wages_by_count... and sort by Hourly Nominal in descending order. Australia, France, New Zealand, Ireland, Belgium, United Kingdom, Netherlands, Germany, and Canada all have minimum wages above the US.

All of those countries have government funded health care systems that blow the US's out of the water. All of those countries do a better job at educating their citizens.

> In reality, what tends to happen when you increase minimum wage is that businesses lay off workers. They only have so many dollars to spend on wages while remaining profitable.

The US really does seem like some strange experiment in how not to do economics and democracy.
That's a fair assessment. Git and Perforce are designed for very different things. For video games, and especially non-coders, Perforce is clearly better imo. Git is made for very wide, open source projects. Private software projects fall somewhere in between. Some projects may skew one way or the other.

I'm fascinated by your use case because for my professional work I've never created or shared a patch. I just submit the new code and that's it. Possibly to some branch. More than likely straight to main. Merging heavy branches sucks. Even in Git.

But I definitely understand where you're coming from here. There's a heavy learning curve moving from SVN to Git. It's just a radically different way of thinking. You have to break your brain and reshape it. Moving from Git to non-Git is much the same.

When I worked on a Unreal Engine 3 game we often talked about doing things the Unreal way. The Unreal way sucked. It was stupid. Objectively wrong even. However it was important to do many things the Unreal way. Because if you did it your way that would only cause pain and suffering down the road. Because if you change a few bits to be your way then eventually they'll try to interact with bits that do things the Unreal way and it's bad times. So you grit your teeth and do it the Unreal way. If you use Git you gotta do it the Git way. If you use Perforce you gotta use it the Perforce way. As painful as it may be.
>How did someone come to this conclusion?

With much tortured logic and wishful thinking.

Not only will the robots cover social security, they'll also cut the lawns of poor people and keep their mint julep glasses filled.
You're using an inadequate notion of what a "good argument" is in this context. You have not made an argument for why a price floor is necessary or desirable. I could just as easily say, "The good argument for having a maximum 'price of bread' is that without it, bread prices will be pressured up, because every bakery on the planet wants prices as high as possible, and they generally have the means to achieve it." You can say that all you want, but you haven't provided a justification that it's actually true, or that the situation warrants legislation of one interest over the other. You haven't given a justification or any consideration to the tradeoffs involved.

Do you know what happens when real countries try to impose a limit on the price of bread? Starvation. The Soviet Union tried to establish a limit on the price of bread. Since the actual cost to grow wheat, bake bread, and transport it to cities was high, the supply chain couldn't make a profit (or even break even) selling at the government-specified price. So they stopped, and mass food shortages resulted. That's what happens when you tamper with the economy. Gorbachev finally fixed the problem by transitioning away from a planned economy to a free market: http://www.nytimes.com/1990/05/23/world/evolution-in-europe-...

By allowing the price of bread to rise significantly, bakers and bread suppliers could finally turn a profit (i.e., not take a loss) selling bread, and so they began to do so. This is how the market forces of supply and demand lead to efficiency and achieve the right outcome. For example, if a crisis happens, then food becomes scarce; when food is scarce, people are willing to pay a high price for it; and because people are willing to pay a high price, this creates an incentive for people to go to extraordinary lengths to provide food there and reap the benefit of that high price.

If you establish a price floor, then you're tampering with the economy in a complex way. You had better be prepared to reason about the economic deadweight loss (e.g., unemployment, shortages) that will result, and you should be prepared to provide a thorough justification for why the benefit of that legislation justifies the cost you're imposing on the economy through deadweight loss.

Equating jobs to slavery is an outrageous argument, and disingenuous. Slavery is the act of taking away someone's freedom and forcing them to work for you without choice. Jobs are a free market - anyone is free to work a job that's offered to them, or not. They can quit and look for a better alternative. That is the market pressure that forces wages up: if employees have a better option, they'll take it.
Estimate the cost of a meeting with this calculator
Location: San Francisco

Remote: Yes

Willing to relocate: No

Technologies: Microsoft Office, Google Apps - I'm in Ops, yo!

Résumé: https://www.dropbox.com/s/qq5zqrexfff3ep1/Naomi_Petrash_Resu...

Email: See resume

Hi there! Looking for the perfect HR/People Ops role. I’m all about nurturing employees, process improvements, and internal operations no matter the industry. I have extensive experience in project management and am deeply accustomed to handling and directing business operations.
Not everybody is on Amazon and some of us touch our gear. You should be excited because it gives you a rapidly-improving path off of Amazon if you've gone all in on their vendor stuff. Kubernetes helps build that stuff for any vendor. Multiple startups are working on AWS in a box. That was the promise of OpenStack but now you don't need virtualization so it's automatically an order of magnitude better. Maybe two.

People don't realize how deep Amazon's hooks are at scale. We were dropping half a million USD a month at that successful startup I mentioned and could do the same work with four or five racks of hardware, storage included. I bet you could cut your opex in half on something else, and it's a safe bet because (a) I've seen it be resoundingly true even coming from three year reservations and (b) half is actually a conservative estimate. I am floored by how much money the industry throws at the fundamental inefficiency of multitenant virtualization atop AWS.

What a strange argument, considering Amazon a primitive. That's flirting with vendor koolaid. Physical and DigitalOcean/cheapo deployments are an immediate counterexample, too. Hell, if network latency is low enough, you can straddle both and schedule Kubernetes pods on whichever provider is cheaper on a given day. Spot instances, too. Lots of possibilities.
Ah, yeah - I agree with that last bit about formatting changes - even if I have probably unintentionally violated that in the past.

However, if you have changed users > 1 to users >= 1 and there is some sort of intrisic logic to it, surely a. you put that reasoning into the commit message, and b. you add a comment into the code briefly explaining the significance?

I don't know about you, but I'd prefer to know about why this is significant within the code, rather than have to dig through the blame logs of a version control system!
The article talks about "stars", which implies quality over quantity. They probably already crank out too many infinitesimal-delta-thesis guys who are smart but not brilliant.
> There was an entire movement around dataflow processors AND dataflow languages in the 80's, where the instruction sets were not totally ordered (e.g. SISAL was single assignment). But these didn't fare well in the market.

My understanding is that the dataflow architectures didn't fare well for technical reasons. The instruction-level parallelism they worked with turned out to be too fine-grained, i.e. the cost of scheduling was greater than the win of parallelism for many programs, especially normal sequential programs that still need to be fast. This led to research in coarse-grained dataflow, but it doesn't seem that much has come of that.

https://www.cs.ucf.edu/~dcm/Teaching/COT4810-Fall%202012/Lit...
We haven't seen an automation revolution in Australia because the Australian tech sector isn't nearly as developed as that in the US.

Consider the fact that we are already seeing an automation revolution in the US with certain types of labor, e.g. driverless cars. Raising federal minimum wage will be like pouring gasoline on that fire.
I’m a boring programmer (and proud of it)
> What I am working on is an overall solution so that the need for CAPTCHAs at all is diminished.

I like that idea, but my worry is it will take years to reach that point, and in the meantime Tor/VPN users will just have to suffer. I'd rather see some short-term fixes now and long-term solutions on the horizon.

I admit: I have not read the entire Trac thread, so I'm not sure what your current roadmap is.
At least using Facebook is free

Paying for the Ad Machine? This is ridiculous
I highly doubt these Linux games will amount to much for Microsoft, but it's fun to watch.

Their fundamental problem is (which they realize pretty well i seems) that they have lost developer's mind share. .NET may be a fine ecosystem and C# may be a great language but in all practical senses it is Windows-only. All these Mono/open source CLR games are not even the slightest blip on the radar for a practical day-to-day backend operations running cross platform (which is mostly Linux, but Windows as well).

MS is lagging behind the Java ecosystem by 20 years. It's fun to watch them scramble and try this and that, but I suspect that the train has left the station long ago.

I think Oracle Linux has been a joke. I don't know anyone in their right mind using that. RH or CentOS, yes. Oracle Linux? Most IT professionals will pay extra to have nothing to do with Oracle. Heck, I am considering risking moving to OpenJDK, just so I have nothing of Oracle in sight.
my point is that it's quite easy to "play" with such things without actually breaking the law
That's pretty interesting... did you ever publish this code?
> quite a few suggestions for how the code could be optimised.

Pointless optimization is the meth of the slightly obsessive.
Not sure how you are parsing that meaning out of my sentence. My point is that our resource utilization as a species is a house of cards that we have to stack much higher to get to the singularity.