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

Sure, but with a basic income, it would be easier to run a site like SoundCloud without ads. You could switch to an alternative site once SoundCloud started pushing ads.

comment 11y ago · link · parent

How can a web site survive without ads? You can charge a subscription fee, but many users who would tolerate ads will just leave when faced with a paywall. You can ask for donations. Or you can run the site as cheaply as possible and try to support it out of your own pocket.

Given these alternatives, it's easy to see why people support their site with ads. So how can we make these alternatives more attractive? Or is there some other way for web sites to survive?

3123.

The Alameda-Weehawken Burrito Tunnel (2007)(idlewords.com ↗)

79 points · by panic · 11y ago · 28 comments

comment 11y ago · link · parent

Creepy: http://i.imgur.com/jvbK94t.png

3125.

The Modulith(fgiesen.wordpress.com ↗)

2 points · by panic · 11y ago · discuss

comment 11y ago · link · parent

This exact attitude is the reason why modern software is so bad. Dates are set before anyone has any idea how long the software will actually take to design. Then, when it turns out the dates were too aggressive, the design is compromised so the software can be shipped faster.

That's not to say the article isn't right. Maybe speed really does win. But if that's true, we might be stuck with terrible software forever.

3127.

Gratuitous Positivity(ashfurrow.com ↗)

1 points · by panic · 11y ago · discuss

comment 11y ago · link · parent

So if 100% central planning results in a total catastrophe, then there should be no central planning at all, because any extent of central planning is harmful compared to less (or ultimately none at all).

I don't think your argument works. If I drink a swimming pool full of water, I will die. Does that mean I should drink no water at all?

comment 11y ago · link · parent

We need to get better at writing software before we do that. The idea of putting software as it's written now in charge of planning a national economy is terrifying.

comment 11y ago · link · parent

It's insane that advertisement spending is tax deductible (at least in the US) given how questionable its impact to society is. A slight change to the tax code would cut down on ads considerably.

comment 11y ago · link · parent

In theory this should improve battery life. Instead of waking up the CPU/radios to ask whether there's new mail every few minutes, the phone lets the server push the mail to it.

comment 11y ago · link · parent

A scientific theory has to do more than explain existing phenomena: it has to make predictions which can be tested. What are some testable predictions of constructor theory?

comment 11y ago · link · parent

Generic operations on monads are great, but you need code written in terms of monad operations to take advantage of them. Monadic code in Swift has a few problems.

1. There's no do-notation in Swift. Your code will be littered with weird operators that make it (at least slightly) harder to read.

2. It's less efficient. The runtime system has to create and destroy additional closures, increment and decrement additional reference counts, and so on.

3. It's difficult to interface with procedural code, since your monadic code must be pure.

So when do you write monadic code versus procedural code? In practice, the monadic parts of your code will end up associated with particular tasks that lend themselves to the monadic style. But why not then specialize this code to its particular task? In the Treelog example, using specific Treelog terminology instead of generic monad operators would make the code easier to read and understand.

comment 11y ago · link · parent

Yes, definitely. To be clear, I'm a fan (and long-time user) of monads in Haskell, and I think they're a great solution to the problem of embedding impure effects in a pure language. I just don't understand why you'd use them in a language where you can just write the impure effects in a direct style, especially when there's no 'do' notation equivalent.

comment 11y ago · link · parent

Your question is meaningless as you've written it. An object equipped with a "return" and a "bind" operation is a monad if the operations follow the three monad laws of left identity, right identity and associativity.

To say whether something is a monad or not, you must first identify the object you're talking about and describe its "return" and "bind" operations.

comment 11y ago · link · parent

They weren't introduced to solve a problem.

Monads were definitely introduced to Haskell as a way to solve the problem of I/O -- see Section 7 of http://www.scs.stanford.edu/~dbg/readings/haskell-history.pd... for more details.

It's true that monads existed as a concept in category theory before they were used in programming languages, but they didn't really catch on until their use in Haskell. Certainly you don't see articles about applying other esoteric category theory concepts to Swift programs.

comment 11y ago · link · parent

Why even have the concept of a monad in Swift? The language is neither lazy nor purely functional, so the problem monads were introduced to solve doesn't exist. You can just write regular code to do I/O.

comment 11y ago · link · parent

For the curious, the programming language is called "Lily". There is a website at http://jesserayadkins.github.io.

comment 11y ago · link · parent

It's not pedantic -- interpolation in linear space makes a major difference! It doesn't look like this shader is meant to show distance directly, though: it's taking a fourth root and some other things:

    // do some soft coloring based on distance
    d = clamp( 8.0*d/zoo, 0.0, 1.0 );
    d = pow( d, 0.25 );
    vec3 col = vec3( d );

comment 11y ago · link · parent

The standard visualization for the Mandelbrot set (which is used here) colors pixels according to the number of iterations it takes for the corresponding point to get far enough away from zero that it can no longer be part of the set. It's worth noting that coloring pixels according to the estimated distance to the fractal instead (using a technique like http://iquilezles.org/www/articles/distancefractals/distance...) can produce a more detailed image: pixels very close to a thin edge of the fractal are included in a distance-estimation visualization but can be missed by an escape-time coloring.

comment 11y ago · link · parent

All you need is regular antialiasing, not subpixel antialiasing. To be precise about what I mean: drawing a black line on a white background with regular antialiasing will produce only black, white and gray pixels. Subpixel antialiasing will produce colored pixels. What I'm saying is that you don't need the colored pixels to produce smooth motion.

comment 11y ago · link · parent

This chart is hard to read: http://i.imgur.com/HJYmCLN.png

Since the values are percentages, it's weird that the scale is out of 0.9 -- why not 100? Why leave out the other ~98% from the visualization? The radial arrangement makes it even harder to read and compare the values.

The effect (at least for me) was to make it seem like these images appeared much more often than they actually did. I actually found the raw numeric table below more illustrative!

comment 11y ago · link · parent

Yeah, The Death and Life of Great American Cities is a good read if you want more detail about why this is a terrible idea (http://www.amazon.com/Death-Life-Great-American-Cities/dp/06...).

comment 11y ago · link · parent

(Unfortunately, it seems like there is some debate over who invented CRISPR and should be awarded the patent for it.)

Maybe the bacterium which first expressed a CRISPR sequence should be awarded the patent. We're just using the tools that nature invented for us!

comment 11y ago · link · parent

Yes, you need the ability to draw content at fractional pixel offsets to get smooth motion. That's different than the "subpixel rendering" the original post was talking about, though, which is a way to draw sharper shapes (usually text) by addressing the red, green and blue "subpixels" individually: https://en.wikipedia.org/wiki/Subpixel_rendering
1
104105106
120