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 / Teaser

Author
Message
TKF15H
21
Years of Service
User Offline
Joined: 20th Jul 2003
Location: Rio de Janeiro
Posted: 1st Dec 2006 04:21 Edited at: 1st Dec 2006 04:23
First one to correctly guess what it is wins a cookie or something. (Should be pretty obvious...)

Attachments

Login to view attachments
Dave J
Retired Moderator
21
Years of Service
User Offline
Joined: 11th Feb 2003
Location: Secret Military Pub, Down Under
Posted: 1st Dec 2006 04:37 Edited at: 1st Dec 2006 04:37
A DBA file!


"Computers are useless, they can only give you answers."
Kentaree
22
Years of Service
User Offline
Joined: 5th Oct 2002
Location: Clonmel, Ireland
Posted: 1st Dec 2006 13:34
Benjamin
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 1st Dec 2006 16:01
Quote: "A DBA file!"

That would make sense if it wasn't a DBSOURCE file.

Tempest - P2P UDP Multiplayer Plugin (DBP/DBCe)
Download the free version
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 1st Dec 2006 16:56
umm... 17?

Big Man
19
Years of Service
User Offline
Joined: 4th Feb 2005
Location: BEHIND YOU!!!! (but I live in England)
Posted: 1st Dec 2006 16:58
i downloaded it but it doesnt seem to be related to any programs on my computer?

BM

Our aim is to keep the loo's clean, your aim can help.

Peter H
20
Years of Service
User Offline
Joined: 20th Feb 2004
Location: Witness Protection Program
Posted: 1st Dec 2006 17:10
well... you printed 1 then 4.5

then you did some nasty assembler... reverse hax for dbpro?

One man, one lawnmower, plenty of angry groundhogs.
Benjamin
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 1st Dec 2006 17:11
It's the DBP compiler!

Tempest - P2P UDP Multiplayer Plugin (DBP/DBCe)
Download the free version
David R
21
Years of Service
User Offline
Joined: 9th Sep 2003
Location: 3.14
Posted: 1st Dec 2006 17:12
It does indeed look like a compiler/method of compiling DBP/BASIC code for the GP2x (or a build target for a compiler)

CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 1st Dec 2006 17:42
I think the fish has been swimming in mercury-laden waters again. If anyone nets him, please send him in to the "facility" for "treatment", thanks.

TKF15H
21
Years of Service
User Offline
Joined: 20th Jul 2003
Location: Rio de Janeiro
Posted: 2nd Dec 2006 05:03 Edited at: 2nd Dec 2006 05:04
I would have put this thread in the WIP section but it's not exactly made in DBP, though it's kinda related...

Here's a newer version, with more optimized (and less buggy) code (and shows off a few language extensions).
Now, the cookie is slightly soggy due to my castle being slightly submerged below a few hundred feet of water. Therefore, David R wins a kiwi instead:
Benjamin may be the one who's supposed to win it, but I'm not sure if "It's the DBP compiler!" counts.

Anyway, having no internet connection other than a phone line after midnight, lost my job, and bailed out of classes for this year, I've obtained an unexpected level of coding productivity. In 3 weeks I've built 80% of what I've code named DBPXP: (Dark Basic Pro Cross Platform)
It's a re-targetable DBP compiler that uses plugins to generate the final binary. Currently it only generates code for the GP2X's ARM processor, but I'm planning on GBA and/or Dreamcast targets in the future. I am NOT making an x86 version as I hate the x86. >_<
As for the internals, it uses a GlobStruct that's very similar to DBP's, but the types were changed to make it more platform-independent.
Also, functions are expected to be declared extern "C" so as to avoid problems with different compilers and name mangling.

Using it is rocket science: my TGC's DBPCompiler.exe must be renamed to DBPexeCompiler.exe and my DBPCompiler.exe is put in its place. In the standard editor you can pick which target to build to by changing the file extension of your project's EXE Filename (Project.EXE -> Project.GPE). When my compiler sees that your project is an EXE, it calls the DBPexeCompiler. Otherwise it looks for a suitable output plugin to do the job.

What's done:
correctly (AFAIK) compiles expressions, function calls, functions, and a few keywords (TYPE...ENDTYPE, AS, IF...:...ENDIF, IF...THEN..., and some more stuff)
UDTs can contain any data type (even arrays)
Anything can be passed as a function parameter (including arrays / UDTs)
Some of the DBProCore.so ("so" files are the linux equivalents of dlls) has been implemented.

To do:
more keywords (FOR, DO, LOOP, etc.)
Arrays
All the built-in plugins.

Ok, time to go for a bath.
*opens a bottle of Mercury*

Attachments

Login to view attachments
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 2nd Dec 2006 15:56
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 3rd Dec 2006 12:10
Wow, that's quite some work... Good job

Nintendo DS & Dominos :: DS Dominos
http://jt0.org
Chris Franklin
19
Years of Service
User Offline
Joined: 2nd Aug 2005
Location: UK
Posted: 3rd Dec 2006 12:18
8-0 nice work i might buy a gpx2 now

Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 3rd Dec 2006 23:22
3 weeks and still not done? cmon already, stop slacking off!

TKF15H
21
Years of Service
User Offline
Joined: 20th Jul 2003
Location: Rio de Janeiro
Posted: 5th Dec 2006 16:07
Update: Finished implementing the FOR loop, IF : ELSE IF : ELSE : ENDIF (as many else if's as necessary). Haven't done much more due to work on another project (IBA).

TKF15H
21
Years of Service
User Offline
Joined: 20th Jul 2003
Location: Rio de Janeiro
Posted: 26th Dec 2006 17:45
To do:
Repeat...Until
Select...case...EndSelect
Strings
Arrays
Engine

I've gotten to where I wanted to get with this project and now I'm wondering what I'll do at this point:
1) Opensource as is
2) Finish implementing those 5 things and sell as a commercial product.

I'd like to know what other people think about this, especially the level of interest in it. Would you use an ARM Basic compiler? Would you help coding it if it goes opensource?

Mikey P
19
Years of Service
User Offline
Joined: 23rd May 2005
Location: Manchester, UK
Posted: 26th Dec 2006 20:36
Dang! I can't believe I missed this. I'd code more for my GP2X but to be completely honest, I'm a pants C/C++ coder. The effort of managing my headers and pointers and what not just turns me right off. I was thinking "A good BASIC variant for the GP2X would be Perfect!", never even thought of using DBP, well done . Also, when people ask "Can I compile DBP apps for <x> console?" I'm sure it would be quite possible now so long as the console's homebrew community had worked enough out!

Aw. I can't hide my enthusiasm, so you can take that as a "Yes, I'd use it" and in terms of opensource'ing it, I'd help out in anyway I could, although as I said, I'm not the best C/C++ coder.

Login to post a reply

Server time is: 2024-11-18 01:27:06
Your offset time is: 2024-11-18 01:27:06