Our great sponsors
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
-
typescript-transformer-handbook
📘 A comprehensive handbook on how to create transformers for TypeScript with code examples
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
Looks like the arithmetic only supports integers 0 through 10
https://github.com/ronami/meta-typing/blob/master/src/utils/...
At the risk of too much self promotion, I have a much deeper and more feature complete treatment of many of these type-level computations, represented with higher minded types (which are thus composable) here:
https://hkt.code.lol/
This is my "lodash for types" project. It supports integer division for up to 2^64, for example. It has over 200 composable utility types.
I recently learned about Typescript transformers[0] and wish they were better supported in a first-class manner. Working with ttypescript or ts-patch[1] is easy enough, but it still feels like you're doing something you shouldn't be doing.
My goal was to pass the Typescript types to the JS runtime, maybe there's a better way and GPT-4 just led me astray...
[0] https://github.com/itsdouges/typescript-transformer-handbook
[1] https://github.com/nonara/ts-patch
I recently learned about Typescript transformers[0] and wish they were better supported in a first-class manner. Working with ttypescript or ts-patch[1] is easy enough, but it still feels like you're doing something you shouldn't be doing.
My goal was to pass the Typescript types to the JS runtime, maybe there's a better way and GPT-4 just led me astray...
[0] https://github.com/itsdouges/typescript-transformer-handbook
[1] https://github.com/nonara/ts-patch
A tuple does have a upper limit of 10 000 elements, which means that with this approach we can count to 10 000 at most.
Another approach which I tried is to do arithmetics on digits directly, storing digits in a tuple instead, but the code is not as elegant as the tuple one
https://github.com/dqbd/ts-math-evaluate/blob/main/src/math/...