Better HN
topnewbestaskshowjobs
Log inSign up

ifdefdebug

1,351 karma · joined Nov 26, 2014 (12y ago) · 480 submissions

Submissions

comment 11y ago · link · parent

That's quite harsh. I guess you verified that there are actually different threads able to access this code before making such a statement? For instance, if I make a single-threaded application in the first place then I don't care about thread-safety at all. Because I am not going to need it.

comment 11y ago · link · parent

Indeed some deep nesting here. You made me remember a quickbasic program I wrote for a class back in early 90s, where I packed the whole program in a single do-loop with about 20 indent levels at it's deepest, and I loved it. But... the prof told me to never do that again :( Anyway, thanks a lot for the flashback :)

comment 11y ago · link · parent

Well it's not as easy as some of the posts here suggest, like all you need from English is "if", "for", "while" and little more. Don't forget about the libraries coming with each language. You'll also have to map "memcpy" to "memory" and "copy" and know those words, or understand what a "TreeViewItemCollection" is for, just to give two examples out of tens of thousands.

Said that, I think trying to localize programming just isn't going to work. If you want to program, you'd better get along with the English language.

comment 11y ago · link · parent

Perhaps it shouldn't spam the browser's back button with new entries every time you make a little move on the map. Especially if all those entries do nothing when you click them.

comment 11y ago · link · parent

2,000,000 * (100 - 99.875) / 100 * (10 + 1) / 2 = 13750 They piss everybody off for literally nothing.

comment 11y ago · link · parent

Well maybe changing the basic design of wind turbines would be somewhat like changing the basic design of wheels but still today's wheels are better than medieval ones.

comment 11y ago · link · parent

Furthermore: When 'mobile' reaches the computer power of desktop, and screen size, and input (as of today), desktop will have moved on far by then.

comment 11y ago · link · parent

Read the "Admiral" himself commenting this article: http://www.math.columbia.edu/~woit/wordpress/?p=7705

comment 11y ago · link · parent

I doubt a system could be written with today's technology capable of deciding if a picture is funny/not funny based on a huge database of funny/not funny hand tagged pictures. Too much is involved. What does "is funny" even mean?

comment 11y ago · link · parent

Part of the experience adults use to interpret that image is that they, at one point in their life, either stepped the scale of someone else, had their scale stepped by someone else or assisted to such a scene or even a different kind of prank suitable to draw the analogy, laughing or getting angry about it. How are you going to provide such experience to a system? Edit: typo

comment 11y ago · link · parent

At least as long as it is considered useful to interpret meatbags at all :D

comment 11y ago · link · parent

Wow, I just found the refutation for P=NP in your library: it's at ... NOOOO, I accidentally closed the other tab damn should have written it down

comment 11y ago · link · parent

Would have been interesting to see if it can compile itself.

comment 11y ago · link · parent

I just don't understand that market. From the article: "(...) Twitter missing market analysts' revenue expectations of $456m by $20m (...)" - so one hour before, everybody was expecting $456m and held the stocks, now it's officially $430m and they get wiped like that? For less than 5%?

comment 11y ago · link · parent

The problem here might be that those startups, at the time they got acquired, were not perceived any more as startups.

comment 11y ago · link · parent

The colors are just like back in the cold war. The blue are the "good" nukes and the red are the "bad" nukes. That's what it looks like.

comment 11y ago · link · parent

Is it just me, or did anybody else see here a comment from a Google dev just one minute ago, stating this was "just a simple bug", going to be "fixed in short time"? I refreshed the page and now it's gone.

Edit: well I don't really know if the comment came from a Google dev, I guessed so because it looked very authoritative.

comment 11y ago · link · parent

That animation doesn't resemble a water wave at all. In a water wave, every single point of the surface does a circular movement (elliptic in shallow water). This resembles a transverse wave at best. It doesn't even look like the surface of a water wave. Take a look at this (for instance): http://www.acs.psu.edu/drussell/demos/waves/wavemotion.html

comment 11y ago · link · parent

Very nice. But strange things happen in the "car" demo if you put one car on top of the other: they try to throw off each other like horses.

comment 11y ago · link · parent

Same here. Thanks for link.

comment 11y ago · link · parent

Thanks all for the answers. I find neural networks and AI such an interesting topic, wish I had more time to go beyond science journalism to learn about it...

comment 11y ago · link · parent

I know literally nothing about this science, so that paper had me concerned about the following question:

Given a visual face recognition door lock or similar system. If I want to break such a door lock, can I install that system at home, train it with secretly taken pictures of an authorized person, and evolve some kind of key picture with my home system until I can show it to the target door lock and fool it into giving me access?

OK this is a very simplified way to put the question, but is that something this paper would imply to be possible (in a more sophisticated way)?

comment 12y ago · link · parent

wow, for sure I won't wear that t-shirt, I'd be afraid to get myself killed by some myopic officer or something like that

comment 12y ago · link · parent

I read it in the wired.com article about this also submitted to HN: "And [Vinay] Shet says even the tiny movements a user’s mouse makes as it hovers and approaches a checkbox can help reveal an automated bot."

comment 12y ago · link · parent

I tested it a few times in their demo trying hard to to funny things with the mouse pointer. Still I was asked to type in some text all the time.

Then I logged into my gmail account and yes it worked.

So you're probably right about that smoke screen and it has nothing to do at all with mouse movement.

My fx browser deletes cookies at exit and my IP changes frequently and I think that's the true explanation for the outcome of my little test.

comment 12y ago · link · parent

OK, got that. Did some further reading (again) on the topic and it's still about 4 km/s to reach the orbit. People are working on it, but for what I read it looks hard to overcome for 2030...

comment 12y ago · link · parent

I wasn't thinking about the whole journey back home, just the first part of it which looks damn hard to me: how do you get a space craft away from Mars? You need to reach escape velocity, and that's 5 km/s (> 11000 mph).

You'll have to build a complete launch site for that.

comment 12y ago · link · parent

There's something I always asked myself about Mars expedition: well I kind of believe that it's possible to put somebody down on Mars within the next few decades.

But... what about coming back to earth? Escape velocity is about > 5 km/s. Wouldn't you need to build a launch site having at least half of the power of our launch sites down here on Earth? How are they going to do that anytime near in the future?

So is it going to be a on-way trip? And if so, are they going to maintain a supply chain from Earth to Mars for the whole of the life time of those explorers? Water, air, food...

comment 12y ago · link · parent

well FIFO stack still exists as a synonym for queue, but you're right, stack and queue would have qualified my point good enough :) anyway, looking at newer answers it seems that topic was not of concern for their solution...

comment 12y ago · link · parent

Out of nothing, I'd guess their MRU worked by just pushing an incoming free connection on top of a LIFO stack, while for the "most recent request sent" strategy you had to keep track of request timing and insert incoming free connections into the middle of the stack, complicating things.

Within their solution just had to convert the LIFO stack into an FIFO queue, keeping it simple.

1
1213141516