D-Lib 2.0 -update-

Developed or developing a new product in PureBasic? Tell the world about it.
User avatar
Mischa
Enthusiast
Enthusiast
Posts: 115
Joined: Fri Aug 15, 2003 7:43 pm

D-Lib 2.0 -update-

Post by Mischa »

Hi!

Here is the new D-Lib beta:
http://www.thinkrelative.de/dlib/download/dlib.exe

(It's a selfextracting archive, so don't be afraid of the executable)


The changes are extensive.
Here are only a few:

-Help file (Big thanks goes to Dean Hodgson)
-Structures added (Viewer inclusive)
-Scintilla bases editor
-For/Next
-Repeat/Until
-Select/Case
-Synonyms
-Now there are 300 UserFunctions included.
(More than a half are written or converted by Dean.
You can get the sourcecodes from the web page)
-...

Maybe someone will take a look

Regards,
Mischa
User avatar
Mischa
Enthusiast
Enthusiast
Posts: 115
Joined: Fri Aug 15, 2003 7:43 pm

Post by Mischa »

Bugfix: Editor, some UserLibs
Added: Drawing example

Regards,
Mischa
User avatar
tinman
PureBasic Expert
PureBasic Expert
Posts: 1102
Joined: Sat Apr 26, 2003 4:56 pm
Location: Level 5 of Robot Hell
Contact:

Post by tinman »

Excuse my ignorance, but what is it? What is it for?
If you paint your butt blue and glue the hole shut you just themed your ass but lost the functionality.
(WinXPhSP3 PB5.20b14)
User avatar
Mischa
Enthusiast
Enthusiast
Posts: 115
Joined: Fri Aug 15, 2003 7:43 pm

Post by Mischa »

Sorry.
(The last D-Lib posting seems to be to long ago)
http://www.thinkrelative.de


It's a (byte code) script language.
You can run scripts via Runtime or Dll, but
you can also create stand alones.

Regards,
Mischa
Iron_Meiden
User
User
Posts: 37
Joined: Sun Sep 09, 2007 1:16 pm
Location: Asdenia

Post by Iron_Meiden »

Good ! Suggestions:
1) Throw out synonyms and just create normal macrosystem.
2) Replace StructMemory to PB's declaration.
3) Add Quad\Double data-types
4) Add .DLL-creation.
5) Make Editor's colors customizable.

Ah, and... Where "eval" procedure ? I can't find it.

P.S. (Freeware PB... Sweet dream...)
User avatar
Mischa
Enthusiast
Enthusiast
Posts: 115
Joined: Fri Aug 15, 2003 7:43 pm

Post by Mischa »

Thanks for reply.

The PBs macro system is much more complex.
Synonyms are simple 'one to one' replacer.

D-Lib is a byte-code compiler/interpreter, so dll
creation makes not realy sense.

Editor colors are customizable.
Open ..\misc\edit.dat and see. 8)
Ok, not a nice dialoge, but it works.

What Do you concrete mean wit missing "eval" procedure?
For what.

Regards,
Mischa
Pantcho!!
Enthusiast
Enthusiast
Posts: 538
Joined: Tue Feb 24, 2004 3:43 am
Location: Israel
Contact:

Post by Pantcho!! »

Mischa, You are one of the best programmers i have seen.

Good job!
kinglestat
Enthusiast
Enthusiast
Posts: 746
Joined: Fri Jul 14, 2006 8:53 pm
Location: Malta
Contact:

Post by kinglestat »

This looks interesting
very nice work

how do you use it from a DLL?
In effect I didnt find a dlib.dll
I may not help with your coding
Just ask about mental issues!

http://www.lulu.com/spotlight/kingwolf
http://www.sen3.net
User avatar
Mischa
Enthusiast
Enthusiast
Posts: 115
Joined: Fri Aug 15, 2003 7:43 pm

Post by Mischa »

Hi!

You can find DRun.dll at two places:

dlib\misc\ and inside the dlib PB communication example directoy.
Take a look at this example and read also the help docs
to understand how it works.

Regards,
Mischa
kinglestat
Enthusiast
Enthusiast
Posts: 746
Joined: Fri Jul 14, 2006 8:53 pm
Location: Malta
Contact:

Post by kinglestat »

It is not what I mean....though this is an interesting way (what you showed)

How can you execute code realtime from pb?
Ie dlib2 code created on the fly?
I may not help with your coding
Just ask about mental issues!

http://www.lulu.com/spotlight/kingwolf
http://www.sen3.net
Iron_Meiden
User
User
Posts: 37
Joined: Sun Sep 09, 2007 1:16 pm
Location: Asdenia

Post by Iron_Meiden »

The PBs macro system is much more complex.
...and much more useful...
D-Lib is a byte-code compiler/interpreter, so dll
creation makes not realy sense.
It's always make sense.
What Do you concrete mean wit missing "eval" procedure?
http://en.wikipedia.org/wiki/Eval
User avatar
Mischa
Enthusiast
Enthusiast
Posts: 115
Joined: Fri Aug 15, 2003 7:43 pm

Post by Mischa »

Hi!

@Pantcho
Thank you, but i'm not so good, as it seems.

@kinglestat

The D-Lib both runtimes (exe/dll) can only interpret byte code.
But you are allowed to include the compiler in your own project
and use it by commandline.

@Iron_Meiden

Sure, the PBs macro system is more useful, but:
-There was no macro system integrated before PB3.9/PB4.0?
-D-Lib synonyms are simple replacer, nothing more.
-Fred is a brilliant power programmer.
-I am only a hobby coder, a novice
Do you mean the D-Lib synonyms are useless?

No, dll creation makes absolutley no sense in this case.
D-Lib works on byte code base, so it is much slower than native
code. Sure, there would be a way to implement the functionallity to
create a runtime dll with atached byte code, but D-Lib should be
the 'frontend', not the 'backend' of any project. I think its not
a good idea to produce 'slow-downed' standard dlls.
D-Lib internal you can (easy) create userlibs. And of course
D-Lib can handle standard dlls and use/integrate them.

Thanks for the 'eval' links. I understand the concept now.
Most (popular) interpreted languages have incuded it, but not all.
The 'eval' function is a kind of real-time interpreting by string.
This is useful to handle dynamic source parts.
But in the moment the D-Lib compiler produces a (faster) byte code.
There are no variable-names in the output integrated, only id's.
Besides the runtime must be much bigger to alow real-time interpreting,
cause i have to integrate all compiler functionallity to make 'eval'
possible. But in all cases, real-time interpreting would be a slow down.
Is the eval thing so important. :?

Regards,
Mischa
Iron_Meiden
User
User
Posts: 37
Joined: Sun Sep 09, 2007 1:16 pm
Location: Asdenia

Post by Iron_Meiden »

Do you mean the D-Lib synonyms are useless?
No.
I think its not
a good idea to produce 'slow-downed' standard dlls.
Sometimes it's can be very useful.
Thanks for the 'eval' links. I understand the concept now.
Most (popular) interpreted languages have incuded it, but not all.
The 'eval' function is a kind of real-time interpreting by string.
This is useful to handle dynamic source parts.
But in the moment the D-Lib compiler produces a (faster) byte code.
There are no variable-names in the output integrated, only id's.
Besides the runtime must be much bigger to alow real-time interpreting,
cause i have to integrate all compiler functionallity to make 'eval'
possible. But in all cases, real-time interpreting would be a slow down.
Is the eval thing so important.
Hmm... How about something like on FORTH's vocalubraries, which contains addresses of each variable\procedure ?
Post Reply