HNHacker News
TopNewBestAskShowJobs

alecthomas

464 karma · joined March 2, 2008

http://twitter.com/alecthomas http://swapoff.org http://github.com/alecthomas alec@swapoff.org

[ my public key: https://keybase.io/alec; my proof: https://keybase.io/alec/sigs/EwhDB5ZFYHetGQT4QBxryMKudydFlHx6vfI2ZbYaXTY ]

hnchat:M7diobfazxWsK0TZ9aVm

submissionscomments
alecthomas··on Docker not ready for primetime
Yes, agreed 100%.

Also, the CoW disk volume they use basically grows unbounded, even if you purge layers and old containers.

alecthomas··on Creator of Raft Algorithm introduces LogCabin
There are at least two Raft libraries for Go, so they do exist.
alecthomas··on Travis CI: From Open to Minimum Vacation Policy
Twitter also had this policy when I worked there (two years ago) and I thought it was really poorly thought out. Apart from all of the (relatively obvious) issues mentioned in the post, any vacation at Twitter was at the discretion of your immediate manager. So if you happened to have a hard-arse manager, or one who hated you, tough luck. Really a bad idea.
alecthomas··on Goop – Dependency Manager for Go
Config file is nicer than godep; easily generated with a bit of shell. Quite nice.
alecthomas··on Searchcode: A source code search engine
A better solution would probably be to just rank exact matches higher.
alecthomas··on Introducing Swift
It'll never catch C++ [1]

[1] http://stackoverflow.com/questions/23980929/what-changes-int...

alecthomas··on Systems Programming at Twitter (2012)
That is correct. The service discovery is called ServerSets and is available here: https://github.com/twitter/commons/blob/master/src/java/com/...
alecthomas··on Apache Wave
It's very similar, just slicker with, as you say, better document and snippet sharing.
alecthomas··on Show HN: ffjson: faster json serialization in Go
Nice hack (in the hacker sense), but not exactly convenient.
alecthomas··on [dead]
92K needed. There are only 8K signatures. Though that's still surprising.
alecthomas··on Developing Service Oriented Architectures
That first video is really interesting. It seems very reminiscent of a distributed tuple space architecture [1].

[1] http://en.wikipedia.org/wiki/Tuple_space

alecthomas··on No JSON/MAPS interoperability in 17.0?
Agreed. And further to this, unless the JSON is indented for humans (not common) you still need a tool to format it. So if you're using a tool anyway, you could just as easily have used a binary format.
alecthomas··on Bram Moolenaar responds to Neovim
Man, I loved Commandos 1 back in the day. I recently got a bit nostalgic and bought the whole series on Steam, and they are still great games! But MAN are the controls opaque. Thinking back, I think the game came with a little cardboard sheet with all the controls on it, which would have been easier to deal with.

Fantastic game though, thanks :)

alecthomas··on Node.js and the Road Ahead
I think the XOrg fork from XFree86 is the best example I can think of.
alecthomas··on A JavaScript parser and interpreter written in Go
At least two concrete reasons:

1. No cgo required. 2. Portable to any platform Go runs on that V8 doesn't.

alecthomas··on A simple starting point for 2D JavaScript games
I wouldn't personally call Crafty "huge", but it certainly is monolithic in the sense that the bundle comes with two renderers, input management, game loop, sound, entity-component system, and so on. Which is a bit, ironic given the main goal of ECS is to decouple systems.

IMO it would be a much nicer library if it was just the ECS, with add-on modules for rendering, sound, etc.

alecthomas··on Show HN: GlyphSearch – Search for icons from Font Awesome, Glyphicons, Ionicons
How serendipitous. I'm heavily using Font Awesome at the moment, and finding the right search terms to use has been kind of frustrating. Not super frustrating, but this will definitely save me time!

PS. Might I suggest adding Font Awesome More? [1] I'm not sure it is still maintained, but it has a bunch of very nice icons that the base Font Awesome doesn't.

[1] https://www.riversports.com/hg/plugins/font-awesome-more/doc...

alecthomas··on Ask HN: How much recurring income do you generate, and from what?
It's unwatchable for me too. It appears to be buffering fine (I see the gray buffering bar quite a bit ahead), but just stalls and stutters quite a lot.
alecthomas··on ZooKeeper vs. Doozer vs. Etcd
The story of Doozer is a classic example of how not to steward an open source project.

It was released by two Heroku engineers who promptly completely abandoned it. By completely I mean did not respond to any communication whatsoever for a year or so, despite a very active community that had sprung up around the project in terms of users and forks. I don't begrudge them their lives (or whatever drew them away), but there were people/companies willing and able to take over maintenance, but not even that happened. It probably would have taken just a few hours to hand over maintainership. Instead, just radio silence.

Eventually there was some movement and the most active group of fork maintainers were given commit access, but by that time any enthusiasm over Doozer was long dead and gone.

alecthomas··on Power outages caused by squirrels
I used to work at a large telco in Australia, and one of the most infamous support tickets in the system had the summary "Bird attack at the Hellfire club".

The Hellfire club is a BDSM club in Melbourne, and apparently a bird had attacked the cabling leading into the building, bringing down the phone systems.

alecthomas··on Flynn - Open Source PaaS powered by Docker
In dynamic clusters like Flynn this could be solved with a naming service. Typically this will be implemented on top of something like Zookeeper or Doozer.

Another option could be to use Go DNS [1] to integrate a DNS server directly into the cluster. This would allow the DNS records to immediately reflect the state of the cluster, using SRV records to map directly to the dynamically allocated hosts + ports. DNS resolver caching would have to be carefully managed though.

I have no idea whether there any plans to implement a naming service on top of Flynn.

[1] https://github.com/miekg/dns

alecthomas··on Systemd is not portable and what this means for our ports
It hosed my machine. The problem was I hadn't upgraded in a while, so when I did upgrade some of the hacks they had in place to upgrade seamlessly no longer worked due to library incompatibilities. Even the Arch IRC channel couldn't help :(
alecthomas··on Valve releasing Dota2 for Linux
It may not be quite as dire as you suspect. Firstly, system specs in games are always specced higher than you need in reality. Secondly, Linux OpenGL driver quality varies wildly, which is why they list only the two big vendors. IIUC Intel Linux drivers are actually quite good, so you may be in luck. I would reserve judgement.
alecthomas··on Clang: C++11 support is now feature-complete
Have you tried the November 2012 CTP [1]? It purports to add support for variadic templates, among other things.

[1] http://www.microsoft.com/en-us/download/details.aspx?id=3551...

alecthomas··on C++11 compiler support shootout: Visual Studio, GCC, Clang, Intel
Variadic templates and auto, definitely. The former gives you the flexibility of macros with type safety, and the latter just saves time :)
alecthomas··on C++11 compiler support shootout: Visual Studio, GCC, Clang, Intel
Sorry, rereading my post I realise I omitted some text (I was on my phone), and shouldn't have said "ABI incompatible". What I meant to say was that the C++11 versions of both libstdc++ [1] and libc++ [2] are effectively incompatible with the C++98 version of libstdc++. The main point still stands: you effectively can not link against libraries using different versions of the C++ standard unless you're very lucky.

[1] http://gcc.gnu.org/wiki/Cxx11AbiCompatibility [2] http://stackoverflow.com/questions/12542971/using-libstdc-co...

alecthomas··on C++11 compiler support shootout: Visual Studio, GCC, Clang, Intel
I recently wrote an entity-component framework [1] for C++ using a bunch of C++11 and it was really quite enjoyable. At the time, VC++ didn't support variadic templates which was a bummer, but they've since released a feature pack with it. It's great to see adoption coming along so quickly.

[1] https://github.com/alecthomas/entityx

alecthomas··on C++11 compiler support shootout: Visual Studio, GCC, Clang, Intel
I can't be sure, but the fact that libstdc++ is ABI incompatible with the current stdlib probably doesn't help adoption and thus usage and testing. If you want to use libstdc++ every dependency must also be compiled against it, including any system packages.
alecthomas··on Python command line oneliners
I recently wrote PAWK (https://github.com/alecthomas/pawk) in order to give me Python at the command line. It's exactly what you think it is: Python AWK.

It's served me well so far.

alecthomas··on It is cheaper to fly to US than buy Adobe software in Australia
Australian law explicitly allows for consumers to circumvent region locking. Of course, this doesn't mean this can't change, but at least there's explicit precedent allowing it.

Quote from the Attorney General's department:

“An access control TPM specifically excludes TPMs which control geographic market segmentation. This means that consumers will be able to circumvent the region coding TPMs on legitimate DVDs purchased overseas. It also allows for the continued availability of region-free DVD players.”

TPM is a term from the US/Australian Free-Trade Agreement.

More information: http://www.smh.com.au/digital-life/computers/blogs/gadgets-o...

← PreviousPage 5 of 7Next →