Readit News logoReadit News
dimava commented on Different Clocks   ianto-cannon.github.io/cl... · Posted by u/pppone
miteyironpaw · a month ago
Yeah I figured that 80 was a pretty good approximation because the average life expectancy in the US is 77. It surprisingly doesn't increase as much I would have expected as you age so I didn't account for that effect.
dimava · a month 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 -_-

dimava commented on Claude Code Router   github.com/musistudio/cla... · Posted by u/y1n0
adastra22 · a month ago
Put it in a docker instance with a mounted git worktree?
dimava · a month ago
Aka VSCode DevContainer?

Could work I think (be wary of sending .env to the web though)

dimava commented on The Tabs vs. Spaces war is over, and spaces have emerged victorious   xn--gckvb8fzb.com/tabs-vs... · Posted by u/ChiptuneIsCool
dimava · a month ago
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

dimava commented on Vibe coding service Replit deleted production database, faked data, told fibs   theregister.com/2025/07/2... · Posted by u/beardyw
JoshTriplett · a month ago
This is really sad. Replit used to be an interesting service, like a super-advanced version of language "playground" services, to make it easy to play with things and experiment. It seems like they've gone massively downhill.
dimava · a month ago
They had tools to prevent this, but the tools were still in development

They have since unrolled prod/dev db split and dB snapshots And restored that user's db from backup ofc

dimava commented on Running TypeScript Natively in Node.js   nodejs.org/en/learn/types... · Posted by u/jauco
Normal_gaussian · a month ago
Whilst I use an esbuild based build pipeline to produce production artifacts, I've found that the combination of native type transformation and node:test improvements is now sufficient to do away with most test frameworks.

My nodejs projects have tests that run faster and have fewer breaking dependencies.

The two things I have to do are to always annotate type imports with type (I have a script for that), and to use file extensions on imports.

dimava · a month ago
There's an ESLint rule with autofixes for that (annotating type imports) One for extension should exist somewhere too
dimava commented on xAI's Grok 3 comes to Microsoft Azure   techcrunch.com/2025/05/19... · Posted by u/mfiguiere
kace91 · 3 months ago
Do you ask specifically for Linux or just skeptic/caustic in general?
dimava · 3 months ago
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

dimava commented on Show HN: Free, in-browser PDF editor   breezepdf.com... · Posted by u/philjohnson
kengoa · 4 months ago
Great project! I'm also maintaining a fully in-browser data visualisation/analytics tool [1] and I often found it hard to convince people that their data isn't sent anywhere. It's funny I also say the exact same thing that they can inspect the Network tab. As a potential alternative to open-sourcing the codebase, maybe a desktop version of the same tool (i.e. an Electron app) could help address the privacy concerns if it explicitly states that it won't make network calls, although it's a perception problem rather than a technical one.

[1]: https://docs.visprex.com/

dimava · 4 months ago
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

dimava commented on Show HN: Free, in-browser PDF editor   breezepdf.com... · Posted by u/philjohnson
philjohnson · 4 months ago
Thank you!

I'll take a look at improving rendering embedded font support. And that's a neat idea to be able to download it for offline, I'll give some thought to that. Appreciate your feedback!

dimava · 4 months ago
You should make your app a PWA [1]

PWAs are basically "installable" pages which open in their own browser window and generally can work offline

[1] https://developer.mozilla.org/en-US/docs/Web/Progressive_web...

dimava commented on I created Perfect Wiki and reached $250k in annual revenue without investors   habr.com/en/articles/9058... · Posted by u/sochix
klntsky · 4 months ago
Moreover, habr is a great example why you should not let your site be 'out of politics' (which basically means making a silent deal with fsb to let their ambassadors roam free in the comment section for the luxury of not being blocked). At a certain point in time the site pivoted from being somewhat anti-censorship to a cesspot full of turbonormies, all because of the owners desire to stay highly monetized. There is nothing they would not force you to accept if you are only interested in views and money, but you will get neither in the end.
dimava · 4 months ago
Habr is a great example why you should force your site to be 'out of politics' if you want senseful discussions

Otherwise half of threads will be about Nazis by Godwin's law [0]

Like this one ¯\_(ツ)_/¯

[0] https://simple.wikipedia.org/wiki/Godwin%27s_law

dimava commented on The 12-bit rainbow palette   iamkate.com/data/12-bit-r... · Posted by u/rguiscard
otikik · 4 months ago
> L is for lightness (0-100%), C is for chroma (0-0.5), H is for hue (0-360deg).

My programmer brain immediately jumped away in disgust.

I'm sure there's many good reasons for choosing those, but it seems to me it could have easily have been done with 3 percentages (0-100% for the 3 numbers). Way easier to work with programmatically.

dimava · 4 months ago
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

u/dimava

KarmaCake day94May 5, 2023View Original