skysight-inc/HackerNews huggingface dataset:
I can't speak for Mozilla at large, but I've had the pleasure of witnessing both Mozilla's Rust and Servo teams at work and can assure you that they are at the top of their league. To pick just two examples, Alex Crichton is an unstoppable machine ricocheting around the compiler, standard libraries, package manager, various miscellaneous tooling, and dozens of libraries in the broader Rust ecosystem leaving patches in his wake (all while finding time to perform legendarily detailed code reviews); meanwhile, Patrick Walton is an awe-inspiring graphics programmer and browser engineer whom I am convinced is among the top five humans with back-to-front understandings of the CSS specification, and by now is likely the world's foremost expert on cross-browser CSS quirks and edge cases.

TL;DR: I'm a squeeing fanboy for a lot of the people in Mozilla Research.
Could you please list the suggestions here or PM me? Thanks
I hate the cruft on simple news articles, but I am completely fine in this case for a special feature like this. The images/videos were beautiful and all served a purpose, and it was mostly lazy-loaded. Yes some initial load time, but a very good user experience.
Chameleon's tongue-lashing technique analysed
The predecessor of Unix, Multics was written in PL/1 and was very innovative (modern OS still borrow "new ideas"): https://en.wikipedia.org/wiki/Multics
No, in the same way that the FBI can set up sting operations where they sell drugs/guns/contraband to willing participants.

There are things the government can legally do which the private citizen cannot.
Nothing to see here. Circulate. The only result out of this will be fatter lawyers and a 42 page EULA for FitBit which you have to sign before you are allowed to wear the device.
Poor US of A.
Ask HN: Why can't we comment on YC jobs postings?
It seems odd we can't post comments on the YC job postings. It would be a good way to provide quick feedback to these companies and to connect with potential hires. I have tried sending emails to several with no response.
The monthly `Who is Hiring` posts seems to provide a good means of discussion around open positions listed. I would assume YC companies could get similar feedback and potentially make a hirable connection faster than forcing that person through a normal hiring funnel, which, I have found for most of these small YC companies gets you absolutely nowhere.
Agreed. My hypothesis is that the recruiters are the ones with the connections and have been doing a better job at marketing. We know that we're really strong technically so that's not a big issue. Where we'll have to focus more energy and attention is as you said, getting better at marketing.

And yes, the bet is on being THE go-to expert. How will we showcase this to new clients? Product portfolio, demo trials of software, detailed explanations of our methodology in simple terms. All the marketing stuff that most other consultancies don't do at the moment.
You don't need to create the whole page structure like in the example though. html, head and body tags are optional under certains conditions. [1]

I guess you could just write the example code like this :

<!doctype html>
<script src="gpio.js"></script>
<script>
var v = 0;
GPIO.getPort(196).then(
function(port) {
setInterval(toggleLight, 1000, port);
}
);
function toggleLight(port){
v = v ? 0 : 1;
port.write(v);
}
</script>

Just having the script tags would also probably works in most browsers but it wouldn't be standard compliant (if you care about it...).

[1] http://www.w3.org/TR/html-markup/
The same way they can sell you an illegal gun and arrest you. This is nothing new and nothing shady from a judicial perspective (barring entrapment, of course).
Agreed. I think the OP's claim was a little too strong. The conclusion stands though, which is that calloc is a better default. If you discover that zeroing memory for a particular piece of hot code is slowing you down, then by all means use malloc instead. However, in that situation, you'd probably be better off avoiding allocating memory in the hot path. Allocating memory has unpredictable performance and may involve a syscall and so really, the solution to improving the performance of calloc is probably to preallocate before the hot path and make sure the hot path has no memory allocations or frees.
Let's assume Disney wouldn't lobby for longer copyright durations and the politicians are aware of the advantages of the public domain. They could then reduce copyright durations of past works for the public's benefit.
Words most beautiful cities http://goo.gl/3eXWd8
Obligatory New Yorker Cartoon: http://www.newyorker.com/wp-content/uploads/2014/07/Newslett...
But desktop processors also don't zero pages, do they?

And by zeroing pages, you prevent lazy memory allocation policies which do not allocate the pages until they're read or written for the first time. This can have a significant impact on memory usage, data locality etc.

So I'm quite skeptical that there is no difference between calloc and malloc. Is there more evidences of this somewhere?
Saudi Aramco Considering IPO
this is really true in my experience. I worked on a large server for a few years and most of my work was spent doing pretty mundane things (mostly interfacing with other libraries(apis)). I certainly didn't use every feature and, like you note, most programmers don't. Sometimes I would come across a new C++ capability that was utilized and I would just learn and utilize it, but this depended on the feature and situation. In fact, the only thing that's really different about it (at least to me), was the constant concern over memory usage (and all of the make/build stuff). These are just parts of the language that you need to consider that are avoided in other languages (the dirty secret here is that regardless of the language, you still need to consider them). I liked C/C++ because you can pretty much do anything with it, but you can get to certain points faster with a different language (again, depending on the target usage). Language platforms capture programmer inertia, which is why big companies try to own them. However, in reality, since there are so many, most good programmers seem to be able to switch between them fairly easily (which is a good thing).
PC history timeline
There was also the Siege of Malta in WW2:

https://en.wikipedia.org/wiki/Siege_of_Malta_%28World_War_II...

Edit: The entire population of Malta was awarded the George Cross (UK highest gallantry award for civilians) for their actions in WWW2:

https://en.wikipedia.org/wiki/Award_of_the_George_Cross_to_M...
Ask HN: Why do I keep getting an error when I try to log into my Facebook?
The Error says,

" Sorry, something went wrong.
We're working on getting this fixed as soon as we can"
No compiling and linking required. Web and front end devs who are already familiar with JS can program IoT applications.
>The first rule of C is don't write C if you can avoid it.

Man, this is just lame. C is a really nice, useful language, especially if you learn the internals. It requires discipline and care to use effectively, but it can be done right. The problem is that a lot of C programmers only know C and can't apply higher level concepts or abstractions to it because they've never learned anything else. This makes their code harder to maintain and easier to break.
> You continue arguing, "on a 32 bit patform I want 32 bit longs and on a 64 bit platform I want 64 bit longs!"

Ha ha ha. What kind of programmer would argue this? Do they ignore Windows 64? The type long is 32 bits there.
Awesome, good work. I was just going to ask you if you had any roadmap for adding Argon2i.
> I don't think chinese firms can't get a foothold abroad (see Huawei), it's just that they have less desire to.

They not only have a desire but they also can get a foothold (look at how well many of their cheap phone brands are doing in developing countries). However, they do have a limited ability to do so when it comes to developed countries. Which isn't that bad since most of the big brands are manufactured inside their borders anyways. The calculus looks better for them than for, say, the UK.
The article said 550, where did you get the thousands figure? Is it from other solar companies? How many employees does NV Energy have and how many millions did they offer the state in discounts or whatever. It's unfortunate that they are working against solar, but I would be very surprised if this affair has a negative financial effect for Nevada in the short term.

edit: woops that's what I get for skimming too fast, thanks :)
Cyanogen OS Is Now Pushing Microsoft Ads to the “open With” Menu
I have always found these things to be a bit iffy. I think it is difficult to accurate track the number of steps or distance you have travelled.

As for heart rate you would think it is easier but again I guess it would depend on the fit around the wrist and the position on the wrist to determine it accurately.

I don't really understand why people are suing over this. If your heart rate is 160 and your Fitbit is saying it is 80 then you return it for a refund or replacement. You don't train yourself to death.

It is a bit like if your sat nav says drive a across a field then into a river.. you should be using your judgement - not deferring it to some device.

If you are struggling to catch your breath or feeling a bit funny then typically you would ease up rather than run yourself to death on a devices say so. I would hope that most people are smart enough to determine that if they can feel their pulse pounding and the monitor says you are barely above resting heart rate then something is probably incorrect with your device.
It can, but more often than not it destroys the thing it is all about.

See: turtles in Greece, quiet beaches and so on.

Nothing like a thundering herd of humans with power gadgets coming in by plane to package holidays centered around hastily constructed hotels and other infrastructure (airports, for instance).
http://www.bbc.co.uk/iplayer/group/p02mbgy3 (not sure whether that's available outside UK, you may have to hunt for "party political broadcast" on youtube)

The way they're all introduced by a BBC continuity announcer saying "This is a party political broadcast on behalf of the Whatever party", and the fact that most of the people doing the electoral groundwork are volunteers, lends the whole thing a very British dignity.

Doesn't get money out of politics entirely though. We're still beholden to the finance industry and the landlord industry.
Only guess I have for Netflix specifically is the fact that they have built clients for every device under the sun. This was and still is part of their M.O. It is just time consuming and difficult to write a heavier feature set in to all of your clients when theyre on every smart tv ever, Xbox, probably toasters, God knows what else
inside-out positional tracking for VR headsets, i.e. no external tracker, completely untethered. The current Samsung GearVR and all of the Google Cardboard setups can only do orientation. The accelerometer data isn't accurate enough to integrate to a position (several people, including myself, have tried).
> I've read that if one uses int64_t with a compiler that targets a 32 bit system, doing various operations on the int64_t variable will be much slower because more machine code instructions need to be generated.

Yep, but presumably you picked int64_t for a reason. If you want a 32-bit variable, use int32_t.

It would be an extremely rare platform on which int16_t is noticeably slower than int. The very minor platform-specific performance improvement you might get from using int rather than int16_t is very rarely worth the risk of introducing an overflow on the few platforms where int is 16 bits[1], and not noticing it because int is longer than that on the platform you develop on.

[1] remember that a signed integer overflow is undefined behaviour which should be regarded as equivalent to a security flaw - the compiler is permitted to send all data your program has access to to the mafia if your program contains a signed integer overflow anywhere, and some compilers will
Win32 is also ancient. It is the model of programming with handles and window message loops, that was inspired by MacOS (Classic) and that the OSX abandoned 15 years ago.

To consider you example with text, in Windows, you also have to use GDI+ or Uniscribe to have at least passable text (without shaping, that is). Or use DirectWrite, which is about as old as Pango.

Even OSX went through changes, AAT/OpenType wasn't available when QuickDraw GX was all the rage.
Cause comments on job posts are negative, scornful and often seek to repay rejection.
Don't worry, the privilege of working at Apple makes up for the difference.
Also the extensive education and experience hunter gathering requires is all in the old people's heads.

"I'm young and strong but starving"

vs

"Before you were born I was killing wild deer down in that obscure valley you overlooked, now you and a couple kids head out there, and drag some meat back for the rest of the tribe, also we're dying of thirst and I used to play in a freshwater spring in that other valley as a kid"

"Ah yes that is a very attractive looking mushroom to a hungry youngster, but I regret to inform you that 37 years ago one looking exactly like it poisoned my great aunt when I was just a kid like you"
I've always wondered if there's a security issue by applying the newer hashing algorithm to the old hashes.

I.e. store the result of `argon(bcrypt(md5(password)))`

Any security drawbacks to this?
> Other Nevada solar companies with higher cost structures than SolarCity are expected to collectively lay off thousands of additional Nevadans in the coming months.
Wait, so how do you put a piece of candy in a bag without opening it?

By ripping a hole in the side?
Nevada has had a Republican governor since 1999. Sandoval, the current governor, is in his second term, was reelected about year ago with 90% of the vote in the Republican primary and 70% of the vote in the general election, and currently has something like a 2/3 approval rating in state polls.

His Wikipedia page currently has one section which is a long hit piece written by pro-solar flacks, but that seems likely to be cleaned up as soon as other Wikipedia editors take notice. Other than that, I don’t see much evidence that he’s in any particular trouble.

“Political suicide” seems like a fairly dramatic exaggeration, unless you’re sitting on some information the rest of us don’t know about.

(Note: I think the Nevada Republican party is crazy, and am strongly pro-solar myself... but let’s not kid ourselves here.)

Edit: Sandoval’s statement about the SolarCity announcement, http://www.news3lv.com/media/lib/166/0/e/8/0e8f2127-0e76-464...
I think a good option is CoAP.
Half-Life writer Marc Laidlaw has left Valve
From the article, "Other Nevada solar companies with higher cost structures than SolarCity are expected to collectively lay off thousands of additional Nevadans in the coming months." That's probably where he is getting the thousands figure.
The author linked to this site: https://www.securecoding.cert.org/confluence/display/c/SEI+C...

These are wonderful. Concise nuggets of knowledge that you can keep in your head, little warnings of what not to do.

Side note, it's really fun reading this article about modern C given that I'm working on an experimental programming language meant to replace C [1]. Just today I got the Guess Number Game example working, without a dependency on libc [2] (caveat: Linux x86_64 only so far). So, I'm having fun trying to think about how C could be better, reading implementations of various libc functions, and writing my own "standard library".

For example, in my language, there are no `int`, `unsigned char`, `short` types, there are only `i32`, `u8`, `i16`, etc (I shamelessly stole this idea from Rust). This mirrors the article's suggestion to only use int32_t, uint8_t, int16_t, etc. But, since it's a new programming language, we don't have the other types sitting there as a red herring.

[1]: https://github.com/andrewrk/zig

[2]: https://gist.github.com/andrewrk/131e6f48a15c42fc5ca8
Yeah maybe ok for a very few IoT things, and for hobbiests. But nobody is going to make a smart lock or smoke detector with this. It's too expensive.
The equivalent stock Arduino demo is blink:

void setup() {
pinMode(13, OUTPUT);
}

void loop() {
digitalWrite(13, HIGH);
delay(1000);
digitalWrite(13, LOW);
delay(1000);
}

From my experience of teaching many non-programmers how to use this sort of device, I think I'll stick with Arduino for now.
Nasdaq, LHV Bank Et Al Develop Blockchain-Based Fintech Applications in Estonia
http://en.m.wikipedia.org/wiki/Noble_savage
> Formatting

> The solution here is to always use an automated code formatter.

Spot on. Python got that part right.
53. Nepal.
I, Rodent: Humanized mice and mousy humans
There isn't one. Remix OS 2.0 is due to be released on 12th January 2016 [1].

[1] http://www.xda-developers.com/jide-announce-multi-window-and...
The Advantages of Mortgage Services
Life expectancy upon reaching adulthood is also a comparison that is frequently done. The arrival of effective hygiene and medicine in the last ~150 years has had a very clear effect on those numbers (a 65 year old US person today can expect to live 6 or 7 years longer than their 1900 counterpart. That's a 65 year old!).

I also think it's tough to correctly estimate the impact of medicine on quality of life. A lot of things in medicine are so effective that we forget they exist (like correcting cleft palate or whatnot).
Cool. Now make it a touch screen with wireless connectors and sell it in racks beside the drywall at the local home improvement store.

I keep waiting for this world of ubitquitous cheap displays that we've been promised. Seems like we're getting there -- but it's been taking its sweet time.
"int" doesn't reveal the intention of the programmer - they might just have used it because it's "int", not because it changes size based on what system you are targeting.

If they used 'int_fast16_t' from <stdint.h>, you have at least an idea that they considered that it might only be 16 bits, and that it can be a larger type on systems where operations on 64-bit types are faster.
> Politicians need to be taught that they serve at the pleasure of the people, and when they stop doing what they are told, they will no longer be employed.

I have seen very little evidence that this is true, at least in the last 50 years or so. Sure, there are isolated recalls here and there, but the vast majority suffer no repercussions regardless of how they act.

A single vote every few years is a piss-poor way of making your voice heard, but it's what we have. The current state of affairs makes it seem clear that our system does not work well, regardless of what we were taught in Civics class.
Haven't been to North Dakota, but a few years ago I went to Montana (parts look very similar to the picture they included). It was almost by chance I went, didn't really have a hand in planning the trip but-

It was absolutely breath-taking, and I won't forget how it felt to stand in those hilly fields for a long time. Being at the exact same spot as the Battle of Little Big Horn, walking in quiet with no cell phone signal... It was all wonderful.
This article seems to have a more thorough explanation:

http://www.marketwatch.com/story/is-this-sunny-state-trying-...

snip -----------------------

A little-understood billing mechanism called net metering is at the heart of the Nevada controversy.

Net metering means that residential and commercial solar customers are billed for their “net” energy consumption. They are allowed to send back to the grid the electricity their solar arrays generate when the supply outstrips demand -- such as during daytime hours, in the case of a home -- and take power from the grid when demand may exceed the system’s output -- such as at nighttime when all the lights are on, or during a cloudy spell.

It’s a system usually based on power-bill credits. How that quid-pro-quo works, varies from state to state and from utility to utility. In Nevada, the utility regulators have decided to pay lower, wholesale prices for that surplus power, not the higher, retail prices they had been paying.

California utility regulators evaluated a similar proposal, but decided against major changes. In Hawaii, regulators approved lower net metering rates, but not higher fees for the most part. Arizona and Wisconsin have imposed higher monthly surcharges for solar customers.

More worrying in Nevada’s case, however, is that regulators made no provision to grandfather in existing customers, said Shayle Kann, a senior vice president at GTM Research, a green-energy consulting firm.

-------------- end snip
After too many problems with "unfriendly C", I finally gave in and now compile everything with -fno-strict-overflow (the Linux kernel does the same thing). I don't care about architectures that don't use twos-complement.
What is the best that you can do to minimize tracking on Win 10 pro? Just run that DisableWinTracking from Github?
My parents are lying to FitBit. They get rewards from some place as Amazon gift certs, so my dad has built a step faker using an electric motor. They have made about $50 from this so far.
This $24k Swiss watch makes Apple feel the burn
Well played.

Here in Germany the climate allows me to heat my living room with my desktop PC in winter. On the other hand, my PC is like a TV, always on.

In hot summers I have to switch to a notebook.
According to Wikipedia, NV Energy employs ~2500
https://en.wikipedia.org/wiki/NV_Energy
Do you have any links to some studies that have tried to weigh up the positives and negatives in modern China? Especially how the positives have not been equally shared.

I know it's an annoying question but there are a lot of millionaires in China however maybe the '0.1%' getting all the money in China is actually 0.2% rather than 50%
Facebook, Google, Microsoft and Others Join to Criticise the Snooper’s Charter
There's 21st Century C by O'Reilly, which I enjoyed. I'm not qualified to say whether you should read it, but there seems to be a lot less backlash towards it than, say, Learn C The Hard Way. My main criticism is that the author wastes half the book on good development practice which is all well and good, but not if you're just there for the C. For developers not familiar with make, testing and so on, it's great.

As for the actual C content, frankly this was where I went to when I was wondering how to write better (modern) C, so I don't really know any better. The writing is almost certainly opinionated and as above, could be a lot more comprehensive.

(oops edit window left open for a while, see sibling!)
well i'm not talking about steam or somthing like that.
I was talking about xbox or playstation.
In this two platforms you can by a game directly and download it but never resell it like physical games.
If those C++ libraries expose a C API, then yes.
Qgltf – Qt 3D Asset Conditioning Pipeline
Microsoft is building its own SIM card for Windows
Talking DevOps: Which Douglas Adam Character Are You?
Why Do We Feed Wild Animals?
They properly have a better chance here than with FFOS, there are no carries to interface with and the audience is developers who know mozilla in advance.
I'd argue that it can't be done right for non trivial programs without enormous effort. Even software written by expert C programmers with years and years of experience contains bugs that are caused by C's unsafe features.
I was simply using the term "Chinese" and "US" to identify the two parties by their country of origin. And I was just describing what I understand about patents.

And I should add as a note: It's only infringement if the patent is valid, something that hasn't been established yet AFAIK.
Everything on this list is expensive.
Yeah I found this odd, too. They did it for a couple of other regions as well (East Bay, German wine region from memory).
Ask HN: If you wanted to short unicorns, how would you do it?
Show HN: Juntoo 1.1 – Visual feedback tool for web and UX designers