www.digitalmars.com         C & C++   DMDScript  

DMDScript - DMDScript 1.09

reply Walter Bright <newshound digitalmars.com> writes:
Fixes to work with DMD 0.151

www.digitalmars.com/dscript/changelog.html
Apr 03 2006
parent reply murpsoft hotmail.com writes:
Walter,

DMDScript has been completely borked broken since v1.06.  It doesn't compile,
and if you modify it so it does compile (changing 3 files) then it still doesn't
even come close to running the sieve or the suite.

Here are the changes I made to get it to compile (but not run):

Search+Replace  "std.c.string" --> "std.string"
Search+Replace  "RegExpException" --> "Exception"
Search+Replace  "hash_t" --> "uint"

Moreso, in your comments throughout all of the DMDScript versions you mentioned
glaring performance failures and many JScript specific bugs, used C-style type
syntax, didn't use proper versioning or contract programming, and the assembler
that you used is substandard for your echelon.

I am under the impression that DMDScript is being primarily left behind because
of your focus on the D programming language.

I'd like to make some arrangement with you to completely rewrite DMDScript in
modern D with support for COM.  The ECMAScript set of languages are the third
most run programming language in the world, and I believe an improved DMDScript
could readily quadruple the performance of ECMAScript code.

I have the right to branch DMDScript under the GPL, but I'm under the impression
you'd prefer to keep it under the same roof and keep your license.  I also think
having a little help from you and access to the C++ version would definitely
help me put COM in there faster.  I had a go at putting it in through some old
MinWin code and it felt ugly.

I hope to hear from you soon!

http://murpsoft.com/
Apr 10 2006
next sibling parent reply =?ISO-8859-1?Q?Jari-Matti_M=E4kel=E4?= <jmjmak utu.fi.invalid> writes:
murpsoft hotmail.com wrote:
 I am under the impression that DMDScript is being primarily left behind because
 of your focus on the D programming language.
 
 I'd like to make some arrangement with you to completely rewrite DMDScript in
 modern D with support for COM. 
Does this mean that it would not run on Linux anymore? Of course we can always continue to use the old version, but .. -- Jari-Matti
Apr 10 2006
parent Dan <Dan_member pathlink.com> writes:
 I'd like to make some arrangement with you to completely rewrite DMDScript in
 modern D with support for COM. 
Does this mean that it would not run on Linux anymore? Of course we can always continue to use the old version, but .. -- Jari-Matti
No, this means we'd wrap version(Windows) around COM, and the linux version would work perfectly fine without COM. : p
Apr 10 2006
prev sibling parent reply "Unknown W. Brackets" <unknown simplemachines.org> writes:
Are you sure you're using the latest DMD 0.151?  For example, "hash_t" 
was added only very recently.  The "std.c.string" and "std.string" 
modules were split also only very recently.

You might want to double check that you're not trying to compile it with 
some antiquated version of DMD, like 0.138 or something.

-[Unknown]


 Here are the changes I made to get it to compile (but not run):
 
 Search+Replace  "std.c.string" --> "std.string"
 Search+Replace  "RegExpException" --> "Exception"
 Search+Replace  "hash_t" --> "uint"
Apr 10 2006
next sibling parent Dan <Dan_member pathlink.com> writes:
Well, that would probably be the problem with compiling.  :p  Well, I feel a
little stupid then since he did say "updated for DMD 0.xxx" as pretty much the
only entry in the changelogs.

That said, the rest of what I said does pretty much stand.  If you read the
source, he's left half a ton of it 'misused' and the engine has so much
potential.  I could throw examples but just offering to help with it is better,
no?

~~~

Are you sure you're using the latest DMD 0.151?  For example, "hash_t" 
was added only very recently.  The "std.c.string" and "std.string" 
modules were split also only very recently.

You might want to double check that you're not trying to compile it with 
some antiquated version of DMD, like 0.138 or something.

-[Unknown]


 Here are the changes I made to get it to compile (but not run):
 
 Search+Replace  "std.c.string" --> "std.string"
 Search+Replace  "RegExpException" --> "Exception"
 Search+Replace  "hash_t" --> "uint"
Apr 10 2006
prev sibling parent reply Dan <Dan_member pathlink.com> writes:
Sorry to double post...

Walter, if I download DMDScript v1.10, compile it off with the latest DMD and
then make some changes to the source code and contribute it along with a diff
file for you to review, would that be a way I could possibly help work on the
official version?

Essentially the changes I want to make are:

1) to "private" all phobos imports.
2) to version(JScript) all bugs introduced for the sake of maintaining JScript
compatibility instead of ECMAScript compatibility.
3) to remove module statements since they're redundant.
4) to create a dactivexobject.d file and start work on an ActiveX/COM wrapper
for windows users.
5) to replace several string literals with TEXT_ variables.
6) to run my pretty printer over the source.
7) to correctly version off your assembly code.
8) to use SSE2 for the assembly code for x86-64 users.
9) to tighten several loops with switches in them.
10)to set up several switches so that jump gates are 'cleaner'.
11)to 'keyword flag' several performance bugs that you've commented.
12)to tighten up several if/else cases to help branch prediction.
13)to cut some 'unused' code that's sitting in dglobal because we never pass
the program arguments to it.
14)to swap some mul/div for add/shift combos into value.d to help performance
of hashing.
15)to do a major housecleaning on lexer.d/program.d/script.d/main.d/parse.d

So yeah, let me know which of the above you want done, and I'll give'r and get
it back to you.  Probably within a day or two.

If you'd rather, let me know and I'll branch my code under the GPL 2.0.
Thanks!
Apr 10 2006
parent Derek Parnell <derek psych.ward> writes:
On Tue, 11 Apr 2006 02:34:24 +0000 (UTC), Dan wrote:

 
 If you'd rather, let me know and I'll branch my code under the GPL 2.0.
Go Dan! Sounds like a great project. I'd like to use DMDScript (or something like it) in a new project soon. -- Derek (skype: derek.j.parnell) Melbourne, Australia "Down with mediocracy!" 11/04/2006 12:45:04 PM
Apr 10 2006