IT |
気になる、記になる… |
Anker、「楽天お買い物マラソン」で70製品以上を最大30%オフで販売するセールを開催中(11月11日まで) |
https://taisy0.com/2022/11/04/164644.html
|
anker |
2022-11-04 11:09:01 |
IT |
気になる、記になる… |
楽天市場、ポイントが最大42倍になる「お買い物マラソン」のキャンペーンを開始(11月11日まで) |
https://taisy0.com/2022/11/04/164641.html
|
楽天市場 |
2022-11-04 11:03:44 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
AlfredでGoogle Chromeのプロファイルを切り替えたい! |
https://qiita.com/murakami97/items/2e955aab5e215dcda617
|
alfred |
2022-11-04 20:35:14 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
pythonで13桁unixtimeの単なる数字羅列を日付型に変換しデータフレームへ格納する方法すら毎回忘れてしまうので終止符と膝を打つ! |
https://qiita.com/KEy2376/items/1d9bcb1d980e630c8eda
|
dfdatetime |
2022-11-04 20:33:26 |
AWS |
AWSタグが付けられた新着投稿 - Qiita |
AWSソリューションアーキテクトアソシエイト SAA-C03 合格体験記 |
https://qiita.com/yakkutu/items/9fe8dd1ac8920a42e43b
|
資格試験 |
2022-11-04 20:48:27 |
Docker |
dockerタグが付けられた新着投稿 - Qiita |
DockerでMySQLを構築する |
https://qiita.com/hinaqiita/items/a6e4f3f63fe689873c01
|
macosmacosmontereynod |
2022-11-04 20:59:55 |
海外TECH |
Ars Technica |
Rocket Report: SLS boosters may expire in December; Blue Origin delivers the BE-4s |
https://arstechnica.com/?p=1894795
|
reusability |
2022-11-04 11:00:31 |
海外TECH |
DEV Community |
esbuild - Next-generation JavaScript bundler |
https://dev.to/refine/esbuild-next-generation-javascript-bundler-45ke
|
esbuild Next generation JavaScript bundlerAuthor Muhammad Khabbab IntroductionBundlers are an essential component of the JavaScript ecosystem As the name implies bundlers generate one or more module bundles Module bundlers process the JavaScript applications and build dependency graphs to map each module needed by your project Generally speaking bundlers perform the following tasks Bundle CSS HTML images and other assetsBundle JavaScript code in required module formatsBuild optimizations including code splitting scope hoisting tree shaking etc Hot module replacement during the development Many bundlers are used in developing modern JavaScript applications including Webpack Rollup and parcel but we will discuss a relatively new entrant esbuild which is a very fast and efficient bundler Steps we ll cover Why another JS bundlerFeatures of esbuildBundling and supported content typesThe build APIIncremental compilationPluginsServer modeWatch modeComparison with other bundlersWhy it is so fastExample esbuild UsageIs it Production ready esbuild TypeScript support Why another JS bundlerTechnology is progressing very fast Every day you will see new frameworks build tools and libraries to speed up and improve your software applications esbuild is another example of constant innovation and improvement It is an open source next generation JavaScript bundler that is very fast and more efficient than other bundlers in the industry It is written in Go language with speed in mind it is powered by parallel parsing printing and source map generation It packages and bundles JS code for distribution on the web Some of its features include It is very fast even without any cache It is much faster than other bundlers A robust API for JavaScript and GoES and common JS modulesSupports TypeScript and JSX syntaxSource mapsMinification Features of esbuildLet s go through some of its features in detail Bundling and supported content typesesbuild supports both bundling and code splitting Bundling is when you want to deploy a single app js target Code splitting is when you want to split app js into many targets like header js or sidebar js etc esbuild has built in support for various content types using its component called loaders The loader tells esbuild how to parse a particular content type The three common loaders enabled by default are Typescript loaderJavaScript loaderCSS loaderIf we look at the content types supported by esbuild then these are as below JavaScript Loader As mentioned above the JavaScript loader is enabled by default and it supports js cjs and mjs filesTypescript Loader Enabled by default for ts tsx mts and cts files However it does not support type checking JSX Loader It is enabled by default for jsx and tsx files Note that JSX syntax is not enabled in js files by default You can however enable this by updating the configuration JSON Loader It is enabled by default for json files It parses JSON files to JavaScript objects and exports these objects CSS Loader It can bundle CSS files directly without importing your CSS from the JavaScript code This loader is also enabled by default Text Loader It is also enabled by default for txt files It loads the files as a string during build time and exports the string default export Binary Loader It loads the file in the form of a binary buffer at build time and includes it in the bundle as Base encoding It is not enabled by default Data URL It loads the file as a binary buffer at build time and embeds it into the bundle as a Base encoded data URL This loader is useful for bundling images along with the CSS loader to load images using the method url It is not enabled by default The build APIesbuild has a powerful JavaScript build API through which you can customize the behavior of esbuild It is similar to webpack config js file in the Webpack If you look at the code sample below you can see that the build function executes the esbuild in a child process and returns a promise that is resolved when the build is complete Note that esbuild also provides a synchronous build API buildSync that runs synchronously You will need to use the asynchronous build API because esbuild plugins are compatible with only asynchronous API require esbuild build entryPoints app jsx bundle true outfile bundle js catch gt process exit Incremental compilationesbuild supports incremental compilation If you are compiling the same file from different sources again and again esbuild will work only on changed sources instead of code splitting or bundling from scratch each time PluginsThe plugins API is a very useful feature of esbuild It allows you to preprocess files when they are linked It can be very beneficial if you are converting Sass to CSS or markdown to JSX etc You can still configure the implementation details through the plugins API Server modeThe server mode enables you to use esbuild as a web server and you can implement your own server handler for incoming requests This feature is very powerful because you can use the server handler to perform different functions on incoming requests like observe events and log them esbuild utilizes code split targets from memory instead of the disk to serve your bundled code making it a highly performant web server as it reduces the total work spent on each request Watch modeWatch mode means the esbuild can detect the changes in the source code as they occur Instead of worrying about file watchers or using libraries like Nodemon or chokidar etc you can offload this responsibility to esbuild In fact you can also implement your own watch handlers so you can log events observe them and push server sent events Comparison with other bundlersIf you look at the below comparison between different bundlers you can see that esbuild has a significant performance advantage over its competitors Image a large team with many projects and dependencies where reducing build times is crucial for product development The magic lies in the ability of esbuild to parallelize printing parsing and source map generation Backend devs love this React framework Meet the headless React based solution to build sleek CRUD applications With refine you can be confident that your codebase will always stay clean and boilerplate free Try refine to rapidly build your next CRUD project whether it s an admin panel dashboard internal tool or storefront Why it is so fastHere is how esbuild is able to achieve this performance It is developed using the Go language which compiles to native code Other bundlers are mostly written in JavaScript and NodeJS has to spend extra time to parse the JavaScript in case of other bundlers It is able to perform printing parsing and source map generation in parallel The algorithms in esbuild are developed to fully saturate all CPU cores when possible Note that parallelism is at the heart of Go language and Go can make intelligent use of memory utilization as compared to JavaScript Everything is done in very few passes instead of expensive data transformation It has not too many features like Webpack and its main focus is speed Example esbuild UsageFirst you need to create a NodeJS project by running this commandnpm init yGo to your project directory and install the esbuild package by running the below command npm install esbuildTo verify if esbuild is correctly installed run the below command and it will return the esbuild version node modules bin esbuild ーversionThis example uses using React application so you need to run the following command to install react packages npm install react react domCreate an app jsx file having the following code import as React from react import as Server from react dom server let Greet gt lt h gt Hello esbuild Users lt h gt console log Server renderToString lt Greet gt Now let s ask esbuild to bundle this application by running the below command node modules bin esbuild app jsx ーbundle ーoutfile bundle jsWhat esbuild does here is that it bundles your application into bundle js and the whole process is extremely fast Is it Production ready esbuild is a great tool with a lot of potentials however it is still a small project maintained by a single person There are not a lot of open source contributions to this project and its author is the only person maintaining it While esbuild shows great performance compared to its counterparts being a new entrant you will not see many projects in production with esbuild yet It is better to test it on a side project and push it to production after it goes well for your need esbuild TypeScript supportFor TypeScript based projects in production you can take advantage of using tsup Using tsup you can build your TypeScript applications with minimal configuration It uses esbuild behind the scene so you get the power of esbuild along with the convenience of tsup We at refine have seen remarkable performance using tsup in our projects running in production environment ConclusionThe world of JavaScript has a lot of great frameworks and tools You will see many bundlers in the market but esbuild is gaining a lot of popularity due to its amazing speed In this article we compared some top bundlers being used We also discussed some of the core features of esbuild and how it delivers blazing fast builds We also went through some basic commands for installing and building projects with esbuild esbuild has a lot of future and although it is a new kid on the block it holds tremendous potential for organizations that want to build applications quicker and faster |
2022-11-04 11:38:26 |
Apple |
AppleInsider - Frontpage News |
Apple freezes hiring outside of research and development |
https://appleinsider.com/articles/22/11/03/apple-freezes-hiring-outside-of-research-and-development?utm_medium=rss
|
Apple freezes hiring outside of research and developmentApple has allegedly paused hiring across all departments except for R amp D in an attempt to reduce its budget Apple ParkApple is looking for ways to cut spending as it heads into what it anticipates as a slow holiday period Read more |
2022-11-04 11:15:40 |
海外TECH |
Engadget |
The Morning After: The new Apple TV 4K reviewed |
https://www.engadget.com/the-morning-after-the-new-apple-tv-4-k-reviewed-111540818.html?src=rss
|
The Morning After The new Apple TV K reviewedI ve always wanted an Apple TV but the high price and locked down features made me opt for Roku s ecosystem instead And while I appreciate the freedom Roku offers Devindra Hardawar s review of the new TV K almost turned my head The model is cheaper smaller and runs more efficiently than its predecessor and it still packs that fancy Siri remote as standard The box s speed is its greatest strength letting you leap between video streaming apps in the time it takes for your cable box to wake up Of course there s always a fly or two in the ointment like the GB model has a compromise or two If you for instance want a built in Ethernet port or Thread IoT integration you ll need the GB model Never change Apple Dan CooperThe biggest stories you might have missedThe best gifts for photographers in The best smartwatchesBeats Fit Pro fall to new low of Amazon will bring Matter smart home support to Echo devices this year updated Here s what you need to know about Netflix s Basic with Ads planSteam for ChromeOS works on more devices and is easier to install WhatsApp s new Communities feature aims to bring related group chats togetherHey T Mobile nobody wants your suitcaseAstronauts will D print part of a human knee in spaceIt s part of a test of a battlefield bioprinter It would be great if we could simply D print parts of our bodies that we ve damaged or worn out through overuse It s something NASA will try out with a bioprinter designed to do just that in the hope of using it for soldiers During its stay in the heavens the printer will craft a human meniscus for study to treat without the use of inorganic implants one of the most common knee injuries Continue Reading Symbiogenesis is some NFT garbage from Square Enix not a Parasite Eve revivalThe worst kind of switcheroo Square EnixWhen Square Enix registered Symbiogenesis as a trademark a small legion of fans got very excited They not unreasonably believed the company was working on a follow up to Parasite Eve a beloved horror RPG from Imagine their dismay when the project turned out to be little more than an NFT grift from a games giant who should know better Continue Reading AMD s first RDNA GPUs are the Radeon RX XTX and XTThe launch came with plenty of sass for NVIDIA AMDWhen NVIDIA launched the teeth meltingly powerful RTX everyone waited to see what AMD would offer in return The company has now shown off a pair of Radeon RX cards the and XTX powered by its new RDNA architecture AMD says these cards won t melt your power supply unlike its rival and at won t hollow out your wallet unlike…you get the idea Continue Reading WiFi security flaw lets a drone track devices through wallsThis isn t ideal Researchers at the University of Waterloo have developed a system to track WiFi enabled devices through walls The technique relies on the protocol s automatic contact response and can pinpoint equipment to within three feet of its location To demonstrate the need for better WiFi security the team equipped an off the shelf drone with a WiFi scanner that cost just to make They flew it around the outside of a house pinpointing the home s occupants and WiFi enabled hardware such as security cameras There are several worrying uses for such technology including looking for unguarded areas of a home for burglary or unauthorized surveillance none of which are particularly good Continue Reading |
2022-11-04 11:15:40 |
海外科学 |
NYT > Science |
China’s Out-of-Control Rocket Booster Falls in the Pacific |
https://www.nytimes.com/2022/11/04/science/china-rocket-debris.html
|
earth |
2022-11-04 11:27:16 |
金融 |
RSS FILE - 日本証券業協会 |
SDGs特設サイトのトピックスと新着情報(リダイレクト) |
https://www.jsda.or.jp/about/torikumi/sdgs/sdgstopics.html
|
特設サイト |
2022-11-04 12:00:00 |
ニュース |
BBC News - Home |
Channel crossings: Albanian migrants recruited to the UK by gangs |
https://www.bbc.co.uk/news/world-europe-63488070?at_medium=RSS&at_campaign=KARANGA
|
drugs |
2022-11-04 11:35:32 |
ニュース |
BBC News - Home |
Workers at Heathrow to strike in World Cup run-up |
https://www.bbc.co.uk/news/business-63510375?at_medium=RSS&at_campaign=KARANGA
|
november |
2022-11-04 11:32:16 |
ニュース |
BBC News - Home |
Train strikes: What are the dates and which lines are affected? |
https://www.bbc.co.uk/news/business-61634959?at_medium=RSS&at_campaign=KARANGA
|
train |
2022-11-04 11:14:47 |
ニュース |
BBC News - Home |
England v Argentina: Alex Coles handed debut against Pumas |
https://www.bbc.co.uk/sport/rugby-union/63513140?at_medium=RSS&at_campaign=KARANGA
|
England v Argentina Alex Coles handed debut against PumasAlex Coles will make his England debut at second row against Argentina on Sunday as Maro Itoje moves to flanker to cover the injured Courtney Lawes |
2022-11-04 11:43:58 |
ニュース |
BBC News - Home |
T20 World Cup: Afghanistan in turmoil as they lose three wickets in four balls |
https://www.bbc.co.uk/sport/av/cricket/63512451?at_medium=RSS&at_campaign=KARANGA
|
T World Cup Afghanistan in turmoil as they lose three wickets in four ballsTrouble for Afghanistan a their strong start collapses and their hopes of winning are reduced by Australia as they take three wickets in four balls in the T World Cup in Adelaide |
2022-11-04 11:47:02 |
京都 |
烏丸経済新聞 |
西本願寺の執行長に安永雄彦さん 築地本願寺の改革、京都でも |
http://karasuma.keizai.biz/column/6/
|
安永雄彦 |
2022-11-04 20:13:27 |
コメント
コメントを投稿