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
Over the past couple of months, we have implemented support for BigInts in V8, as currently specified by this proposal, to be included in a future version of ECMAScript. The following post tells the story of our adventures. TL;DR #As a JavaScript programmer, you now[1] have integers with arbitrary[2] precision in your toolbox: const a = 2172141653n; const b = 15346349309n; a * b; // â 333344445555
æ¦è¦ æ°ããããªããã£ãåã§ããSIMDååã³APIãV8ã§å®è£ ããã¦ãã¦ããã SIMDã¨ã¯ãè¤æ°ã®æ°å¤ã並ã¹ã¦ï¼ã¤ã®å¤ã¨ãããããªãã¼ã¿åã§ããã ããã¯CPUã«ãã£ã¦å¹çè¯ããµãã¼ãããã¦ãããã¼ã¿åã§ããã 1 + 2 -> 3 ãããããã« [ 1, 2, 3, 4 ] + [ 2, 3, 4, 5 ] -> [ 3, 5, 7, 9 ] ã1åã®æ¼ç®ã§ãããã¨ãã§ããã ã¤ã¾ãã沢山ã®æ°å¤ãæ±ãå ´é¢ã§SIMDåãå©ç¨ãããã¨ã§ãä½åãã®ããã©ã¼ãã³ã¹åä¸ãæå¾ ã§ããã ï¼â»WASMã«å ¥ããã¨ã¨ãªããESããã¯ä¸æ¦åãé¤ããã¾ãããï¼ å®è£ ãããå float32x4 32bitæµ®åå°æ°ç¹åã4ã¤ä¸¦ã¹ã128bitã®ãã¼ã¿å float32ã¯JSã®é常ã®numberã§ããã¨ããã®float64ãã精度ãä½ã int32x4 32bit符å·ä»ãæ´æ°åã4ã¤ä¸¦ã¹ã128bitã®ãã¼ã¿
æ¦è¦ å¾ ã¡ç¦ããã人ãå¤ããã¨ã ãããES2015ã®ä¸çªã®ç®çæ©è½ã¨ãè¨ããã¯ã©ã¹æ§æããã¤ãã«V8ã§ãµãã¼ããããã Classæ§æã¯ããé¢æ°ï¼ã³ã³ã¹ãã©ã¯ã¿ï¼å®ç¾©ãï¼ã.prototypeã¸ã®ã¡ã½ããå®ç¾©ãã®ç³è¡£æ§æã§ããã JSã§ä»ã¾ã§æ§ã ã«å·¥å¤«ããã¦ããã¯ã©ã¹ã®æ¸ãæ¹ãã綺éºã«çµ±ä¸ãã¦ãããå¯è½æ§ãç§ãã¦ããã ã¯ã©ã¹ãä½ã å¾æ¥ãCatã¯ã©ã¹ãä½ããã¨ããå ´åãã®ããã«æ¸ãã¦ããã function Cat(name) { this.name = name } Cat.prototype.meow = function () { alert( this.name + 'ã¯ãã£ãªã¨é³´ãã¾ãã' ) } ããããã®æ¸ãæ¹ã ã¨ã©ããã¦ããã³ã³ã¹ãã©ã¯ã¿ã¨ã¡ã½ããã®å®ç¾©ãåé¢ããã¦ãããããã¯ã©ã¹ã¨ãã¦ã¾ã¨ã¾ãããªãåããã¥ããæããã ã¡ã½ãããå¢ãã¦ããæããCat.prototyp
æ¦è¦ ãµãã²ã¼ããã¢ãèæ ®ãã¦ãString.fromCharCodeã¨String.prototype.charCodeAtã¨åãåãããã String.fromCodePointã¨String.prototype.codePointAtã¡ã½ãããå®è£ ãããã ä¾ var str = 'ð ®ã' str.length // 3 str[0] // ï¼æåã«ãªããªãï¼ str[1] // ï¼æåã«ãªããªãï¼ str[2] // "ã" str.charCodeAt(0) // 55362 str.charCodeAt(1) // 57247 str.codePointAt(0) // 134047 // (55362 << 10) + 57247 - 0x35fdc00 str.codePointAt(1) // 57247 String.fromCharCode(55362, 5724
node.js/v8ã®generatorsã®ããã©ã¼ãã³ã¹ã«ã¤ãã¦ã¡ãã£ã¨èª¿ã¹ã åãã«æã£ã¦ããã¾ãããä»åã®èª¿æ»ã¯ãnode v0.11.5 (Linux)ã§è©¦ãããã®ã§ãä»ã®ç°å¢ã§ã¯ç°ãªãããããã¾ãããããã«ãä»å¾ã®ãã¼ã¸ã§ã³ã¢ããã«ãã£ã¦ã¯å ¨ãç°ãªãçµæã¨ãªããã¨ãååãããã¾ããã注æãã ES6ã«generatorsãå ¥ãã¨ã®ãã¨ã§ãJavaScriptã§continuationã使ããªãããªãã¨æã£ã¦ããèªåã¨ãã¦ã¯ãèå³ãæã¡ã¾ããã ã¡ãªã¿ã«ãgenerator, coroutine, continuationã®é ã«è¨è¿°åãä¸ããããã§ãããã¡ããåèã«ãªãããããã¾ããã ãã¦ãgeneratorsã®èª¬æã¯ä»ã«ä»»ããã¨ãã¦ããããªãã³ã¼ãã§ãã function* es6_generator() { yield 1; yield 2; yield 3; yield 4
â»ãã¿ã§ã â»UDFã§ã Mysql 5.1 Plugin Development ä½è : Andrew Hutchings,Sergei Golubchikåºç社/ã¡ã¼ã«ã¼: Packt Publishingçºå£²æ¥: 2010/08/30ã¡ãã£ã¢: ãã¼ãã¼ããã¯è³¼å ¥: 1人 ã¯ãªãã¯: 45åãã®ååãå«ãããã° (2件) ãè¦ã ãã°ããç©ãèªãã¦ãããã®æ¬ãã¡ãã£ã¨çºãã¦ã¿ãããMySQLã®UDFã£ã¦ç°¡åã«ä½ãããã ãªã¼ãã¨æã£ã && ããããV8ã£ã¦ã©ã¤ãã©ãªã¨ãã¦ç°¡åã«ãªã³ã¯ã§ããã¯ãã ãªãã¨æãåºãã ã®ã§ãã¤ãã«ãã¨ãªã£ã¦ä½ã£ãã http://github.com/zentooo/mysqludf-jseval UDFããã¬ï½ ã»ã¨ãã©âã®æ¬ã®åã売ãã«ãªããã©ãä¸å¿MySQLã®UDFã«ã¤ãã¦åå¿é²ä»£ããã«è»½ãç´¹ä»ãã¦ãã㨠UDFã追å ããå ´åãMySQLã®åã³ã³ãã¤
æç³»åã§ä¸¦ã¹ãã¡ã¢ nodeãv8以å¤ã§ãèµ°ãããå¯è½æ§çã nodeçéã®æ´»çºãªããã¨ãã¯é¢ç½ã node on spidermonkeyã¯å½åæ¤è¨ããã¦ã nodeã¯ãªã¨ã¼ã¿Ryan Dahlã«ãã㨠ãã ã2æ¥ã ã å´ä¸çç±ã¯ãä»ã®ã·ã¹ãã ã¸ã®ä¾åé¢ä¿ãã¹ãã¬ã¹ãv8ã®æ¹ãã¢ãã³ v8ã¯ããã±ã¼ã¸åããã¦ãããä»ã«ãå©ç¹å¤ãã£ãã®ã§ãã£ã¨v8ä¸ç ãªã½ã¼ã¹ The Node Ahead 4ãã¼ã¸ç®ããããåã«æãèªã¿ãã Cade Metzã好調Nodeã - ã¯ã©ã¤ã¢ã³ãã»ãµã¤ãã»ã¹ã¯ãªããã£ã³ã° with Web Standards 以éãã£ã¨nodeããã¸ã§ã¯ãã¯v8ãå¯ä¸ã®VMã¨ãã¦éçº v8ãã¼ã ã¨nodeãã¼ã ã¯ç¸äºã«é£æº ãã°ç´ãã¦ããã£ãã crankshaftãªãªã¼ã¹ãããã°åãè¾¼ãã ã ãªã½ã¼ã¹ å²æããThe Node Aheadãã®ä¸ã«ãã¨ãã½ã¼ãã¯ç´¹ä»ããã¦
æè¿ã©ã®ããã°ã§ã node.js ã°ããã§ãã飽ã飽ããã¦ãçããããã°ããã node.js é¢ç½ãã§ãããï¼ã§ node.js ã£ã¦ã¢ããªã±ã¼ã·ã§ã³ãä½ãå´(ã¤ã¾ãã©ã¤ãã©ãªã使ãå´)ããããã¨ãWebå¨ãã®ä¾¿å©ãªã©ã¤ãã©ãªãæ¢ã«è²ã ãã£ã¦ããã®ã©ã¤ãã©ãªãä¸ä½ã©ããã£ã¦åãã¦ãã®ãæ°ã«ãããã¨ã£ã¦ããã¾ãç¡ããã¨æãã¾ãã pure javascriptãªç©ãªãã°ã³ã¼ããèªãã®ã¯ç°¡åã§ãããã ããããäºã«éããããã¾ããnode.js ã¯Google製ã®JavaScript Engineã§ããv8ããã¼ã¹ã«ä½ããã¦ããã®ã§ããããã®v8ã¯ã¢ããªã±ã¼ã·ã§ã³ã«çµã¿è¾¼ãã®ã«é©ããæ§æã«ãªã£ã¦ãã¦ãé¢æ°ãã³ãã¬ã¼ããã¤ã³ã¹ã¿ã³ã¹ããããã¿ã¤ãã¨ããåæ©è½ãC++ã®ã¯ã©ã¹ãã³ãã¬ã¼ãã§ä¸æã表ç¾åºæ¥ã¦ããã©ã¤ãã©ãªã§ããSpidermonkeyã確ãã«æ±ãã®ã¯ç°¡åãªã®ã§ãããåããããã¨è¥å¹²
node.js ã®ããã¥ã¡ã³ããè¦ã¦ããã C/C++ ã§ç°¡åã«æ¡å¼µãæ¸ãããã ã£ãã®ã§è©¦ãã¦ã¿ãã addons - Node.js Manual & Documentation ããã¥ã¡ã³ãã«è¼ã£ã¦ãã hello.cc ãã¿ã¦ã¿ãã¨ï¼ #include <v8.h> using namespace v8; extern "C" void init (Handle<Object> target) { HandleScope scope; target->Set(String::New("hello"), String::New("world")); } ãã® extern "C" void init (Handle<Object> target) ã¨ãããã¤ããjs㧠require("hello") ããã¨ãã«å¼ã°ããæããããããã®é¢æ°ã ãã¯å¿ ãå®è£ ããå¿ è¦ãããã ãã®ä¸ã® Ha
google chrome ã«ãæè¼ããã¦ãã V8 engine ã VS2010 (VC++ 2010 / visual studio 2010) ã§ãã«ããããã¨ããã話ã§ãã ç°å¢æ§ç¯ ãã®1 svn ãå°å ¥ã svn å ¥ãã¾ãã windowsã¦ã¼ã¶ãªããtortoisesvn(ã¨ã¼ãã ããã¶ããã¬)ããªã¹ã¹ã¡ã§ããé ããã©ã ããããè½ã¨ãã¾ãã http://tortoisesvn.net/downloads.html ã¤ã³ã¹ãã¼ã«å¾ã« PC ã®åèµ·åããããã®ã§ã注æãã¦ãã ããã ç°å¢æ§ç¯ ãã®2 python ãå°å ¥ã pythonå ¥ãã¾ãã python ã£ã¦ver2ç³»ã¨ver3ç³»ã§éããããã®ã§ãã¨ãããã2ç³»ãå ¥ãã¾ãã #ãããããã 3ç³»ã§ããããããããããã http://www.python.jp/Zope/download/pythoncore ht
JavaScript Advent Calendar 2010 ã¨ããä¼ç»ããã£ã¦ãã¾ããæ¢ã«ãã7æ¥ç®ãªã®ã§ãããã¾ã ã¾ã os0x ããã hasegawayosuke ããã nanto_vi ããã secondlife ããã¨ãã£ããããæ¹ã ãè¨äºãæ¸ãã¦ãããäºå®ã«ãªã£ã¦ãã¾ãã®ã§ãæ¯éãã§ãã¯ãã¦ã¿ã¦ãã ããã ä»æ¥ã¯ãæè¿è©±é¡ã® node.js ãèªãã§ã¿ã¾ããåèªèº«ã¯ node.js ã追ã£ããã¦ãã®ã¯ä»å¹´ã®5æãããã§ãã½ã¼ã¹ã¯å年以ä¸è¦ã¦ãªãã£ãã®ã§ããããã®æ©ä¼ã«ã¾ãèªã¿ã¾ããããã®è¨äºã¯ãC++ ã¯ä¸å¿èªãããã© V8 ã¨ã libev ã¯ãã¾ãç¥ããªã node.js 好ãã®äººã念é ã«ç½®ãã¦ãã¾ãã æ訳㮠Embedder's Guide - V8 JavaScript Engine ã«æ¸ãã¦ãããããªãã¨ã¯èª¬æãªãã§ããããã¨æãã¾ããã¾ããé©å® libev
Not your computer? Use a private browsing window to sign in. Learn more about using Guest mode
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}