Page 3 of 22

Re: Blog post !

Posted: Tue Jan 08, 2019 9:37 am
by srod
Little John wrote:
srod wrote:because I can't read my own writing!
So you get perfect analog cryptography for free. Cool! :D
Yes, but decrypted it makes less sense than the nonsensical ramblings I wrote down in the first place. :)

Re: Blog post !

Posted: Sat Mar 13, 2021 12:58 am
by Axolotl
Hi
https://www.purebasic.fr/blog/?p=480
Very interesting news here.
PB back end is going to be a C compiler.

Re: Blog post !

Posted: Sat Mar 13, 2021 1:05 am
by BarryG
Finally, a new blog post! And it explains why the team has been so quiet lately.

Re: Blog post !

Posted: Sat Mar 13, 2021 1:24 am
by Mijikai
Great news and the best part no LLVM nonsense :)
This makes me really happy and hopeful.

Re: Blog post !

Posted: Sat Mar 13, 2021 3:33 am
by skywalk
This is tremendous news!!!
The LLVM study was not wasted since it pointed towards a more compatible path forward.
I read and tried several new languages that jumpstarted with LLVM, but then complained and started their own compiler effort. Emitting C just seems the most logical choice for a small team driving a tight procedural language.
Big yay 8)

Re: Blog post !

Posted: Sat Mar 13, 2021 3:59 am
by Keya
LLVM sounds good on paper, but I find its IR language is a bit of a dogs breakfast. Here's "Hello World" from the LLVM wiki page:

Code: Select all

@.str = internal constant [14 x i8] c"hello, world\0A\00"
declare i32 @printf(i8*, ...)
define i32 @main(i32 %argc, i8** %argv) nounwind {
entry:
    %tmp1 = getelementptr [14 x i8], [14 x i8]* @.str, i32 0, i32 0
    %tmp2 = call i32 (i8*, ...) @printf( i8* %tmp1 ) nounwind
    ret i32 0
}
Here's the same in C:

Code: Select all

#include <stdio.h>
int main() {
   printf("Hello, World!");
   return 0;
}
I know which I prefer!

LLVM would've also required Fred and team having to learn an entirely new language, whereas they're already well versed in C (if im not mistaken PB itself is written in C). It would've also required all PB users to learn at least the basics of LLVM, whereas many of us are already at least somewhat familiar with C.

Having a C backend for PB would open up the door to many new possibilities, and would allow Fred and team to concentrate on the actual PB-to-C translations, while allowing the C compiler (assumingly gcc) to do all the grunt work in regards to assembly-level optimisations etc, and even compile to ARM/ARM64 for those who keep asking for that, without Fred having to spend time developing an entirely new backend just for ARM.

So I'm super glad they've chosen C over LLVM, and I'm super excited!

Re: Blog post !

Posted: Sat Mar 13, 2021 6:37 am
by kenmo
This is exciting news! :!: A C backend opens the door to a wide ecosystem of tools and systems.

It seems like we think the same of LLVM (sounds good in theory, but the IR syntax is ugly, and getting LLVM up and running is a huge pain)

Re: Blog post !

Posted: Sat Mar 13, 2021 8:17 am
by useful
Why stop at C and JS?
We need to go in the direction of - one IDE for Pure(Spider)-basic with the ability to generate multiple targets.
Similar to https://haxe.org/ .

Re: Blog post !

Posted: Sat Mar 13, 2021 9:27 am
by Josh
Yeah, it lives

Sounds good. Thanks to Fred & Co.

Re: Blog post !

Posted: Sat Mar 13, 2021 11:45 am
by Axolotl
Hi
I was really amazed and thought twice before posting (first april, or similar "fooling"). It seems to be serious.
Yes, from my point of view this is the best way to keep a procedural language modern and up-to-date.
Thanks to the PB-Team

Advantage on this side: I know the language C and can also program with it. yay.

Re: Blog post !

Posted: Sat Mar 13, 2021 11:55 am
by Keya
Axolotl wrote:Advantage on this side: I know the language C and can also program with it. yay.
which is one of the reasons I'm not keen on Haxe - for the vast majority of us Haxe would require learning a whole new language (not another one, ugh!), whereas most of us are already familiar with/have invested time in C, and C is a very mature language, and has tonnes of libraries we can use also

Re: Blog post !

Posted: Sat Mar 13, 2021 12:03 pm
by Axolotl
@keya: exactly.

I do not participate in discussions about different languages. My motto: use the language you like best, or the one that will help you get the task done the fastest, or (add your reason). :-)
I can do windows programming in C/C++ or Delphi but I always coming back to PB.

Re: Blog post !

Posted: Sat Mar 13, 2021 2:37 pm
by zikitrake
Fantastic news. Thank you all.
It says on the blog that you are a small company. But those of you who run it are the biggest.
Again, thanks for your efforts.

Re: Blog post !

Posted: Sat Mar 13, 2021 2:39 pm
by the.weavster
Very interesting development, especially if we can include unaltered C files and then use their commands directly in PB.

PB for Raspberry Pi. Very cool ! :D

Re: Blog post !

Posted: Sat Mar 13, 2021 5:25 pm
by Bitblazer
the.weavster wrote:PB for Raspberry Pi. Very cool ! :D
Hmm yes or for smartwatches. Still one of my secret dreams, my own software on a sexy touchable smartwatch with gps and wlan <3
Maybe even with LORA WN (it will happen within the next years!).