Page 1 of 4 1234>
Topic Options
#206259 - 2012-11-26 02:29 AM KiXnet first public release
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
I got bored at some day last winter and decided to write a "sister" interpreter for kixtart. then got busy with other stuff and finally found the time to finish off the few last unwritten functions. so...

it's called KiXnet

it's supposed to be able to use .net natively, (kinda like powershell), right inside the script, without external help. supposed to have 32bit and 64bit executables and target wide range of .net versions.
KiXnet is also supposed to have ability to compile scripts.

for now, 1.0 is only planned to provide full kixtart language support and compatibility with kixtart 4.6x branch

0.9 version tells that it's not officially in beta state yet.
this version was build targeting .net 2.0

what ya guys think?
rude? blasphemous? cool?

Thanks to Shane Ptomey for coding the macro's
and my wife Sara Nieminen for patiently giving me time to work on my obsession.

KiXnet and test scripts are attached.
_________________________
!

download KiXnet

Top
#206260 - 2012-11-26 09:49 AM Re: KiXnet first public release [Re: Lonkero]
Arend_ Moderator Offline
MM club member
*****

Registered: 2005-01-17
Posts: 1894
Loc: Hilversum, The Netherlands
Very cool, something I've been waiting for Ruud to do for years now.
One question though, does it remain "normal" kix functionality when there are no .Net libraries installed on the client systems?

Top
#206261 - 2012-11-26 10:17 AM Re: KiXnet first public release [Re: Arend_]
Allen Administrator Offline
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4545
Loc: USA
Awesome work Lonk. My deepest apologies for not helping. My intentions were good, but so was business. Unfortunately that didn't leave much time for anything else. I'm looking forward to trying this out. \:\)
Top
#206262 - 2012-11-26 10:46 AM Re: KiXnet first public release [Re: Allen]
Allen Administrator Offline
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4545
Loc: USA
What is the minimum requirements to run this? .net ver ##?
Top
#206265 - 2012-11-26 03:28 PM Re: KiXnet first public release [Re: Allen]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
.net 2.0 was the chosen target. with 4.0 would have been way easier task but that would have just been pretty much unusable, imo.

Arend, the code won't run on system without .net, sorry.
_________________________
!

download KiXnet

Top
#206266 - 2012-11-26 04:10 PM Re: KiXnet first public release [Re: Lonkero]
ShaneEP Moderator Offline
MM club member
*****

Registered: 2002-11-29
Posts: 2125
Loc: Tulsa, OK
Awesome! Sorry I didn't have time to help more once school started back.
Top
#206267 - 2012-11-26 04:53 PM Re: KiXnet first public release [Re: ShaneEP]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
you did plenty. and as it's out there now, you get to do more ;\)
_________________________
!

download KiXnet

Top
#206268 - 2012-11-26 05:29 PM Re: KiXnet first public release [Re: Lonkero]
ShaneEP Moderator Offline
MM club member
*****

Registered: 2002-11-29
Posts: 2125
Loc: Tulsa, OK
The included test.kix file seems to bomb out at the following section....I thought maybe because the C:\users folder didnt exist, but changed it to c:\windows and still nothing.

 Code:
"kixtart has dir. kixnet also has getfiles:"
for each $file in getfiles("c:\windows",0) ; non-recursive option
 ? $file
next

This is on a Windows XP SP3 machine. It has up to .Net 4.0 installed.

Top
#206269 - 2012-11-26 05:38 PM Re: KiXnet first public release [Re: ShaneEP]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
uhm. yea, forgot about that. I need to recode around well known "MS bug"

shall be making a new build after hours today.
_________________________
!

download KiXnet

Top
#206271 - 2012-11-26 05:48 PM Re: KiXnet first public release [Re: Lonkero]
ShaneEP Moderator Offline
MM club member
*****

Registered: 2002-11-29
Posts: 2125
Loc: Tulsa, OK
I think there may be a array handling problem somewhere that it causing it to crash on all the For Each loops. It seems to not be the call of the function that is killing it, but rather the attempted enumeration of the results.

If I run this code...It shows just 1234, and not the zero.

 Code:
$testarr = "0","1","2","3","4"
for each $num in $testarr
  ? $num
next

CORRECTION: It's not seeing the list as an array. It's just assigning the first value "0" to $testarray, and then displaying the rest to the console. The For Each just bombs without displaying anything.


Edited by ShaneEP (2012-11-26 06:06 PM)

Top
#206274 - 2012-11-26 06:22 PM Re: KiXnet first public release [Re: ShaneEP]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
dang dang. that don't make no sense.
have to do some debug on it.
_________________________
!

download KiXnet

Top
#206275 - 2012-11-27 04:08 AM Re: KiXnet first public release [Re: Lonkero]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
after some hours debugging, the for each seems to be working correctly.
my head is spinning trying to debug my debug output :P

the workaround for the getfiles is posted everywhere, like: http://www.codeproject.com/Articles/38258/How-to-Get-a-List-of-Files-and-Folders-Without-Dir

funny thing is, microsoft doesn't still see the issue here and all coders end up using all sort of workarounds to fix the software giants shortcomings.

anyhow, there is an issue with array declaration handling as you noted. I will try to get this sorted out as it should be a rather simple thing to fix.
_________________________
!

download KiXnet

Top
#206294 - 2012-11-28 03:39 AM Re: KiXnet first public release [Re: Lonkero]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
did the array thing. took a while longer than thought.
I have come to hate c# even more with all this "Object of type 'System.Object[]' cannot be converted to type 'System.Int32[]'." crap \:\(

but, if this means kixtart as a language lives on, I will keep on fighting the crap :P
_________________________
!

download KiXnet

Top
#206296 - 2012-11-28 04:23 AM Re: KiXnet first public release [Re: Lonkero]
ShaneEP Moderator Offline
MM club member
*****

Registered: 2002-11-29
Posts: 2125
Loc: Tulsa, OK
.ToInt32() ;\)
Top
#206297 - 2012-11-28 04:50 AM Re: KiXnet first public release [Re: Lonkero]
Allen Administrator Offline
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4545
Loc: USA
I ran into that with something I was messing with too.. How did you fix it?
Top
#206298 - 2012-11-28 05:29 AM Re: KiXnet first public release [Re: Allen]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
testing what the value actually is and casting to it.
more troublesome is "system.int[]" can not be converted to system.object[]"
_________________________
!

download KiXnet

Top
#206308 - 2012-11-29 12:54 AM Re: KiXnet first public release, second build [Re: Lonkero]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
ok, inline array declaration fixed and foreach fixed.
lots of buggies seem to still exist, like vartypename() seems to eagerly return object \:\(

_________________________
!

download KiXnet

Top
#206309 - 2012-11-29 02:35 AM Re: KiXnet first public release, second build [Re: Lonkero]
It_took_my_meds Offline
Hey THIS is FUN
*****

Registered: 2003-05-07
Posts: 273
Loc: Sydney, Australia
This is fantastic and exciting Lonk! I would like to give feedback on inconsistencies between KiXtart and KiX.Net. Is there currently a method debugging scripts with KiX.Net? Are you planning to open source the code once it is finished?
Top
#206310 - 2012-11-29 03:02 AM Re: KiXnet first public release, second build [Re: It_took_my_meds]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
there is a debugger but for now it is geared towards handling debugging internals for my sake.
not sure if kixnet will ever get kix like debugger which always struck me as useless.
_________________________
!

download KiXnet

Top
#206312 - 2012-11-29 04:16 AM Re: KiXnet first public release, second build [Re: Lonkero]
It_took_my_meds Offline
Hey THIS is FUN
*****

Registered: 2003-05-07
Posts: 273
Loc: Sydney, Australia
Thanks. For what it is worth, I really do think there is a need for a debugger of some sort and I certainly use the current debugging functionality quite a bit. I have some very large scripts (one of which is 16,000+ lines) and beyond a certain size, print statements become impractical.

Anyway, I know you've put a whole lot of effort into this and I only want to encourage you further. It would be good to know the syntax for accessing the .Net framework if you have implemented it.

Top
Page 1 of 4 1234>


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

Who's Online
0 registered and 259 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.076 seconds in which 0.027 seconds were spent on a total of 14 queries. Zlib compression enabled.

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