29,749 karma · joined Sep 16, 2009 (17y ago) · 3,593 submissions
comment 11y ago · link · parent
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
3125.
The Modulith(fgiesen.wordpress.com ↗)
2 points · by panic · 11y ago · discuss
comment 11y ago · link · parent
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
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
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
comment 11y ago · link · parent
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
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
comment 11y ago · link · parent
// 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
comment 11y ago · link · parent
comment 11y ago · link · parent
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
comment 11y ago · link · parent