Blog post !

Developed or developing a new product in PureBasic? Tell the world about it.
User avatar
useful
Enthusiast
Enthusiast
Posts: 369
Joined: Fri Jul 19, 2013 7:36 am

Re: Blog post !

Post by useful »

Axolotl wrote: ...
I think that too high expectations now are just as premature as concerns or fears.
...
I think everyone understands that. But everyone is having fun, too. Movement is always a good thing.
And trust is always a good thing, too. We trust Fred and the team.
We believe it will be fun, so we're all still on this forum, and some of us are also on SB
Dawn will come inevitably.
User avatar
Keya
Addict
Addict
Posts: 1891
Joined: Thu Jun 04, 2015 7:10 am

Re: Blog post !

Post by Keya »

I also hope Fred is enjoying the REINVIGORATION of a new project :)
(personally I've found it difficult to work on a project year after year, I have to take my hat off to Fred for how long he's been developing Purebasic, but this really is a NEW PROJECT for Fred so hopefully he'll enjoy the fresh challenges) :)
infratec
Always Here
Always Here
Posts: 6871
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: Blog post !

Post by infratec »

Goodby small and fast code. :cry:
Welcome foreign CPUs. :D
User avatar
Keya
Addict
Addict
Posts: 1891
Joined: Thu Jun 04, 2015 7:10 am

Re: Blog post !

Post by Keya »

infratec wrote:Goodby small and fast code. :cry:
On the contrary ... welcome a C compiler which can compile smaller and faster code than 99% of Purebasic coders can write, even in assembly. C compilers will even let you decide between small and fast code - PB can't. PB is not an optimising compiler ... C compilers are! This really will take PB code compilations up to a whole new level. Don't be afraid, this will be awesome, and give us state-of-the-art compilations.
User avatar
Josh
Addict
Addict
Posts: 1183
Joined: Sat Feb 13, 2010 3:45 pm

Re: Blog post !

Post by Josh »

Hoping, that the false positives messages from the virus scanners will be reduced too.
sorry for my bad english
User avatar
Mijikai
Addict
Addict
Posts: 1360
Joined: Sun Sep 11, 2016 2:17 pm

Re: Blog post !

Post by Mijikai »

Josh wrote:Hoping, that the false positives messages from the virus scanners will be reduced too.
It wont fix broken AV software thats for sure. :P
User avatar
StarBootics
Addict
Addict
Posts: 984
Joined: Sun Jul 07, 2013 11:35 am
Location: Canada

Re: Blog post !

Post by StarBootics »

Hello everyone,

I have a question, what will happen to code like that :

Code: Select all

  Procedure RotateX(*This.Private_Members, Theta.f)
    
    Protected Cos.f, Sin.f 
    
    !FLD dword [p.v_Theta]
    !FSINCOS
    !FSTP dword [p.v_Cos]
    !FSTP dword [p.v_Sin] 
    
    SetLine1(*This, 1.0, 0.0, 0.0, 0.0)
    SetLine2(*This, 0.0, Cos, -Sin, 0.0)
    SetLine3(*This, 0.0, Sin, Cos, 0.0)
    SetLine4(*This, 0.0, 0.0, 0.0, 1.0)
    
  EndProcedure
Best regards
StarBootics
The Stone Age did not end due to a shortage of stones !
User avatar
Keya
Addict
Addict
Posts: 1891
Joined: Thu Jun 04, 2015 7:10 am

Re: Blog post !

Post by Keya »

Also, consider this ... Apple had gone from PowerPC to Intel in just a few years, and now from Intel to ARM in just a few years ... do we really want Fred spending so much time developing a new asm platform every time Apple changes its mind on which architecture to use? (taking away time from all other development). With a C backend, ALL of those platforms can be/ARE supported. This means Fred will have more time to develop for _all of Purebasic_ rather than just Purebasic for one architecture.
User avatar
Mijikai
Addict
Addict
Posts: 1360
Joined: Sun Sep 11, 2016 2:17 pm

Re: Blog post !

Post by Mijikai »

Imho asm will most likely be supported in some way or the other looking at what is out there.
It aint as pretty but whatever i dont see a big issue.
And writing a lib with you fav assembler will always be possible.
User avatar
Keya
Addict
Addict
Posts: 1891
Joined: Thu Jun 04, 2015 7:10 am

Re: Blog post !

Post by Keya »

yes, C supports inline asm. and yes, you'd still be able to compile object files and libraries in asm and include them in PB, just as you already can (C already has this capability)
User avatar
StarBootics
Addict
Addict
Posts: 984
Joined: Sun Jul 07, 2013 11:35 am
Location: Canada

Re: Blog post !

Post by StarBootics »

Good to know about ASM supported by C compiler.

Best regards
StarBootics
The Stone Age did not end due to a shortage of stones !
infratec
Always Here
Always Here
Posts: 6871
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: Blog post !

Post by infratec »

The problem is ... C is not C.
Or, I know many codes from one C compiler which are not compilable with an other C compiler without manual tweaking.
So Fred will run into an other problem: find a C compiler which fits on the different OSs and CPUs
I think in the Linux world it will be gcc, not really the best compiler.

But that will be not a reason for me to give up PB coding :wink:
User avatar
mk-soft
Always Here
Always Here
Posts: 5398
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Blog post !

Post by mk-soft »

If you then programme in inline ASM, you also have to make sure that the processor knows the commands and the registers.

The instruction sets of the processors can be quite different.
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
User avatar
the.weavster
Addict
Addict
Posts: 1537
Joined: Thu Jul 03, 2003 6:53 pm
Location: England

Re: Blog post !

Post by the.weavster »

infratec wrote:The problem is ... C is not C.
Or, I know many codes from one C compiler which are not compilable with an other C compiler without manual tweaking.
So Fred will run into an other problem: find a C compiler which fits on the different OSs and CPUs
As Plan A was LLVM wouldn't the most likely answer to this question be Clang?
That way you'd still indirectly be getting the advantages that made LLVM interesting in the first place.
User avatar
Mijikai
Addict
Addict
Posts: 1360
Joined: Sun Sep 11, 2016 2:17 pm

Re: Blog post !

Post by Mijikai »

the.weavster wrote:...
As Plan A was LLVM wouldn't the most likely answer to this question be Clang?
....
I dont see how dropping the soap and then asking for another one is helping PBs development.
Post Reply