Page 3 of 3 <123
Topic Options
#194801 - 2009-07-15 04:55 PM Re: SteelKix [Re: Lonkero]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
hmm...
this codeplex site doesn't seem so reliable.
my network is working now and I can access all other websites fine but that site times out.
_________________________
!

download KiXnet

Top
#194802 - 2009-07-15 05:16 PM Re: SteelKix [Re: Lonkero]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
sorry for the LATE question, but why steelkix?
why not kix.net? or something.

in english, what does that steel in the name stand for?
sounds kinda old...
_________________________
!

download KiXnet

Top
#194803 - 2009-07-15 05:26 PM Re: SteelKix [Re: Lonkero]
Allen Administrator Offline
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4549
Loc: USA
Did you see my post about a donation? Seems this would qualify for either academic or charitable versions... don't ya think?
Top
#194805 - 2009-07-15 06:15 PM Re: SteelKix [Re: Lonkero]
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4396
Loc: New Jersey
Steel - a very strong metal made by removing impurities from iron. Strong, but heavy.

Kixtanium, on the other hand... strong, lightweight ;\)

Glenn
_________________________
Actually I am a Rocket Scientist! \:D

Top
#194806 - 2009-07-15 06:17 PM Re: SteelKix [Re: Allen]
WvS Offline
Fresh Scripter
*****

Registered: 2009-05-30
Posts: 42
Loc: Netherlands
Steel refers to me (my name). The names of my projects usually start with Steel. I know this sounds egocentric, but I just like the name.
Top
#194808 - 2009-07-15 06:37 PM Re: SteelKix [Re: WvS]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
the name is ok, but if it was to be brought to mainstream, I would imagine some others also would think the name as of-the-track.
_________________________
!

download KiXnet

Top
#194809 - 2009-07-15 06:47 PM Re: SteelKix [Re: Lonkero]
WvS Offline
Fresh Scripter
*****

Registered: 2009-05-30
Posts: 42
Loc: Netherlands
Not sure why names should be on some sort of 'track'. It refers to kix, and it refers to my name. The dlr implementation of Python is called IronPython, and doesn't sound of-the-track to me, even though 'iron' is not related to anything.

Edited by WvS (2009-07-15 06:48 PM)

Top
#194815 - 2009-07-15 10:03 PM Re: SteelKix [Re: WvS]
WvS Offline
Fresh Scripter
*****

Registered: 2009-05-30
Posts: 42
Loc: Netherlands
Using the DLR opens up some interesting possibilities..With some minor modifications, I managed to use SteelKix with ASP.NET! Look at this example:

ASP.NET markup:
 Code:
<%@ Page Language="SteelKix" CodeFile="default.aspx.kix"  %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>SteelKix ASP.NET example</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    	Enter your name:
        <asp:TextBox ID="TextBox1" runat="server">  
        </asp:TextBox>
        <asp:Button ID="Button1" runat="server" Text="Submit" OnClick="Button1_Click"/>
        <p>
            <asp:Label ID="Label1" runat="server" Text="Label">  
            </asp:Label>
        </p>
    </div>
    </form>
</body>
</html>


SteelKix codebehind:
 Code:
function Button1_Click($sender, $args)
    $page.Label1.Text = $page.TextBox1.Text
endfunction

Top
#194817 - 2009-07-15 10:53 PM Re: SteelKix [Re: WvS]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
yea, yea... that's the beauty of .net...
_________________________
!

download KiXnet

Top
#194901 - 2009-07-19 11:12 AM Re: SteelKix [Re: Lonkero]
It_took_my_meds Offline
Hey THIS is FUN
*****

Registered: 2003-05-07
Posts: 273
Loc: Sydney, Australia
Hi WvS,

I've been going through your source code. I have to admit there's some seriously mind boggling stuff there; especially in SteelKixTree.cs! Anyway, there are lots of KiXtart functions and macros that should be trivial to implement in .NET. I've done some .NET coding and am happy to contribute some KiXtart functions and macros so you can concentrate on the crazy language structure stuff. I figured I'd start with some string functions, and I think I may have come across a couple of issues.

Firstly, I'm not sure how to deal with optional parameters. When I overload a function, the runtime seems to expect the sum total of the parameters of each function.

Secondly, there seems to be no error thrown when a script calls a function that is not specified in the runtime or as a UDF.

Perhaps I'm missing something obvious?

Regards,

Richard

Top
#194902 - 2009-07-19 02:33 PM Re: SteelKix [Re: It_took_my_meds]
WvS Offline
Fresh Scripter
*****

Registered: 2009-05-30
Posts: 42
Loc: Netherlands
The parser, lexer and tree parser are generated by a tool, I'm glad I don't have to maintain that code by hand :). I agree that some of the code is tricky, please don't hesitate to ask questions. You can also find a lot of information on the DLR site on codeplex. As for function overloading, there was a bug that occurred when using the language context in the parameter list (I fixed this). The correct overload is selected by the number of arguments supplied. 'Empty' parameters values are substituted with Type.Missing values.

As for not displaying an error, maybe steelkix is a bit to forgiving when explicit mode is turned off. I'll look into this.

If you have any more questions, please ask.



Edited by WvS (2009-07-19 02:35 PM)

Top
#194903 - 2009-07-19 03:30 PM Re: SteelKix [Re: WvS]
It_took_my_meds Offline
Hey THIS is FUN
*****

Registered: 2003-05-07
Posts: 273
Loc: Sydney, Australia
Excellent, thanks.
Top
Page 3 of 3 <123


Moderator:  Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 393 anonymous users online.
Newest Members
Timothy, Jojo67, MaikSimon, kvn317, kixtarts2025
17874 Registered Users

Generated in 0.067 seconds in which 0.026 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org