Qbasicnews.com
November 13, 2019, 09:51:05 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Back to Qbasicnews.com | QB Online Help | FAQ | Chat | All Basic Code | QB Knowledge Base
 
   Home   Help Search Login Register  
Pages: 1 2 3 [4] 5 6 ... 27
  Print  
Author Topic: freeBASIC (a 32-bit QB-syntax compatible compiler) preview..  (Read 153269 times)
Plasma
Na_th_an
*****
Posts: 1770


WWW
« Reply #45 on: October 31, 2004, 01:16:56 AM »

Nice.
Logged
marzecTM
Ancient Guru
****
Posts: 688


« Reply #46 on: October 31, 2004, 04:01:16 AM »

and here an example with sdl and gl, in order to get rid of this crappy glut lib

http://ratatoskr.bad-logic.com/temp/sdltest.rar

my code is crappy, it's 7:58 over here and i did that shit at 4:00am so... don't blame me. i already translated sdl.h, sdl_keyboard.h sdl_mouse.h and sdl_video.h, i guess based on that we could do some sort of wrapper to emulate the old qb commands like screen line etc. i will continuing porting as v1c gets beyond that 2000 symbols barrier.

btw, the code is so ugly to
 a) show that fb can not only handle clean code
 b) better notice bugs that only show up when the code is badly written hehe....
Logged

quote="NecrosIhsan"]

[/quote]
VonGodric
Ancient Guru
****
Posts: 674



WWW
« Reply #47 on: October 31, 2004, 06:42:32 AM »

That's really nice.

To those who need sdl.dll:
for win32: http://www.libsdl.org/release/SDL-1.2.7-win32.zip
Logged

url]http://fbide.sourceforge.net/[/url]
barok
Na_th_an
*****
Posts: 1727


How about a tasty lead sandwich?


« Reply #48 on: October 31, 2004, 11:12:03 AM »

...that's done with freebasic?  Wow...  that's so awesome... it's actually fast... and is that a high resolution i see?
Logged

Jumping Jahoolipers!
Blitz
I hold this place together
*****
Posts: 853



WWW
« Reply #49 on: October 31, 2004, 11:15:24 AM »

Yepp, it's done with freebasic. It uses opengl of course. But that's the thing, you can link any win32 lib that you use in C to freebasic. It's as functional as any other real compiler, not just a toy. Notice how the opengl and win gui example uses callbacks. Never seen that in basic before Smiley

Can you tell it's not qb code? I can't, except for cdecl and codeptr
Logged

oship me and i will give you lots of guurrls and beeea
barok
Na_th_an
*****
Posts: 1727


How about a tasty lead sandwich?


« Reply #50 on: October 31, 2004, 11:22:51 AM »

one last question:  will traditional libraries be compatible with fb?  (cosmox, rellib, gslib, etc. etc.)
Logged

Jumping Jahoolipers!
Blitz
I hold this place together
*****
Posts: 853



WWW
« Reply #51 on: October 31, 2004, 11:23:37 AM »

Nope, becuase they're written for real mode dos and not windows.
Logged

oship me and i will give you lots of guurrls and beeea
barok
Na_th_an
*****
Posts: 1727


How about a tasty lead sandwich?


« Reply #52 on: October 31, 2004, 11:26:56 AM »

I thought so.  Oh well... but then again, the ability to use any C library makes up for it though.
Logged

Jumping Jahoolipers!
adosorken
*/-\*
*****
Posts: 3655



WWW
« Reply #53 on: October 31, 2004, 11:29:11 AM »

It's 1024x768 in 16 bit color according to the sourcecode. Very impressive for...let's face it...BASIC. Cheesy Now let's see who the first person will be to run with this and make a game, eh? Smiley

Hey victor and Blitz...is the syntax finalized? If so, I'll start developing with this thing right away. Cheesy

EDIT: By the way guys...masm32 is free...it's what I was using for OBDS. http://www.masm32.com/  Microsoft doesn't develop this though. Smiley
Logged

I'd knock on wood, but my desk is particle board.
Blitz
I hold this place together
*****
Posts: 853



WWW
« Reply #54 on: October 31, 2004, 12:22:38 PM »

Just to make things clear, this is v1ctors project. I just beta testa and stuff.

Anyways, as far as i know. There are still lots of bugs to be sorted out. As it's just 2 months old and compilers are complex. Also, the symbol table can't handle more then 2000 symbols at the moment since the compiler is still in vbdos. And just gl.bi is over 800 symbols. But once it has compiled itself this limitation will be gone. If you want to help out with testing and stuff, ask v1ctor.
Logged

oship me and i will give you lots of guurrls and beeea
Jofers
Been there, done that
*****
Posts: 1040



WWW
« Reply #55 on: October 31, 2004, 01:03:43 PM »

Hmm... I don't think I could be much help in testing.  But I can document it, and I can make a nice website.  I figures if you make a documentation in a nice xml format, it wouldn't be difficult to get a nice thorough online reference like php or perldoc.  But I suppose that should wait for the release, and the completion of the base library.
Logged
VonGodric
Ancient Guru
****
Posts: 674



WWW
« Reply #56 on: October 31, 2004, 03:50:55 PM »

Hello again,
if you guys need a beta tester then I'm ready :wink:
Logged

url]http://fbide.sourceforge.net/[/url]
Sterling Christensen
Na_th_an
*****
Posts: 1328


« Reply #57 on: October 31, 2004, 04:31:29 PM »

Quote from: "marzecTM"
i guess based on that we could do some sort of wrapper to emulate the old qb commands like screen line etc.

That's what I've just started working on in C, I aim to support equivalents to stuff like DRAW, VIEW, WINDOW, and LINE STEP(x1, y1)-STEP(w, h) etc.

But for DRAW, I'll need to know what kind of string format freebasic uses.
Logged
ToohTooh
New Member

Posts: 24



« Reply #58 on: November 01, 2004, 07:30:22 AM »

Hello, v3cz0r...

In http://forum.qbasicnews.com/viewtopic.php?p=81269#81269, wildcard referenced you as Victor. When even this was enough for me to recall your name, I went on to read and accessed your page: The name v1ctor and DOT com DOT br...

Oh, oldies... Weren't you the one who came up with pointers to functions, and a lot of cool stuff?.. They still survive somewhere in www.qb45.com, I suppose.

I bow to your QB passion, and experience...
Logged

Don't interrupt me while I'm interrupting." - Winston S. Churchill
adosorken
*/-\*
*****
Posts: 3655



WWW
« Reply #59 on: November 01, 2004, 07:38:37 AM »

If VBDOS can only handle 2000 symbols, then why not just move on to a more modern version of VB for the thing? If you need a decent frontend, let me know...I don't know if it will be possible to finish OBDS, so if you'd like, I can retrofit its editor so you can have a good frontend for your compiler. Cheesy

VBDOS....well, sucks.
Logged

I'd knock on wood, but my desk is particle board.
Pages: 1 2 3 [4] 5 6 ... 27
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!