HNHacker News
TopNewBestAskShowJobs

eutectic

844 karma · joined October 6, 2014

submissionscomments
eutectic··on The Stupidity of AI
What a shallow and ignorant article.
eutectic··on Three Logicians Walk into a Bar
Then no.
eutectic··on Three Logicians Walk into a Bar
Did you use the GPT4 version?
eutectic··on U.S. food additives banned in Europe
And how much bromate (and nastier compounds) occurs naturally in vegetables we eat?
eutectic··on U.S. food additives banned in Europe
Bromate should decompose to bromide during baking. I wouldn't worry too much.
eutectic··on The dangers behind image resizing (2021)
Box filtering should be pretty cheap; it is separable, and can be implemented with a moving average. Overall just a handful of operations per pixel.
eutectic··on Disinfection with Far-UV (222 nm Ultraviolet light) (2020) [pdf]
I think it's extremely unlikely that rates of illness have gone up.
eutectic··on An interactive explanation of quadtrees (2014)
Something adaptive. Maybe AABB trees depending on the context.
eutectic··on Disinfection with Far-UV (222 nm Ultraviolet light) (2020) [pdf]
Can you expand on this enigmatic comment?
eutectic··on Disinfection with Far-UV (222 nm Ultraviolet light) (2020) [pdf]
It's a myth that household dust is mostly skin cells. It only makes up a small percentage.
eutectic··on An interactive explanation of quadtrees (2014)
I feel like quadtrees are almost never the best data structure for a given problem. The rare exception being HashLife.
eutectic··on Show HN: Kuboble.com – Minimalistic sliding pieces puzzle game
I think square, circle, octagon would make the most sense. Or maybe diamond (rotated square) instead of octagon. That way adjacent stone would always touch.
eutectic··on Show HN: Kuboble.com – Minimalistic sliding pieces puzzle game
orange down

green right

orange right

green down

green left

green down

orange left

green up

eutectic··on Best and worst decisions I’ve made
I think it's more the case that the benefits of flossing haven't been studied much, not that it's been thoroughly investigated and found not to work.
eutectic··on Palindromic Rolling Hash (2016)
If you use binary search on the length of the substring then you can get to n log(n) expected time, independent of the input distribution.
eutectic··on Against Method
There are many effective medicines for which the mechanism is unclear or disputed. Should we stop using them?
eutectic··on Show HN: I made a pretty relaxing puzzle game
An actual solver in Python:

    import numpy as np
    from mip import Model, xsum, minimize, BINARY

    def solve(tiles):
        rotations = [[[] for _ in row] for row in tiles]
        rot_vars = [[[] for _ in row] for row in tiles]
        model = Model("rotaboxes")
        for i, row in enumerate(tiles):
            for j, tile in enumerate(row):
                for _ in range(3):
                    tile = tile.transpose((1, 0, 2))[::-1]
                    rotations[i][j].append(tile)
                    rot_vars[i][j].append(model.add_var(var_type=BINARY))
                model += (xsum(rot_vars[i][j]) == 1)
        costs = []
        for i, row in enumerate(tiles):
            for j, tile in enumerate(row):
                for (di, dj) in [(0, 1), (1, 0)]:
                    if (i + di >= len(tiles)) or (j + dj >= len(tiles[0])):
                        continue
                    for r0, t0 in enumerate(rotations[i][j]):
                        for r1, t1 in enumerate(rotations[i + di][j + dj]):
                            if di:
                                a, b = t0[-1], t1[0]
                            else:
                                a, b = t0[:,-1], t1[:,0]
                            n = np.square(a - b).mean()
                            d = np.square(a[1:] - a[:1]).mean() + np.square(b[1:] - b[:1]).mean()
                            e = 2. * n / (d + 0.01)
                            v = model.add_var(var_type=BINARY)
                            model += (v >= rot_vars[i][j][r0] + rot_vars[i + di][j + dj][r1] - 1)
                            costs.append(e * v)
        model.objective = minimize(xsum(costs))
        model.optimize()
        solution = [[[r for v, r in zip(vs, rs) if v.x >= 0.99][0] for vs, rs in zip(row0, row1)] for row0, row1 in zip(rot_vars, rotations)]
        return solution
eutectic··on Researchers thought this was a bug (Borwein integrals) [video]
I guess it's a Gaussian, by the central limit theorem.
eutectic··on Only virgin type of olive oil consumption reduces the risk of mortality: study
I believe that the question of whether saturated fat is unhealthy is still an open question.
eutectic··on GET3D: A Generative Model of High Quality 3D Textured Shapes Learned from Images
You can optimize the poses as part of the model.
eutectic··on GET3D: A Generative Model of High Quality 3D Textured Shapes Learned from Images
I have my doubts that this will converge to anything meaningful.
eutectic··on Volvo is using Rust for its in-vehicle software
I think it's supposed to be a bit scary, so you pay extra close attention.
eutectic··on Heavier cars are safer for their drivers, but far deadlier for everyone else
If you have insurance-based healthcare then you need some mechanism to prevent a death spiral.
eutectic··on The dumbest way to solve a maze [video]
No, free molecular flow is a very different regime with very different behavior.
eutectic··on Learn time series with a story illustrated by Stable Diffusion
Not to be rude, but I found it a bit infantilizing. I would rather just have the information.
eutectic··on Things I Won't Work With: Azidoazide Azides, More or Less (2013)
Mercaptans sound like a terrible rocket fuel; heavier than carbon, with less energy released.
eutectic··on Things I Won't Work With: Azidoazide Azides, More or Less (2013)
I think the energy in TNT mostly comes from the desire of carbon and hydrogen to join forces with the oxygen, which has a much higher activation energy than nitrogen leaving of its own accord.
eutectic··on A Regular Expression Matcher (2007)
I don't know about beautiful, but I just came up with this small NFA matcher for the same problem:

    #include <stdlib.h>
    #include <string.h>

    int match(char* regex, char* text) {
        int n = strlen(regex);
        char* active = calloc(n + 1, 1);
        char* next_active = calloc(n + 1, 1);
        active[0] = 1;
        int found = 0;
        int anchor = regex[0] == '^';
        regex += anchor;
        do {
            for (int i = 0; i <= n; i++) {
                if (!active[i])
                    continue;
                if (regex[i] == '\0') {
                    found = 1;
                    goto DONE;
                } else if (regex[i + 1] == '*') {
                    next_active[i + 2] = 1;
                    if (regex[i] == '.' || regex[i] == *text)
                        next_active[i] = 1;
                } else if (regex[i] == '$' && regex[i + 1] == '\0') {
                    found = *text == '\0';
                    goto DONE;
                } else {
                    next_active[i + 1] = regex[i] == *text;
                }
            }
            char* tmp = next_active;
            next_active = active;
            active = tmp;
            active[0] = !anchor;
            memset(next_active, 0, n + 1);
        } while (*text++ != '\0');
    DONE:;
        free(active);
        free(next_active);
        return found;
    }
eutectic··on Nvidia Kaolin Wisp: a PyTorch library to work with neural fields
A neural network mapping spacetime coordinates to output values.
eutectic··on Cast iron leet
Reactive elements make stable compounds. e.g. sodium + chlorine -> sodium chloride.
← PreviousPage 3 of 15Next →