News for hackers. Stuff that matters.

petke

Also apple only spends about 3% of revenue on R&D. Google spends about 15% (and so does ms) if i remember correctly. I think at some point this is going to show. If apple isn't careful they might end up making the pretty but dumb phones of tomorrow.
Re:Why I'm Choosing C++ on Monday February 01, 2016 @02:27PM (#11014625)
I find it surprising how little interest there is on hn about cpp in general. This video about the future of cpp is the best i have seen this year. My guess is the demographics of hn is just wrong for cpp. Its mostly web developers here?
Re:Why I'm Choosing C++ on Monday February 01, 2016 @02:47AM (#11010397)
Garbage collection only works well for memory though. Other resources like file handles, mutexes, database connections, etc. You don't want to leave those hanging. You want them to be released at once a scope is exited.
Re:Why I'm Choosing C++ on Monday February 01, 2016 @02:18AM (#11010317)
Its not been done as general as this though. Check out this link if you have the time. Especially the last 15 minutes. Its by the ceo of openmp and its very interesting. http://youtu.be/0mwHJ0950tA
Re:Why I'm Choosing C++ on Monday February 01, 2016 @01:56AM (#11010240)
I have never been as excited for the future of cpp as I am now. Cpp17 and cpp20 are going to be revolutionary when it comes to concurrency an parallelism.

In cpp17 we get couroutines. Its like await in c# only more general and powerful. In cpp20 we will get parallel executors. Kindof like cppamp and openmp only more general and powerful. It will bring supercomputing mainstream.

Its exciting times for cpp. There are already some experimental implementations to try out. There are also a bunch of other big features coming out. Modules, concepts, transactional memory, compile time reflection, ranges, views, etc.

People can hate on cpp all they want. I'm super excited, and think they are missing out on the future.

Re:We're the Only Animals with Chins on Monday February 01, 2016 @01:29AM (#11010141)
I'm no expert just an mma fan. The rear naked choke for instance. Once they get under your chin its hard to slip out. The bigger the chin the more difficult. The chin is like a hook. Imagine a person without a chin. He could just pull his head out. Especially if they are sweaty.
Re:We're the Only Animals with Chins on Sunday January 31, 2016 @04:56PM (#11008277)
If the neck was so vulnerable it needed protection why doesn't animals have a chin. And why isn't there a permanent bone covering the neck at all times.
Re:We're the Only Animals with Chins on Sunday January 31, 2016 @04:49PM (#11008246)
The chin just helps people choke you better. You cant slip out of their grip as easy. Also a big chin is bad for fighting. The easiest way to knock someone out I to hit them on the chin. It makes the head turn and the brain bounce against the skull. The more the chin sticks out the easier it is to hit and the more the head turns.
Re:We're the Only Animals with Chins on Sunday January 31, 2016 @04:41PM (#11008220)
Chimps pout better than any selfie teen. So I don't think that's it
Re:A Programming Language with Deterministic Multithreading on Sunday January 31, 2016 @09:29AM (#11006488)
Fair enough. I was talking about synchronisation of threads though.
Re:A Programming Language with Deterministic Multithreading on Sunday January 31, 2016 @12:47AM (#11005389)
Truly deterministic multithreading is really just single threading. Multithreading is by its nature undeterministic. To make it deterministic you really have to synchronize enough until just one thread at a time is making progress. It kindof defeats the purpose of multithreading. Synchronization is the enemy of scalability. You want to avoid it at all costs.
Re:216 postive words not in the English language on Saturday January 30, 2016 @02:39PM (#11003370)
It took me a while to get that. Yes thats a very useful word. Much information per character. If we could use it as a verb also it would be very useful. Ex: I meh calling her, could you do it?
Re:Ask HN: What should we fund at YC Research? on Saturday January 30, 2016 @12:04PM (#11002619)
Its kindof strange that we see doctors time as so valuable that we shouldn't bother them unless we are sick enough we cant function. Its like taking the car to the mechanic only when the engine has come off because we don't want to bother them with the small stuff. But waiting for small problems to turn big ... Is also a waste of medical resources. And it might be too late to fix them then.
Re:216 postive words not in the English language on Saturday January 30, 2016 @11:53AM (#11002559)
Just looked up Finnish quickly. I never thought of it before but its very strange to me that a basic word like jaksaa is missing from English. It seems as basic a word as want or cant. In English you have to say something cumbersome "I don't have the energy to do that" in Finnish or Swedish you say that in 3 short words.
Re:The Shipping News Suggests Economic Weakness on Saturday January 30, 2016 @11:31AM (#11002462)
It took me a while to see that the dramatic looking spikes and falls in the graphs where only due to the lower range of the y axis being cut out.
Re:Ask HN: What should we fund at YC Research? on Saturday January 30, 2016 @11:22AM (#11002413)
Are you talking about Robocop?
Re:Reddit in 2016 on Saturday January 30, 2016 @02:47AM (#11000993)
I imagine if hn grows any bigger it will become like reddit. It's the smalltown vs big city mentality.
Re:The Darker Side of Aaron Swartz (2013) on Saturday January 30, 2016 @02:32AM (#11000955)
I don't think this obsession with Aaron and his death is any good. It feels like a morbid soap opera. He is more talked about in death than in life. I think its better to focus on the living. There is plenty of interesting tech entrepreneurs and activists out there.
Re:Ask HN: What should we fund at YC Research? on Saturday January 30, 2016 @02:09AM (#11000899)
Automation of common medical lab tests. Not just for the sick but for the healthy. How cool would it be to every week send a drop of blood by mail and get to see a nice graph on a website how the different hormones and proteins etc in your blood has changed throughout the year. It could help you live a healthier life.
If it can identify a bug and fix it then its fully automatic. If its good enough we could eventually give it the password to our source control systems and let it do its thing unsupervised. As a funny thought I imagine a future virus that gains write access to all github projects but instead of deleting everything it just fixes all the bugs.
Re:Why Shitty Products Survive and Thrive on Friday January 29, 2016 @07:45PM (#10999813)
This goes equally well for all these new languages popping up. Even if it is better at everything it does that is not enough. Legacy code and developer community consists of huge amounts of institutional knowledge. Its asking a lot of anyone to make the change.

I think about the only new languages that have a chance are domain specific languages in a brand new domain.

Re:Facebook Moves to Ban Private Gun Sales on Its Site on Friday January 29, 2016 @07:24PM (#10999706)
Considering facebok is a global site and selling/buying/marketing of firearms is highly regulated in most countries. It makes practical sense for facebook to be conservative and just pick the strictest rule and apply it to all content instead of having to enforce different rules for content created or viewed in different countries.

Otherwise if they got it wrong and broke some local firearms laws they might end up sued.

Re:Facebook is closing Parse on Friday January 29, 2016 @12:09AM (#10993623)
Not to be a dick, but some companies seem to care more than others about the developers that rely on their frameworks. Google doesnt seem to care much. Facebook seems to care more. But Microsoft seems to care most. They have not abandoned legacy mfc, visual basic, and win 32 developers even though they probably should have. Granted those are not services but they require maintenance resources nontheless.
Re:Timezone updates need to be fixed on Thursday January 28, 2016 @12:12PM (#10989481)
Interesting. Still any backward adjustment however small seems potentially dangerous. I googled a bit and it seems many ntp services can slow down the time until its in sync instead of adjusting it backwards. That seems safer.
Re:Timezone updates need to be fixed on Thursday January 28, 2016 @11:29AM (#10989112)
Yes. Unix time is utc based. I used manual syncing to ntp server once in a while. Automatic syncing scares me a bit. What happens when it adjust backwards in time. Programs that are running and use elapsed time logic might get very confused. Elapsed time since an event happened might become negative.
Re:Timezone updates need to be fixed on Thursday January 28, 2016 @11:21AM (#10989046)
I got programs connecting to servers in different countries. It was such a pain to keep the time in sync with all the different time zones and daylight savings. So i ended up using utc everywhere. i even set the clock on the wall and my wrist watch to utc. That way I'm also in sync with my programs. People who visit tell me my clocks are wrong. But i know its the the rest of the world that is wrong.
Re:Whatever you set the URL to, that HTTP code will be returned on Thursday January 28, 2016 @12:33AM (#10986495)
I'll remember that next time. I been using fiddler to see websites http traffic which is helpful. But my programs http traffic doesn't show up there.. So ill try wireshark next time.
There is something a bit distasteful with a lender splashing out so much money on an advertisement. You know in the end its the customers that end up paying for it with interest.
This site was very helpful when I refractored a program from using libcurl to cpprest. I used it to make sure the sent http request headers where exactly the same.
Re:Code.google.com was shut down, Go packaging is broken on Tuesday January 26, 2016 @05:36AM (#10972733)
Google shuts down yet another service developers rely on. Its getting quite a bad track record. Trust is not so easily rebuilt. I think more developers will avoid depending on google services in the future if they have another choice.

Edit. What happens to the thousands of webpages that link to jquery or google fonts on google.code. This must break lots of things ...

Older »