#prog #rust #rustlib
Jiff — библиотека для работы с датой и временем от BurntSushi.
Jiff is a datetime library for Rust that encourages you to jump into the pit of success. The focus of this library is providing high level datetime primitives that are difficult to misuse and have reasonable performance.
Наиболее заметным отличием Jiff является возможность работать с разницей моментов не только в терминах абсолютных отрезков времени, но и в терминах календарных единиц (дни и месяцы, например). Также Jiff поддерживает арифметику дат с учётом прыжков во времени из-за daylight saving time.
Для того, чтобы определить, насколько Jiff подходит для ваших задач, советую почитать философию дизайна и сравнение с существующими библиотеками.
Jiff — библиотека для работы с датой и временем от BurntSushi.
Jiff is a datetime library for Rust that encourages you to jump into the pit of success. The focus of this library is providing high level datetime primitives that are difficult to misuse and have reasonable performance.
Наиболее заметным отличием Jiff является возможность работать с разницей моментов не только в терминах абсолютных отрезков времени, но и в терминах календарных единиц (дни и месяцы, например). Также Jiff поддерживает арифметику дат с учётом прыжков во времени из-за daylight saving time.
Для того, чтобы определить, насколько Jiff подходит для ваших задач, советую почитать философию дизайна и сравнение с существующими библиотеками.
👍3🔥2😐1
Вопрос папищекам, у которых есть свои каналы в Telegram. Каких ботов вы используете для бана удалённых аккаунтов на канале? Руками не очень полезно, потому что интерфейс показывает только 200 последних присоединившихся пользователей
#prog #js #typescript
Banditypes — the mighty 400-byte validator
Check if data conforms to a TS type at runtime — much like zod, yup or superstruct, but in a tiny 400-byte package. Despite the small size, it's not a toy:
Passes the relevant superstruct test suite.
Rich built-in types: maps, sets, tuples, literals, and generic union types.
Mostly API-compatible with the established libraries.
Supports both deriving TS types from schema and declaring a schema for an existing TS type.
User-defined types, refinements, and conversions.
Decent performance — among the top libraries not using code generation.
Banditypes — the mighty 400-byte validator
Check if data conforms to a TS type at runtime — much like zod, yup or superstruct, but in a tiny 400-byte package. Despite the small size, it's not a toy:
Passes the relevant superstruct test suite.
Rich built-in types: maps, sets, tuples, literals, and generic union types.
Mostly API-compatible with the established libraries.
Supports both deriving TS types from schema and declaring a schema for an existing TS type.
User-defined types, refinements, and conversions.
Decent performance — among the top libraries not using code generation.
GitHub
GitHub - thoughtspile/banditypes: 🤠🧨 The mighty 400-byte schema validator for TS / JS
🤠🧨 The mighty 400-byte schema validator for TS / JS - thoughtspile/banditypes
🔥2❤1🌚1
Forwarded from AlexTCH
https://nicholas.carlini.com/writing/2023/little-bobby-endoftext.html
Не так феерично, как SolidGoldMagicarp, но всё равно забавно.
Не так феерично, как SolidGoldMagicarp, но всё равно забавно.
Carlini
Little Bobby <|endoftext|>
TODO
Forwarded from std::chrono::steady_clock::now().time_since_epoch().count() 🏳️🌈🏳️⚧️ (yuki 🌸 malinova-sireneva)
🤯16👌4🫡3🤷1
Блог*
🤨
Так как телега использует гугловский переводчик, там проблема воспроизводится. Проверил — без эмодзи правильно переводит "з української" как "с украинского", а вот если добавить эмодзи в начале или в конце — украинский непонятным образом превращается в русский
😁5🤔5🤨2🫡2😐1🤝1