参照は、プログラミングにおいて変数や関数といったメモリ空間上での所在を指示するデータのことを指します。その中にはデータ自体は含まれず、他の場所にある情報を間接的に指示するプログラムです。
Slow Rust Builds? Here are some tips to speed up your compile times. This list was originally released on my private blog, but I decided to update it for 2024 and move it here. Table of Contents Click here to expand the table of contents. General Tips Update The Rust Compiler And Toolchain Use cargo check Instead Of cargo build Switch To The New Parallel Compiler Frontend Remove Unused Dependencie
UbuntuやFedoraなど、多くのLinuxディストリビューションで採用されているグラフィカルシェル「GNOME Shell」は、拡張機能を導入することで機能を追加することができます。そんなGNOME Shell拡張機能のひとつである「Material Shell」を使うと、マテリアルデザインと軽快なアニメーションでLinuxのデスクトップ環境を一変することができます。 GitHub - material-shell/material-shell https://github.com/material-shell/material-shell Material Shellを導入したデスクトップを操作するとこんな感じ。 Material Shellが対応しているGNOME Shellのバージョンは3.34.0以上。今回はUbuntu 20.04にMaterial Shellを導入してみま
Next.js + Electron を使えばめちゃくちゃ簡単にデスクトップアプリを作れるという記事です。 デスクトップアプリケーションをWeb技術で作成するElectronを、むちゃくちゃ久々にやってみたら、とても簡単になっていた React のフレームワークである Next.js もバージョン9.xになってから劇的に良くなり続けていて、どんどん触りやすくなっています ちなみに Next.js は非公式な日本語翻訳が進んでいるようです。 9割くらい翻訳が完了しているようですが、気になる方は、このサイトの「翻訳プロジェクトについて」をご覧ください。 セットアップする # npmの場合 $ npx create-next-app --example with-electron-typescript hoge $ cd hoge $ npm run build $ npm run start
My least favorite Rust type is std::ops::Range. Range is a foundational type, with magic syntax but a simple definition: struct Range<Idx> { /// The lower bound of the range (inclusive). pub start: Idx, /// The upper bound of the range (exclusive). pub end: Idx, } Idx is typically an integral type, but you can make a Range of anything, which will become important later. Here’s a range of Unit: ().
JSer.info #506 - Moment.jsのウェブサイトにProject Statusが追加されています。 Moment.js | Docs Moment.jsに新しい機能の追加などはしないメンテンスモードであることが書かれています。 互換性保ちつつ新しい機能や仕組みを入れるのは難しい状態であるため、別のライブラリの利用を推奨しています。 代替となるライブラリとしてLuxon、Day.js、js-joda、date-fnsについて紹介されています。 また、Intl APIや現在策定中のTemporalについても書かれています。 このプロジェクトステータスの明示の発端は、Chrome Dev ToolsのLighthouseにmoment.js利用の警告を表示したことに起因しています。 If JavaScript libraries are proving costly, repl
こんにちは、CX事業本部の若槻です。 今回は、Visual Studio Codeに導入したPrettierプラグインのフォーマット機能を言語単位で無効にしてみました。 Prettierとは? コードフォーマッターです。2020年9月時点で、8種類以上のエディター、24種類以上の言語に対応しています。 https://prettier.io/ なぜPrettierのフォーマット機能を言語単位で無効にしたかったのか? わたしはVisual Studio CodeにPrettierエクステンションを導入して使用しています。開発時のコードフォーマット機能としてはとても便利なのですが、ひとつ困っていたのがマークダウン文書の作成時に意図しないフォーマットがPrettierにより行われてしまうことでした。 その中でも一番困っていたのが、下記のようにマークダウン文書(名前がXXXX.MDのファイル)を編
JavaScript での時刻操作に Moment.js ではなく Day.js を利用し続けている理由2020/09/21 昨日、拙作の Nuxt.js プラグインである @nuxtjs/dayjs の v1.2.0 をリリースしました。 このプラグイン自体は2019年3月に開発をはじめて、おおよそ一年半ほど管理してるのですが、それ以前から JavaScript での時刻操作では Day.js を使ってきました。 Moment.js のプロジェクト終了が告知され、時刻操作ライブラリに注目が集まっていることなので、今一度 Day.js の採用理由についてまとめてみます。 Day.js について iamkun によって開発されている時刻操作のライブラリです。Moment や date-fns などは Organization によって管理されていますが、時刻操作ライブラリとしては珍しく個人に
Rust in Action introduces the Rust programming language by exploring numerous systems programming concepts and techniques. You'll be learning Rust by delving into how computers work under the hood. You'll find yourself playing with persistent storage, memory, networking and even tinkering with CPU instructions. The book takes you through using Rust to extend other applications and teaches you tric
const N = 100; for(let i = 0; i < N; i++){ //...なんか処理 } こんなダサいループは書きたく無い。。。 pythonのrange(N)みたいなのがJavaScriptにもあったらなぁ。。。 解決策 英語でググってみたらStackOverflowに良い解決策が載っていたのでご紹介。 世界には頭の良い人がいるものだなぁ。 const N = 100; [...Array(N).keys()].forEach(i => { //...なんか処理(iには0...N-1(=99)が格納される) });
I hate slow websites. They are annoying to use and frustrating to work on. But what does it mean to be “slow”? It used to be waiting for document load. Then waiting for page ready. But with so many asynchronous patterns in use today, how do we even define what “slow” is? The W3C has been working on this with the new Event Timing and Element Timing API, and has defined some new Web Vital metrics to
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く