September 20, 2021, 14:26:15

Author Topic: New PureBasic Backend - C  (Read 1524 times)

Offline ricardo_sdl

  • Jr. Member
  • **
  • Posts: 17
New PureBasic Backend - C
« on: June 16, 2021, 14:01:13 »
PureBasic has released an alpha version of their new backend: C:
https://www.purebasic.fr/blog/?p=502
The compiler generated code is C, which in turn will be compiled to the native machine language. This could allow the use PureBasic in many different processors and operating systems.

Offline Amon.

  • Sr. Member
  • ****
  • Posts: 256
  • What? There's no ceiling outside?
    • Amon.Pro
Re: New PureBasic Backend - C
« Reply #1 on: June 16, 2021, 16:59:47 »
This is an important move from the Purebasic developers. I'm going to keep an eye on this as I own Purebasic and would love it if it supported more platforms.
Windows 10 Pro - 64GB DDR4 RAM - GEFORCE RTX 2080 TI 11GB - AMD RYZEN 9 3950X

Offline Skaven

  • Jr. Member
  • **
  • Posts: 25
Re: New PureBasic Backend - C
« Reply #2 on: June 16, 2021, 18:04:04 »
this is how blitzmax ng also works

Offline Pfaber11

  • Hero Member
  • *****
  • Posts: 783
  • Bonjour
Re: New PureBasic Backend - C
« Reply #3 on: June 18, 2021, 11:44:10 »
This is very interesting although it would be even better if they upgraded OGRE to the latest version as well . That was my major dislike of Pure Basic the Directx 9.0c needing to be installed to run on windows 10 and for the price tag I think it should be sorted. Apart from that it is a very good language just needs updating a bit that's all. Have a nice day.
HP 15s i3 1.2 upto 3.4 ghz 128 gb ssd 16 gb ram 15.6 inch screen.

Offline MikeHart

  • Hero Member
  • *****
  • Posts: 804
Re: New PureBasic Backend - C
« Reply #4 on: June 18, 2021, 12:40:45 »
The price needs to be lowered????
You gotta be kidding. 79 Euro for a lifetime license is cheap as fuck. Don't be so cheap and give the developers what they deserve. Or use a different tool that fits your mindset of how things should be priced.

Offline Steve Elliott

  • Hero Member
  • *****
  • Posts: 3226
  • elgol
Re: New PureBasic Backend - C
« Reply #5 on: June 18, 2021, 13:15:01 »
I agree Mike.   :)
Windows 10 64-bit, 16Gb RAM, Intel i5 3.2 GHz, Nvidia GeForce GTX 1050 (2Gb)
MacOS Big Sur 64-bit, 8Gb RAM, Intel i5 2.3 Ghz, Intel Iris Plus Graphics 640 1536 MB
Linux Mint 19.3 64-bit, 16Gb RAM, Intel i5 3.2 GHz, Nvidia GeForce GTX 1050 (2Gb)
Raspberry pi 3, pi 4, pi 400, BBC B, C64, ZX Spectrum

Offline Pfaber11

  • Hero Member
  • *****
  • Posts: 783
  • Bonjour
Re: New PureBasic Backend - C
« Reply #6 on: June 18, 2021, 13:28:47 »
I apologize it really is a great language.
HP 15s i3 1.2 upto 3.4 ghz 128 gb ssd 16 gb ram 15.6 inch screen.

Offline Aurel

  • Sr. Member
  • ****
  • Posts: 349
Re: New PureBasic Backend - C
« Reply #7 on: June 18, 2021, 13:39:39 »
Quote
I apologize it really is a great language
well i can agree with Mike about money ,i have old 4.5 version
but even is comercial it is not build in a proffesional way than in indie way...
Also is not the fastest among other basic compilers ,this one uses FASM as final builder.
But who i am ..i am not real user of PureBasic in any sense.
(Y)

Offline Pfaber11

  • Hero Member
  • *****
  • Posts: 783
  • Bonjour
Re: New PureBasic Backend - C
« Reply #8 on: June 18, 2021, 13:49:49 »
I haven't used it much either but I did find it very fast compared to other basics I've tried. This C thing should prove interesting
HP 15s i3 1.2 upto 3.4 ghz 128 gb ssd 16 gb ram 15.6 inch screen.

Offline ricardo_sdl

  • Jr. Member
  • **
  • Posts: 17
Re: New PureBasic Backend - C
« Reply #9 on: June 18, 2021, 13:55:09 »
Quote
I apologize it really is a great language
well i can agree with Mike about money ,i have old 4.5 version
but even is comercial it is not build in a proffesional way than in indie way...
Also is not the fastest among other basic compilers ,this one uses FASM as final builder.
But who i am ..i am not real user of PureBasic in any sense.

You mean the code generated is not the fastest or the compiler speed to generate the code? For my use case I think both are good enough, using the fasm as the backend. With PureBasic generating C code we'll be able to get the the many and very efficient optimizations of a C compiler.

Offline MikeHart

  • Hero Member
  • *****
  • Posts: 804
Re: New PureBasic Backend - C
« Reply #10 on: June 18, 2021, 14:10:24 »
That they went for a flat file approach is the main reason that compile times are higher with the c version. The Monkey languages and it's derivates suffer from a similar approach.

Offline Aurel

  • Sr. Member
  • ****
  • Posts: 349
Re: New PureBasic Backend - C
« Reply #11 on: June 18, 2021, 15:01:04 »
well ricardo
i just check your site games..
they are written using SDL with what?
(Y)

Offline ricardo_sdl

  • Jr. Member
  • **
  • Posts: 17
Re: New PureBasic Backend - C
« Reply #12 on: June 18, 2021, 15:37:32 »
They are written in PureBasic, which on default options uses DirectX on windows and SDL and OpenGL on Linux.

Offline Pfaber11

  • Hero Member
  • *****
  • Posts: 783
  • Bonjour
Re: New PureBasic Backend - C
« Reply #13 on: June 19, 2021, 14:30:33 »
@ Ricardo . Can I get Pure Basic to use open GL on windows instead of Directx 
HP 15s i3 1.2 upto 3.4 ghz 128 gb ssd 16 gb ram 15.6 inch screen.

Offline Pfaber11

  • Hero Member
  • *****
  • Posts: 783
  • Bonjour
Re: New PureBasic Backend - C
« Reply #14 on: June 19, 2021, 14:51:21 »
I've just answered my own question and it appears that I can use open GL instead of directx. So my next question is will it run on windows 10 without having to install Directx 9.0c  . I presume it will but would like to have it confirmed . Will Ogre work just the same with Open GL.
« Last Edit: June 19, 2021, 14:54:20 by Pfaber11 »
HP 15s i3 1.2 upto 3.4 ghz 128 gb ssd 16 gb ram 15.6 inch screen.

 

SimplePortal 2.3.6 © 2008-2014, SimplePortal