eiriklv

Joined 12 years ago

Karma
171
Submissions
106
Member since
Apr 29
www.vullum.io
View on Hacker News

Recent submissions

Comment · 2 months ago
The whole post is AI-generated..?
Comment · 2 months ago
High SHBG and lower free hormones isn't a good thing usually. Starving and anorexia (as an example) can make your SHBG levels skyrocket, resulting in low free hormone levels.
Comment · 8 months ago
Is this a bot? I feel like HN is dying (for me at least) with all the em-dashes and the "it's not just X, it's Z".
Comment · 10 months ago
Why does it produce different ticks and em-dashes?
Comment · 2 years ago
Comment · 2 years ago
In Rick voice: Well, that just sounds like generators with extra steps..
Comment · 2 years ago
A bit on the side:

Stream processing of data is nicer using a declarative approach. Though I've found that describing control flow is often more intuitive using an imperative approach. It's a shame that redux-saga got tied to react/redux, because the idea of generators and declarative effects are universal - useful on both backend and frontend.

Comment · 2 years ago
I feel you - Python has much better (more flexible) argument support than JavaScript in this case. Converting the entire set of arguments into a keyed object is usually what happens, but then it wouldn't look like PyTorch anymore.
Comment · 2 years ago
Edit: Great work! I'd love to have a nice alternative to PyTorch in JavaScript :)

Edit: formatting

Making JavaScript look like Python in this case could potentially bite you in the ass.

From the example:

    const torch = require("js-pytorch");

    // Instantiate Tensors:
    x = torch.randn([8,4,5]);
    w = torch.randn([8,5,4], requires_grad = true);
    b = torch.tensor([0.2, 0.5, 0.1, 0.0], requires_grad = true);

And:

    class Transformer extends nn.Module {
      constructor(vocab_size, hidden_size, n_timesteps, n_heads, p) {
        //.....
        this.b1 = new nn.Block(hidden_size, hidden_size, n_heads, n_timesteps, dropout_p=p);

For both `requires_grad` and `dropout_p` you wouldn't be able to change the ordering + you're creating global variables.

    /**
     * All of the arguments for this function are positional
     * and cannot be provided in a different order than defined
     */
    function performOperation(values, arg1 = false, arg2 = -1) {
        //....
    }

    /**
     * This works, but only because of the order
     */
    const result = performOperation([1, 2, 3], arg1 = true, arg2 = 10);

    /**
     * This does not work
     */
    const result = performOperation([1, 2, 3], arg2 = 10, arg1 = true);

    /**
     \* What is actually happening
     \*/
    arg1 = true; // global variable
    arg2 = 10;   // global variable

    const result = performOperation([1, 2, 3], 10, true);
Comment · 3 years ago
It also helps to use the default resolution to avoid supersampling/anti-aliasing effects.
Comment · 3 years ago
Comment · 4 years ago
Comment · 5 years ago
Another lefty here - same issue. Did the pre-order long ago. I’m back to pen and paper as I could not tolerate it. It would be great if it was possible to calibrate it somehow, by hack or not. I’ve kept it in case such a solution surfaces.
Comment · 5 years ago
How much of the insulin is used for type 1 vs type 2?

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton