Better HN
topnewbestaskshowjobs
Log inSign up

igorw

67 karma · joined Dec 8, 2010 (15y ago) · 24 submissions

Submissions

comment 8mo ago · link · parent

While Postgres did introduce skip scan in 18, it only works for equality matching: https://www.crunchydata.com/blog/get-excited-about-postgres-...

comment 9mo ago · link · parent

Another approach is to record at a lower level and then reconstruct the series of events, eg.g. https://engineering.fb.com/2021/04/27/developer-tools/revers...

comment 10mo ago · link · parent

Random but y'all might enjoy. Git client in PHP, supports reading packfiles, reftables, diff via LCS. Written by hand.

https://github.com/igorwwwwwwwwwwwwwwwwwwww/gipht-horse

4.

Incident Diagnosis in a Symptom-Based World(runbooks.gitlab.com ↗)

2 points · by igorw · 1y ago · discuss

5.

We diagnosed and resolved Redis latency spikes with BPF and other tools(about.gitlab.com ↗)

3 points · by igorw · 3y ago · discuss

6.

Go 1.17.5 and Go 1.16.12 are released(groups.google.com ↗)

2 points · by igorw · 4y ago · discuss

7.

An impatient SRE's guide to deleting alerts(gitlab.com ↗)

2 points · by igorw · 4y ago · discuss

8.

Here is my memcache killer written in go, mallocd(github.com ↗)

2 points · by igorw · 8y ago · discuss

9.

The OpsDev manifesto(gif.industries ↗)

2 points · by igorw · 10y ago · 1 comment

10.

Disrupting adtech with ad comments(gif.industries ↗)

2 points · by igorw · 10y ago · discuss

11.

Cryptocurrencies will save the world(gif.industries ↗)

2 points · by igorw · 10y ago · discuss

12.

A Docker-inspired Heroku clone in 100 lines of PHP(gist.github.com ↗)

60 points · by igorw · 10y ago · 32 comments

comment 12y ago · link · parent

FYI, here's the follow-up post. https://igor.io/2013/12/03/stack-machines-shunting-yard.html

comment 12y ago · link · parent

Hi, author here. Shunting-yard is actually what the next post in the series will be about. ;-)

15.

PlacePhant - an image placeholder featuring elephpants(placephant.com ↗)

2 points · by igorw · 13y ago · discuss

16.

Dependency Responsibility(igor.io ↗)

4 points · by igorw · 13y ago · 1 comment

comment 13y ago · link · parent

Without knowing too much about docker, service discovery over dns-sd and potentially mdns (aka bonjour/zeroconf) generally works quite well in a contained private network. And I would love to see a platform that supports it.

18.

Stack - Rack for PHP(stackphp.com ↗)

15 points · by igorw · 13y ago · 1 comment

comment 15y ago · link · parent

The reason why `this` is set to the window is because of the way the `this` keyword is bound in JavaScript. It is bound at call time.

If at call time it is being called on an object, it will have the value of that object. Otherwise it will have the value of window.

    var obj = { f: function () { return this; } };
    
    // returns the object
    obj.f()

    // returns window
    var f = obj.f;
    f();
What is happening here is that the setTimeout() calls the lambda at some later point, and it's no longer in the context of the object.

An alternate fix for the issue would be:

    var obj = (function () {
        var that = {};

        that.doSomethingLater = function () {
            setTimeout(function () { console.log(that); }, 1000);
        };

        return that;
    })();

    obj.doSomethingLater();
An article on the subject (that also talks about call and apply): http://www.robertsosinski.com/2009/04/28/binding-scope-in-ja...

comment 15y ago · link · parent

You've never tried to integrate two PHP projects, eh? As in: Whoops, you guys also have a class named "user"?

comment 15y ago · link · parent

API?

comment 15y ago · link · parent

Actually, phpBB 2.0.0 which was released in 2002 supported: IBM DB2, MS Access, MS SQL, MySQL3, MySQL4, Oracle... and Postgres 7.

But you are right, many of the other popular projects did not make this effort.

comment 15y ago · link · parent

Next up: "text-align: centaur" (http://textaligncentaur.com).

comment 15y ago · link · parent

> In JavaScript, there are two different ways to define a function: using the function expression and the function declaration statement, the latter having subtle restrictions. Move only has function expressions.

Except using named functions will also make your stack traces useful. Because function names tell you more than line numbers.