Michael Pliskin | 5 Sep 2007 18:11
Favicon

Neko dev server crashing

Hello all,

  We're experiencing a strange issue with Neko dev server here: on a
  specific machine it crashes when processing a request from Firefox.
  Same requests done with IE/Opera work pretty fine. The exception
  we're getting is:

  Starting Neko Server on localhost:2000
  Called from tools/Tools.nml line 40
  Called from core/Args.nml line 43
  Called from core/Args.nml line 50
  Called from tools/Tools.nml line 31
  Called from core/Net.nml line 96
  Called from core/Array.nml line 100
  Called from core/Net.nml line 102
  Called from tools/WebServer.nml line 565
  Called from tools/WebServer.nml line 566
  Called from tools/WebServer.nml line 522
  Called from tools/WebServer.nml line 174
  Called from core/Lexer.nml line 214
  Called from tools/WebServer.nml line 107
  Called from core/Core.nml line 197
  Exception : Invalid_char

  The question is how do I debug that? The line that crashes from
  WebServer.nml is
        var meth = Lexer.token l http_request_method;
  I'd like some kind of trace() to be put into NekoML code to see
  what's exactly wrong with the request..

(Continue reading)

Nicolas Cannasse | 6 Sep 2007 10:08
Favicon
Gravatar

Re: Neko dev server crashing

Michael Pliskin a écrit :
> Hello all,
> 
>   We're experiencing a strange issue with Neko dev server here: on a
>   specific machine it crashes when processing a request from Firefox.
>   Same requests done with IE/Opera work pretty fine. The exception
>   we're getting is:
> 
>   Starting Neko Server on localhost:2000
>   Called from tools/Tools.nml line 40
>   Called from core/Args.nml line 43
>   Called from core/Args.nml line 50
>   Called from tools/Tools.nml line 31
>   Called from core/Net.nml line 96
>   Called from core/Array.nml line 100
>   Called from core/Net.nml line 102
>   Called from tools/WebServer.nml line 565
>   Called from tools/WebServer.nml line 566
>   Called from tools/WebServer.nml line 522
>   Called from tools/WebServer.nml line 174
>   Called from core/Lexer.nml line 214
>   Called from tools/WebServer.nml line 107
>   Called from core/Core.nml line 197
>   Exception : Invalid_char
> 
>   The question is how do I debug that? The line that crashes from
>   WebServer.nml is
>         var meth = Lexer.token l http_request_method;
>   I'd like some kind of trace() to be put into NekoML code to see
>   what's exactly wrong with the request..
(Continue reading)

Mark Winterhalder | 9 Sep 2007 17:37
Picon

Error compiling the Neko VM

Hi,

I'm getting an error when I try to compile the Neko VM:

cc -shared -WBsymbolic -o bin/std.ndll libs/std/buffer.o
libs/std/date.o libs/std/file.o libs/std/init.o libs/std/int32.o
libs/std/math.o libs/std/string.o libs/std/random.o
libs/std/serialize.o libs/std/socket.o libs/std/sys.o libs/std/xml.o
libs/std/module.o libs/std/md5.o libs/std/utf8.o libs/std/memory.o
libs/std/misc.o libs/std/thread.o libs/std/process.o -Lbin -lneko
(cd src; LD_LIBRARY_PATH=../bin:/usr/lib/neko NEKOPATH=../boot:../bin
../bin/neko nekoml -v neko/Main.nml nekoml/Main.nml)
Uncaught exception - jit_x86.c(2471) : JIT error
make: *** [compiler] Error 1

Any ideas?

HALP!

Thanks,
Mark

--

-- 
Neko : One VM to run them all
(http://nekovm.org)

Mark Winterhalder | 9 Sep 2007 17:57
Picon

Re: Error compiling the Neko VM

Fixed by the magic that is 'make clean'. :|

Sorry for the noise,
Mark

On 9/9/07, Mark Winterhalder <mark13 <at> gmail.com> wrote:
> Hi,
>
> I'm getting an error when I try to compile the Neko VM:
>
> cc -shared -WBsymbolic -o bin/std.ndll libs/std/buffer.o
> libs/std/date.o libs/std/file.o libs/std/init.o libs/std/int32.o
> libs/std/math.o libs/std/string.o libs/std/random.o
> libs/std/serialize.o libs/std/socket.o libs/std/sys.o libs/std/xml.o
> libs/std/module.o libs/std/md5.o libs/std/utf8.o libs/std/memory.o
> libs/std/misc.o libs/std/thread.o libs/std/process.o -Lbin -lneko
> (cd src; LD_LIBRARY_PATH=../bin:/usr/lib/neko NEKOPATH=../boot:../bin
> ../bin/neko nekoml -v neko/Main.nml nekoml/Main.nml)
> Uncaught exception - jit_x86.c(2471) : JIT error
> make: *** [compiler] Error 1
>
> Any ideas?
>
> HALP!
>
> Thanks,
> Mark
>

--

-- 
(Continue reading)

Dobeliou | 17 Sep 2007 20:44
Picon
Favicon

nekotools server and $loader.path

Hello list,

I've encountered a problem with nekotools server while playing around
with haXe. When I change the loader search path, the new path seems to
be ignored.

So I simply tried in Neko to load a module from a sub-directory
"./sub/mod.n":

var get_cwd = $loader.loadprim("mod_neko <at> cgi_get_cwd", 0);
$loader.path = $array(get_cwd()+"sub/", $loader.path);
$print($loader.path+"\n");
var module = $loader.loadmodule("mod", $loader);

With nekotools server, I get:

[/home/florent/temp/neko/sub/,[/usr/bin/,[/usr/lib/neko/,null]]]
Called from tools/WebServer.nml line 481
Called from tools/WebServer.nml line 454
Called from Test.neko line 4
Called from tools/WebServer.nml line 454
Exception : Neko_error(load.c(176) : Module not found : mod)

The printed search path is correct but mod.n is not found.

Changing the loader search path works fine with mod_neko. The problem is
only with nekotools.

I'm using neko 1.6.0 on Linux (x86_64), gcc 4.1.2

(Continue reading)

Nicolas Cannasse | 18 Sep 2007 12:55
Favicon
Gravatar

Re: nekotools server and $loader.path

> Hello list,
> 
> I've encountered a problem with nekotools server while playing around
> with haXe. When I change the loader search path, the new path seems to
> be ignored.

Fixed on CVS ;)

Nicolas

--

-- 
Neko : One VM to run them all
(http://nekovm.org)

Joe Wilson | 20 Sep 2007 23:57
Picon
Favicon

Re: Neko versus Tamarin

--- Joe Wilson <developir <at> yahoo.com> wrote:
> --- Matt Campbell <mattcampbell <at> pobox.com> wrote:
> > I have taken a cursory look at the Tamarin source tree, and I observe 
> > that Tamarin's GC is in a separate module called MMgc (the MM probably 
> > stands for Macromedia).  MMgc is written in C++ and has a C++ API, but 
> > it may still be a useful alternative to Boehm GC.  It begs the question 
> > of why Macromedia/Adobe didn't use Boehm GC, given how long that package 
> > has been around.
> 
> I'm guessing that MMgc is a precise collector.

...and I guessed wrong - MMgc is a conservative mark/sweep collector:

  http://developer.mozilla.org/en/docs/MMgc#Conservative_Collection

go figure.

       
____________________________________________________________________________________
Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games.
http://get.games.yahoo.com/proddesc?gamekey=monopolyherenow  

--

-- 
Neko : One VM to run them all
(http://nekovm.org)

lee | 21 Sep 2007 00:04
Picon
Gravatar

Re: Neko versus Tamarin

They may have gone a custom route to avoid certain business relative  
issues... Who knows what goes on in their slack times / meetings! From  
what you can make of MMgc, does it look worthy?  Or is it young and  
flightless?

Lee

Quoting Joe Wilson <developir <at> yahoo.com>:

> --- Joe Wilson <developir <at> yahoo.com> wrote:
>> --- Matt Campbell <mattcampbell <at> pobox.com> wrote:
>> > I have taken a cursory look at the Tamarin source tree, and I observe
>> > that Tamarin's GC is in a separate module called MMgc (the MM probably
>> > stands for Macromedia).  MMgc is written in C++ and has a C++ API, but
>> > it may still be a useful alternative to Boehm GC.  It begs the question
>> > of why Macromedia/Adobe didn't use Boehm GC, given how long that package
>> > has been around.
>>
>> I'm guessing that MMgc is a precise collector.
>
> ...and I guessed wrong - MMgc is a conservative mark/sweep collector:
>
>   http://developer.mozilla.org/en/docs/MMgc#Conservative_Collection
>
> go figure.
>
>
>
>
> ____________________________________________________________________________________
(Continue reading)

Joe Wilson | 21 Sep 2007 00:19
Picon
Favicon

Re: Neko versus Tamarin

I haven't looked at the code in depth, or even tried to run it for 
that matter.

The docs indicate that MMgc has the capability to call C++ object 
destructors for object finalization:

  http://developer.mozilla.org/en/docs/MMgc#GCFinalizedObject

which may explain why they chose to roll their own GC instead of
using Boehm, since Mozilla is written in C++.

Because MMgc is not (yet) threadsafe

  http://developer.mozilla.org/en/docs/MMgc#Threading

I would assume that collection/finalization would have to take place 
in the same thread during some sort of explicit yield or gc call.
But then again, my guesses are not that accurate. :-)

--- lee <at> designrealm.co.uk wrote:
> They may have gone a custom route to avoid certain business relative  
> issues... Who knows what goes on in their slack times / meetings! From  
> what you can make of MMgc, does it look worthy?  Or is it young and  
> flightless?
> 
> Lee
> 
> Quoting Joe Wilson <developir <at> yahoo.com>:
> 
> > --- Joe Wilson <developir <at> yahoo.com> wrote:
(Continue reading)

Maurizio Piacenza | 28 Sep 2007 09:37

installation on a VPS

Hello everybody and I bag your pardon if I ask something that you've 
already talked about, but I can't find any info around...
I've subscribed a Virtual Private Server Plan with WestHost.com because 
they told me that, generally speaking, I could install neko and haxe on 
a VPS.
Now that I'm going to install neko I have some problems and they replyed 
that they need further investigation to find if they can install 
libgc.so.1 on their VPS.
I've also tried to install neko but when I try "neko test" server tells 
me that libgc.so.1 is not installed.
The problem is that VPS plan doesn't give me a real root access: for 
example I can't create/modifiy/cancel folders in /usr/lib. But I can 
make this in /usr/local/lib.
And in fact I've installed neko in /usr/local/lib/neko.
But now I have a problem with libgc.so.1 and I have to say that I'm not 
so an expert with Linux. But I'm so interested in using neko + haxe for 
my web project.
In fact I'm a web designer and also an Actionscript programmer so I 
absolutely have to install neko + haxe + haxevideo :-)
I've installed neko+haxe+haxevideo on my local server, but it was easy 
because my local server is running Windows and I've used the installer ;-)

Thanks so much for any info you can give me.

Regards
maurizio

--

-- 
Neko : One VM to run them all
(http://nekovm.org)
(Continue reading)


Gmane