Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Newbie with 32-bit Mac
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Richard Drake  
View profile  
 More options Apr 13 2010, 10:36 am
From: Richard Drake <rdrak...@gmail.com>
Date: Tue, 13 Apr 2010 07:36:26 -0700 (PDT)
Local: Tues, Apr 13 2010 10:36 am
Subject: Newbie with 32-bit Mac
Was thinking over the weekend it would be cool to be able to parse
some JS in Ruby. Discovered Johnson (and RKelly and a few other
things). I'm currently using an old (2006) Mac Mini and Snow Leopard:

  Model Name:   Mac mini
  Model Identifier:     Macmini1,1
  Processor Name:       Intel Core Duo
  Processor Speed:      1.66 GHz
  Number Of Processors: 1
  Total Number Of Cores:        2
  L2 Cache:     2 MB
  Memory:       2 GB
  Bus Speed:    667 MHz

I've been reading your back numbers (what fun) and I guess the lack of
full 64-bit may be a snag. But here goes

~ $ ruby -v
ruby 1.8.7 (2008-06-20 patchlevel 22) [i686-darwin8.11.1]
~ $ file -L `which ruby`
/usr/local/bin/ruby: Mach-O universal binary with 2 architectures
/usr/local/bin/ruby (for architecture i386):    Mach-O executable i386
/usr/local/bin/ruby (for architecture ppc):     Mach-O executable ppc
~ $ sudo gem install johnson -v "2.0.0.pre3"
Building native extensions.  This could take a while...
ERROR:  Error installing johnson:
        ERROR: Failed to build gem native extension.

/usr/local/bin/ruby extconf.rb
checking for jsautocfg.h in /usr/local/lib/ruby/gems/1.8/gems/
johnson-2.0.0.pre3/vendor/tracemonkey... no
checking for jsapi.h in /usr/local/lib/ruby/gems/1.8/gems/
johnson-2.0.0.pre3/vendor/tracemonkey... no
creating Makefile

make
g++ -I. -I/usr/local/lib/ruby/1.8/i686-darwin8.11.1 -I/usr/local/lib/
ruby/1.8/i686-darwin8.11.1 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE   -
fno-common -O2 -arch i686 -arch ppc  -fno-common -pipe -fno-common  -
g  -Wall  -Wextra  -Wcast-qual  -Wwrite-strings  -Wconversion  -
Wmissing-noreturn  -Winline  -DXP_UNIX   -c context.cc
In file included from context.h:4,
                 from context.cc:1:
tracemonkey.h:9:19: error: jsapi.h: No such file or directory
tracemonkey.h:10:20: error: jshash.h: No such file or directory
etc

That was after trying a few different versions before that ... so it
took less time to fail. The thing is, I can see the jsapi.h and the
rest. I don't want to spend an age on Johnson - this week anyway - but
it would be cool to have the full McCoy if it's possible. If not, I'll
go in another direction.

Thanks in advance. It looks a great concept.

Richard


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Steven Parkes  
View profile  
 More options Apr 13 2010, 3:41 pm
From: Steven Parkes <smpar...@smparkes.net>
Date: Tue, 13 Apr 2010 12:41:24 -0700
Local: Tues, Apr 13 2010 3:41 pm
Subject: Re: [johnson-talk] Newbie with 32-bit Mac

> g++ -I. -I/usr/local/lib/ruby/1.8/i686-darwin8.11.1 -I/usr/local/lib/
> ruby/1.8/i686-darwin8.11.1 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE   -
> fno-common -O2 -arch i686 -arch ppc  -fno-common -pipe -fno-common  -
> g  -Wall  -Wextra  -Wcast-qual  -Wwrite-strings  -Wconversion  -
> Wmissing-noreturn  -Winline  -DXP_UNIX   -c context.cc
> In file included from context.h:4,
>                 from context.cc:1:
> tracemonkey.h:9:19: error: jsapi.h: No such file or directory
> tracemonkey.h:10:20: error: jshash.h: No such file or directory
> etc

I'm not sure why, but that command looks bogus. The '-I.' right before the '-D_XOPEN_SOURCE' is not right: it should point to the vendored tracemonkey, not '.'.

There are two differences between what you have and what I build/test against: I have a 64 bit install and I don't use the native ruby. PL22 seems pretty old. compared to current (at least what RVM installs), which is PL249. 2008-06-20 was quite awhile ago. I wonder if the ext build stuff was broken?

Would using a newer ruby (say, via rvm), be possible for you?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Richard Drake  
View profile  
 More options Apr 13 2010, 4:14 pm
From: Richard Drake <rdrak...@gmail.com>
Date: Tue, 13 Apr 2010 21:14:31 +0100
Local: Tues, Apr 13 2010 4:14 pm
Subject: Re: [johnson-talk] Newbie with 32-bit Mac

Embarrassing, using rvm's latest 1.8.7 seems to have fixed it.

Should have spotted that but thanks.

On 13 April 2010 20:41, Steven Parkes <smpar...@smparkes.net> wrote:

--
23 Paxton Road, London SE23 2QG
02082442459
07906768867

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Richard Drake  
View profile  
 More options Apr 14 2010, 6:57 pm
From: Richard Drake <rdrak...@gmail.com>
Date: Wed, 14 Apr 2010 15:57:31 -0700 (PDT)
Local: Wed, Apr 14 2010 6:57 pm
Subject: Re: Newbie with 32-bit Mac
That worked out really well.

Some questions. On parsing I used to_sexp as I found that form easier
to inspect. Is there a better way? Is there documentation?

Is TraceMonkey the same as SpiderMonkey these days?

Is anyone doing anything serious to link Johnson to V8?

This helped solve a key integration problem for me anyhow. Thanks for
that. I'll return :)

On Apr 13, 9:14 pm, Richard Drake <rdrak...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Steven Parkes  
View profile  
 More options Apr 14 2010, 7:10 pm
From: Steven Parkes <smpar...@smparkes.net>
Date: Wed, 14 Apr 2010 16:10:17 -0700
Local: Wed, Apr 14 2010 7:10 pm
Subject: Re: [johnson-talk] Re: Newbie with 32-bit Mac

> Is TraceMonkey the same as SpiderMonkey these days?

Yes. We're planning on switching back to just calling it all SpiderMonkey.

> Is anyone doing anything serious to link Johnson to V8?

Not that I'm aware of. As it stands, Johnson is pretty tied to the SpiderMonkey API.

> On parsing I used to_sexp as I found that form easier
> to inspect. Is there a better way? Is there documentation?

I leave that to others ...

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Richard Drake  
View profile  
 More options Apr 17 2010, 7:24 am
From: Richard Drake <rdrak...@gmail.com>
Date: Sat, 17 Apr 2010 04:24:46 -0700 (PDT)
Local: Sat, Apr 17 2010 7:24 am
Subject: [johnson-talk] Re: Newbie with 32-bit Mac
I wrote up the experience (and a few other things) at

http://rdrake98.posterous.com/ossat-nodejs-and-johnson

Hope it prompts some further interest.

On Apr 15, 12:10 am, Steven Parkes <smpar...@smparkes.net> wrote:

> > Is TraceMonkey the same as SpiderMonkey these days?

> Yes. We're planning on switching back to just calling it all SpiderMonkey.

> > Is anyone doing anything serious to link Johnson to V8?

> Not that I'm aware of. As it stands, Johnson is pretty tied to the SpiderMonkey API.

> > On parsing I used to_sexp as I found that form easier
> > to inspect. Is there a better way? Is there documentation?

> I leave that to others ...

--
Subscription settings: http://groups.google.com/group/johnson-talk/subscribe?hl=en

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »