FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Walnut + Tango

 
Post new topic   Reply to topic     Forum Index -> Walnut
View previous topic :: View next topic  
Author Message
teqdruid



Joined: 11 May 2004
Posts: 390
Location: UMD

PostPosted: Tue Jun 26, 2007 11:22 am    Post subject: Walnut + Tango Reply with quote

Walnut uses Phobos, right?

Has anyone had any sucess getting Walnut to run with Tango via Tangobos or something? I'm talking about 1.0 or 2.0, if 2.0 is functional.

Thanks,
John
Back to top
View user's profile Send private message Send e-mail AIM Address
dan.lewis



Joined: 21 Feb 2007
Posts: 69
Location: Canada

PostPosted: Tue Jun 26, 2007 6:48 pm    Post subject: Reply with quote

2.0 hasn't yet been released. It's still in development.

I, like every other implementor of ECMAScript, opted to use UTF-8 instead of UTF-16 like the specification calls for; so "char" in D.

Walnut doesn't use anything from phobos that isn't compatible with tango (to the best of my knowledge) so tangobos ought to work.
_________________
nop
nop ; problem solved
Back to top
View user's profile Send private message
teqdruid



Joined: 11 May 2004
Posts: 390
Location: UMD

PostPosted: Fri Jun 29, 2007 3:04 pm    Post subject: Reply with quote

dan.lewis wrote:
2.0 hasn't yet been released. It's still in development.

I, like every other implementor of ECMAScript, opted to use UTF-8 instead of UTF-16 like the specification calls for; so "char" in D.

Walnut doesn't use anything from phobos that isn't compatible with tango (to the best of my knowledge) so tangobos ought to work.


Well, I gave it a shot, but no-go. It segfaults:

Code:
teqdruid@home:~/workspace/walnut/source$ gdb main
GNU gdb 6.6-debian
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...
Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
(gdb) run ../test/sieve.nut
Starting program: /home/teqdruid/workspace/walnut/source/main ../test/sieve.nut
[Thread debugging using libthread_db enabled]
[New Thread -1210038592 (LWP 21792)]
1 source files

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1210038592 (LWP 21792)]
0x08078344 in _d_monitorenter ()
(gdb) bt
#0  0x08078344 in _d_monitorenter ()
#1  0x08088e59 in _D3std6thread6 Thread7getThisFZC3std6thread6Thread ()
#2  0x08051d6e in _D13threadcontext13ThreadContext16 getThreadContextFZPS13threadcontext13ThreadContext ()
#3  0x08051ebe in _D7program7Program11initContextMFZv ()
#4  0x08051e7e in _D7program7Program5 _ctorMFZC7program7Program ()
#5  0x0804bdb6 in _D4main7SrcFile7compileMFZv ()
#6  0x0804bb40 in _Dmain ()
#7  0x08079b44 in _D6dmain24mainUiPPaZi7runMainMFZv ()
#8  0x080799a9 in _D6dmain24mainUiPPaZi7tryExecMFDFZvZv ()
#9  0x08079b81 in _D6dmain24mainUiPPaZi6runAllMFZv ()
#10 0x080799a9 in _D6dmain24mainUiPPaZi7tryExecMFDFZvZv ()
#11 0x08079952 in main ()

(Spaces inserted into symbols to get phpBB to behave)


This is actually the same place that DMDScript straight from DM segfaults- not surprising, I guess.

Anyway, this is probably a Tangobos issue, so I'll report it there.


Any chance 2.0 will be Tango instead of Phobos? It'd make it much easier to use.

~John
Back to top
View user's profile Send private message Send e-mail AIM Address
dan.lewis



Joined: 21 Feb 2007
Posts: 69
Location: Canada

PostPosted: Sat Jun 30, 2007 7:42 pm    Post subject: Reply with quote

Conveniently, ECMAScript methods map almost 1 to 1 to phobos' std.date and std.math. Thankfully, Phobos is functionally programmed because functional programming will - all other things equal - result in faster and smaller code in most cases. Tango's implementation is class oriented.

Once I'm done writing Walnut 2.x, if I see an opportunity to improve the usefulness of it by means of porting it to Tango, I'll do so.

Meanwhile, anyone is more than welcome to do it themselves.
_________________
nop
nop ; problem solved
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Walnut All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group