投稿時間:2022-12-19 01:20:45 RSSフィード2022-12-19 01:00 分まとめ(24件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
IT 気になる、記になる… 新型「iMac」はM3チップを搭載し、発売は早くても2023年末との噂 https://taisy0.com/2022/12/19/166243.html 最新情報 2022-12-18 15:55:17
python Pythonタグが付けられた新着投稿 - Qiita インスタンス生成を一つに制限するためのsingleton https://qiita.com/halglobe0108/items/896d6e36399b7bc5152e wslubuntupython 2022-12-19 00:17:49
js JavaScriptタグが付けられた新着投稿 - Qiita M1数学専攻のエンジニア就活事情(泣) https://qiita.com/momochanjazz/items/bbfe2ae727d6f23edc07 数学 2022-12-19 00:26:12
js JavaScriptタグが付けられた新着投稿 - Qiita Webでうごくレトロなパズルゲームをつくる https://qiita.com/koichi-hasegawa/items/af8a8cb962979836c6bc 行こう 2022-12-19 00:22:27
AWS AWSタグが付けられた新着投稿 - Qiita Elixir Phoenix と Bumblebee による画像分類を Amazon SageMaker 上でマイクロサービス化する https://qiita.com/RyoWakabayashi/items/6cad17cd6047cc7113c0 amazonsagemaker 2022-12-19 00:42:40
AWS AWSタグが付けられた新着投稿 - Qiita AWSを使うときに英語を選んで得したこと損したこと4選 https://qiita.com/hdmn54321/items/cdf3ad75e0b36c727e2e 選択 2022-12-19 00:12:39
Docker dockerタグが付けられた新着投稿 - Qiita Dockerのディスク使用がMacのストレージを圧迫していた話 https://qiita.com/Lion_rion/items/18925249f8c56ccea836 tzwnkiijwvtudhxpugmm 2022-12-19 00:01:54
Azure Azureタグが付けられた新着投稿 - Qiita Azure Site Recoveryの構成準備 https://qiita.com/ss12345/items/42976d87c3c84d393f4b azuresiterecovery 2022-12-19 00:12:22
技術ブログ Developers.IO Alteryx Serverにパッチを適用する – Alteryx Serverアドベントカレンダー2022 https://dev.classmethod.jp/articles/alteryxserver-adventcalendar-20221219/ developersioalteryx 2022-12-18 15:45:15
技術ブログ Developers.IO あるロールを削除した時そのロールが所有していたオブジェクトの所有者はどうなるのか確かめてみた #SnowflakeDB https://dev.classmethod.jp/articles/snowflake-owner-of-object-when-role-is-deleted/ adventcalendar 2022-12-18 15:30:43
海外TECH DEV Community [Typia] 15,000x faster validator and its histories https://dev.to/samchon/typia-15000x-faster-validator-and-its-histories-1fmg Typia x faster validator and its histories Series of TypeScript Compiler based LibrariesI made x faster TypeScript validator libraryI found x faster TypeScript Validator Library Typia x faster validator and its historiesI made x faster JSON stringify functions even type safeNestia super fast validator decorators for NestJSAutomatic React components generator from TypeScript type Renamed to TypiaHello I m developer of typescript json typia In nowadays I ve renamed typescript json library to typia because the word JSON no more can represent it Key feature of typia had been changed from faster JSON stringify function to superfast validation function Furthermore typia has started supporting Protocol Buffer in alpha version not regular feature yet Introducing such package renaming from typescript json to typia I will tell you which changes had been occured during six months Lots of interesting features and improvements have been happened What typia is RUNTIME VALIDATORSexport function is lt T gt input unknown T input is T returns booleanexport function assert lt T gt input unknown T T throws TypeGuardErrorexport function validate lt T gt input unknown T IValidation lt T gt detailed STRICT VALIDATORSexport function equals lt T gt input unknown T input is T export function assertEquals lt T gt input unknown T T export function validateEquals lt T gt input unknown T IValidation lt T gt JSONexport function application lt T gt IJsonApplication JSON schemaexport function assertParse lt T gt input string T type safe parserexport function assertStringify lt T gt input T string safe and faster isParse validateParse stringify isStringify validateStringifytypia is a transformer library of TypeScript supporting below features Super fast Runtime ValidatorsSafe JSON parse and fast stringify functionsJSON schema generatorAll functions in typia require only one line You don t need any extra dedication like JSON schema definitions or decorator function calls Just call typia function with only one line like typia assert lt T gt input Also as typia performs AOT Ahead of Time compilation skill its performance is much faster than other competitive libaries For an example when comparing validate function is with other competitive libraries typia is maximum x times faster than class validator Became x faster runtime validator library TypeBox was faster than Typia in here ObjectSimple caseexport type ObjectSimple ObjectSimple IBoxD export namespace ObjectSimple export interface IBoxD scale IPointD position IPointD rotate IPointD pivot IPointD export interface IPointD x number y number z number Do you remember About a month ago I wrote an article about TypeBox and said I found faster vlidator library than me in some cases During a month I d tried to understand and study the reason why During the studies I found the reason why The secret was on inlining When validating an instance type typia generates functions per object type Therefore when a type is related with object types internal functions would be generated However typebox let user to decide whether to make validate function for an object type or not by recursiveRef flag Benchmark code about typebox was written by typebox author himself Looking at below code you may understand what the inlining means and how typia and typebox are different typia is generating functions per object type BoxD and Pointd but typebox does not make any internal function but inline all of them COMPILED VALIDATION CODE OF TYPIAconst is input gt const io input gt object typeof input scale amp amp null input scale amp amp io input scale amp amp object typeof input position amp amp null input position amp amp io input position amp amp object typeof input rotate amp amp null input rotate amp amp io input rotate amp amp object typeof input pivot amp amp null input pivot amp amp io input pivot const io input gt number typeof input x amp amp isNaN input x amp amp isFinite input x amp amp number typeof input y amp amp isNaN input y amp amp isFinite input y amp amp number typeof input z amp amp isNaN input z amp amp isFinite input z return object typeof input amp amp null input amp amp io input COMPILED VALIDATION CODE OF TYPEBOXfunction Check value return typeof value object amp amp value null amp amp Array isArray value amp amp typeof value scale object amp amp value scale null amp amp Array isArray value scale amp amp typeof value scale x number amp amp isNaN value scale x amp amp typeof value scale y number amp amp isNaN value scale y amp amp typeof value scale z number amp amp isNaN value scale z amp amp typeof value position object amp amp value position null amp amp Array isArray value position amp amp typeof value position x number amp amp isNaN value position x amp amp typeof value position y number amp amp isNaN value position y amp amp typeof value position z number amp amp isNaN value position z amp amp typeof value rotate object amp amp value rotate null amp amp Array isArray value rotate amp amp typeof value rotate x number amp amp isNaN value rotate x amp amp typeof value rotate y number amp amp isNaN value rotate y amp amp typeof value rotate z number amp amp isNaN value rotate z amp amp typeof value pivot object amp amp value pivot null amp amp Array isArray value pivot amp amp typeof value pivot x number amp amp isNaN value pivot x amp amp typeof value pivot y number amp amp isNaN value pivot y amp amp typeof value pivot z number amp amp isNaN value pivot z As you know function calls have their own cost Therefore inlining may be faster than function call However inlining is not always faster then function call and there is a section where performance is reversed between function calls and inlining typebox let users to determine by themselves through JSON schema definition but typia can t do it because typia generates runtime validator function automatically by only one line statement typia assert lt T gt input CODE OF TYPIAimport typia from typia typia is lt ObjectSimple gt input CODE OF TYPEBOXimport Type from sinclair typebox import TypeCompiler from sinclair typebox compiler const PointD Type Object x Type Number y Type Number z Type Number const BoxD Type Object scale PointD position PointD rotate PointD pivot PointD TypeBoxObjectSimple TypeCompiler Compile BoxD TypeBoxObjectSimple Check input Therefore it is necessary for me to compare the pros and cons of function call and inlining and to select an algorithm at an appropriate level I d changed typia code to use such inlining skill in special cases and the result was typia became x faster validator than class validator From now on typia is the fastest runtime validator library Measured on Intel i g Surface Pro New Features More Types REST ARRAY TYPE IN TUPLE TYPEtype RestArrayInTuple boolean number string BUILT IN CLASS TYPEStype BuildInClassTypes Date UintArray Buffer DataView TEMPLATE TYPESinterface Templates prefix prefix string number boolean postfix string number boolean postfix middle the number boolean value mixed the number A B value boolean number ipv number number number number email string string string Just cray type type Join K extends string number P extends string number K extends P P never never type Prev never type StringPathLeavesOf D extends never never O extends object K in keyof O O K extends F never Join amp gt keyof O type TypeOfPath amp lt Schema extends k string any S extends string D extends number amp gt D extends never never S extends infer T infer U TypeOfPath Schema S const FILTER OPERATION MAPPING STRING TO STRING like notLike substring startsWith endsWith const FILTER CONDITION MAPPING or and not type ValueType stringToString stringToNumber stringOrNumber numberArray array type PathType amp lt TableSchema extends k string any undefined Type extends ValueType Columns extends Array amp lt TableSchema extends undefined string StringPathLeavesOf amp gt undefined undefined ColumnsExclude extends Array amp lt TableSchema extends undefined string StringPathLeavesOf amp gt undefined undefined amp gt Exclude amp lt Columns extends any Columns extends Array T never Type extends stringToString StringPathLeavesOf Type extends stringToNumber StringPathLeavesOf StringPathLeavesOf ColumnsExclude extends Array T undefined amp gt type FilterBy amp lt Operations extends k string any Type extends ValueType TableSchema extends k string any undefined undefined Columns extends Array amp lt TableSchema extends undefined string StringPathLeavesOf amp gt undefined undefined ColumnsExclude extends Array amp lt TableSchema extends undefined string StringPathLeavesOf amp gt undefined undefined Path extends PathType amp lt TableSchema Type Columns ColumnsExclude amp gt PathType amp gt TableSchema extends undefined operation keyof Operations column Columns extends any Columns extends Array T never string value Type extends numberArray string number string number Type extends array Array Type extends stringToString string Type extends stringToNumber string string number key in Path operation keyof Operations column Columns extends any Columns extends Array T never key value Type extends numberArray TypeOfPath key amp gt TypeOfPath key amp gt Type extends stringToString string Type extends stringToNumber string Type extends array Array key amp gt amp gt TypeOfPath key amp gt Path type Filter amp lt TableSchema extends k string any undefined undefined Columns extends Array amp lt TableSchema extends undefined string StringPathLeavesOf amp gt undefined undefined ColumnsExclude extends Array amp lt TableSchema extends undefined string StringPathLeavesOf amp gt undefined undefined D extends number amp gt D extends never never FilterBy amp lt typeof FILTER OPERATION MAPPING STRING TO STRING stringToString TableSchema Columns ColumnsExclude amp gt k in keyof typeof FILTER CONDITION MAPPING Filter amp lt TableSchema Columns ColumnsExclude Prev D amp gt type Test Filter amp lt aa number bb xx number yy string cc string amp gt After introducing typia typescript json at that time many dev to users maybe started using it and wrote lots issues for bug reportings or new feature suggestions too Resolving issues for six months typia became much stronger for TypeScript types For six months of improvements typia could support template literal types and built in class types like UintArray Sometimes bug from horrible types like Array rest parametrized tuple type or endless recursive and conditional types had been reported Anyway I d enhanced and resolved all of those issues and now I say that typia supports every TypeScript type with confidence Of course the word every TypeScript type could be broken in any time but it is not now maybe Comment TagsSome users requested typia to support much more types even TypeScript does not support To response to their inspirations I d studied solution for a while and found a good way at the right time It is extending typia s spec through comment tags For an example JavaScript does not support integer type but typia can validate the integer type through type int comment tag Below is an example using such comment tags Although those comment tags are written as a comment but they re compile time safe If wrong grammered comment tags being used typia will generate compilation error therefore no need to worry about runtime error by mistakes export interface TagExample ARRAYS You can limit array length like below minItems maxItems Also you can use items tag instead items gt lt length lt items gt lt length items gt length lt Furthermore you can use additional tags for each item type uint format uuid array Array lt string number gt If two dimensional array comes length limit would work for both st and nd level arrays Also using additional tags for each item string would still work items format url matrix string NUMBERS Type of number It must be one of integer or unsigned integer type int type uint type number You can limit range of numeric value like below minimum maximum Also you can use range tag instead range gt lt x lt range gt lt x range gt x lt range number Step tag requires minimum or exclusiveMinimum tag step exclusiveMinimum range step number Value must be multiple of the given number multipleOf multipleOf number STRINGS You can limit string length like below minLength maxLength Also you can use length tag instead length gt length length gt lt length amp amp length lt length gt lt length amp amp length lt length gt lt length length gt length lt length string Mobile number composed by only numbers Note that typia does not support flag of regex because JSON schema definition does not support it either Therefore write regex pattern without characters and flag pattern gt RegExp test mobile string E mail address format email email string UUID value format uuid uuid string URL address format url url string IPv address format ipv ipv string IPv address format ipv ipv string Preparing Protocol Buffer Protocol Buffer message structure content of proto fileexport function message lt T gt string Binary data to JavaScript instanceexport function decode lt T gt buffer UintArray T export function isDecode lt T gt buffer UintArray T null export function assertDecode lt T gt buffer UintArray T export function validateDecode lt T gt buffer UintArray IValidation lt T gt JavaScript instance to Binary data of Protobufexport function encode lt T gt input T UintArray export function isEncode lt T gt input T UintArray null export function assertEncode lt T gt input T UintArray export function validateEncode lt T gt input T IValidation lt UintArray gt In nowadays I am developing Protocol Buffer features ThoseT features are not published as stable version yet but you can experience them through dev version Also you can read detailed manual about those Protocol Buffer features in Guide Documents Protocol Buffer of typia console log typia message lt ObjectSimple gt syntax proto message ObjectSimple message IBoxD ObjectSimple IPointD scale ObjectSimple IPointD position ObjectSimple IPointD rotate ObjectSimple IPointD pivot message IPointD double x double y double z Those features are suggested by my neighbor TypeScript backend developer who is suffering from Protocol Buffer development Although there re some libraries supporting Protocol Buffer in TypeScript but they re not so convenient Therefore he suggested them hoping to implement Protocol Buffer features very easily like other typia functions can be done with only one line Listening his opinion and sympathizing with necessity and it seems to make typia more famous I ve accepted his suggestion Just wait a month then you TypeScript developers can implement Protocol Buffer data very easily than any other language Also let s make typia more famous Nestia boosted up validation decoratorNestia is a helper library set for NestJS supporting below features nestia core x times faster validation decorator using typia nestia sdk evolved SDK and Swagger generator for nestia corenestia just CLI command line interface toolDeveloping typia and measuring performance benchmark with other competitive validator libraries I ve known that class validator is the slowest one and its validation speed is maximum x times slower than mine typia However NestJS the most famous backend framework in TypeScript is using the slowest class validator Therefore some TypeScript developers have identified that they re using such slowest validator on their backend system by my previous dev to article and requested me to support new validation decorator for NestJS In response to their desire I ve made a new library nestia core It provides x faster validation decorator than ordinary NestJS validator decorator using class validator import Controller from nestjs common import TypedBody TypedRoute from nestia core import IBbsArticle from bbs api structures IBbsArticle Controller bbs articles export class BbsArticlesController Store a new content param inupt Content to store returns Newly archived article TypedRoute Post x faster and safer JSON stringify public async store TypedBody input IBbsArticle IStore supoer fast validator Promise lt IBbsArticle gt However as NestJS can generate swagger documents only when using the slowest class validator decorator I had to make a new program nestia sdk which can generate swagger documents from nestia core decorator For reference nestia sdk also can generate SDK Software Development Kit library for client developers by analyzing backend server codes in the compliation level If I write next article in here dev to subject of the new article would be this nestia and SDK library In fact I had developed nestia for a long time However previous nestia had focused only on SDK library generation Before typia there had not been any consideration about developing faster validation decorator Therefore only nestia core is the new library made by requirements from TypeScript backend developers nestia sdk is just a little bit evolved version of previous nestia to support nestia core SDK library generated by nestia sdkimport Fetcher IConnection from nestia fetcher import IBbsArticle from structures IBbsArticle Store a new content param input Content to store returns Newly archived article export function store connection api IConnection input IBbsArticle IStore Promise lt IBbsArticle gt return Fetcher fetch connection store ENCRYPTED store METHOD store path input export namespace store export const METHOD POST as const export function path string return bbs articles Client developers can utilize itimport api from bbs api import typia from typia export async function test bbs article store connection api IConnection const article IBbsArticle await api functional bbs articles store connection name John Doe title some title content some content typia assert article console log article 2022-12-18 15:17:30
Apple AppleInsider - Frontpage News Pro Display XDR update with Apple Silicon one of many in-development monitors https://appleinsider.com/articles/22/12/18/pro-display-xdr-update-with-apple-silicon-one-of-many-in-development-monitors?utm_medium=rss Pro Display XDR update with Apple Silicon one of many in development monitorsApple s next monitor releases will include an update to the Pro Display XDR with multiple screens allegedly in development that will use Apple Silicon to improve performance Apple s Pro Display XDRWhen Apple introduced the Studio Display it included an A chip to handle features such as Center Stage and Spatial Audio processing For Apple s follow up monitor launches it will employ the same principle Read more 2022-12-18 15:28:11
Apple AppleInsider - Frontpage News Crime blotter: Apple Store robbed at gunpoint, UPS driver stealing iPhones, more https://appleinsider.com/articles/22/12/18/crime-blotter-apple-store-robbed-with-semiautomatic-gun?utm_medium=rss Crime blotter Apple Store robbed at gunpoint UPS driver stealing iPhones moreIn the latest Apple Crime Blotter a UPS driver was arrested for stealing iPhone packages police sued over Find My iPhone raid and thieves arrested after leaving behind a stolen iPad The Apple Store in Bethesda Md The latest in an occasional AppleInsider series looking at the world of Apple related crime Read more 2022-12-18 15:20:49
金融 ◇◇ 保険デイリーニュース ◇◇(損保担当者必携!) 保険デイリーニュース(12/19) http://www.yanaharu.com/ins/?p=5105 損保ジャパン 2022-12-18 15:15:40
ニュース BBC News - Home UK weather: Last day of ice warnings before temperatures soar https://www.bbc.co.uk/news/uk-64018290?at_medium=RSS&at_campaign=KARANGA problems 2022-12-18 15:04:04
ニュース BBC News - Home Pakistan v England: Jonny Bairstow should come straight back in, says Harry Brook https://www.bbc.co.uk/sport/cricket/64019452?at_medium=RSS&at_campaign=KARANGA Pakistan v England Jonny Bairstow should come straight back in says Harry BrookHarry Brook says Jonny Bairstow should go straight back into the England side when he has recovered from a broken leg 2022-12-18 15:08:24
ニュース BBC News - Home World Cup 2022: Lionel Messi penalty gives Argentina the lead in final https://www.bbc.co.uk/sport/av/football/64019605?at_medium=RSS&at_campaign=KARANGA france 2022-12-18 15:32:07
ニュース BBC News - Home Heineken Champions Cup: Northampton Saints 6-17 Munster - Irish side claim gutsy win https://www.bbc.co.uk/sport/rugby-union/64001379?at_medium=RSS&at_campaign=KARANGA Heineken Champions Cup Northampton Saints Munster Irish side claim gutsy winMunster produce a gutsy defensive display to hold out for a Heineken Champions Cup victory over Northampton Saints at Franklin s Gardens 2022-12-18 15:05:03
ニュース BBC News - Home West Ham sign Brazilian defender Luizao from Sao Paulo https://www.bbc.co.uk/sport/football/64019972?at_medium=RSS&at_campaign=KARANGA paulo 2022-12-18 15:24:28
北海道 北海道新聞 アルゼンチンが2点を先行 W杯決勝、フランスと対戦 https://www.hokkaido-np.co.jp/article/777053/ 決勝 2022-12-19 00:44:38
北海道 北海道新聞 オホーツク冬の名物イベント、続々復活 北見冬まつり、焼き肉まつり…3年ぶり開催へ https://www.hokkaido-np.co.jp/article/776976/ 開催 2022-12-19 00:46:36
北海道 北海道新聞 ロリス、GKでW杯単独最多出場 35歳主将、独ノイアー上回る https://www.hokkaido-np.co.jp/article/777055/ 通算 2022-12-19 00:42:00
北海道 北海道新聞 「不妊処置受けた人5、6人知ってる」 江差の施設元入居者 会話はご法度、当事者は「泣き寝入り」 https://www.hokkaido-np.co.jp/article/777036/ 泣き寝入り 2022-12-19 00:39:26
北海道 北海道新聞 天皇誕生日の一般参賀実施へ 令和初、事前申し込み制 https://www.hokkaido-np.co.jp/article/777049/ 一般参賀 2022-12-19 00:18:07

コメント

このブログの人気の投稿

投稿時間:2021-06-17 22:08:45 RSSフィード2021-06-17 22:00 分まとめ(2089件)

投稿時間:2021-06-20 02:06:12 RSSフィード2021-06-20 02:00 分まとめ(3871件)

投稿時間:2021-06-17 05:05:34 RSSフィード2021-06-17 05:00 分まとめ(1274件)