News for hackers. Stuff that matters.
Re:The TypeScript compiler is now implemented internally wit... by MitchellCash on Wednesday November 02, 2022 @03:15PM (#33441433)
> a change in the indentation used in our bundle files (4 spaces -> 2 spaces)

I find it interesting that one of the reasons given for the reduction in package size is due to such a simple indentation change from 4 spaces to 2 spaces.

Not interesting that 2 bytes are less than 4 bytes, rather, TypeScript is a large project and it would be interesting to know how much size was saved from this one specific change? Seems like a trivial change, so why not do it sooner? And assuming readability isn't required in the bundle output why not bundle with no indentation at all and put everything on a single line, would this not be even smaller again?

Re:The TypeScript compiler is now implemented internally wit... by RyanCavanaugh on Wednesday November 02, 2022 @03:19PM (#33441485)
> Seems like a trivial change, so why not do it sooner?

Re: indentation: Literally, no one thought of it, as far as anyone can tell. Linus's law appears to have its limits.

Re:The TypeScript compiler is now implemented internally wit... by robertlagrant on Wednesday November 02, 2022 @04:35PM (#33442590)
Most minifiers already put things on one line, though.
Re:The TypeScript compiler is now implemented internally wit... by jakebailey on Wednesday November 02, 2022 @05:00PM (#33442848)
TS has some unique restrictions due to downstream patching of our package; my PR description briefly talks about this as something we can try to improve in the future. Minification absolutely would save a lot more size out of our package, but I was not willing to change that in this PR.
Re:The TypeScript compiler is now implemented internally wit... by IshKebab on Wednesday November 02, 2022 @04:57PM (#33442818)
Kind of funny because one of the benefits of tabs vs spaces that people laugh off is that it saves space.

I think it's probably correct to laugh this off though. Why would you care about the non-minified/gzipped size this much?

Re:The TypeScript compiler is now implemented internally wit... by yrgulation on Wednesday November 02, 2022 @08:04PM (#33444733)
TS devs still debating this in 2022? And i thought php devs are ridiculous for still debating setters and getters.
Re:The TypeScript compiler is now implemented internally wit... by IshKebab on Thursday November 03, 2022 @07:54AM (#33449677)
They aren't debating it. And I don't think why you'd think setters and getters are not worth debating. There are significant downsides to them (e.g. they make Dart's sound nullable support more annoying).