Better HN
topnewbestaskshowjobs
Log inSign up

panic

29,749 karma · joined Sep 16, 2009 (17y ago) · 3,593 submissions

Submissions

comment 11y ago · link · parent

Or even just a check box to make the already-provided email public.

comment 11y ago · link · parent

If you have n! in binary, count the number of zeros at the end of its binary expansion and call this count k. The number k+1 approximates n relatively closely (the error n-k is the number of ones in n's binary expansion—see http://www.cut-the-knot.org/blue/LegendresTheorem.shtml).

comment 11y ago · link · parent

The latency constraints for starting a continuous interaction are larger than the constraints for continuing a continuous interaction.

I think this is true in general, but there are common cases where you do notice the delay. It's easy to notice a few frames of delay when you start scrolling a web page, for example (which often happens with pages using synchronous touch events). If you want a truly great user experience, you need to make sure your GC never adds more than a few ms of latency. Ideally you'd collect every frame so the latency is consistent.

comment 11y ago · link · parent

You only hear the negative stories because of Apple's culture of secrecy. Writing publicly about the company is a big no-no.

comment 11y ago · link · parent

Bureaucracies are constituted by humans, however, and not all humans cower in the illusory shelter of objective process. As a result, bureaucracies often have something that computers do not: logical escape valves. When the inevitable cases arise that break the logic of the bureaucratic machine, these escape valves can provide crucial relief from its heartless and implacable nature. Every voicemail system needs the option to press zero. Escape valves may take the form of appeals processes, or higher-level administrators who are empowered to make exceptions to the rules, or evolved cultural practices within an organization. Sometimes they might consist of nothing more than individual clerks who have the freedom to fix dumb results by breaking the rules. In some cases this is perceived as a failure—after all, making an exception to a rule in order to treat an individual fairly diminishes the qualities of predictability and control that make a bureaucratic machine so valuable to those at the top. And these pockets of discretion can also leave room for bad results such as racial discrimination. But overall they rescue bureaucracies from being completely mindless, in a way that computers cannot be (at least yet).

I wonder what the best way to add an "escape valve" like this to a computer system would be. A chat box where you can talk to a human who has administrative power over the computer system? A way to write freeform text that someone will read later?

comment 11y ago · link · parent

In one sense, WebGL is a 4D library, since most vertex and color buffers are vec4s. In another sense, WebGL is 3D, since the vertices (and colors, if you're using premultiplied alpha: http://core.ac.uk/download/pdf/1578955.pdf) are in 3-dimensional projective space. In another sense, WebGL is a 2D library, since it's outputting 2D fragments.

The author is just making it clear that there's no magic here. It's all just 2D points on a screen eventually.

comment 11y ago · link · parent

Looks like it's still part of the SML/NJ tree. The last commit was in 2013: http://smlnj-gforge.cs.uchicago.edu/scm/viewvc.php/MLRISC/tr...

comment 11y ago · link · parent

In the "Parfit's Hitchhiker" problem, wouldn't it improve the agent's outcome to believe it will give Paul the gas money but, when actually faced with the decision, to run off with it? In other words, why restrict ourselves to self-aware agents?

comment 11y ago · link · parent

In some way this reflects a general trend in modern society where we give up human agency to the arbitrary rules of computer systems. See e.g. http://www.oualline.com/practical.programmer/bully.html

comment 11y ago · link · parent

The idea is to give the reader a more complete picture. Often we skip over what we think is good about something and focus on the problems. I'm not saying you should come up with feel-good bullshit to make something fundamentally flawed seem like a good idea. I'm just saying that, when something is "mostly good but with one problem" we can learn just as much from why it's "mostly good" as we can from what the problem is.

comment 11y ago · link · parent

Maybe a good rule is: the smaller the pedantic, nitpicky detail you address in your feedback, the more you should include other details as well. Instead of "this is wrong because detail X" say something like "this handles detail Y well and I think detail Z is clever, but detail X is wrong".

comment 11y ago · link · parent

Clearly some people were interested or it wouldn't have reached the front page. I'm not sure what your point is -- what's wrong with another "naive reporter discovers how the sausage is made" story?

comment 11y ago · link · parent

Can our own visual system be fooled in a similar way, or is the response of the neurons involved too non-linear?

comment 11y ago · link · parent

What does "machine learning" mean here? How does the algorithm guarantee the trip is optimal?

comment 11y ago · link · parent

Does he think PHP is the best language out there?

comment 11y ago · link · parent

If you believe an unbiased society would have ruled in favor of Ellen Pao, you could actually take this outcome as evidence for a general bias against women.

comment 11y ago · link · parent

Replace all the decrepit almost dead 2 story apartments in SF with 10 story apartments and there would be no crisis whatsoever.

Well, you'd get a different sort of crisis, where plunging rents would make landlords unable to cover the cost of the new construction. I agree that we need more housing, though.

comment 11y ago · link · parent

For one example of why Z3 is cool, check out this application to "peephole" compiler optimizations: http://blog.regehr.org/archives/1170

Also take a look at the "licensing" section to see why switching to the MIT license is a big deal. Even open source software projects like LLVM have had to worry about whether using Z3 was OK or not. Now they don't any more!

comment 11y ago · link · parent

What is the validator doing that the compiler isn't?

comment 11y ago · link · parent

JS isn't even particularly good at evented, non-blocking I/O: chains of asynchronous calls become series of ever-more-indented function(){}s. Languages with coroutines (Lua) or first-class continuations (Scheme) can chain asynchronous calls in a more straightforward style.

3261.

Rust for Clojurists(gist.github.com ↗)

83 points · by panic · 11y ago · 23 comments

3262.

Scanning micro fiches(retrocmp.com ↗)

2 points · by panic · 11y ago · 1 comment

comment 11y ago · link · parent

OS X and iOS have Accelerate.framework: https://developer.apple.com/library/mac/documentation/Accele...

In particular, see vDSP_sve and vDSP_sveD which compute single-precision and double-precision vector sums respectively.

comment 11y ago · link · parent

Here's the associated HN discussion thread: https://news.ycombinator.com/item?id=8420274

3265.

Don't Let the Computer Bully You(oualline.com ↗)

2 points · by panic · 11y ago · 2 comments

comment 11y ago · link · parent

You can find the text of "War Is A Racket" here: http://www.ratical.org/ratville/CAH/warisaracket.html#c1

comment 11y ago · link · parent

OCaml models "interface" polymorphism using an extension to parametric polymorphism called row polymorphism (https://realworldocaml.org/v1/en/html/objects.html), which lets you avoid subtyping even for interface types.
1
108109110
120