投稿時間:2023-02-03 10:20:03 RSSフィード2023-02-03 10:00 分まとめ(27件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
IT 気になる、記になる… Amazon、Kindleストアで「幻冬舎 電本フェス 本祭」のセールを開始 ー 3,000冊以上が最大70%オフに https://taisy0.com/2023/02/03/168026.html amazon 2023-02-03 00:02:46
IT ITmedia 総合記事一覧 [ITmedia News] Appleの決算は減収減益 売上高減は2019年以来 https://www.itmedia.co.jp/news/articles/2302/03/news075.html apple 2023-02-03 09:11:00
IT 情報システムリーダーのためのIT情報専門サイト IT Leaders テラスカイ、グループウェア新版「mitoco V19.0」、一部機能が新UI「Salesforce LEX」に対応 | IT Leaders https://it.impress.co.jp/articles/-/24402 itleaders 2023-02-03 09:30:00
AWS AWS Japan Blog Amazon FSx for NetApp ONTAP のシングルアベイラビリティーゾーン デプロイメント利用による VMware Cloud on AWS のストレージコストの削減 https://aws.amazon.com/jp/blogs/news/reduce-storage-costs-with-single-availability-zone-amazon-fsx-for-netapp-ontap-datastores/ amazonfsxfornetappontap 2023-02-03 00:51:10
デザイン コリス iPadではじめるデジタルイラスト! Procreateの良さとさまざまなイラストやグラフィックの作り方が分かる解説書 -はじめてのProcreateイラスト入門 https://coliss.com/articles/book-review/isbn-9784802512626.html 続きを読む 2023-02-03 00:36:41
python Pythonタグが付けられた新着投稿 - Qiita クラウドの利用費をJupyter Notebookで可視化する https://qiita.com/Brutus/items/efeedef7bbc6846b612e googlecloudplatform 2023-02-03 09:44:56
js JavaScriptタグが付けられた新着投稿 - Qiita 軽量暗号をJavaScriptで実装してみた https://qiita.com/fumumue/items/7c6a1b38983c6832c09c javascript 2023-02-03 09:59:30
GCP gcpタグが付けられた新着投稿 - Qiita クラウドの利用費をJupyter Notebookで可視化する https://qiita.com/Brutus/items/efeedef7bbc6846b612e googlecloudplatform 2023-02-03 09:44:56
技術ブログ Developers.IO OpenMetadata SaaSのフリートライアルを始めてみた https://dev.classmethod.jp/articles/openmetadata-saas-start-trial/ collate 2023-02-03 00:39:52
技術ブログ Developers.IO [Tips] SOQLの結果からId型のリストを抽出する https://dev.classmethod.jp/articles/tips-retrieve-ids-from-result-of-soql/ salesforce 2023-02-03 00:35:53
海外TECH DEV Community How To Write A Programming Language https://dev.to/____marcell/how-to-write-a-programming-language-1o99 How To Write A Programming LanguageThe GrammarComposing Grammar RulesThe Operator And Empty Grammar RulesRule TypesParsing The LanguageASTRecently I wrote a very simple programming language here is the repo the language is extremely small my objective was to write a programming language that can do fibonacci that s it fib written in square gt fib n if n lt return n return fib n fib n fib print n it works It uses one of the most popular tools to write the grammar the AST is very minimal and is executed in C today I m gonna explain the main components of a programming language trying to be as concise as possible The GrammarThis is the heart of the language This is how you interact with the language the grammar rules define how to write code for the language I used flex and bison to write the grammar the grammar of the language is written on square y skim through those rules just to get a idea of how they work Here s a grammar rule from the languageID EQ NUMand it defines how to interpret assignmentsn You can think about the grammar rules as a way of organizing regex blocks each token ID EQ NUM is a regex blockidentifier a z this is ID equal this is EQnumbers this is NUMYou organize the blocks in a way that you want the blocks to be matched in the language so when the parser seesx it s going to first transform that in the tokens ID EQ NUM then search for a rule that matches that after finding the rule the parser is going to execute the body of the ruleID EQ NUM struct scope number struct scope malloc sizeof struct scope number gt type number number gt value Think about the body of the rule as a function that is going to be executed when the parser finds that match you can access the value in the tokens using here is where you build your AST more on that later Composing Grammar RulesYou can compose grammar rules for example in the language we have function calls that work like this add n but you can also call the function passing the value directly instead of a variable add instead of creating two different grammar rules for each case we create a grammar rule with these two options and use it in the function call grammar rule OPBRA IDFUNC fcallparam CLBRA fcallparam ID body NUM body OPBRA is IDFUNC is the name of the function add in this case fcallparam can be a ID identifier basically a variable or NUM NUM is a number you re free to compose the rules how many times you want The Operator And Empty Grammar RulesThe operator can be used to save the result of the composing grammar rule to be used in another grammar rule it s easier to see the utility in action in the last example we can save anything on than use it in the composing grammar rulefcallparam ID Hello There OPBRA IDFUNC fcallparam CLBRA printf here is Hello There remember that we can access the tokens with etc So now is Hello There If You just want to use the token directly you don t need the body examplefcallparam ID NUMOPBRA IDFUNC fcallparam CLBRA will be either a identifier or a number depending on the match the default behavior of any rule without a body is Rule TypesA rule also has a type to return a string like we did in the fcallparam example the rule fcallparam needs to be a string we define this in the beginning of the parser when we connect the parser with the lexer you can see all definitions hereIn the toy language fcallparam is of type node which is a node of the AST type lt node gt fcallparam Parsing The LanguageWith the information that we have above we can begin to understand how to parse the language and how to create the AST for example we could create a print like function called output in the language In the source file… output hello world In the parser We parse the contents with the right rulesOUTPUT OPPAR STR CLPAR here we just print the content inside the parenteshis printf for very simple rules we could do something like that and execute the code that we created the problem is that programming languages have concepts like functions that postpone code execution you cannot execute what you see directly because we have definitions that are going to be executed when the program tells you to for example if output was inside another function we can not execute it right away this is one of the reasons why we need a AST the AST is a data structure that represents the code but can be executed easily we don t need to parse anything just traverse the data structure and execute it function test output hello world in this case we cannot execute output as soon as we identify it in the parser we need to wait for a function call that calls test then we execute what s inside test s body to solve this problem we need to breakdown the parsing and the executing in to different things that s where the AST comes in ASTAbstract Syntax Three is just a data structure like an linked list or binary three you can use nested array as an AST and some languages do use it but we re going to use a linked list instead this is the data structure that I used in the languagestruct scope char type char extra struct arg args int value struct scope scopes struct scope next struct scope prev int return value This is essentially a doubly linked list after I finished the language I realized that it could have been much easier but I didn t have the patience to change everything so that s what we have right now P it s easier to understand what it represents with an example type function extra global scopes type body scopes type function extra fib args key n value scopes type body scopes type if The root node is a function called global same thing as main in other languages like C this node has a body and the body has another node function called fib which is the declaration of the fib function this node has a if node and so on I hope you get the idea the AST is just another way of representing the code this is what we called a IR or Intermediate Representation the reason why we do this is to make it easier to do something with that data specially traverse it it s very hard to traverse source code so instead of doing that we transform the source code in to a different data structure and work with that insteadso this fib n if n lt becomes this type function extra fib scopes type body scopes type if The next thing that we need to do is execute the AST a lot of popular languages like Python Ruby and Java have an additional IR representing the code as bytecode and executing the bytecode in a virtual machine for optimization but since this is a toy language we just execute the AST itself Executing The ASTExecuting the AST is pretty straighforward we pass the AST to an exec function and this function traverse and execute the AST following the rules of the language this is the file that creates the AST and calls exec passing the AST square y the whole thing is less then lines and it could be much simpler as I said before for example the languages accepts evaluating statement in returns so you can do things like thisreturn fib n fib n but that s not strictly necessary you can check what the exec function does here but essentially we just traverse the AST check the node type like function if function calls etc and do what needs to be done the most challenging part after building the AST is implementing scope but that can be done with pointers each node holds the value of the variables used inside it and we can use next and prev to jump between scopes I m not gonna explain how I execute the AST here because you can simply follow the code here it s very simple and I think I already cover the meat of building a language which is the parser and the AST after you have the AST it s just a matter of executing it which is an entire different thing outside the scope of showing how a language can be implemented if you want to build something specific I think the toy language that I ve build is a good start since a lot of the work is the actual set up 2023-02-03 00:13:58
Apple AppleInsider - Frontpage News Amazon slashes Apple Watch Series 8 to $349 in latest round of price cuts https://appleinsider.com/articles/23/02/03/amazon-slashes-apple-watch-series-8-to-349-in-latest-round-of-price-cuts?utm_medium=rss Amazon slashes Apple Watch Series to in latest round of price cutsAmazon has issued fresh price drops on Apple Watch Series styles with prices matching record low levels on numerous GPS and GPS Cellular models Amazon has cut Apple Watch prices The price cuts discount a variety of Apple Watch Series styles ranging from options with an aluminum case to stainless steel models with GPS Cellular functionality You can shop the sale styles at Amazon with a few of our favorite Apple Watch deals found below Read more 2023-02-03 00:45:00
海外TECH Engadget Senator asks Apple and Google to ban TikTok from their app stores https://www.engadget.com/senator-michael-bennet-tiktok-apple-google-ban-005604950.html?src=rss Senator asks Apple and Google to ban TikTok from their app storesTikTok is facing yet another call from a prominent lawmaker for the app s ban Colorado Senator Michael Bennet a Democrat who sits on the Senate Intelligence Committee sent a letter to Apple and Google urging the companies to ban TikTok from their respective app stores In the letter Bennet says that “TikTok in its current form is an unacceptable threat to the national security of the United States The letter addressed to Apple CEO Tim Cook and Google CEO Sundar Pichai repeats many of the same points that have been raised by other lawmakers seeking to ban the app Specifically Bennet raises the possibility that TikTok s parent company ByteDance could be compelled to “use its influence to advance Chinese government interests via TikTok “Like most social media platforms TikTok collects vast and sophisticated data from its users including faceprints and voiceprints Bennet writes “Unlike most social media platforms TikTok poses a unique concern because Chinese law obligates ByteDance its Beijing based parent company to support assist and cooperate with state intelligence work TikTok has long denied that such scenarios could play out and has attempted to downplay its ties to China In a statement to CNN the company said Bennet s letter “relies almost exclusively on misleading reporting about TikTok the data we collect and our data security controls Apple and Google didn t immediately respond to requests for comment While it seems unlikely either company would take such a drastic step based on a letter from one senator it highlights the mounting pressure and scrutiny on TkTok The company has spent the last two years negotiating with the Committee on Foreign Investment in the United States CFIUS in order to secure its ability to continue to operate in the US But that process is reportedly stalled and the company has been waging a new charm offensive in an attempt to win over critics TikTok has also been sharing more details around its partnership with Oracle to safeguard US user data and comply with US regulators concerns But lawmakers seem to be in no rush to let TikTok off the hook The app has already been banned from federal devices and numerous state governments have passed bans of their own TikTok CEO Shou Zi Chew is scheduled to testify at his first Congressional hearing next month 2023-02-03 00:56:04
海外科学 NYT > Science Who Do Bears Rub Against Trees? Scientists Offer New Explanation. https://www.nytimes.com/2023/02/01/science/bears-trees-ticks.html beech 2023-02-03 00:47:12
金融 ニッセイ基礎研究所 現在の景況感は良好だが、先行きに関して悲観的な見方が強まる~価格のピークは今年が最多。期待はホテル。リスク要因として、国内金利、建築コスト、地政学リスクへの関心が高まる~第19回不動産市況アンケート結果 https://www.nli-research.co.jp/topics_detail1/id=73795?site=nli nbsp吉田資・室剛朗『わが国の不動産投資市場規模年』ニッセイ基礎研究所、不動産投資レポート、年月日前回調査との比較期待が高まった後退した投資セクター前回調査から回答割合が以上増加した投資セクター期待が高まった投資セクターは、「ホテル」rarr、「賃貸マンション」rarrであった。 2023-02-03 09:57:15
金融 ニッセイ基礎研究所 インフレと株式投資 https://www.nli-research.co.jp/topics_detail1/id=73777?site=nli もうつの理由は金融引締めと期待インフレ率の上昇が長短金利、さらには将来のキャッシュフローや利益を株価に換算する、現在価値計算の割引率の上昇を引き起こすことである。 2023-02-03 09:39:23
金融 ニッセイ基礎研究所 2022年、新たに積立投資を始める人は一巡か https://www.nli-research.co.jp/topics_detail1/id=73778?site=nli nbspアクティブ型の外国株式投信には年に兆億円の資金流入と年の兆億円から大きく減少した。 2023-02-03 09:38:19
金融 ニッセイ基礎研究所 経済・金融環境の逆風が強まる米国不動産市場 https://www.nli-research.co.jp/topics_detail1/id=73779?site=nli 経済・金融環境の逆風が強まる米国不動産市場米国ではインフレ高進に伴い中央銀行が大幅な利上げを実施したことで、景気後退懸念が高まっている。 2023-02-03 09:35:03
金融 ニッセイ基礎研究所 2023年の政治リスクとして浮上した連邦債務上限問題 https://www.nli-research.co.jp/topics_detail1/id=73780?site=nli nbsp実際に、年にはオバマ政権下で年と同様に与党民主党が上院で過半数、野党共和党が下院で過半数を占めるねじれ議会となる中で、債務削減案を巡って与野党の対立が先鋭化し、債務上限に抵触する直前になっても債務上限の引上げで合意できず、米国債がデフォルトする一歩手前まで行った。 2023-02-03 09:33:25
金融 日本銀行:RSS 学生向けコンテスト「第18回 日銀グランプリ」決勝大会の模様(動画、講評、プレゼン資料等)および奨励賞論文要旨 http://www.boj.or.jp/about/nichigin_gp/ngp_release/ngp230203.htm 資料 2023-02-03 10:00:00
ニュース BBC News - Home Bill Gates would rather pay for vaccines than travel to Mars https://www.bbc.co.uk/news/technology-64499635?at_medium=RSS&at_campaign=KARANGA humanity 2023-02-03 00:13:16
ニュース BBC News - Home US tracking suspected Chinese surveillance balloon https://www.bbc.co.uk/news/world-us-canada-64507225?at_medium=RSS&at_campaign=KARANGA craft 2023-02-03 00:20:32
ニュース BBC News - Home Apple sales in biggest fall since 2019 https://www.bbc.co.uk/news/business-64506940?at_medium=RSS&at_campaign=KARANGA apple 2023-02-03 00:05:00
ニュース BBC News - Home Ian Roberts: The double life and singular purpose of a rugby league legend https://www.bbc.co.uk/sport/64484125?at_medium=RSS&at_campaign=KARANGA Ian Roberts The double life and singular purpose of a rugby league legendIan Roberts was the best paid player in the brutal world of Australian rugby league but it took years for him to make the biggest and bravest play of his life 2023-02-03 00:04:14
ビジネス 東洋経済オンライン 「ネガティブ思考な人」が実は有能で賢い納得理由 「脳のクセ」にうまく対処し、行動を変える方法 | リーダーシップ・教養・資格・スキル | 東洋経済オンライン https://toyokeizai.net/articles/-/644438?utm_source=rss&utm_medium=http&utm_campaign=link_back 東洋経済オンライン 2023-02-03 09:30:00
マーケティング MarkeZine 正しい「ポジショニング」=WHATを定める。デプスインタビューから本質的なインサイトを探る方法 http://markezine.jp/article/detail/41005 2023-02-03 09:30:00
マーケティング AdverTimes 編集部に届いたアイデア年賀状10選\2023/ https://www.advertimes.com/20230203/article410534/ 宣伝会議 2023-02-03 00:05:15

コメント

このブログの人気の投稿

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

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

投稿時間:2020-12-01 09:41:49 RSSフィード2020-12-01 09:00 分まとめ(69件)