You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
High Resolution Time W3C Working Draft 07 November 2024 More details about this document This version: https://www.w3.org/TR/2024/WD-hr-time-3-20241107/ Latest published version: https://www.w3.org/TR/hr-time-3/ Latest editor's draft:https://w3c.github.io/hr-time/ History: https://www.w3.org/standards/history/hr-time-3/ Commit history Test suite:https://wpt.live/hr-time/ Implementation report: htt
グランフロントエンド Webサイトが出来ました。 http://kfug.github.io/events/2015/grandfrontendosaka/ 本当にありがとうございます!! 懇親会の募集を開始しました http://kfug.connpass.com/event/19057/ 俺達がフロントエンドの最先端だ!! 大阪グランフロントで始まる夏の祭典、今年も開催です!! グランフロントエンド2014 の様子はこちらから https://grand-front-end-osaka.doorkeeper.jp/events/11330 年々激しく変化するフロントエンドの世界の中で、 今まさにHotな情報をお伝えする、フロントエンドエンジニアのための勉強会です。 デザイン/設計/エンジニアリングと範囲の広がるフロントエンドの世界の中で、 最新のワークフローのエッセンスを体験してみてく
第0回 東京 Web PerformanceでSIMD.jsという勉強会が開催され、SIMD.js を触ってみました。 イベントの内容は @edvakfさんのレポートを見ていただくといいです。 簡単に SIMD.js の効能をいうなら、ループ回数を 1/4 にすることができる仕組み、という感じでしょうか。 SIMD.js は Firefox Nightly、Chromium SIMD ビルド、Microsoft Edge (要フラグ設定)など、既に Safari を除く主要ブラウザーで実装が存在します。 SIMD.float32x4() などの、オブジェクトを作る関数は、コンストラクターではないため、new は付けずに使います add や mul などのオペレーションは、引数にした SIMD オブジェクトに対して非破壊でおこなわれ、戻り値には新たに SIMD オブジェクトが返されます。 要
Here is our packaged up tile data type in all of its 17 bits of glory. 00000100001100001 or just 2145. Now we come across another problem, how do we get those values into a number? parseInt with base 2? Binary literals? Unbeknownst to some, Javascript comes equipped with a relatively good set of bitwise operators. We can use these to perform all kinds of binary operations on our data. From here on
最近はOculus Riftとかを主にいじってるわけですけど、いわゆるHTML5も横目でウォッチしていて、たまにJavaScriptを書いたりもします。 で、今風にBabelを使って、かつわりと楽にゆるい感じでECMAScript 2015できるようにしておこうと思って、自分用のテンプレプロジェクトを作りました。Watchify+Babelify+BrowserSyncです。 KatsuomiK/ECMAScriptTemplate GitHubからcloneしてnpm installしてnpm run watchすればブラウザが起動して、.jsを書き換えればライブリロードがかかります。MacでもWindowsでも大丈夫のはずです。 package.jsonがこんな感じです。 { "name": "ECMAScriptTemplate", "version": "0.0.0", "desc
JavaScriptで画像処理などの重い計算をしているとどうしても気になるのがループの部分。実際の処理に加えてループの部分でのロスが気になり始めたので実際にどのループ方法が速いのか試してみました。 概要 0~9999999の長さ1000万の配列のすべてを足し合わせるという単純な計算を行います 配列は、各ループの前で常に初期化を行います。 ループはforまたはwhileを用います。foreachやforinは使いません。 v8(Node.js)、Chrome、Firefox、Safariで実験を行います 筆者が噂で聞いた5つのポイント(後述)を加味した計32種類のコードを自動生成し、実行します。 各プラットフォームで5回実行し、平均をとります。 ウェブブラウザではWebWorkerを用いて実行します。 結果は実行環境に左右されている可能性があります 環境 MacBook Air (11-in
This is absolutely a NIGHTMARE for new developers. People come into the language, and there are what seems like an infinite number of "the only right" ways to do something, all of vary degrees of complexity/usefulness, and all claiming that they are god's gift to computer science.That last part is the part that is most frustrating to me, and it isn't unique to javascript. Google, facebook, yahoo,
text Melissa: So, where can I check out the build code? Warbeard: Oh, it’s on the build servers. | Melissa: Yeah, but where do you keep it? Warbeard: I said, on the build servers. | Melissa makes a very sour face. stuff.js Curtis Explains the Joke I intentionally included a lot of fun Github Red Flags in this comic. node_modules, .idea, .DS_Store It is considered a coding faux-pas to include any o
唐突に普段とは全然違うネタで更新です。タイトルの通りなんですが、Visual Studio Codeがバージョン0.5.0になって、ECMAScript 2015に対応したようです。 Visual Studio Code ♥ ES6 importしたES6モジュールのサジェストがIntelliSenseでバリバリ出てきます。 Visual Studio Codeの言語サポートについては、 JavaScript in VS Code のページに情報がありますが、jsconfig.jsonというファイルを作ってターゲットをES6に設定する必要があります。単に以下を作業フォルダに配置するだけでオーケーです。 Visual Studio Code 0.10.5から、JavaScriptファイルはデフォルトでES2015として扱われるようになりました。 // jsconfig.json { "com
というのを考えたので紹介します。 2015.09.04 内容が古くなっていたので修正 リンティングツールを jshint から eslint に変更 テストでの power-assert 用のオプション指定方法の変更 概要 基本的にはこの記事 ライブラリをES6で書いて公開する所から始めよう (必読) と同じで、それにいくつかのタスクを追加しています。やることと使用しているライブラリは以下の通りです。 ES6のコードをES5ベースに変換する / babel ブラウザ用コードを生成する / browserify ミニファイする / UglifyJS テストする / mocha, power-assert カバレッジレポートを作る / isparta リンティング / eslint ディレクトリ構成 build: ブラウザ用にビルドされたコード bower install されたときに読み込ま
I'm making a Javascript class and I'd like to have a public static field like in Java. This is the relevant code: export default class Agent { CIRCLE: 1, SQUARE: 2, ... This is the error I get: line 2, col 11, Class properties must be methods. Expected '(' but instead saw ':'. It looks like ES6 modules don't allow this. Is there a way to get the desired behavior or do I have to write a getter?
Currently in ES5 many of us are using the following pattern in frameworks to create classes and class variables, which is comfy: // ES 5 FrameWork.Class({ variable: 'string', variable2: true, init: function(){ }, addItem: function(){ } }); In ES6 you can create classes natively, but there is no option to have class variables: // ES6 class MyClass { const MY_CONST = 'string'; // <-- this is not pos
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く