Package manger - Script Language

Here you can discuss ReactOS related topics.

Moderator: Moderator Team

Which script languge do you like better ?

Poll ended at Sun Jan 09, 2005 4:01 pm

A basic based one.
17
63%
A Batch file based one.
10
37%
 
Total votes: 27

Dr. Fred
Developer
Posts: 607
Joined: Wed Dec 22, 2004 10:09 pm
Location: Amsterdam

Package manger - Script Language

Post by Dr. Fred » Thu Jan 06, 2005 4:01 pm

We want to code a package manager for ReactOs.
For this we need a script lang.

Here is an example for the Basic based one:

Code: Select all

Sub Main
  'This a comment
  download("http://www.somewere.org/setup.zip")
  extract("setup.zip")
End Sub

Sub After
  shell setup.exe
End Sub
and here is one for the batch file based.

Code: Select all

# This is a comment
main:
downl http://www.somewere.org/setup.zip
unzip setup.zip
after:
run setup.exe
But for advanced Stuff (like "if") we can go the Basic way here, too.

For more information about the package manager see the wiki and the topic Packet Manager on this board. General Things about it should be posted there.
Last edited by Dr. Fred on Thu Jan 06, 2005 5:20 pm, edited 2 times in total.
Where do you want ReactOS to go today ?

Dr. Fred
Developer
Posts: 607
Joined: Wed Dec 22, 2004 10:09 pm
Location: Amsterdam

Post by Dr. Fred » Thu Jan 06, 2005 4:03 pm

PS: My vote is the batch file one beause it's easier to implement,
Where do you want ReactOS to go today ?

Phalanx
Posts: 360
Joined: Sun Dec 19, 2004 12:42 am
Location: Australia

Post by Phalanx » Thu Jan 06, 2005 4:34 pm

A batch file one is not good enough. It does not allow for file version checks, registering files, extra user input, downloading extra parts, updating and creating settings and much more. It simply does not have what is required.

Dr. Fred
Developer
Posts: 607
Joined: Wed Dec 22, 2004 10:09 pm
Location: Amsterdam

Post by Dr. Fred » Thu Jan 06, 2005 4:39 pm

You can do that in a batch file, too. Alought I my suggestion was to go the Vb way for such advanced stuff.

Anyway we don't have to do everything like the original lang.
Where do you want ReactOS to go today ?

Harteex
Posts: 224
Joined: Fri Nov 26, 2004 9:21 pm
Location: Sweden
Contact:

Post by Harteex » Thu Jan 06, 2005 5:33 pm

Phalanx wrote:A batch file one is not good enough. It does not allow for file version checks, registering files, extra user input, downloading extra parts, updating and creating settings and much more. It simply does not have what is required.
Of course you can do that, it just depends which commands you implement. Just because it's a batch style, doesn't mean you're bound to standard batch file commands.

My vote is on batch.

Dr. Fred
Developer
Posts: 607
Joined: Wed Dec 22, 2004 10:09 pm
Location: Amsterdam

Post by Dr. Fred » Thu Jan 06, 2005 5:43 pm

Looks like this will be a close run.

Ohh.. I forgot to tell you the vote is for 3 days.
Where do you want ReactOS to go today ?

Phalanx
Posts: 360
Joined: Sun Dec 19, 2004 12:42 am
Location: Australia

Post by Phalanx » Thu Jan 06, 2005 6:46 pm

The lack of variables and control structures are the problem in doing the above things. It will mean you will have to create programs to do the install and updates and running them is all the batch script will do, which just makes more work.

Dr. Fred
Developer
Posts: 607
Joined: Wed Dec 22, 2004 10:09 pm
Location: Amsterdam

Post by Dr. Fred » Thu Jan 06, 2005 8:37 pm

Phalanx wrote:is all the batch script will do, which just makes more work.
This is not not a batch script ! It only looks like one. It's a brand new lang.
Where do you want ReactOS to go today ?

frik85
Developer
Posts: 829
Joined: Fri Nov 26, 2004 7:48 pm
Location: Austria, Europe
Contact:

Post by frik85 » Thu Jan 06, 2005 9:35 pm

Dr. Fred wrote:PS: My vote is the batch file one beause it's easier to implement,
I voted for a basic/vbscript like script language.

Stof91
Posts: 11
Joined: Fri Nov 26, 2004 11:06 pm

Post by Stof91 » Thu Jan 06, 2005 10:35 pm

Dr. Fred wrote:
Phalanx wrote:is all the batch script will do, which just makes more work.
This is not not a batch script ! It only looks like one. It's a brand new lang.
ROScript ;)

Asraniel
Posts: 22
Joined: Wed Dec 01, 2004 6:06 pm

Post by Asraniel » Fri Jan 07, 2005 12:56 am

Why cant you make the ROS shell more or less unix like but at the same time windows compatible, so you would have no problems at all

volksgeist III
Posts: 8
Joined: Sun Jan 02, 2005 11:19 pm

Post by volksgeist III » Fri Jan 07, 2005 7:32 am

I realize this might be an ignorant question, but why not just ship with (my favourite scripting language) Python? It's very simple, intuitive syntax, and is also very powerful.

Failing that, I would vote for basic ahead of batch.

Phalanx
Posts: 360
Joined: Sun Dec 19, 2004 12:42 am
Location: Australia

Post by Phalanx » Fri Jan 07, 2005 8:17 am

Cause it is not a windows language and makes it yet another language for developers to learn.

Dr. Fred
Developer
Posts: 607
Joined: Wed Dec 22, 2004 10:09 pm
Location: Amsterdam

Post by Dr. Fred » Fri Jan 07, 2005 10:41 am

The problem is that many don't want Python. (See above) And that we don't if the ros devlopers allow us to upload the libs to the tree.
Where do you want ReactOS to go today ?

avryhof
Posts: 35
Joined: Sat Dec 18, 2004 7:56 am
Location: Brewerton, NY
Contact:

Batch Based

Post by avryhof » Fri Jan 07, 2005 1:19 pm

I like Batch based.

...But not MS-DOS Batch File Based, Base it on the 4DOS Batch interpreter.

http://www.jpsoft.com/

4DOS Batch files have variabls, arrays, and alot of other things standard batch files don't... and since it's a win32 version, the screen drawing functions should be replaced with form drawing functions.

Code: Select all

@echo off
openwin /title="My Window" /handle=01
addbutton /window=01 /x=50 /y=240 /caption="My Button" /errorlevel=1
...add more controls here...

do while errorlevel 0
loop

on errorlevel 1 do something
What do you think? Sort of Batch sort of event driven, and very powerful.[/code]

Post Reply

Who is online

Users browsing this forum: Baidu [Spider], Google [Bot] and 3 guests