HN user

dimava

114 karma
Posts1
Comments65
View on HN

1. Owning your own company stock is not having money, it's merely ability to control the company. Elon tries to be BDFL of his companies, so selling the stock is not really an option.

2. Stock valuation and money are not the same thing. As you could've noticed from the recent Bitcoin price drop, the moment you start selling it it starts to worth less. Tesla is bubble-priced, so it's sell price is at least 5 times less then valuation

3. Even if you get the money, distribution is much harder problem then you think after agreeing with this sensense. IIRC it was Musk who said "So you say you can fix the world hunger for $nnn? Bring me the plan how you are going to do it. Noone brought me a plan so far".

Since I know russian well, here's a proper translation for y'all

    FUNC FACT (N);
       NAMES: P;           (* variable names *)
       1 -> P;
       FOR I FROM 1 TO N ::
          P * I -> P
       DONE                (* endif *)
    RET: P                 (* return value *)
    END;                   (* end of function *)
    
    FOR N FROM 0 TO 6 ::
       ? "FACT(", N, ") = ", FACT(Н)   (* print *)
    DONE;

The amount of compute you get is not documented anywhere.

Cursor docs do say "You get $70 of api priced tokens on $60 tier"

Anthropic limits were 8.33x with free cached tokens, but those numbers themselves were a leak rather then an official statement

TypeScript 6.0 RC 5 months ago

And then you have a

    const CatDog = { bark(){}, meow(){} }
and
    const TreeCat = { bark: "oak", meow(){} }
and your code stops working

To make types discriminatable you need either

    type A = { bark: fn, meow?: never } | { bark?: never, meow: fn }
    type B = { species: "dog", bark: fn } | { species: "cat", meow: fn }
    or use instanceof with a class

Just to reiterate

ANTHROPIC IS GIVING EVERY DECENTLY LARGE MAINTAINER $1000 WORTH OF INFERENCE (~x8 that in API prices)

They likely made a marketing budget for this of $1M or so

Other OSS stuff like Copilot or JetBrains costs to providers much less, $100/yr most (licenses are not expenses, only inference is)

Anthropic may get $500(average total for all 6mo) per user of just inference costs

6 months is because this is experimental and they have no idea what to expect

(their devrel department is meh as you could've noticed already), when they see it working they'll make it autorenew or something

ESR (Eric S.Raymond) asked OpenAI to match and got one, so the same offer from OpenAI will likely follow soon[tm]

Open source models costs are determined only by electricity usage, as anyone can rent a GPU qnd host them Closed source models cost x10 more just because they can A simple example is Claude Opus, which costs ~1/10 if not less in Claude Code that doesn't have that price multiplier

Tokens will cost same on Mac and on API because electricity is not free

And you can only generate like $20 of tokens a month

Cloud tokens made on TPU will always be cheaper and waaay faster then anything you can make at home

When other models would grep, then read results, then use search, then read results, then read 100 lines from a file, then read results, Composer 1 is trained to grep AND search AND read in one round trip It may read 15 files, and then make small edits in all 15 files at once

DeepSeek on GPUs is like 5x cheaper then GPT

And TPUs are like 5x cheaper then GPUs, per token

Inference is very much profitable

Different Clocks 12 months ago

Can you make a variant for relative passing time?

You probably barely remember anything up to around 10, and then each doubling of age adds one logarithmical unit

So 10 is 1, 20 is 2, 40 is 3 and 80 is 4 (or maybe 0, 1 and 2?)

20 is already half of life passed by -_-

Edit: it got fixed, thanks to the author

I think with majority of TypeScript projects using Prettier, 2 is more likely to be the default[0]

The linked page literally says to ignore it [1]

STOP READING IMMEDIATELY THIS PAGE PROBABLY DOES NOT PERTAIN TO YOU These are Coding Guidelines for Contributors to TypeScript. This is NOT a prescriptive guideline for the TypeScript community.

4 is a historical thing used as a default for all languages in VSCode [2]

[0] https://prettier.io/docs/options#tab-width

[1] https://github.com/microsoft/TypeScript/wiki/Coding-guidelin...

[2] https://github.com/Microsoft/vscode/issues/41200

Edit: found the TS style guide at https://github.com/basarat/typescript-book/blob/master/docs/... , it should be the correct link

P.S. did send a mail to author hopefully they fix it

Specifically for Linus Torvalds, the author or Linux

He has a very distinctive style and large amount of training data from all the reviews and emails he made while collaborating on Linux

And as he manages a huge project that's in development for decades, he has to be very strict about the quality

I'm 50% sure adding a "Install offline app" button that installs PWA would be enough to make them believe otherwise

Add a "Check for updates" button that redirects to chamgelog page in browser for extra points

Hue is a cyclic value, so it has to be in degrees

Chroma cap is dependent on Lightness and Hue, so it has to be unsized to preserve "equal delta leads to equal color distinction" concept

In color spaces you just don't have any math that can be done without following its structure

You may check https://oklch.com/ on how the color space looks like

Icônes 1 year ago

His projects are very good

From the ecosystem-independent ones I use and highly recommend

- `vscode-file-nesting-config` for decluttering your project folder

- `ni` to not care which of npm alternative project uses

- `eslint config` that has fine defaults for basically every framework (do note that it uses his eslint-style rather then prettier by default), which has TS JSDoc and autocompletion for rules and hides fixable rules in VSCode by default

- `taze` to check deps for updates. May be less good then pm-specific ones but works for every pm.

- `unocss` which is Tailwind clone you can actually understand - it works on regexes. Or can't because it allows to set tw classes in attributes and group them in weird ways.

- Vitesse theme is fine