3,464 karma · joined June 9, 2020
Jesus
Some examples of TypeScript power:
- SQL database in TypeScript types: https://github.com/codemix/ts-sql
- Statically typed raw SQL queries: https://github.com/andywer/squid?tab=readme-ov-file#tag-func...
- (Someone fill in your TS hackery for me)
For anyone having that thought, try reading through the design document of Jiff (https://github.com/BurntSushi/jiff/blob/master/DESIGN.md), which, as all things burntsushi do, is excellent and extensive. Another good read is the comparison with (mainly) chrono, the de facto standard datetime library in Rust: https://docs.rs/jiff/latest/jiff/_documentation/comparison/i...
Stuffs like DST arithmetic (that works across ser/de!), roundable duration, timezone aware calendar arithmetic, retrospective timezone conflict detection (!), etc. all contribute to a making the library correct, capable, and pleasant to use. In my experience, chrono is a very comprehensive and "correct" library, but it is also rigid and not very easy to use.
There are certainly good and bad textbooks, and a book good for many people might be unsuitable for your style, your goals, and your background. But there are plenty of good enough textbooks, trudging through any of them will yield far more benefits than getting that ideal book.
A cubic Bezier curve B(t) is a cubic polynomial of t in [0, 1], parameterized by the four control points. Since it is continuously differentiable, its length is the integral from 0 to 1 of the square root of (1 + (B')^2), a quartic. Such an integral is well known to be reducible to the elliptic integrals, which have no closed form.
Good luck to you though, I do think the demographics of scientists who find VSCode confusing is actually sizeable.
The author is approaching this as a human problem. Plots are not made for machines, they are for people to read, and the author specifically wants as many people can read and parse plots easily as possible. As lamentable as math education might be, we have to work with what we have, and I do think it is a reasonable goal. I agree with the author that it should not be necessary to know what quartiles are in order to see how spread out a distribution is.
I tried all those examples on the swc playground[0] and all of them pass, so the issue seems to be fixed, but maybe they forgot to close it. By the way, swc, oxc, and biome all pass test262.
[0]: https://swc.rs/playground (version 1.6.5)
The split tab view is surprisingly handy for me, which is a group of two tabs you can drag around. It sounds like an inferior windows manager, but I use laptop with no monitor, so splitting into more than 2 windows doesn't make sense anyway.