Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Geek Culture / Making DBPro do what is was not ment to do..

Author
Message
Oneka
20
Years of Service
User Offline
Joined: 24th Apr 2004
Location: Hampton,VA
Posted: 2nd Sep 2007 21:58
Hey, I just wanted to start this because I just had a crazy thought

Before anyone puts a comment without understanding what it is that I am saying, [ I am not trying to do any of this I am just wondering is it possible?, not "THAT WOULD BE IMPOSSIBLE BECAUSE YOU WOULD HAVE TO blah blah blah"]

I want to know what are some of the things you could do with DBPro by bending it the way it was not ment to be used..

Like could you create your own language, or compiler with DBPro

The reason I ask this is because personally I think you could
depending on these factors
1. Know machine langauge and all that good junk
2. Could wait on it to compile something it would probably be really really slow but I think its possible
3. Have no life and alot of time / knowledge on your hand..

I would like input because I find it interesting and its just one of those thoughts I want to know if it isnt possible, why it wouldnt be, not just a pointless comment like "That is not possible" It would just leave me to wonder what it lacks from doing it? Maybe not being able to write specific data or something


Making dreams possible, one line at a time...
PowerSoft
20
Years of Service
User Offline
Joined: 10th Oct 2004
Location: United Kingdom
Posted: 2nd Sep 2007 22:06
I believe, in my opinion, it IS possible. But, but, but. It would take you to think extrovertly and outside the box.

Linked lists are an important feature for a compiler etc so you would need to make an equivalent,


I think it could be done.

The Innuendo's, 4 Piece Indie Rock Band
http://theinnuendos.tk:::http://myspace.com/theinnuendosrock
Chris K
21
Years of Service
User Offline
Joined: 7th Oct 2003
Location: Lake Hylia
Posted: 2nd Sep 2007 22:09
Yeah, it can be done because you can manipulate memory at a byte-level.

-= Out here in the fields, I fight for my meals =-
GatorHex
19
Years of Service
User Offline
Joined: 5th Apr 2005
Location: Gunchester, UK
Posted: 2nd Sep 2007 23:03 Edited at: 2nd Sep 2007 23:04
You could make your own language using Barnskis free LUA, i believe, to call DBP commands from scripts. But it's against the terms of the license so i would guess you'd get sued, unless TCG sold it, so don't do it

DinoHunter (still no nVidia compo voucher!), CPU/GPU Benchmark, DarkFish Encryption DLL, War MMOG (WIP), 3D Model Viewer
PowerSoft
20
Years of Service
User Offline
Joined: 10th Oct 2004
Location: United Kingdom
Posted: 3rd Sep 2007 17:53
When I've finished my C++ Assembler I may have a go, just for fun...

The Innuendo's, 4 Piece Indie Rock Band
http://theinnuendos.tk:::http://myspace.com/theinnuendosrock
Dextro
19
Years of Service
User Offline
Joined: 26th Feb 2005
Location:
Posted: 3rd Sep 2007 18:40
You can make a very archaic virus scanner for the now defunc .com files, using a memblock to map an executable and scan for "signature strings" of commands that are associated with a virus.
For example, lets suppose the virus has the following instructions:
E8 00 00 (CALL 0103H) 5D (POP BP) 81 ED 03 01 (SUB BP, 103H)
These are typical instructions found on an old com file infector.
You would need to map the file onto a memeblock, then check byte by byte and see if this pattern is the same as the scan string.
Pincho Paxton
21
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 3rd Sep 2007 20:08
I always wanted someone to make a Winamp type Visualizer from DB/DBPro. Something that analyses a peice of music, and responds to the sounds.

Benjamin
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 3rd Sep 2007 20:23
I'm pretty certain you could write your own compiler, but it wouldn't be very fast, and the limitations of DBP could make certain things tricky.

Tempest (DBP/DBCe)
Multisync V1 (DBP/DBCe)
Jonny_S
22
Years of Service
User Offline
Joined: 10th Oct 2002
Location: United Kingdom
Posted: 3rd Sep 2007 20:26 Edited at: 3rd Sep 2007 20:26
Any language that has the ability to process strings can be used to write a compiler. If your not really bothered about compilation speed (which isn't that much of a big deal) then there is no problem. However I wouldn't suggest writing an interpreter in DBP because I can't imagine it being very fast.

jerico2day sucks
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 3rd Sep 2007 21:00
Quote: "I always wanted someone to make a Winamp type Visualizer from DB/DBPro. Something that analyses a peice of music, and responds to the sounds"


I think there are a couple, Van B springs to mind.

Zotoaster
19
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 3rd Sep 2007 21:52
Quote: "Linked lists are an important feature for a compiler etc so you would need to make an equivalent, "


You can use the advanced array commands to treat arrays as linked lists (which is probably what they are anyway). array insert at bottom and array count() are two commands that I use, alot.

"It's like floating a boat on a liquid that I don't know, but I'm quite happy to drink it if I'm thirsty enough" - Me being a good programmer but sucking at computers
David R
21
Years of Service
User Offline
Joined: 9th Sep 2003
Location: 3.14
Posted: 3rd Sep 2007 22:14
Quote: "Any language that has the ability to process strings can be used to write a compiler"


Preprocessor, yes. Compiler, no.


09-f9-11-02-9d-74-e3-5b-d8-41-56-c5-63-56-88-c0
Kevin Picone
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Australia
Posted: 4th Sep 2007 08:36
Of course it's possible. Kyruss is rewritten in DB classic. You can write a compiler in virtually anything!

Arkheii
21
Years of Service
User Offline
Joined: 15th Jun 2003
Location: QC, Philippines
Posted: 4th Sep 2007 10:46
Quote: "Linked lists are an important feature for a compiler etc so you would need to make an equivalent,"


How about memblocks with a few bytes reserved to "point" to the next memblock number?

PowerSoft
20
Years of Service
User Offline
Joined: 10th Oct 2004
Location: United Kingdom
Posted: 4th Sep 2007 10:48
Yes that may work but equally so could an array implementation I suppose. I'll have to try it when I have more time

The Innuendo's, 4 Piece Indie Rock Band
http://theinnuendos.tk:::http://myspace.com/theinnuendosrock
Diggsey
18
Years of Service
User Offline
Joined: 24th Apr 2006
Location: On this web page.
Posted: 4th Sep 2007 11:15
I am making a compiler in vb.net, and it is awesomely easy to do. (Except for writing the assembler code to output, lol) All you need is to loop through a string one word at a time, and you can write a compiler. The dictionary class in VB.net is also very useful, and surprisingly easy to port to DBP.

PowerSoft
20
Years of Service
User Offline
Joined: 10th Oct 2004
Location: United Kingdom
Posted: 4th Sep 2007 12:19
Diggsey, cool sounds good.

I'm currently writing an Assembler in C++.NET (but coding in Native C++)


It's coming along quite well, currently working on parsing.

The Innuendo's, 4 Piece Indie Rock Band
http://theinnuendos.tk:::http://myspace.com/theinnuendosrock
Jonny_S
22
Years of Service
User Offline
Joined: 10th Oct 2002
Location: United Kingdom
Posted: 4th Sep 2007 13:53
Quote: "Quote: "Any language that has the ability to process strings can be used to write a compiler"

Preprocessor, yes. Compiler, no."

A compiler could be done with a few string splitting commands, arrays and some File IO. It would get messy fast but is absolutly 100% possible.
Lots of people are writing some kind of parser it seems. I was writing one which took a subset of basic and converted it into MIL bytecode but I'm real lazy and haven't done much on it for the last week or so. I've been messing around writing parsers and such for the last 4 years but I'm not great at finishing things, I've learnt a truck load though!

jerico2day sucks
Diggsey
18
Years of Service
User Offline
Joined: 24th Apr 2006
Location: On this web page.
Posted: 4th Sep 2007 17:57
@PowerSoft
That's cool, because my compiler compiles to assembler, so it would be awesome if we could link them together somehow Especially cool, because if you know assembler you might be able to help me out with my compiler It can parse almost everything that will be in the finished language, and produces pseudo assembler code, but no real code yet

PowerSoft
20
Years of Service
User Offline
Joined: 10th Oct 2004
Location: United Kingdom
Posted: 4th Sep 2007 18:01
Yea, we will have to discuss it,

The Innuendo's, 4 Piece Indie Rock Band
http://theinnuendos.tk:::http://myspace.com/theinnuendosrock
David R
21
Years of Service
User Offline
Joined: 9th Sep 2003
Location: 3.14
Posted: 4th Sep 2007 18:22
Quote: "A compiler could be done with a few string splitting commands, arrays and some File IO. It would get messy fast but is absolutly 100% possible.
Lots of people are writing some kind of parser it seems. I was writing one which took a subset of basic and converted it into MIL bytecode but I'm real lazy and haven't done much on it for the last week or so. I've been messing around writing parsers and such for the last 4 years but I'm not great at finishing things, I've learnt a truck load though!
"


What I mean, is that there is a lot more to compilation than just processing the text input


09-f9-11-02-9d-74-e3-5b-d8-41-56-c5-63-56-88-c0
Jonny_S
22
Years of Service
User Offline
Joined: 10th Oct 2002
Location: United Kingdom
Posted: 5th Sep 2007 00:23
Yes of course there is, I was pointing out what language features are required.

jerico2day sucks

Login to post a reply

Server time is: 2024-11-19 05:24:21
Your offset time is: 2024-11-19 05:24:21