HN user

danh

2,035 karma
Posts68
Comments102
View on HN
holmsand.github.io 12y ago

Cloact becomes Reagent: Undo is trivial

danh
2pts0
holmsand.github.io 12y ago

Cloact: Minimalistic React for ClojureScript

danh
118pts44
motherboard.vice.com 13y ago

Bill Gates Is Beginning to Dream the Thorium Dream

danh
3pts0
bjouhier.wordpress.com 13y ago

Bringing async/await to life in JavaScript

danh
1pts0
syg.github.com 14y ago

Heap.coffee: Low-Level CoffeeScript

danh
5pts0
blog.lizardwrangler.com 14y ago

Mozilla about to change video policy

danh
2pts1
onilabs.com 14y ago

StratifiedJS: Javascript + structured concurrency

danh
53pts7
www.reuters.com 14y ago

Analysis: Wall Street puzzles over Google's new direction

danh
2pts0
github.com 14y ago

Literate CoffeeScript

danh
2pts0
twitter.com 14y ago

Airbnb: We screwed up and we're sorry

danh
5pts0
msdn.microsoft.com 15y ago

CSS3 Animation With jQuery Fallbacks

danh
3pts0
www.businessinsider.com 15y ago

Google Gets An Absurd Patent For Its "Google Doodles"

danh
4pts0
www.jstat.org 15y ago

JStat: a JavaScript statistical library

danh
37pts13
blogs.computerworld.com 15y ago

Android upgrades: Which manufacturers can you trust?

danh
3pts0
meyerweb.com 15y ago

Eric Meyer's Reset Revisited

danh
118pts2
www.infoq.com 15y ago

StratifiedJS Returns Sequential Programming to Javascript

danh
1pts0
www.businessinsider.com 15y ago

Apple's Cleverest - And Most Annoying - Marketing Gimmick

danh
5pts1
googlesystem.blogspot.com 15y ago

Google's AROUND Operator for Proximity Search

danh
69pts8
sixrevisions.com 15y ago

The History of CSS Resets

danh
7pts0
www.economist.com 15y ago

Steve Jobs, romantic

danh
4pts0
howtonode.org 15y ago

Learning Javascript with Object Graphs (Part III)

danh
4pts0
news.cnet.com 15y ago

Vimeo gets 'couch mode' for Google TV, HTPCs

danh
1pts0
www.downloadsquad.com 15y ago

Firefox 4 edges out Chrome in SunSpider test

danh
1pts0
www.macrumors.com 15y ago

Apple to Make All New Mac Shipments Flash-Free

danh
2pts0
www.subtraction.com 15y ago

J.K. Rowling’s Plot Spreadsheets

danh
66pts26
www.456bereastreet.com 15y ago

IE 9 does not resize text sized in pixels

danh
2pts0
audiovideo.economist.com 15y ago

Putting frugal innovation into practice

danh
2pts0
www.economist.com 15y ago

A History of World GDP

danh
1pts0
techcrunch.com 15y ago

Google Calls Oracle Patent Suit Attack On Java Community

danh
1pts0
www.economist.com 15y ago

The world's biggest broadband providers

danh
1pts0

Firstly, Hiccup is Clojure (so basically server only). Cloact is ClojureScript, that compiles to javascript (so browser, node.js, etc).

Secondly, Hiccup produces strings. Cloact typically creates DOM elements, through React, that change every time a component rendered. But it can also produce an HTML string using the same data, to pre-render a page on the server using node.js.

In a way. Using regular atoms you can only get a callback when they are modified, but not when they are deref'ed.

You could still use regular atoms, though, with some extend-type magic. But then you risk messing with non-Cloact code in horrible ways...

Thanks, again :)

Yes, exactly, Cloact tries to stay really close to plain React. But since it allows you to separate data from rendering, undo should be quite trivial to implement (if you keep all your application data in a single cloact/atom)...

I've been playing with React a little bit, and so far I like the experience a lot.

Rendering is incredibly quick, since React only touches the parts of the DOM that have changed. Components are very lightweight, so you can break down the UI in as many, self-contained parts as you like.

And you can do pretty much anything you like without ever having to use a single selector or DOM manipulation. That means that you only need classnames for CSS.

The only downside I've discovered so far is the extra tooling required to use the embedded HTML, and lacking compatibility with other tools, but I suppose that will become better with time.

Favorite part:

"Since the only computer language Richard was really familiar with was Basic, he made up a parallel version of Basic in which he wrote the program and then simulated it by hand to estimate how fast it would run on the Connection Machine."

I think their problem is much worse than just being a question of improving data quality. They seem to get data from a lot of very different sources, and those simply do not fit together.

For example, in Stockholm Apple's map still shows most buildings as lying in the middle of some street. On the other hand, only relatively few businesses seem to be located in some kind of building. There seem to be quite obvious, and systematic, errors all over the place.

Now, if they only could sort out the iPhone app as well. It uses a lot more CPU (and corresponding battery) than other audio players (probably due to its Vorbis use), and skips as soon as the os is busy doing something else.

Allow me to be a little grumpy:

I hate tabloidy headlines with question marks. As in "Queen Elizabeth: Is She a Transvestite?", "The Moon: Is It Made of Cheese?" or "Linkbait: Will It Ever End?".

I'm a heavy Spotify user because it is so much more convenient than the alternatives. I love not having to care about buying, downloading, uploading, sorting, tagging and generally messing about with files.

Most of the time, I don't even have to make my own playlists: I just find someone else's that looks interesting, mark it for "Available offline", and listen to that for a while.

I'm not interested in "owning" music (whatever that means these days). I am interested in listening to it, and Spotify makes this very easy.

In comparison, the whole "locker" business seems very messy, and rather unnecessary. I can't for the life of me see what the advantage would be.

The author seems to want to frame Google's WebM move as a question of Good vs. Evil (as does Gruber btw.), which is not very helpful. As with most everything, there are both costs and benefits.

The main benefit is that Google's move may reduce the risk that the MPEG consortium goes crazy in the future, and starts to charge every possible user, causing havoc in the process.

The main cost is more certain: a huge inconvenience for content producers that were hoping to get away with going H.264 only, causing havoc in the process.

The interesting question is the usual one: is the benefit worth the cost?

Really? You must be much, much luckier than I. I just headed over to YouTube, disabled the (excellent) YouTube5 Safari extension, and tried 20 random videos. Only two worked (but fullscreen is still broken).

Maybe that is somehow what Google wants? It has cozied up to Adobe to the point of including flash in Chrome itself. And YouTube apparently can't be bothered to make html5 video work reliably.

I can't think of why anyone would want to promote flash, though.