HNHacker News
TopNewBestAskShowJobs

kalmar

475 karma · joined June 2, 2010

http://kamalmarhubi.com/
submissionscomments
kalmar··on Rust and Nix = easier Unix systems programming
This project looks really cool! I'm very curious to find out more about how you make sure constants are correct across platforms and architectures. I will be poking around!
kalmar··on Rust and Nix = easier Unix systems programming
Author here. This is a really valid criticism of the post, and I think it'll inform the next post I write on the topic. Thanks!
kalmar··on Docker 1.11: The first OCI-compliant runtime, built on containerd
I was almost excited! From the FAQ on the project you linked [0]:

> Q: Why doesn't this project mention distribution?

> A: Distribution, for example using HTTP as both Docker v2.2 and AppC do today, is currently out of scope on the OCI Scope Table. There has been some discussion on the TOB mailing list to make distribution an optional layer but this topic is a work in progress.

I really hope CoreOS manage to get distribution into the scope for OCI. We need to move beyond Docker images. Standardizing on-disk layout in OCI is only mildly useful in my opinion.

[0] https://github.com/opencontainers/image-spec#faq

kalmar··on What Web Can Do Today
This is pretty great! Looking forward to more service worker support for more offline and push notifications.
kalmar··on I Want to Run Stateful Containers, Too
I'm not sure of the current status, but I believe the mechanism would be to label nodes with rack information. You'd then be able to specify anti-affinity constraints based on those labels that would be taken into account by the scheduler.

Edit: browsing issues briefly, I don't think this functionality is available just yet. Discussion of node selectors: https://github.com/kubernetes/kubernetes/issues/341#issuecom... -

kalmar··on Kubernetes from the ground up: the API server
I don't really know what the alternatives are. I'm hoping by the end of this series to convince at least myself that it's reasonably to run for personal projects.
kalmar··on Kubernetes from the ground up: the API server
My main resource is probably time. I read all the documentation when Kubernetes was first announced, and reread it when they were coming up to 1.0. I've also been following the proposals and issues a little. I've also got a clone of the codebase and read bits to make sure I'm understanding what goes on.

But yeah, it's a really fast moving project with a lot of moving parts, and I'm still not on top of everything!

kalmar··on Kubernetes from the ground up: the API server
> But, in return for being more low-level, you can run things that are simply impossible in a declarative system like Kubernetes.

Can you give an example? I know next to nothing about Mesos, Aurora, or Marathon.

kalmar··on What is a kubelet?
Could you give some examples of places you mean?
kalmar··on What is a kubelet?
The really easy part is it can happily run Docker containers:

    $ sudo bin/rkt --insecure-skip-verify run --interactive docker://busybox
    rkt: fetching image from docker://busybox
    Downloading cf2616975b4a: [====================================] 32 B/32 B
    Downloading 6ce2e90b0bc7: [====================================] 1.15 MB/1.15 MB
    Downloading 8c2e06607696: [====================================] 32 B/32 B
    2015/08/28 12:15:24 Preparing stage1
    2015/08/28 12:15:25 Writing image manifest
    2015/08/28 12:15:25 Loading image sha512-9d710100ce6769569b12a39100318bfed5b6b98115ee6315b724c11658db3751
    2015/08/28 12:15:25 Writing pod manifest
    2015/08/28 12:15:25 Setting up stage1
    2015/08/28 12:15:25 Wrote filesystem to /var/lib/rkt/pods/run/e3cbf309-5f03-4ce4-b098-597b5ec3e040
    2015/08/28 12:15:25 Pivoting to filesystem /var/lib/rkt/pods/run/e3cbf309-5f03-4ce4-b098-597b5ec3e040
    2015/08/28 12:15:25 Execing /init
    / # ls -l $(which ls)
    lrwxrwxrwx    1 root     root             7 May 22  2014 /bin/ls -> busybox
    / # exit
    Sending SIGTERM to remaining processes...
    Sending SIGKILL to remaining processes...
    Halting system.
The `--insecure-skip-verify` is to disable the GPG verification that rkt does for its native ACI container format. Beyond that, take a look at `rkt help run` and poke around.
kalmar··on What is a kubelet?
Thanks for those links. I'll definitely watch the first one to get an idea for organising the later posts.

And yeah, pods are a great idea. I came across mtail [0], an awk-like language for tailing logs and turning them into metrics. Putting that in a pod with uninstrumented serving components will be fun!

[0] https://github.com/google/mtail

kalmar··on What is a kubelet?
Author here. Yeah, I'm hoping to use rkt instead of Docker when I actually put this all together. Docker wins for familiarity though, plus is the kubelet's default hence using it for this post.
kalmar··on Advantages of Monolithic Version Control
> Google is using a Perforce lookalike that is not actually Perforce, but they're moving to Mercurial.

Do you have a source for this move to mercurial? This is the second time I've heard it, but couldn't find a source before.

kalmar··on Abstraction without overhead: traits in Rust
What is the representation for a type like Box<Reader+Writer>? Is there an extra indirection to get each of the vtables? Is there synthesized combined trait type and just one vtable pointer?
kalmar··on The Architecture of Open Source Applications
It's from a more recent addition to the series, focused on performance. I reviewed that chapter and it's very well written.
kalmar··on When REST Gets Messy
For those interested in this issue, check out JSON API's compound documents [0], and how to specify inclusion [1].

[0] http://jsonapi.org/format/#document-structure-compound-docum...

[1] http://jsonapi.org/format/#fetching-includes

kalmar··on Dear-sir-or-madam: a bookmarklet that transforms web pages into ransom notes
Yeah me too. For those who haven't checked it out yet, here's a screenshot of HN as a ransom note: http://i.imgur.com/Io2bqof.png
kalmar··on ICFP Programming Contest 2013 – pre-registration required
Yeah, unfortunate. But we'll have sprints...
kalmar··on Intel’s “Iris” wants to change how you feel about integrated graphics
As they have been for most of the last decade. Here's hoping this time they do. :)
kalmar··on Probably the worst URL scheme ever
I believe it's a continuation-style server—hence fnid: function id—and the continuations are only kept around in memory for ~5 minutes.
kalmar··on Extract and structure unformatted data without prior system training
This reminds me of Needlebase from ITA before they got swallowed by Google. Needlbase had a bit less magic and a bit more data modelling, judging by that little demo.

Video tour: http://www.youtube.com/watch?v=58Gzlq4zSDk

kalmar··on Balancer Battle – Load testing HAproxy, Nginx and HTTP-Proxy's WebSocket support
You could use cluster compute instances which use hardware virtualisation, and I think gives you the whole machine. With spot pricing, you could run them for about 21¢ an hour.
kalmar··on Web Framework Benchmarks Round 2
One idea that jumps to mind is putting the running frameworks in an LXC container (or similar) and monitoring the memory usage of that. Not sure how accurate that is, but it's one avenue. It also still might not be fair because some runtimes can let their heap get pretty big despite not actually needing the memory. You'd want a way to differentiate those from the ones with big heaps that would choke with some memory pressure.
kalmar··on Never Lock Your Cell Phone
I had no idea about this. Thanks! Any thoughts on what to put in there? I just added ‘if found please email ...’ but it could perhaps be improved.
kalmar··on Docker - the Linux container runtime
More than this, Ubuntu are trying to remove it from their distribution in favour of overlayfs [0]. As mentioned there, the reason is that aufs is not and will not be part of the mainline kernel. Precise 12.04 was going to be without AUFS, but some issues cropped up, keeping it around.

It now looks like overlayfs will make it into the 3.10 mainline kernel [1], so it may be a better choice in the future. I think that the Under the hood stuff on docker's page are implementation details that can change, so a switch to overlayfs when that becomes more suitable could be possible. (Confirmation from the dotClouders present would be apprecaited.)

[0] https://lists.ubuntu.com/archives/ubuntu-devel/2012-February...

[1] http://lwn.net/Articles/542707/

kalmar··on Alleged Google Nexus 5 Image Leaked Online
> The LG Nexus 5 device features a _5.2_-inch OLED display at 1080p resolution.

I hope that's a typo.

kalmar··on Show HN: QR Codify, The Most Useful Snippet I've Ever Written
You can do this if you use Chrome on your phone, and are signed in with sync enabled. The tabs on your phone are accessible from the 'New Tab' page on you desktop and vice versa. On desktop Chrome, there's a little 'Other Devices' drop down at the bottom; on Chrome for Android, there's a button with a pair of arrows at the bottom right.
kalmar··on Sexism and PHP
I came across this:

http://storify.com/elazar/sexism-and-php

kalmar··on An Atheist's Glimpse of God
Tip for the impatient: click 'Start' multiple times for a shorter ten minutes.
kalmar··on Command Line Accounting With Ledger and Reckon
I used ledger for a few months last year, tracking transactions in five or six currencies. I haven't used another system so I can't compare, but ledger seemed to handle things very well. For foreign credit card transactions, you can do things like:

    2012-05-22=2012-05-18 * B&H Photo Video
        Expenses:Electronics:Camera:Charger   USD 37.02 @@ CAD 38.76
        Liabilities:Visa
to specify the purchase amount and the amount that appeared on the card. It keeps track of the exchange rate at each such transaction, and can generate a price history from them. I was even able to enter an ATM withdrawal with fees at both ends fairly easily:

    2012-03-12 * Withdrawal
        Assets:Cash                           USD 500.00
        Expenses:Banking:Fees                   USD 2.50
        Assets:Bank:Chequing                 CAD -511.19
        Expenses:Banking:Fees                   CAD 2.00
        Assets:Bank:Chequing                   CAD -2.00
The concept of "currency" is pretty open in ledger. I even started using it to track tickets on my transit card for a while, with things like

    2012-04-18=2012-04-17 * STM 10 tickets
        Assets:Opus Card                      10 STM @@ CAD 24.00
        Liabilities:Visa
followed by withdrawals from the card when I took trips. (This turned out not to be a very good use of time.) You could track stocks in a similar way.

Hope that helps. You might also want to look up ledger and gnucash, as I think ledger can read gnucash files. You'd be able to test ledger out with "production" data.

← PreviousPage 2 of 3Next →