HNHacker News
TopNewBestAskShowJobs

aidanhs

457 karma · joined June 5, 2013

aidanhs@cantab.net

https://github.com/aidanhs/

submissionscomments
aidanhs··on A replacement for JavaScript's “alert”
> It overrides alert() but doesn't - and can't - duplicate its blocking behavior.

If you really wanted to, I think you could set up an endpoint on your server to be long polled with synchronous XHR in a while loop, while you set up the popup in an iframe. When the popup is clicked, you send a notification to the server so the next synchronous request returns 200 and you dispose of the iframe.

On searching, I discover someone else has had this crazy idea already - http://stackoverflow.com/questions/16934667/what-methods-are...

aidanhs··on Show HN: Clojure in the Open – simple tasks from open-source projects
I'd be perfectly happy with the current pink and a 'night mode' alternative (I wish more sites had this as an option).
aidanhs··on [dead]
The main reason I don't use Java is because of the (de-facto) tooling - maven in particular is completely opaque to me and seems very resistant to experimenting to figure out how it works (though I am having to work with deeply nested poms and custom plugins).

I've used build/release management/dep management tools from/like go, python, ruby, node, erlang, make, autotools and cmake and I've never before had to read a manual to tweak an existing setup.

Go is probably my favourite ecosystem because everything is very simple. I suspect Rust will be good as well.

aidanhs··on Parallel In-Place Merge Sort
> an out-of-place merge on a linked list would be pure madness

Absolutely. I'm not even sure how you would do such a thing.

I personally have found it interesting when considering the difference between an array of pointers and a linked list, simply because they both have the same overhead but one doesn't require allocating any more memory for a merge sort.

I basically agree with what you say (maybe bar it not being useful knowledge) but I don't think it's worth continuing trying to clarify my initial statement.

aidanhs··on Parallel In-Place Merge Sort
Hmm, I was thinking 'in-place' in the context of 'no extra memory needed'. Is this not correct?

For sure, if it doesn't make sense to use a linked list in the first place then linked list merge sort definitely doesn't make sense...

aidanhs··on Parallel In-Place Merge Sort
A stable in-place merge sort is actually reasonably easy to implement if you happen to be using a linked list - http://www.chiark.greenend.org.uk/~sgtatham/algorithms/lists...

I think it's interesting how choice of data structure affects algorithm characteristics.

aidanhs··on Reddit's Favorite Scientist Just Got Banned for Cheating the Site
> More broadly, the algorithm reddit uses is not only known wrong/buggy:

> http://technotes.iangreenleaf.com/posts/2013-12-09-reddits-e....

Reading that article, I get sent to https://github.com/reddit/reddit/pull/583 which contains https://github.com/reddit/reddit/pull/583#issuecomment-35440... which notes that the issue discussed has actually been fixed.

aidanhs··on Smashing Swift
There's a helpful bit of writing about garbage collection on http://sealedabstract.com/rants/why-mobile-web-apps-are-slow...

It boils down to there being a big performance penalty on garbage collection in memory-constrained environments.

aidanhs··on Guide to MongoDB for startups
This is still extremely inferior to modern RDBMSs which usually support row level looking.

I suppose row-level locking is a necessity when you want to be able to scale vertically. By comparison, I understand that MongoDB doesn't even try to support vertical scaling so it makes sense to not bother with complex locking systems.

Personally, I'd prefer to have to option of scaling without being forced to increase the number of moving parts in my single most important system (the database)...but the MongoDB docs make the fair point that there's a ceiling to vertical scaling. It's probably higher than most people think though.

As an aside, I discovered recently that Informix supports byte-level locks for 'smart large objects' (namely CLOBs and BLOBs). Makes me wonder whether field level locking will appear some day.

aidanhs··on Japan's radiation disaster toll: none dead, none sick
As noted in another comment, right now solar and wind are not a viable alternative. Hopefully in time, though I'm not sure it will ever be possible to completely do away with location-agnostic power generation (coal, nuclear).

> We can't manage nuclear waste.

But it is tightly regulated and under close scrutiny, unlike coal ash contamination.

← PreviousPage 4 of 4