JavaScriptの単体テストやE2Eテスト。書いてますかー? それらのテストをCIで実行するとき、Headless ブラウザとしてPhantomJSを使っている人が多いと思います。私もそのうちの一人で、仕事でも使っています。 PhantomJSとは、Scriptable Headless WebKitと説明されており、WebKitベースのブラウザです。 WebKitはただのレンダリングエンジン。という認識だったため、PhantomJSのJavaScriptエンジンはなんだろう?なんでJavaScriptが動いているんだろう?という疑問が沸き起こり、色々調べてみたのでまとめてみます。 JavaScriptエンジンとは? JavaScriptエンジンの役割は、JavaScirptを解釈して実行することです。 例えば、ECMAScript6の機能が使えるブラウザがある。ということは、そのブラ
Introducing Juice – What is it and How to Get StartedWednesday, Mar 15, 2023 Whether you’re an experienced web developer or relatively new to the enthralling world of coding, the chances are that you’ve heard of the CSS incliner ‘Juice’. In many ways, Juice is an advanced CSS tool that offers users a number of functions, depending on whether they want to process an online file or HTML string or li
久々のBlog更新、というわけでリハビリがてらJavaScriptで軽く遊んでみたいと思います。 いま、巷で流行ってるMapReduceのオープンソース実装Hadoopは「Hadoop Streaming」という標準入出力でデータのやりとりができる仕組みを使って、 Hadoopの実装言語であるJavaにとらわれず、RubyやPerlなど他の言語でもMap+Reduceの処理ができることが1つのウリになっています。 で、僕たちwebエンジニアはみんなJavaScript大好きなので、「JavaScriptでもMap Reduceやりたい!」という流れになるのは必然です。 そこで、試行錯誤でいろいろ試してみると割とさっくり出来たのでそのメモを残しておきたいと思います。 環境の整備 Mac OSX上のVMWare FusionにCentOSの仮想マシンを2台立ち上げて、環境セットアップしました。
Running jslint from the commandline using spidermonkey A lot of people are aware of the JSLint javascript syntax parser, and if they're not, they should be! JSLint, created by Mr. Douglas Crockford is a wonderful utility that can save you a lot of grief when you're writing javascript. Why? Well, because javascript is designed to be run behind the scenes by your web browser. In order to keep the ex
rhinoでE4Xの続き。コメントでspidermonkey-binは? とid:takano32さんに言われたのでインストールしてみた。 $ apt-cache search spidermonkey libmozjs-dev - Development files for the Mozilla SpiderMonkey JavaScript library libmozjs1d - The Mozilla SpiderMonkey JavaScript library libmozjs1d-dbg - Development files for the Mozilla SpiderMonkey JavaScript library spidermonkey-bin - standalone JavaScript/ECMAScript (ECMA-262) interpreter js
The other day at LA RubyConf during the Johnson presentation, I showed a few slides which I don't think were given the time that they deserve. Not that we didn't have enough time, I just don't think I made as big a deal about them as I should have. Those particular slides demonstrated HTML Document Object manipulation executed in JavaScript outside any web browser. Those particular slides, and tha
In my last post about Johnson, I said that next time I would talk about the JavaScript parse tree that Johnson provides. Well, I changed my mind. Sorry. I want to write about a rails plugin that I added to Johnson. Brohuda Katz wrote an ERb type parser in JavaScript, and added it to the (yet to be released) Johnson distribution. With that in mind, and looking at the new template handlers in edge r
Sup bros. I need to post in this thing more often. Yesterday, someone tipped over my scooter again. I’m getting kind of tired of that. Anyway, its time for me to write about this. RKelly is pretty much dead. For the past few months, John and I have been working on RKelly’s replacement called Johnson. Basically we’re now putting a ruby wrapper around Mozilla’s Spidermonkey. The project is coming al
こんなものがあった。 http://github.com/jbarnette/johnson/tree/master http://tenderlovemaking.com/2008/04/23/take-it-to-the-limit-one-more-time Firefox が使っている javascript エンジン http://www.mozilla.org/js/spidermonkey/ の ruby bridge のようだ。 README.txt に書いてあるとおりに gem install jhonson できなかったので、 git clone git://github.com/jbarnette/johnson.git cd johnson rake irb で試すとこんな感じ irb -I./lib -rjohnson >> Johnson.evaluate("va
二年前に SpiderMonkey 使って perl で簡単な Syntax チェック用の Script を書いてみた 改訂版 と言う記事を書いたのですが、部下に JS を教える為に環境構築していたら、Perl Module の JavaScript と JavaScript::JSLint のテストが通らずイラっとしたので、jslint: The JavaScript Verifier で配布されている fulljslint.js を流用してコマンドを作って Vim から使えるようにしたのでメモを残します。 fulljslint.js の設置 適当にダウンロードしておく。 % mkdir -p ~/bin/js % curl http://www.jslint.com/fulljslint.js > ~/bin/js/fulljslint.js fulljslint.js のラッパーを作
JavaScript shell (js)、OSSP js 1.6.20060820のZaurus向けパッケージ autoconf化されてビルドが楽なOSSP版JavaScript shell (js) 1.6.2006082版のZaurus向けパッケージを作りました。mal_blueさん情報ありがとうございました。 JavaScript shellであるところの「js」は、JavaScriptエンジンであるSpiderMonkeyの応用例の一つに過ぎず、SpiderMonkeyそのものじゃないんですね。 以降、JavaScript shell (js)と表記します。 「OSSP-js_1.6.20060820_arm.ipk.bin」をダウンロード インタラクティブモードのコマンドライン編集のためにGNU Readline 5.1を組み込んであります。 ./configure --wit
RhinoからMochiKitを使う Rhino, JavaScript MochiKit off the web 詳細未調査です。 Rhinoでも、SpiderMonkeyでも、Mochikitを使えるよ、とBobさん。 早速試して見ました。 まず、配布プロダクトzipには含まれていないので、Subversionリポジトリ(http://svn.mochikit.com/mochikit/trunk)から最新のコードを取得します。 /trunk/scripts/spidermochi.jsを、/trunk/に持ってきます。 ファイルを開き、一番上の行のシェル指定行(#!/usr/bin/env js -w)を消して、以下コマンドで実行です。 jrunscript -f spidermochi.js テストが実行されて、概ね動いていますが、5つぐらいこけてます。ちょっと後で見てみようっと。
New in JavaScript 1.7 - MDC SpiderMonkey Build Documentation - MDC SpiderMonkeyのビルド - ラシウラ mkdir SpiderMonkey cd SpiderMonkey wget http://ftp.mozilla.org/pub/mozilla.org/js/js-1.7.0.tar.gz tar zxvfp js-1.7.0.tar.gz gZip、eXtract、Verbose、File、Permissionの略。 rarの使い方なんかより、tarの使い方を知ったほうが良いと思う。 cd js/src make -f Makefile.ref OS_ARCH=Linux make -f Makefile.ref OS_ARCH=Linux js 1回目のmakeで失敗するが、気にせず続けるとLinux
With wxJavaScript you can build GUI applications, dynamic web pages and system scripts in JavaScript What is wxJavaScript? wxJavaScript started as a project for porting wxWidgets to JavaScript. But now, wxJavaScript is a lot more. It has bindings for curl, sqlite, mysql, ... With mod_wxjs it can be used as an Apache module to write dynamic (x)html pages in JavaScript. It also contains a FastCGI pr
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く