skysight-inc/HackerNews huggingface dataset:
First, this is not undefined, so you are going to need to find another example :)

6.7.2.1/13

"Within a structure object, the non-bit-field members and the units in which bit-fields reside have addresses that increase in the order in which they are declared. A pointer to a structure object, suitably converted, points to its initial member (or if that member is a bit-field, then to the unit in which it resides), and vice versa. There may be unnamed padding within a structure object, but not at its beginning."

(This is also known as the first member rule)

6.5/7 then says:
"
An object shall have its stored value accessed only by an lvalue expression that has one of the following types:

a type compatible with the effective type of the object,
a qualified version of a type compatible with the effective type of the object,
a type that is the signed or unsigned type corresponding to the effective type of the object,
a type that is the signed or unsigned type corresponding to a qualified version of the effective type of the object,
an aggregate or union type that includes one of the aforementioned types among its members (including, recursively, a member of a subaggregate or contained union), or
a character type."

These are both types compatible with the effective type of the object.

IE your first pointer is really also an int*, as is your second pointer. Your dereference attempt, which is an access to an int, through something with an effective type of pointer to an int, is a valid thing to do.

(Note: I implemented a large part of of GCC's current pointer aliasing analysis and rules, though the underlying TBAA set construction predates me by quite a while :P)

Now, if you added a field and tried this with the second member, of a different type than the first, you'd maybe get a different answer.

However, pay close attention to:

an aggregate or union type that includes one of the aforementioned types among its members (including, recursively, a member of a subaggregate or contained union), or

GCC takes this very seriously. So if you construct types that contain both compatible types, and use that, gcc will consider it okay, no matter how weird what you are doing is.

(Note also i do not claim either set of rules produces sane results, and in fact, can easily construct examples where the standard says nonsensical things, or rules seem to change depending on whether you have one source file or two or ...)

In general, however, your complaint is basically: "C is not a pure structural type system, it's a name based one for the most part". This is true, and it is meant to be that way.

There are other programming languages with structural type systems (OCaml is a good example).
Didn't get a confirmation on iTerm 2.1.4, Firefox 46.0.1, OSX 10.11 (latest stable everything). Not sure if I missed something.
It must have worked even better than expected, because the featured company's website seems to be down.
Life-stories
Major MacBook Pro revamp could replace function keys with OLED touch bar
The thing is, information is the weapon of the 21st century. We are already litigating the cold war in the 3 most popular courts: the olympics, the media, and financial markets.

We cooperate with China, but what will become obvious if a horrifying 1984 censorship scenario evolves more forecfully is that nations and powerbrokers have different information thay want buried/codified. So while China censors it's internet, there will be many places that actively promote (or at best do not dissuade) the content that China is burying.

Just as Russia publishes content the U.S. would prefer not to be published/ is critical of America. So Censorship does work as does fearmongering and threats of violence. However, even in China's situation (which is horrifying) where you can be killed for promoting information/speaking out about some things there will always be groups outside the region with the information and as it becomes scarce it becomes more powerful. Peacekeepers, activists, anti-chinese nationals and subversive governement agents all have incentive to work against chinese censorship, so censorship as a whole can not be successful hopefully as there will always be factions and these factions will gain the highest leverage disseminating the information that is the most policed and downright censored shit in their counterparties region.
transition to what? are you sure you and other programmers will be better off with that transition?

if jobs should be lost, I suggest you to leave you current job. and I'll want to see where you're going to get money to buy food.
Or it's as simple as the fact that modern society treats people as children well into their 20s. Would I take a 15 year old american high school girl/boy as a mother/father? No.

Would I take a 15 year old girl in a tribal village as mother? Sure, why not?
It's a complete stereotype, but for years I've gone to various folk music festivals (dating back to the mid/late 90s). Those festivals that had obvious lesbian audiences, lots of subarus around.

That said, they have had a reputation for decent vehicles.
"But I would never, ever, begin a new business that depends solely on Angular to survive. Why? Because Google doesn't need it. It didn't blink to give up GWT, it didn't have to think twice to decide to rewrite Angular 2 in an incompatible way to Angular 1, and so on."

This is just wrong - almost 3/4 of Google's web apps depend on Angular from what I have heard from multiple Googlers. If a rare instance where an Angular release failure occurs, it shuts down Google's development process dramatically & costs millions in productivity.

That rewrite is aimed at making Angular vastly improved - that doesn't equate to giving up on Angular, that is a poor analogy. In fact, Google decided to start investing vastly more resources into the Angular team, rapidly hiring and growing the team into a proper one, as opposed to it being a pet project of the Adwords team. In the next year or two, that ambition will bear much more fruit as mindshare grows with the realization of the technical problems solved & improved upon by ng2 - if React doesn't gear up to evolve, we'll probably see either a lot of defection to Angular, or a competitor that disagrees with the complexity that Angular introduces appearing to swallow React, just as React has done the same to grab disenchanted Backbone/Angular/etc. users.

Otherwise, the article does a good job explaining a lot of things, but it is very defeatist, as if it is futile to try to improve upon things. I can't say I agree with that sentiment, it goes against the heart of research/trailblazing/experimentation/etc.

It also makes some weak assertions, such as "One rarely benefits from big bang rewrites from scratch.", which is a generality being applied to every single situation, a fallacy. Confusing commonly accepted wisdom in development with an overextension of their meaning can lead to bad conclusions, as well as bad decision making.
Sure - bonobos and other chimps for example
From https://en.wikipedia.org/wiki/Water_supply_and_sanitation_in... - "Water supply is not uniformly continuous and often fails to meet basic drinking water quality standards"
vs
"The iconic drink is the latest to join a group of basic products becoming scarce" (from the article)
Coca-Cola is not a basic product. At best it's a cheap luxury.
AWS Products page in October 2008 – cloud computing infancy
From your perspective maybe. My whole family use computers daily, some do it at work as well I guess and I would bet the number of times they have needed to go into a shell would be exactly zero.

I doubt they even know about terminals to be honest. Simply not needed.
In Japan, English is already mandatory, yet, English fluency sucks. Japan recognizes the problem, but doesn't know what to do about it. Basically, English education has yet to succeed. [1][2]

This is the thing about Japan. They can make these moves that are incredibly progressive and ambitious -- visionary even, yet, they really have no idea how to go about doing it.

As it stands, they don't have enough teachers that can program, so teachers from other subjects will be filling in picking up the material from textbooks as they go along.

From what I've witnessed from my school years, I guarantee you the smarter students will be correcting their teachers and making a mockery of them. It happens whenever there is an English native speaker in a Japanese English class (guilty as charged), and it will happen whenever there is a real programmer in one of these "programming" classes -- at least for the foreseeable future.

---

[1] http://www.japantimes.co.jp/opinion/2015/03/28/editorials/di...

[2] http://www.japantoday.com/category/lifestyle/view/whats-wron...
yes, could be. but not necessarily will be and not necessarily that you and other people of the middle or low class will be given a luxury to have a robot and not to work.

maybe low and middle class will have to serve people from high class who will have robots.
He also just described English education in Japan. Students just complete problems, and even those that do well never learn to speak English just through these classes.
As I understand it, the clipper chip was a combined encryption accelerator and key escrow device, with the escrow basically working as a government backdoor.

The Intel Management Engine is another computer in your computer, running its own OS, and able to see everything your computer is doing, and modify it, including things like network transfers.
Microsoft has ruined my day, and possibly my life
These are private companies so its NOT censorship. Only the govt can censor and the distinction is important because govt's can fine or jail you unlike private companies.
I had a go as well on my galaxy s5. Scrolling becomes laggy (at a rate of ~3-4 fps) for good few seconds whenever I scroll over an HTML code example. It shouldn't be that big of an issue though, given that this is supposed to be purely a css framework. The performance cost comes from somewhere else. Javascript, maybe?
The article you linked is pure gold ;thanks for sharing!
> it was likely much shorter on average

The average includes a huge number of deaths of children and of mothers though - not counting those risks (childhood, especially the very early one, and giving birth) it's higher than most people think. In a lecture on microbes (http://www.gresham.ac.uk/lectures-and-events/return-of-the-m...) the professor mentions as an aside that a late Victorian British citizen after excluding those risks actually had a slightly longer life-expectancy than a modern British citizen! While that is fairly recent it still is long before modern medicine and antibiotics.

Quote:

> And what is interesting, if you take out the childhood mortality, the Victorian person between 1850 and 1880 lived slightly longer, if he was a male, than you do today.

("if he was male": giving birth was very risky)

So it seems that good food (variety plus enough of it) and hygiene did most of the job of extending life-expectancy outside the above two risks - and modern medicine very significantly lowered childhood and birth (mother) deaths. In the light of such evidence modern medicine does not seem to have had a great effect on life expectancy once you made it past childhood. We can't do anything against "aging".
if they are so progressive they could hire teachers over the internet (form USA, UK, Australia etc)
Amanda+Bynes+Wallpapers+HD+Download
AI powered app uses Deep Learning to find and remove junk Whatsapp photos
In my attempt to answer the question, why, I learned something interesting:

> The creation of gendered pronouns in Chinese was part of the May Fourth Movement to modernize Chinese culture, and specifically an attempt to assert sameness between Chinese and the European languages, which generally have gendered pronouns

https://en.wikipedia.org/wiki/Gender-specific_and_gender-neu...

So Chinese used to be gender neutral, then was made somewhat gender un-neutral to match european languages in an age of colonialism. Meanwhile English has been getting more gender neutral, as pronouns like the singular "they" became widespread. So I'm still wondering why this project is trying to introduce gender splits in a language that doesn't already have the baggage that English has.
> This is just wrong - almost 3/4 of Google's web apps depend on Angular from what I have heard from multiple Googlers. If a rare instance where an Angular release failure occurs, it shuts down Google's development process dramatically & costs millions in productivity.

So you were quick to call somebody wrong based on complete heresay? Do you have any conclusive proof that they use it? Gmail? Analytics?
The average iOS app released today is 31.3 MB (and other mobile trends)
DGraph's 0.3 release was a day ago: https://github.com/dgraph-io/dgraph/releases/tag/v0.3
Again, the cases I've read about have been more than just scribbling a few letters on a wall. They have involved a planned operation to break and enter (breaking doors or cutting fences) in order to vandalize.

I don't say caning is right for that either, but these are not "minor" offences. There's no fear that you could be caned for accidentally doing something like this.
At least by building images by myself I'm taking responsibility in a way for the security of them - rather than relying on the (in)security of whatever base image.

I did see a feature somewhere for scanning container images for security vulnerabilities, but I think something closer to FreeBSD's pkg-audit is needed.
I'm sure I'm going to get piled on here, but whatever. I don't understand why those who spend most of their time writing web apps / CRUD apps focus so much on the tools they use to do it. "This framework's the best!" "No, this one is obviously better!" "My design pattern is better than your design pattern!"

I don't know, maybe I'm a 32 year old curmudgeon, but I just don't see this in my area. I work at a lower level; robotics, image processing/analysis, and general systems level stuff. We worry about what technologies we use for a given task as far as it impacts our design goals, i.e., "which technology is best suited for the job" (and there are more options nowadays than there used to be). Our customers couldn't care less about how we got there as long as the final product kicks ass.

Once we arrive at a conclusion we move on and spend the remaining 99% of development solving actual problems. Hard problems. Often times unsolved problems. Our number one priority is reliability and accuracy (ok, that's two priorities). Whether or not we used e.g. C++ or Python to do it is irrelevant. What matters is that we built a system which works as it is supposed to and was engineered correctly.

I don't understand this 'programming for programming's sake' mentality. At the end of the day these are just tools, not an end goal. Help me to understand.
China's firewall is largely constructed to create technology transfer towards China.

This may be in the form of hindering sales for comapanies they may have interesting opportunities for investment, from sports shoes to embedded microchips, to financial products.

It is also part of a much greater Golden Shield network.

But a lot has changed over the past 5 years. A contrast of goals/objectives: the Golden Shield formerly largely about public security and media control, a network prided under the former premier (national harmony being the end-game), but now goals are much, much, more nationalistic at a strategic level across China.
Question: usually we create 2D models of sw: powerpoint, visio, a sketch on the whiteboard.

Has anyone tried lego or some other 3D construction set? Did it work? Is there anything particularly suitable to build "architecture"?
What I meant by corruption is the program might be spewing garbage, instead of simply crashing pointing where encoding problem is.

As for your other point. You're right, but there's no easy way resolving this. Either treat everything as unicode and remember it's binary on linux, or have linux working and everything else broken.

In that scenario you probably should use .encode('utf-8', 'surrogateescape') as soon as you can and work on bytes, so no need of doing the above.

Also, if you for example call os.listdir() with argument in bytes it'll return entries in bytes:

Python 3.4.1 (default, May 23 2014, 17:48:28) [GCC] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.listdir(b'.')
[b'\xff\xff\xff', b'test.py']

But IMO, things still could be better. I would love if there was matching sys.setfiliesystemencoding() to sys.getfilesystemencoding(). In scenarios when you are not sure of encoding you could fall back to iso-8859-1 (latin-1) which has 1:1 mapping for bytes.

Currently looks like you would have to use:

filename.encode(sys.getfilesystemencoding(), 'surrogateescape').decode('iso-8859-1')
Not sure, but it definitely blew up after 2003.
Looks like it could be a Black Mirror episode.
Not true. There are big and sophisticated companies (the likes of Apple and Netflix) that use AWS.
The average IQ will always be 100. It will also always be perfectly normally distributed. Because it's designed that way.

http://www.michna.com/iq.htm

> In truth the IQ is a purely statistical measure. It has no direct relation to brain performance, is not proportional to it, and doesn't even have any linear or otherwise straightforward relation to it. The only thing you can say is that somebody with a higher IQ will show higher scores on most other brain performance tests as well, but the IQ doesn't say how much higher.
Ten exabytes, in other words.
Fairly certain you can get HBO without cable now. Not sure about showtime.
Wait, are you talking about teaching English in Japan?

I read that as teaching an English class in an English speaking country!
GraphQL and TypeScript
100 Days in Jakarta
I would also add that meditation is a bit tricky in the sense that it increases awareness of what's there - and what's there may be good or bad, but increased awareness is a better gift than merely good or bad things. Noticing more things means I'm not as locked in to my obliviousness. It's paradoxial but having a bad meditation is often beneficial.
Peter Thiel: On Things Not Yet Done (2016 Commencement)
This is awesome. If you want a cool side project, you should definitely make this into a kerbal space program like game where you build quantum computers & optimization patterns. It would probably be super fun for you to build and also a fairly profitable venture given you have much of the codebase writeen.
Glad they have proper accessibility support, have always stayed away from these libraries due to this reason.

Although jQuery dependency is a bummer
So what about Tor and obfsproxy? Does it actually (still) work? If so, why don't more people use it?; if not, why not?

I can't easily find up-to-date information about this through Google - which I find odd, since China is such an important use case for Tor that I would expect them to maintain some sort of status page. Maybe the information is more readily available in Chinese...
> yet, English fluency sucks

That is totally not my experience. I have travelled widely in Asia and Japan easily had the best English fluency across a range of people I conversed with (well apart from Singapore but that doesn't count).

Compared to Korea/Taiwan, Japan was a breeze, even in HK I had trouble with shopkeeps outside of areas heavily frequented by westerners. I travelled to some pretty far flung areas of Japan, and was always able to get by with basic English, and even had some quite deep conversations with a traditional inn owner who had only had a handful of western guests in the 20+ years he had been running the place. How he kept up his fluency without anyone to talk to was a mystery to me.
Just use event.metaKey as well as CTRL.
That logic doesn't hold if every generation of parents has their parents raise their children. You get to have your kids and have your parents do a lot of the hard work. Then when your kids have kids you become the primary caregiver.

Regardless of whether everyone has their parents act as their children's caregiver or whether they act as their own children's caregiver as long as every generation does the same you are only primarily responsible for raising one round of children. Its just a matter of whether you do it when you are younger or older.
Sure; but you're not making a moral argument here right? That is, they can decide, but it's still objectively wrong.
I was wondering about the same. I'm also ok with being amongst the first to try.
What I mean is that I wonder what the internal dialogue is over this. This is more out of curiosity than indignation, I would like to be a fly on the wall to understand how this happens.

It seems to me, no matter what the reason, this is the justification they would give, because its the only reasonable one. But the Privacy Act exists for a reason, so I wonder what prompted them to decide it was worth making this proposal, and the discussion that actually ensued with the lawyers, etc. before making it. In particular, did they weigh the costs/benefits of what they are asking for, or are they just pushing for whatever privileges they can get?
I never did meditation but did a few "retreats" into other countries to get away from everything and just have some time for myself. I had a similar experience where it made 'click' and suddenly I was a lot more aware of all the anxieties that I have and usually don't think about. It made everything else so insignificant that I feel I am constantly wasting my time with almost everything I do.

I still have it and not sure how to get rid of this feeling. At the same time I feel "good" that I "found myself". It made clear for me what I actually want in life. Now I treat things like a stable job, work and a salary are just temporary and intermediate steps to reach my actual goals.

Getting reminded about these things with a scary anxiety attack is indeed not nice but I learned to "use it" to my advantage as good as I can.

At the same time I need to keep myself busy to not get reminded about it too much.

Again, still no idea how to "solve" this problem.
The biggest barrier to the outside world is the language barrier. That's not just true for China.
Nice article on a similar topic published by fivethirtyeight.com this morning, though this time focussed on the significant impact on the Republican Party: http://fivethirtyeight.com/features/trumps-scorning-of-data-...
I've been using serverless - https://github.com/serverless/serverless which solves quite a few of these issues
Read the article, it is not really deprecated, it will be supported in rhel 7
Well I tried to teach myself during high school and college but mostly learned after graduating. I always wanted to learn but my HS didn't have the resources and I felt behind by college. So I got a degree in math and have been struggling to play catch up still :) it's going good anyway but I surely would have enjoyed having something deeper than Excel back then. In middle school and high school I did have basic tech stuff like that.