Better HN
topnewbestaskshowjobs
Log inSign up

ssp

3,341 karma · joined Dec 24, 2009 (16y ago) · 528 submissions

Søren Sandmann Pedersen (soren.sandmann@gmail.com)

http://ssp.impulsetrain.com

Submissions

comment 1y ago · link · parent

In a figure-8 path where the intersection is in the center of a pixel, does Rasterizer set that pixel to 0.5 or to 0?

comment 3y ago · link · parent

http://ssp.impulsetrain.com/

comment 7y ago · link · parent

> If we assumed a radially symmetric kernel, then coverage would just be some monotonic function of the distance from the pixel center to the edge

I don't think that's true. Consider a simple case where the shape is a square and you are sampling in such a way that the closest edge point is closer to a corner of the square than the filter width. Using a function of distance you will get the same result as when sampling far from the corner. But the coverage is different in the two cases.

4.

Macy's Christmas Gift Ideas 2016(macys.com ↗)

1 points · by ssp · 9y ago · discuss

comment 11y ago · link · parent

The equivalent in Oort produces:

    localhost:~/oort/examples% ../oort callcc2.nl 
    2
    1
as expected since Oort uses heap allocated activation records.

The Oort program:

    typedef continuation_t = fn (p: int32) -> void;
    
    call_cc (fun: fn(k: continuation_t) -> void) -> int32
    {
        retval: int32;
    
        fun (fn (v: int32) -> void {
            retval = v;
            goto current_continuation;
        });
        
        // If fun returns without calling the continuation,
        // then just return 0
        return 0;
    
    @current_continuation:
        return retval;
    }
    
    x: int32 = 0;
    
    print call_cc (fn (k: continuation_t) {
        x = 1;
        k (2);
        });
    
    print x;

comment 11y ago · link · parent

Does copying the stack really work? What if some local variable changes in between the call/cc and calling the continuation? If the stack is a copy, that change will not be reflected when the continuation runs.

comment 11y ago · link · parent

If you generalize labels so that they become first class, then call/cc can be written in terms of goto. http://ssp.impulsetrain.com/goto.html

comment 13y ago · link · parent

Do you have plans to make money off of this?

9.

AVX-512 Instructions(software.intel.com ↗)

3 points · by ssp · 13y ago · discuss

10.

Celebrities die 2.7218 at a time(ssp.impulsetrain.com ↗)

3 points · by ssp · 13y ago · discuss

comment 13y ago · link · parent

It won't work on modern Linux with modern CPUs because the array will not be in an executable mapping.

comment 13y ago · link · parent

> But unfortunately, it is probably a billion users too late to start again from scratch.

A potentially interesting way around this is to make the client open source and get it shipped by all the Linux distributions. That would give application developers an initial audience which would help solve the chicken-and-egg problem.

comment 13y ago · link · parent

That would be my take anyway. A big issue with Java is that it required installing a huge standard library - that should just be downloaded as required. And flash was never really intended for applications; it was always about "rich content". And Air (the application framework built on flash) has the problem that it's proprietary so you have to trust Adobe.

comment 13y ago · link · parent

This one is even better: http://www.hnsearch.com/search#request/all&q=%22like+say...

15.

"that would be like a car"(google.com ↗)

11 points · by ssp · 13y ago · 4 comments

comment 13y ago · link · parent

- GTK3 uses the triangle technique

GTK+ uses the triangle technique along with a delay of 225 ms. When the pointer is inside the triangle, the delay is 1500 ms.

Firefox subscribes to the misguided "fake the look and feel of the default toolkit" idea, so on Linux it has a 225 ms delay, but without the triangle. Unfortunately 225 ms is way too short when there is no triangle.

comment 13y ago · link · parent

A camera might produce a pixel by computing the average light input over a square, and in that sense you could consider the pixel itself a square.

But in signal processing you interpret it as a two step procedure: First, for every mathematical point of the scene, compute the average light input of the surrounding square to produce a band limited signal. Second, for every pixel report the value at the corresponding point in the band limited image.

The first step is filtering (in this case with a box filter), the second is point sampling.

comment 13y ago · link · parent

The person who owns http://nissan.com/ has somehow against all odds managed to hang on to it.

comment 13y ago · link · parent

I suspect there is some incoherent thinking about the BSD license. If you are a BSD advocate, consider this:

Someone takes a BSD project and bases a proprietary program on it. Is that person doing something wrong? Well, no, you say, because that's the whole point of the BSD license. It's also fine to keep rolling in new versions of the BSD project.

Now suppose someone takes a BSD project and relicenses it under the GPL, announces it on the internet, gets it into all the Linux distributions, and starts soliciting contributions of new GPL-only features while also rolling in new versions of the BSD project as they become available. Is that person doing something wrong?

I suspect that a calm, "No, that's also great. That's why we made it available under BSD." would not necessarily be the response.

comment 14y ago · link · parent

Also worth reading Bruce Tognazzini on Magic and Software Design:

http://www.asktog.com/papers/magic.html

12345
18