skysight-inc/HackerNews huggingface dataset:
When would the "evenLater" callback be called?

Besides, that's still only one function call. When you need to call many async things one after the other (that's what i meant by "chaining"), that nested callback-based code becomes much much convoluted than the analogous "normal" return-based code.

With promise monads [1] or some sort of language transformation that lets you write code that looks sequential but then is transformed into chained callbacks, you can basically get rid of all those extra callback functions and their associated complexity (i.e. all the mangled "success" and "error" callbacks from chained async functions) and have code that looks normal function calls one after the other. Notice that pufuwozu's example had three consecutive async calls, but it didn't need to create all the callback functions to pass between the calls.

[1]: This is a nice little spec for chainable promises: http://wiki.commonjs.org/wiki/Promises/A. And here's a post that explains how they are used: https://gist.github.com/3889970
Considering the kinds of vulnerabilities we've seen, this may prove difficult. I remember one where browsing to a folder with a specially crafted image provoked a buffer overflow that got exploited.
I was hugely impressed by Bill when I read that memo, I checked with my friends who worked there to see if it was 'real' or a PR stunt, and they universally agreed it was very very real.

I suspect Google is about to be tested in this way given the adoption of Android on mobile devices. It is fortunate that they have a strong security culture to begin with but nothing proves that like being battle tested.
"Coming back"? It never left! While it hasn't gotten as much outright hype as Ruby or JavaScript has over the past 5 to 8 years, it has still been powering a huge number of very important software systems the whole time.
The point is, inverting control doesn't need a three letter acronym in Ruby, it is built into the language. You get those things automatically. No javascript programmer ever talked about singletons, and no Ruby programmer ever built an IoC container, because they are not needed. It's a mistake to think these are fundamental elements to programming, they are byproducts of particular languages.
All those _s functions must be paying off!
Well that's 15 second of my life I'll never get back.
Some thoughts between facts, compilation and original work of authorship

http://en.wikibooks.org/wiki/US_Copyright_Law/Copyrightable_...

Does a orignal list of URLs is copyrightable? If you follow the copyritht , yes.
But an other URL compilation of the same API which would be a kind of "list" (alphabetical for example) would not...

In all cases, if original URLs lists are copyrightable, Google results too are under copyright, because they are sorted by pagerank, which is an orginal way to sort links...
Congrats! Keep working hard and releasing more games!
That logo makes me think of C++.
tl;dr : "Hi, I have a blog and it's taught me nothing about virtual memory".
To me, one big driver of whether I will open unsolicited mail is how often that sender sends something out. If I am getting email from you 3 or 4 times a week, it's almost guaranteed to be going straight into the trash. Not only am I not opening it, I'm not really even reading the subject line.

Once a week is borderline. Once a month is probably about right. Don't abuse your subscriber's time.
I completely agree. However note that your examples are straw men. I wasn't talking about the general economics of lawyering, and at no point did I make that claim. My comment was in response to this specific case of corporate IP law. I agree with you that family law and consumer protection (e.g. class actions lawsuits) for example certainly are like startups at times. In this trademark case it most likely a case of big bucks or bigger bucks. It's not contingency work and there isn't really a risk of non-payment with a client like Apple.

And yes, there are no guarantees and there is always risk, but in this trademark case the amount of risk versus upside is very very favorable to the lawyers involved.

What I don't understand is why "taking cases like this is not the way to do it anymore." I simply don't see why the lawyers aren't almost guaranteed to make good money in this particular case, especially with a deep-pocketed client like Apple involved. I would like to know why though.
For anyone interested: http://lxr.linux.no/linux+v3.1/lib/inflate.c#L244
No, that shows javscript benchmarks, not the more ambiguous notion of "browser speed".

Anyway, Chrome and Firefox are tied in Kraken, which is the benchmark Mozilla created to simulate real world loads. (And thus, presumably, the benchmark they care most about when optimizing.)
The trick is to filter out Reddit and start subscribing to the better sub-reddits such as TrueReddit and any other ones that you might find interesting e.g. I'm learning Java so I subscribed to the Java sub-reddit, the programming one, computer science one, computer science jobs etc. All really interesting sub-reddits with lots of serious conversations and a healthy lack of cats and sexism.
That would mean I can do whatever I want as long as I provide a way to invoke their unmodified interpreter rather than my hacked-up one (i.e., I could build two binaries). My reading of the license (modifying the software is only acceptable for one of three purposes in bold, and "not open source" appears verbatim) doesn't make me confident they'd actually be okay with that, though it'd be a pleasant surprise.
Re2 Syntax
An Open Letter to Future Team Members
quote:
The big disadvantage of the U.S. program from the standpoint of Chinese investors, said Du, is that their immigration status is contingent on the business succeeding. "If the business fails, you lose your green card too."
That's not a universal perception. Perhaps there is something borked with your firefox install.
FWIW I don’t think the Clojure or Scala communities have any kind of “hate” for Java. Clojure views Java as an ally for many of the reasons you discuss. I think you’d be hard-pressed to find people in the Clojure or Scala camps that refuse to acknowledge there’s a right time to descend into Java. Likewise, I think any Ruby programmer worth his/her salt would tell you: if you’re trying to process 20,000 messages per second, don’t rely on Ruby. Moreover, JRuby, Clojure, and Scala are all quite fond of Java interop, so I’m not sure I agree with your opening statement that people who use said languages are “hipsters” who blatantly ignore the benefits of changing the level of abstraction when the situation warrants it.
To learn CS, Programming, and Python, I'm currently working through:

6.00x (MIT's edX Intro to CS course), Python
https://www.edx.org/courses/MITx/6.00x/2012_Fall/info

CS101 (Udacity's Intro to CS course), Python http://www.udacity.com/overview/Course/cs101/

Python the Hard way (Zed Shaw's online book), Python
http://learnpythonthehardway.org/book/

Code Academy, (Python track), Python http://www.codecademy.com/tracks/python

I consider 6.00x and CS101 to be my CS foundation and Python Hard way and Code Academy to be brush-up on the Python/programming. Working through all these in tandem really hits my brain in 4 different but complementary angles.
I recently discovered a good reason to be running Canary/dev channel. Chrome version 22 introduced a bug with heavy JSON pages, where navigating away from them would lock up the browser. Our page had been working great on all browsers, then literally on the morning we went live, Chrome 22 was pushed out to auto-update, which broke this page for our users. If we had of been running Canary, we'd have seen the issue earlier in the development process.

(this is the issue by the way - http://code.google.com/p/chromium/issues/detail?id=155270)
Because more intranet apps were written using IE6 specific technology, and that's basically the main reason anyone would still be using either.
SpaceX have mentioned how seriously they take cyber security and with somebody like Elon Musk at the helm, I'm sure they're much better than Fortune 500 companies and the big aerospace companies.
There doesn't appear to be any. I clicked to sign in with FB and after granting the webapp permission it presented me with three different users. It gives the city and a unique id for each one. Each has it's own threaded conversation and reply to whichever one you want. I like the idea but not sure about the implied safety of it for those in need or vulnerable....
This looks awesome - as long as all (or at least most) of the suggestions it makes are actually improvements in some meaningful way. Perhaps including a performance analysis and automated functionality test to assess the suggested change's effects?
> We just need to be careful because malloc returning successfully does not always mean that we can use the requested memory.

this is not really true and it's dangerous to think this way (IMO).

one of the awesome things about virtual memory is you can "use" more memory than you actually have. if you only have 4GB of physical pages on your system and you allocate 18GB of virtual memory, things will be fine until you write to more pages than you have.

at this point, things are still fine! the memory manager will pick some pages (usually ones that haven't been accessed in a while) and page them out to a paging file. this behavior is transparent to your application. when your application tries to access those pages, the memory manager will bring those pages back in. if it can't bring the pages back in because all the pages are taken, it will choose some pages to put back into the page file. and so on ...

"so what happens when the page file is full?" well, modern operating systems have a page file that grows. so really, "what happens when the page file is uncomfortably large" is the question, and the answer there is the kernel will start killing tasks, and the first on the chopping block will probably be yours.

some platforms allow you to register for notification from the memory manager that there is a lot of pressure for physical pages or virtual addresses. the problem with trying to gain awareness like this is that the pressure on memory is generally totally outside your control. if the memory manager tells your app 'hey, free any memory you're not using' you are going to say 'oh yeah right i just had these hundreds of megabytes just sitting around but now that you mention it i probably should release them'. uh huh.

imo short takeaway:

1. check if malloc is null because the behavior of the allocator is platform dependent.

2. if you get a non-null pointer from malloc, treat it is valid. there is nothing else you can do. perhaps touching it will make the kernel kill your task perhaps not! it could be because your app is using too much memory. it could be because the app next door is using too much memory! you can't know.

3. you should take an operating systems class from a university if you want to really explore this topic in depth
Additionally, it gives you the option to call them without any clear indication that they have control over the action.
I up voted both you an AnthonyMouse for good clarifying comments that move the debate forward.

Do you think it is then legitimate to partially copy an API making sufficient changes for it to be largely incompatible (certainly not a drop in replacement)? In this scenario the functional element is lost in the copy but not the creative element.
I wish I had had this kind of drive to learn to code when I was 14. Amazing job Omicron3141, your parents must be blown away.
Amazing stuff. Simple, get it done, effective.

I wonder how much of the cost of prosthetics is associated with trying to make them look "real". Just making them be what they are probably relaxes so many restrictions that it makes making a cheaper alternative relatively simple.
Sac longchamp,sac longchamp pas cher,sac longchamp solde
Acheter sac longchamp,sac longchamp pas cher chaudes Avec des matériaux hautement qualifiée et professionnelle unique Conception,économiser jusquà 67%.
I altered the program to first allocate 64G then go through and write on each page of the allocation on my 16G machine, dropped my swap partition.

After suitable screwing around to keep gcc from optimizing away the writes, it goes a bit like this…

jim@gvdev:~$ ./fail
Before
Allocated 1 GB
Allocated 2 GB
...
Allocated 64 GB
After
Writing in 0 GB
Writing in 1 GB
...
Writing in 15 GB
... rather long delay here...
Write failed: Broken pipe
upstairs:~ jim$ <----- bad news here, notice the machine.
upstairs:~ jim$ slogin gvdev.XXXXX.net
ssh: connect to host gvdev.XXXXX.net port 22: Network is unreachable

… so now I have to get back in "going out" clothes, go downstairs, and drive over to gvdev and reboot it.
The title was fine. The article talked about what and why rather than how.
Rubinius 2.0.0rc1
Good point. If fuel taxes pay for roads, how will electric car owners pay for their share of the wear and tear?
LENR attracting a lot of Media Attention
With an application using garbage collection it's quite easy to have hundreds of megabytes just sitting around, so I think it could be a good idea in some cases.
I thought Rob Pike had a good point that, if "design patterns" had been a part of our language 40 or 50 years ago then things like calling convention would have been called "design patterns". Of course we don't talk about calling convention like that these days because languages handle it for us.
Here's an implementation in WebGL

http://blog.calyptus.eu/seb/2010/11/webgl-not-just-for-3d/
I care about memory use, i've been able to get Chrome up to >8g of memory used with no problems.

Firefox rarely gets over 2g with similar use.
RE: "classic OO design ideas experiencing a massive resurgence"

I don't know about that. I see a whole lot of functional paradigm chatter these days. That wasn't true 5 years ago as I recall.

Then again, I suppose it depends on what color your glasses are: If you're a classic OO devotee you see most of the techniques being put forth as classic OO, and if you know a bit about FP you see it all as the stuff that FP has always been made of, the stuff that OO gurus who cut their teeth on FORTRAN neglected to mention came from FORTRAN.
Shameless plug: if you publish through makegameswith.us, we cover the $99 fee. You do need a Mac though.
Related: Zefrank on unexecuted ideas as 'brain crack':

http://www.zefrank.com/theshow/archives/2006/07/071106.html
You're wasting your breath. There's three or four them that do this in every, single, last Android thread.
"Reddit users" is akin to saying "internet users"... Sure many people think of steve urkil, but anyone with depth realizes that the "culture" is wide and varying.
GUIs go to great lengths to work around the low ppi, using anti-aliasing, (auto) hinting, subpixel rendering and various other techniques. This kind of thing generally isn't available for bitmaps such as the comics in the Humble eBook Bundle which are consequently extremely difficult to read (the images are a higher dpi than the screen so it is a screen problem not a source problem).

You are right that there are people for whom extra ppi, extra cpu, extra memory, extra power saving, better colour gamuts etc won't make a difference. But there are also a group who do want ppi improvements and Apple has done so across their laptop and tablet lines, Asus has done for some of its tablets, and the Nexus 10 has done so too. If nobody bought those then it would demonstrate lack of demand, but people have been buying them. And people really want them for non-Apple laptops too as Linus stated and others have concurred.
China, it's almost non existent anywhere else. Even the "enterprise" upgraded to IEX but they probably skip IE7 when they do that. For intranet stuff maybe still some IE6, but not much left i guess.
Please help us get noticed Nexus 7 Giveaway.
Any further links or reading? I am very interested in this subject.
This reminds me of the bear joke: They only had to outrun oracle and adobe...
The main problem is that people don't spend the time to filter their photos - I'm often too lazy to have more than an idle flick through photo albums that people send links to because people upload some really bad photos that they just can't be bothered to filter. One good thing about film is that you're forced to do this (plus there are other benefits to being "encouraged" to think about each photo rather than just snapping wildly).
dcooper: That would be great, thanks!
It [synchronous call] basically dodges the issue of time-dependence by just freezing if it is waiting for a value. This blocks everything in the program. Mouse and keyboard input just piles up, waiting to be processed, presenting the user with an unresponsive app. This is not an acceptable user experience.

It depends on what else your user can realistically do before the call completes. In many cases the answer is "nothing." He needs the result of the call before he can proceed in his task. In simple web apps this happens a lot. In those cases I will often just make a synchronous call and avoid all the callback complexity.
>(the one you can actually use the Android mark with

source. A quick check of the brand guidelines page says nothing of the sort.

Also, you're intentionally blurring line between people who like the Android experience and people who like the idea of Android as a free OS that is literally taking the world by storm. There is nothing that you or taligent won't say to try to find something to back Android into a corner for the chance to say one bad thing about it.

Yeah, I like Android because Google Maps, Google Now and Gmail are very, very compelling offers. I like Android because it's open source, I can do far more with it than I can with iOS and I can do it far more efficiently and increasingly even more intuitively (How far do you have to work and disrupt your flow to enable/disable Wifi in iOS vs Android for example). I like it because it has a powerful intent system, allows side-loading apps and more.

Do you see how those are two different things? Do you see how using Google Apps as a way to just try to blanket dismiss peoples' opinions might be bad.
Your book was the first I ever bought about programming. I don't think I ever wrote a line of code from the book but it illustrated basic programming concepts that inspired me to continue development. Very impressed to read that you were only 14 when you wrote it, as I was probably only 14 when I bought it.
FWIW, the common receptacle in the US is rated at 15A, on a 15A or 20A breaker.

You'd just end up limiting your max power to the capacity of that one circuit, and overloading would trip the breaker on the circuit you were using to backfeed. Technically if you were putting 20A into a 15A receptacle on a 20A circuit you'd be overloading it, but the same thing can happen when drawing power and such circuits are still condoned. Also technically you should only consider that circuit sufficient if you aren't planning on having a continuous load greater than 12/16A, but people generally don't pay attention to that rating either.
Perhaps, but an application using garbage collection will likely have malloc abstracted away from the developer.
Man to be your age and feel what you're feeling right now! I had grandiose plans as an 11 year old to write games on the Amiga. But without the Internet and relying only on books learning was a slow process. It ultimately never happened. I hope your parents support and recognize your achievement. 90% of success is just showing up and actually doing something. It's important to do things like this because you just never know where it will lead, who you will meet, what you will learn. Keep it up!
aha! true, yes. I hadn't considered that case. then it would make sense. I suppose another case would be if you were maintaining some kind of data cache that could either be discarded or flushed to disk. so maybe these mechanisms are more useful than I thought.
I didn't see anyone say that lawyers had a 100% profit margin so discussing all their business difficulties is fallacious. Regardless, these lawyers have still made money most of us wish they hadn't, and in doing so they've taken it from people who earned it.

That the barbarians lost some of their plunder in fires they had needlessly started was probably little comfort to the villagers...

Your point regarding law students having crippling debt is an emotional red herring. Most people here have or have had huge student loans or are otherwise personally taking a large financial gamble for their careers/businesses.

You also mention the difficulties of paying employees when on contract yourself when missing that everyone else is in the same boat too, trying to make payroll in an uncertain world.

And it's amusing that you mention legal difficulties as you're talking about exactly the people who, collectively, cause those difficulties for everyone. If not for the sort of lawyers who needlessly sued iFone, there wouldn't be the sort of lawyers who'd defend a company skipping out on a legal bill like that, and so forth.

There's risk in everything from fry-cook to indie iOS app developer. Not only is it callous of the people who suffer the least from economic downturn (the upper class, most educated) to complain about problems facing everyone, but it's also another attempt to muddy the issue.

The lawyers alone chose to be there and they alone profited. The money iFone wasted defending itself from this attack could have gone to providing services to customers, wages to employees, and profits to investors.
In my experience, it was really hard to do. It's late and I am tired, so I really can't focus on something, but feel free to ask something specifically and I will answer you.
Valuable innovation doesn't need to be on life support. Technologies that can only exist with subsidies destroy capital and jobs.

I'm all for dealing with problems like pollution, but a tax on the polluters is the way to go. The federal government should not be picking replacements and throwing money at them.

If electric vehicles cannot yet compete with gasoline vehicles that are taxed to pay for their pollution, then its too early for them.
This deserves more attention. It's easy, as a kid, to crack doors open that would take a tremendous amount of effort as an adult.
I'd be all over this except for several problems:

* Extremely low resolution

* Old Android version and Toshiba have no history of staying fresh with Android

* Tegra 3 based, and will be released just as Tegra 4 devices come out

I do like that is has an SD card slot, micro USB/HDMI etc. Sadly all they have done is take a mediocre tablet and scaled it up, and then delayed releasing it.
Even if you don't give it a name, you are still doing it.