skysight-inc/HackerNews huggingface dataset:
The problem is that this requires rules to not actually be rules, but strong recommendations. Compilers are good at rules, less so with strong recommendations, which end up in static analysis tooling.
No language you use can get around syscalls, so i have no clue as to why this is a case against C.
Wouldn't it be great if laptops had a "dewalt" powertool style bottom plate. You could decide if you want the "thin" or "thick" baseplate to balance between all-day battery life vs. ultra-thin portable 3-4 hour life.

This would give the option to create a solid "3-inch thick" battery that lasts a week. It would weigh a ton, but for some situations like remote fieldwork it could be a really great solution.
I think most people underestimate the amount of time and effort involved in retraining.

People are good with technology grew up with it their entire lives. There are exceptions, but if anything, they prove the rule.
Note that (a) the issue was with clearing the direction flag on signal handler entry, not saving it; and (b) it's since been fixed in the kernel to conform to the ABI (which GCC blindly trusted) [1].

And after reading that thread, I'm not as convinced as I was a few minutes ago that this was an obvious kernel issue. Yes, the kernel mismatched the published ABI, but callee-vs-caller save and setup is not always consistent, and for good reason.

E.g. registers are usually callee-save, since there are many registers and small functions use few of them. (This is what the kernel assumed.) But rarely-set/often-used flags (such as the flag in question) may make more sense as caller-save and even caller-setup, since this reduces save/setup overhead to only the cases where the flag is actually set. (This is what the ABI dictated and GCC assumed.)

[1] https://lkml.org/lkml/2008/3/5/306
Show HN: Select Star from Movies
That's the "eat your vegetables" line of smartphone marketing. Good for you but a hard sell. Besides if battery life really matters to you then you would get much more utility from an external battery that can store far more than a single smartphone charge.
Only started happening after an iOS 10 update. The graphics glitches are resolution-related, not bad VRAM or anything. I'm also well out of warranty.
Show HN: The first `om.next` (react wrapper) interactive tutorial
Contrary to what the west media wants you to think, not every russian in the world is working for putin to fulfil his evil masterplan
There appears to be a follow-up story, but it is in Norwegian only: https://www.nrk.no/dokumentar/xl/er-dette-isdalskvinna_-1.13...
Room Key | Charlottesville, VA | Onsite | Full-Time

Room Key is a hotel search engine founded by six of the world's leading hotel companies. In 2017 we are looking to build upon our existing product improving the user experience and adding new features to help our users discover lower loyalty rates across hotels from 60+ chains.

Openings:

- Back-end Developer (Clojure)

- Front-end Developer (JS/CLJS)

- Digital Marketing Analyst

See http://www.roomkey.com/careers.html for more details.
Real programmers program in machine code, although you can get away with using assembler and still call yourself a programmer now a days. Heck I even heard about someone using C who called herself a programmer. These new processors allow non-programmers to write software and use high level languages that make you more productive.
Sure have. I was on the dole between jobs, and my brother was just on it for a year while he rode a bike around Tasmania, then volunteered the circus in Perth :)
> An iterator is designed to just not do any indexing at all (neither using the built-in [] operator or one of the functions that implements manual bounds checks), because it instead just manually (unsafely) walks a pointer along the array.

It obviously still has to bound-check that it's not about to walk right out of the array. If you want to call this something other than a "bound-check", I think that's being overly pedantic.
> Most of the things that go into squandering CPU don't parallelize well

That's not true. We just aren't trying very hard to parallelize our code. I work on parallelizing browsers and there's a lot that can be done. For example, libpng leaves 2x potential performance on the table by not pipelining the Huffman decode with the defiltering.

That said, I do agree that a better use of our time in most cases would be to improve the sequential performance of our software, because usually you shouldn't start parallelizing until you've exhausted the potential sequential improvements.
But as pointed in this old HN story it is useless in this case.

https://news.ycombinator.com/item?id=9564975
That's interesting. Whenever my dad wants to become more comfortable with a new language, he reads the translated editions of Harry Potter, too! He's read "Harry Potter and the Philosopher's Stone" in Dutch, French, Arabic, Mandarin, and Spanish, lol.
Much of this reminds me of Vistaprint and Ryan Air. Horrible.
Any idea how much it is? (just as a guess, I'd guess like maybe 8 KiB?)
For many crops the GMO component is designed to resist biocides.

If you're interested in the topic, I'd encourage you to read about the most common GMO crops encountered by consumers, the primary biocides used on those crops, and then read in vivo studies on those biocides.

Do your own research and be discerning about the sources and data, there is an immense amount of astroturfing on the subject matter.

http://ehjournal.biomedcentral.com/articles/10.1186/s12940-0...

https://people.csail.mit.edu/seneff/2016/Glyphosate_V_glycin...

http://www.iarc.fr/en/media-centre/iarcnews/pdf/MonographVol...

https://www.ncbi.nlm.nih.gov/pubmed/?term=glyphosate

https://www.ncbi.nlm.nih.gov/pubmed/?term=2,4-d

http://www.huffingtonpost.com/carey-gillam/tests-show-monsan...

https://www.theguardian.com/environment/2014/jul/17/pesticid...

Of course it could all be wrong, biocides could be super healthy and amazingly great for human consumption.
Yep, no getting away from SQL any time soon.
They're ruthless in competing for that business too.

I worked for a startup years ago that got traction with its ticketing solution for certain markets which eventually brushed against TicketMaster. TM was distracted at the time with .com gold rush stuff, and we had traction. They ended up buying the company at a really high premium. A real rarity at the time.
Better why?
Author here. Nevertheless, there's learning gold in those comments. Take the gold, leave the mud.
I am simply curious if the quantum foam is the hardware on which our consciousness runs and if the brain isn't simply a remotely-controlled computer; same like an SSH session to a powerful server, you know?

Wouldn't the existence of the drugs you mentioned kind of suggest that the brain is the mind, and not a remote controlled shell? Scientists don't ignore these experiences. Some scientists even came to their insights while under the influence of one substance or another. But that doesn't mean there's anything to them other than a straightforward process following the same laws of physics as everything else. Scientists have implanted memories into the brains of lab animals by altering proteins. Optical implants can be used to alter the brains of lab animals. Partial brain damage results in partial loss of function. All that seems to suggest very strongly that the mind is the brain, and the brain is physical.
Well, I don't think your idea is very good either. You are basically doing security through obscurity by not reveling your mitigation methods. Sure they can throw off many attackers but any dedicated one will eventually find vulnerabilities (especially if they are state actors).

If you have some mitigation techniques available, you will be able to block many attacks while providing a good guideline what your software does not do and encourage "white hacks" to come up with better mitigations.
I believe Apple is already making the argument but how much battery life do you really need? 8 hours seems like an easy figure to throw out because its a "work day" although most people can just plug in their laptops.

What use case needs 12+? That seems "good enough" to me for most applications. Is it building in more life so that as the battery degrades there is still acceptable battery life?

Are there more applications than I think where the laptop is actually not plugged in all day? When does that happen? Manufacturing? Some kind of in-the-field work?

I have no experience with it so honestly curious how people use laptops as more than a mobile terminal in an office setting.
> Sorry but that's just flat out incorrect

Have you been on the dole?

I was on it between jobs, and my brother was just on it for a year while he rode a bike around Tasmania, then volunteered at the circus in Perth.

It's very do-able. Obviously you're not owning an iPhone and driving a new Commodore, but if you're willing to have a few roommates and eat 2 minute noodles from time to time, it's an easy life.
The wikipedia page has some additional information not covered in this story: https://en.wikipedia.org/wiki/Isdal_Woman
Machine Learning Algorithm Reveals Bat Banter
The lack of generics means your array implementation is either going to either:

- be implemented with macros and token pasting, and result in a ton of mental overhead because you'll have a pile of types like array_foo for an array of `foo`s, and array_bar for an array of `bar`s, along with a pile of corresponding `foo * array_foo_get(array_foo, size_t)` and `bar * array_bar_get(array_bar, size_t)` functions.

- or, have a runtime cost and lose type safety by storing void* and casting when accessing.

The first case is even worse than it sounds: e.g. I don't know how you handle arrays of types with spaces in them (like `unsigned char`, or `struct bar`) with a macro. And, we haven't even thought about const correctness yet, which would probably require having const_array_foo, const_array_bar (etc.) types defined too.

(And, of course, these only solve one facet of the problems with C's pointers: there's no way to defend against use-after-free or dangling pointers.)
It's crazy that Python isn't considered old. It's been around for 25 years.
NetworkX is very powerful, however for more hands-on network graph diagrams (perhaps more art than science) I rely heavily on http://gephi.org.

(Here's my Gephi map of NSFW subreddits according to their links to each other: http://electronsoup.net/nsfw_subreddits/)
Actually no I don't think it's expensive. It's a very high quality SaaS application - easy to use, lots of useful features.

You can easily setup and maintain an open source option, for us it's not worth it.
BSP? Ah, gotcha. Yes, I was looking into RPi hardware since it's common enough that I figured there would be BSP support. It appears Lk micro-kernel supports RPi's.

Otherwise, Beaglebone has a bit more open hardware board and one or two micro-kernel projects supported it. Not sure what the status of FreeRTOS or Zephyr is on any of the ARM boards.

I'd look into setting up BSP for a good ARM chip as it'd make some of the hardware designs easier long term. Any recommendations board recommendations?
Very true.

Besides California, and staying in the US, water is also an issue everywhere in the Southwest (Colorado River basin, a quarter-million square miles), and throughout the agricultural midwest, from Nebraska to Texas, where water is being over-drafted from shallow portions of the continent-scale Ogallala Aquifer (https://en.wikipedia.org/wiki/Ogallala_Aquifer#Aquifer_water...).
Yes, PDFMiner in Python https://github.com/euske/pdfminer

Apache PDFBox in Java https://pdfbox.apache.org

Previous discussion https://news.ycombinator.com/item?id=11327493

For a list of others, see http://okfnlabs.org/blog/2016/04/19/pdf-tools-extract-text-a...
Well, lenovo has something like that
Somewhat more recently comedian Louis CK attempted it:

http://www.huffingtonpost.com/2012/06/26/louis-ck-ticketmast...

I can't find a good copy of his conclusions from that experiment in my searches right now, but I remember his emails from around that time were not always the happiest.
Intel's new desktop CPUs aren't faster
Why don't HP desktops and laptops get more attention in 'hacker' communities? I hardly ever see them discussed.

IME with large numbers of HP corporate (not consumer) machines, they have by far the best quality of any Windows options. They run for so long that users get frustrated, wanting shiny new equipment but having no reason to replace their old ones. An EliteBook not far away from where I'm sitting even has a tool-less case - you can pop off the cover and service it by moving one lever, no screwdriver required - on a laptop!

However, I don't have data on quality; that is hard to come by.

(I have no relationship w/ HP.)
Welcome to civilization today. Enjoy!
Why is it hard to sell people vegetables? I agree with you but I don't actually know why. Is it just because there's no industry group running a "got carrots" campaign?
What makes Ms. Pac Man so hard for AI?
"your evil backdoor only impacts machines running your software already. " seems to assume that "whatever entity" can freely put in whatever code they want.

I agree that cert collisions is a strange way to backdoor, but to dismiss any questions as to possible malice as "conspiracy theories" seems to ignore many recent events (such as Juniper Networks)
Couple of things.

First, I don't think that's true nowadays. The discussion points that this (not restoring DF on signal return) is a kernel bug and should be fixed: https://lkml.org/lkml/2008/3/5/531

Second, the kernel tries to avoid doing too much work in the signal return code. It tries hard do _avoid_ heavy XSAVE and just preserve only the needed registers. This is the job of sigreturn(2)
syscall btw. http://man7.org/linux/man-pages/man2/sigreturn.2.html

Third, there was a similar discussion about restoring SS (segment stack) register in x86-64 signal code. First patch proposed by Bryan Ford:
https://lkml.org/lkml/2005/10/5/176 . Then 10 years later by Andy Lutomirski: https://lkml.org/lkml/2014/7/11/564

Last one was merged into mainline. Then reversed. Sadly. Then applied again: https://github.com/torvalds/linux/commit/6c25da5ad55d48c41b8...

The gist: if you modify SS register in the signal handler you are screwed. The only way around it is to install a trampoline using "the famous dosemu iret hack" described here:

http://www.x86-64.org/pipermail/discuss/2007-May/009913.html

(the site is down, can anyone find a mirror?)

On Linux use signalfd(2) whenever you can
http://man7.org/linux/man-pages/man2/signalfd.2.html
(Ie: put signal handling back in event loop). That's the only sane way of dealing with signals.
I don't have the inclination to write a long comment about this. But reading sections like this:

>This state can then be verified whenever a process performs an action requiring a permissions check. For example, when a process requests that a file be opened, the kernel now calls out to the hypervisor. The hypervisor is then able to examine the process state and ensure that it remains consistent with its internal representation of process state.

Makes me very uneasy. You're making the hypervisor more complicated, duplicating the logic in the kernel, because you feel the kernel is insecure. The only argument for doing this, AFAIK, is that the hypervisor is still simpler overall, and therefore more secure. But when you start introducing these kind of complications, that argument becomes kind of farcical... Adding another layer on top of the kernel and duplicating your permissions checks in there, I do not think that will end well.
That's a choice you can make.
Actually, Theano supports multiple GPUs as well:
http://deeplearning.net/software/theano/tutorial/using_multi...
Not sure if it is aberrant for the NYT, but many British publications' style guides (The Economist, for one) dictate using this form for acronyms which are pronounced as words, as opposed to initialisms. So 'FBI' vs. 'Nafta'.
POSIX cares not one jot about Intel's CPU implementation, the assumption that memset is not async-signal safe because of something specific to x86 is ludicrous. As of IEEE Std 1003.1-2008, 2016 Edition memset() and lots of others beside are now Async-Signal safe, see http://pubs.opengroup.org/onlinepubs/9699919799/functions/V2.... That's in contrast to IEEE Std 1003.1, 2004 Edition which has a much shorter list which excludes memset(), see http://pubs.opengroup.org/onlinepubs/007904975/functions/xsh...
Not to mention how many venues are owned by LiveNation what owns Ticketmaster in the first place.
I've got an external battery that has usb plugs, it's situationally awesome to have.
Resources for finding and evaluating startup ideas
>> What use case needs 12+?

Probably none, but knowing your laptop can go 12 on light use gives you a little more comfort when doing more CPU intensive work while on battery.

I'd be surprised if I could get 12 hours on that HP Spectre with my bad habits (tens of Chrome tabs left open at the same time).
> You can't achieve this with IPC to a privileged daemon because that daemon cannot inherit your current execution environment when starting new processes.

What if it could? An "execution environment" could be turned into some sort of kernel token object that could be passed to another process over IPC. A privileged daemon could receive one, fork(2) once, drop some privileges, and then fork(2) again, this time with the execution-environment parameter—and end up with a copy of itself running under the IPC-sender, with environment inherited from the sender but privileges inherited from the receiver (and, presumably, an address space that contains all the mappings of both parents, with the IP pointing into the receiver's code section, like a normal fork(2) would.)
What if my human body infringes a parent?
> Take the rust compiler itself: AFAIK it's now implemented in C++, an 'unsafe' language, and YET it manages to provide in abstraction in the form of a language that makes buffer overflows all but impossible. Do you understand now how it's possible create a safe abstractions in an unsafe language?

Regardless of this being wrong, it also doesn't prove your point. The compiler and the built code are two separate executables. Your "C plus abstractions" language still allows "C without abstractions" within the same executable. And that's the dangerous part, because now you're talking about audits to ensure that only your "C plus abstractions" language is the one being used.
I'm bitter that I got out at 744 USD resulting in net loss of $500 USD. $100 USD was the commission fee to sell around 2 bitcoins worth $1400 USD.

$100 comission folks. On buy AND when I closed my positions.

I don't know how to short bitcoin, poloniex didn't offer it? Curious to know more...wait no...I don't think I want to get into cryptocurrency anymore...will get into trading REAL regulated financial instruments.
What evils has Vistaprint committed? I'm curious. I know their products suck.
Perhaps you're thinking of this debugger issue?

https://randomascii.wordpress.com/2013/03/11/should-this-win...
Yes, it checks that it's reached the end of the array as part of the loop, in the same place that `for (int i = 0; i < n; i++)` checks whether it's reached the end of the loop. I think this is different to the indexing bounds checks we've been discussing since the whole process is more controlled (compare and increment a pointer), rather than taking an arbitrary integer.

But yes, strictly speaking you're right, an iterator does do check when it's reached the end of the array, it just doesn't do any indexing nor does it use the indexing checks built into the compiler (which is what you implied the iterators benefit from).
But performance from where?

The single biggest performance increase I've experienced in the last decade has been due to the move to SSD.

Video editors and CGI artists need more GPU and IO performance. It's what gives them real-time feedback. Developers need fast IO (I have slow compile times, but I rarely desire a new CPU to fix that).

The CPU has largely become irrelevant, performance wise. It's great when you hit the final render button on a video, or 3D scene, or when you're compiling code. But those actions constitute a minority of our interactions with computers.
So I was always very thin. Never cared about what I ate. Kept a very, very steady weight for a decade naturally without conscious effort on my part. I then went on a medication that has weight gain as a known side effect. When my doctor gave it to me she said "just don't eat extra."

My diet did not change a bit. I didn't feel extra hungry.

I gained a massive amount of fat and I gained it extremely fast. Three months later I was clinically obese. I then paid extra attention to my diet. Started micromanaging my calories, weighing food, gave up 99% of junk food and all alcohol.

I gained more weight.

I dropped my calories down to 1000 calories a day and started losing weight. But it was basically an uphill battle to keep that up. That's not living, you try it. I thought about food all day. If I started eating even a little more I'd gain again.

I gave up and went off the drug. My weight is going down now but it's extremely slow going. I don't know if I am capable of being my former weight.

I certainly am not not ever was addicted to food. The doctor assumed weight gain had to be caused by extra food intake. It was not.

Sure you can say "rah, rah, 99% of obesity cases aren't drug induced." That is true, but my experience shows that people can be physiologically different. Or there may be something in the environment that is triggering abnormal fat storage. Who knows? But it can't be as simple as "food addiction." Food addiction can be a cause or maybe even a symptom but it's not the be all end all. Humans are much more complicated than that.
This is reasonably well-known thing for the NYT, see the FAQ regarding acronyms: http://afterdeadline.blogs.nytimes.com/2015/06/23/faqs-on-st....
so a mission to make the world more open and connected is being joined with a mission to figure out how the first mission made the world more closed and disconnected. snark aside, it's good to see, but if he's interested there's some very good analysis on root causes already.
UK Government on the Future of Artificial Intelligence [pdf]
Not every (work)day lets you burn the same amount of calories. Not every meal provides the same amount of calories, and at the same pace.
I think people also underestimate the amount of lifestyle change that goes with that sort of thing.

You're not going to go to school and retrain to be a programmer or some type of professional in a small town where there are 2 web devs and a little ISP two towns over.

You're not going to move a family to a tech hub at that stage of your life so you can start over in an entry level job.
> Also, it's written 'NAFTA'.

The NYT style guide dictates that acronyms of five letters or more be capitalized as proper nouns (ie, first character capitalized, with the rest lowercase).
Yep. Glad to see someone else carry the torch since StatusBoard has halted development.
SGI IRIX unpatched rejected all login attempts after january 1st, 2000

Not a crash per se, but would require to stop the host and go single user to roll back the date to 1972 if you were unable to patch it (like my SGI indigo workstation EOLED before y2k)
Yeh this is exactly the problem I am trying to solve.

Not quite sure how to do that though, and if it is even possible.
>Interesting, actually, that if you add up all the extra Ticketmaster charges that they are actually making $22.74 - which is more than Japandroids are making and they're doing the actual work.

and this is why Louis CK decided to ignore ticketscam and sell his own tickets directly for 2012 tour. Interestingly I just looked up and current events are all handled by Ticketmaster, guess they offered him something he couldnt refuse, or he was simply unable to find venues willing to work around the scam (tickermaster has exclusive deals prohibiting competing inline sales).