?

Log in

No account? Create an account
MacBook Pro, Parallels, Nexenta, Solaris 10, .... - brad's life — LiveJournal [entries|archive|friends|userinfo]
Brad Fitzpatrick

[ website | bradfitz.com ]
[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

MacBook Pro, Parallels, Nexenta, Solaris 10, .... [May. 11th, 2006|09:14 am]
Brad Fitzpatrick
[Tags|, , , ]

Artur (crucially) and I just got MacBook Pros. Artur got the 17" because he's compensating, whitaker's waiting for the 12", and I got the 15" because it was juuuuusst right.

Anyway: the idea being I could replace my Thinkpad (currently dual-booting Ubuntu and Windows, and with VMWare in Windows with Debian Sarge, Nextenta) as well as replace my Dual G5 tower which I use only for JavaScript testing in Safari, a total waste. Some Photoshop wizard at work can take it instead and actually appreciate it. Then I'd have one laptop with OS X, Windows, Debian Sarge, Ubuntu, Xen playground, Solaris10/Nexenta, etc, etc.

Theory vs. reality:

Parallels ain't all there yet. It's no VMWare in terms of hardcore-edness. Notably:

-- it freezes if your machine sleeps (yes, I have beta6)
-- you then have to reboot your machine, and THEN reinstall parallels because "It could not communicate with one of its drivers".
-- it doesn't boot Nexenta ISOs.
-- it sometimes(!?!??!), like 1 in 4, boots Solaris 10 ISOs.
-- the UI is pretty horrid (it's good enough, though)
-- no snapshotting/branching (I can live without it. too bad I don't have LVM2 or ZFS on OS X though)

On the plus side, Parallels is improving rapidly. Qemu is also improving rapidly. And VMWare has an OS X product coming out soon. So the future is bright. Just a little sad the future isn't here yet. (see also: where's my f'ing flying car?)

In other news while I'm hating: Expat Perl bindings blow. But there's no other event-generating push parser in Perl (I don't want a DOM) and XML::LibXML::SAX only lets me feed it well-balanced chunks. F that. So fixing Expat Perl bindings it is.... but can only trigger the bug once in a rare while. So I have to start logging all traffic and writing a replay system for Danga::Socket so any crash I can then turn around and turn into a test case, played at full speed back to the system, getting same readable/writable/fake reads/null writes/fake alarms/fake err/hup, etc... all external influences logged. Blah. Will be useful, but didn't want to write it.

I should get to work.
LinkReply

Comments:
From: edge_walker
2006-05-12 02:34 am (UTC)

Note that libxml2 does let you combine a push parser with a SAX event generator. At the C API level, you set up a SAX callback struct as you normally would, then pass it to xmlCreatePushParserCtxt as you normally would, then use xmlParseChunk until you have consumed your input as you normally would. Ie. there’s nothing special about combining SAX and the push parser at all. It just works.

Maybe fixing XML::LibXML::SAX to expose this capability would be a more worthwhile investment of effort than dragging Expat ever further along into a future it was not equipped for?

(Reply) (Thread)
[User Picture]From: brad
2006-05-12 06:46 am (UTC)
True. I just read all the relevant LibXML C, XS, and Perl code.... I see the problem now. I'll have a crack at fixing it this weekend.
(Reply) (Parent) (Thread)