Author Topic: Charles why not write Oxygen in C?  (Read 5397 times)

0 Members and 2 Guests are viewing this topic.

kryton9

  • Guest
Charles why not write Oxygen in C?
« on: October 10, 2013, 10:20:48 PM »
Charles since you are working on a c emitter, wouldn't it be easier to finish writing OxygenBasic in c?
Then it can be native compiled to any platform.

You could probably use your c emitter to output a lot of your core code and parser to c.
Just wondering?

JRS

  • Guest
Re: Charles why not write Oxygen in C?
« Reply #1 on: October 10, 2013, 10:26:16 PM »
My guess is Charles is still busy working our first request. (preprocessor to read C header files)

The C emitter isn't something that is holding me back from using O2. I'm sure Charles is well aware that the future is a cross platform O2.




Aurel

  • Guest
Re: Charles why not write Oxygen in C?
« Reply #2 on: October 10, 2013, 11:25:45 PM »
    
Quote
Charles why not write Oxygen in C?
It is far easier to write in FB...my guess....
and there are
includes which like you know depend on OS or in linux case
on third party libs like qt,wx,gtk...etc..etc...

JRS

  • Guest
Re: Charles why not write Oxygen in C?
« Reply #3 on: October 10, 2013, 11:37:53 PM »
I think if O2 can present itself as a BASIC compiler that can compile to an .exe, DLL, JIT-DLL and use C/C++ include files for external library access, what else do you want? Everything mentioned in the previous sentence is already working or in the final stages. (header files)

 

Aurel

  • Guest
Re: Charles why not write Oxygen in C?
« Reply #4 on: October 10, 2013, 11:43:44 PM »
Quote
what else do you want
John, me nothing ...but i cannot figured Kent and his constant reaserch for something else ::)
Sorry Kent i don't mean nothing bad.
But he say why not write o2 in C, if Charles decide or want to write o2 in C
that is up to him...
as he whish ;)

kryton9

  • Guest
Re: Charles why not write Oxygen in C?
« Reply #5 on: October 10, 2013, 11:52:26 PM »
No, you are right Aurel... I just wondered why Charles doesn't switch to C. To write an emitter and already the ability to read c header files, he is more than adept at c obviously and I just wondered why not just switch to c as the development language then it would be very easy to run OxygenBasic everywhere that c can.  Just curious as always that is all :)

JRS

  • Guest
Re: Charles why not write Oxygen in C?
« Reply #6 on: October 10, 2013, 11:58:57 PM »
Quote
I just wondered why Charles doesn't switch to C.

I think Charles feels more comfortable writing O2 in O2. I don't know where that stands but I don't think it's an abandoned goal.

I got it.

Lets write a BAS2NIM BASIC (text) to Nimrod (text) converter and let it generate the C. We could have variations that translate various popular dialects. We could write it in SB so it gets done in our lifetime. (and SB runs on the same platforms as Nimrod does) That frees Charles to continue on with the compiler and altered states.

This sounds like too good of an idea so I create a project for it on All BASIC Developer forum. Those that would actively contribute and help set direction would be welcome as members. I think the best thing to do would be to setup a github project for it then anyone that wants to contribute or concentrate on the BASIC dialect they like can fork the main project as a branch which can be pulled from to enhance the main project.

Just thinking out loud at the moment.

« Last Edit: October 11, 2013, 02:25:58 AM by John »

Charles Pegge

  • Guest
Re: Charles why not write Oxygen in C?
« Reply #7 on: October 11, 2013, 08:00:43 AM »
Writing Oxygen in C is still on the agenda. The important thing is not to fragment the project. I have been gradually massaging the FB-based source into a format easier to translate into C, such as replacing assembly code with pointer code. Eventually it will have to be frozen before  translation, so I will try to do as much preparation as possible beforehand.

BTW
I am unable to resist posting this spoof on GIT. :) I don't know whether it is fair criticism or not!

https://www.youtube.com/watch?v=CDeG4S-mJts

JRS

  • Guest
Re: Charles why not write Oxygen in C?
« Reply #8 on: October 11, 2013, 01:00:44 PM »
I like git more than svn. The concept of satellite related efforts with the ability to pull from makes more sense to me than a centralized repository that tracks changes to a pre-determined direction. (controlled mostly by the maintainers)

kryton9

  • Guest
Re: Charles why not write Oxygen in C?
« Reply #9 on: October 11, 2013, 03:06:26 PM »
@Charles The Hitler Clip about Git was hilarious. I was laughing so hard I missed some of the captions as they came up and so had to watch it again.
Did anyone else recognize the man in the middle across from Hitler? He played the US President on the funny and interesting sci-fi show Lexx?
See attachment of him as President.

I find all of these management programs confusing. They are all easy to get files from, but to use personally-- I have never done so.
My Nephew and his team use Git and they love it.

I guess I can focus on C for my code now and know that I can use it with Oxygen in the near future, so that is great!

.

JRS

  • Guest
Re: Charles why not write Oxygen in C?
« Reply #10 on: October 11, 2013, 04:32:02 PM »
A new Nimrod fan and O2 forum friend.  :o

Aurel

  • Guest
Re: Charles why not write Oxygen in C?
« Reply #11 on: October 12, 2013, 10:16:31 AM »
For Kent who like to try....
do you ever try RectOS-livecd iso ...only 54MB iso..
i will download and try to see how work now!

Another one .-.
Quote
Syllable Desktop is a complete operating system that is easy to use, powerful, lightweight and extraordinarily fast and responsive. It has its own kernel, filesystem, GUI and applications. Syllable Server is a matching small and efficient Linux server.
http://sourceforge.net/projects/syllable/?source=recommended

JRS

  • Guest
Re: Charles why not write Oxygen in C?
« Reply #12 on: October 12, 2013, 12:15:29 PM »


This is where the future is heading. IMHO

kryton9

  • Guest
Re: Charles why not write Oxygen in C?
« Reply #13 on: October 12, 2013, 02:51:52 PM »
For Kent who like to try....
do you ever try RectOS-livecd iso ...only 54MB iso..
i will download and try to see how work now!

Another one .-.
Quote
Syllable Desktop is a complete operating system that is easy to use, powerful, lightweight and extraordinarily fast and responsive. It has its own kernel, filesystem, GUI and applications. Syllable Server is a matching small and efficient Linux server.
http://sourceforge.net/projects/syllable/?source=recommended

I have been trying many distros lately Aurel. It is a lot of fun. I can highly recommend using VirtualBox for trying out distros. It makes it so much easier to install distros because even if you have a hard to support wireless network card, with the VM it see the network as wired connection. Basically all the getting hardware to work is taken care of and you can get to trying the distros out.

Aurel

  • Guest
Re: Charles why not write Oxygen in C?
« Reply #14 on: November 06, 2013, 08:29:39 AM »
it looks to me now that question is ...why not in C++11
oh boy ...and what is so cool in C-BASIC on allbasic site  ::)

WE ALREADY HAVE C.BASIC  called.....

OXYGEN BASIC