September 2008
30 posts
“I’ve got good news. I just saved a bunch of money on my taxes.”
– IM_A_REPTILIAN comments on Bailout not passing today
Sep 29th
“I am a woman, (early thirties) and I hear the clock loud and clear… And...”
– your_opinion_sucks comment on “Redditors this is your chance to get laid!!!”
Sep 24th
JavaScript Reusability Is A Quagmire →
Sep 24th
Pedagogical Patterns →
Sep 24th
Sep 23rd
““Governor Palin, are you ready at this moment to perform surgery on this...”
– Palin: ready for neurosurgery on Day 1
Sep 22nd
Reginald Braithwaite on Rewrite [video interview] →
Sep 20th
Write Yourself a Scheme in 48 hours →
I’ll actually be doing something useful in this Haskell tutorial. Great read
Sep 18th
3 tags
Type Conversion in v8onpython
Quick v8onpytyhon update Numeric and boolean values are returned as native Python objects now (thanks, Seo!). Anything that is undefined is converted to the Python NoneType: >>> js_code = "1+2" >>> v.compile(js_code) 3.0 >>> v.compile('1 < 2') True # the following has type NoneType >>> v.compile("function f(){}") >>> Everything else is still...
Sep 17th
Borges on forgiveness
From Borges, two dual views on forgiveness. One from the point of the aggressor, the other one from the point of the victim (In “Legend”): “Now I know that you have truly forgiven me,” Cain said, “because forgetting is forgiving . I, too, will try to forget.” “Yes,” Abel said slowly. “So long as remorse lasts, guilt lasts.” But...
Sep 15th
1 note
2 tags
Last week I got distracted hacking out a REPL for v8onpython, with colors, tab completion on Number, String,Date,Object objects, reverse search via Ctrl+R. It’s basically functional at this point although something that’s sorely missing is multi-line editing.
Sep 15th
Sep 15th
False Internet claims and rumors about Palin →
“entre autres”: not a book banner, not a secessionist.
Sep 10th
Sep 10th
2 tags
Experimental Javascript console on v8onpython
The really exciting thing is that we have preliminary tab completion support (only for the Number type) for v8onpython! dfdeshom@aida:~/custom/v8onpython$ python repl.py [v8onpython Javascript console] v8onpy > num = 34 34 v8onpy > num[TAB] num num.toFixed num.toPrecision num.toExponential num.toLocaleString num.toString v8onpy > num.toString() 34 v8onpy...
Sep 10th
Python Package Index : tl.cli 0.1 →
command line interface utilities. Mainly wraps readline in an intelligent way
Sep 9th
3 tags
v8onpython news
One feature/bug of the current state of v8onpython is that we are using the same context to execute our scripts: >>> import v8onpython >>> v = v8onpython.Script() >>> v.compile('function f(a,b){return a}') 'undefined' >>> v.compile('f(-3,5)') '-3' This almost feels like a javascript REPL, although it’s less sophisticated then the current one in...
Sep 9th
Running Javascript with V8 on Python | Weboo!... →
Cool! At least one person is using my library
Sep 9th
“These people.”
– Obama to Palin: ‘Don’t Mock the Constitution’
Sep 9th
“Sarah Palin thinks she is a better American than you because she comes from a...”
– Sarah Palin’s Alaskonomics - TIME
Sep 9th
3 tags
Simulating the c++ -> operator in pyrex/cython
Recently, I stumbled into a piece of c++ code that I was trying to transform into Pyrex that looked like this: ObjectA a = new ObjectA(); ObjectB b = a->Print(); Now a did not have Print() as one of its member functions. How would I emulate -> in Pyrex? Recall that in C and C++, one defines the p->member operator as (*p).member, if p is a pointer. Here’s what I did: I defined...
Sep 8th
“[V8] will be an irresistible platform for other dynamic languages, even if they...”
– Using V8 for other languages
Sep 8th
“For adults the result has been an amazing amount of pervasive situational...”
– Kunstler on Virtual Reality
Sep 8th
3 tags
Exceptions on v8onpython
Now horrible things won’t happen if you pass invalid JavaScript to v8onpython: >>> import v8onpython >>> v = v8onpython.Script() >>> v.compile("function A(){return 1;} A();") '1' >>> v.compile("1.32w") >>> 'SyntaxError: Unexpected token ILLEGAL'
Sep 6th
python-spidermonkey →
Allows implementation of JavaScript classes, objects and functions in Python, in addition to evaluation and calling of JavaScript scripts and functions.
Sep 6th
CodeProject: Using V8 - the Google's Chrome... →
Sep 6th
4 tags
V8onPython
I’ve written a small module called v8onpython. It runs Javascript code go Google’s V8 engine. The module takes any valid Javascript string, compiles it, runs and returns the result of the of the command as a (Python) string object. Think of this as eval() in Python. This is released under the BSD license. Example usage: >>> import v8onpython >>> v =...
Sep 5th
helloblog, my already-obsolete blogging engine... →
Uses text files for storage. Features: add, edit, view posts. That’s it!
Sep 3rd
Real World Haskell [Book] →
Sep 2nd
“I don’t think Google has enough of my personal information, so this will...”
– onefriedrice, on Google Chrome, the Google Browser
Sep 1st