Search found 2991 matches

by marcov
Jan 15, 2021 22:40
Forum: Tips and Tricks
Topic: Image Manipulation
Replies: 4
Views: 154

Re: Image Manipulation

I've studied Image rotation by -90,90 somewhat. First: rotating a jpg is often possible without actual decompression which can be very fast. IOW if you e.g. load a jpg, rotate it and then send it to the user in a webservice, read up on the jpg format. Second, when rotating a bitmap (8bit in my case)...
by marcov
Jan 15, 2021 9:52
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 302
Views: 26178

Re: FreeBASIC 1.08 Development

specially if you have beginners as a potential target group Should a B ASIC dialect not have beginners as a potential target group? Why? Look at the contents of the forum. Macro trickery all around. Is that beginner friendly? Also development is more general improvement for a compiler, and not spec...
by marcov
Jan 14, 2021 20:56
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 302
Views: 26178

Re: FreeBASIC 1.08 Development

I seriously doubt FB is going to bleed users to FPC. Both are niche compilers, used mostly by enthusiasts. Indeed. If a user of a niche language changes language, it usually goes overboard on the other end. As commercial and popular as possible. Still JJ raises some good points, usability is import...
by marcov
Jan 14, 2021 18:31
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 302
Views: 26178

Re: FreeBASIC 1.08 Development

marcov, I'm confused. It happens :-) I learn a lot from you about languages and programming ... style?? (maybe, technique, attitude, history??) Good. But you are ALWAYS here selling FPC. Comparing to FPC, which is a different thing. I just take FPC as measuring rod. For two reasons. ⋅  I ...
by marcov
Jan 14, 2021 11:53
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 302
Views: 26178

Re: FreeBASIC 1.08 Development

marcov, I agree with everything you say, and I don't think I've ever put down FPC or claimed that FB is better than FPC. That is not my intention. My intention is to compare FB that advocates a lot of "we are like C" (compatible) sentiment, with FPC that doesn't, to see what the "we ...
by marcov
Jan 13, 2021 20:01
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 302
Views: 26178

Re: FreeBASIC 1.08 Development

At the very least it should be made clear what aspect of C compatibility is meant, ... There's 3 areas where "gcc/c" and "g++/c++" influence the project. Language features: - C like pointers using '*' to dereference - in some contexts C like arrays / pointer indexing using '[ind...
by marcov
Jan 06, 2021 9:34
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 302
Views: 26178

Re: FreeBASIC 1.08 Development

On Linux I haven't yet seen an llvm package that didn't include llc... If you include crosscompiling toolchains, the Android NDK for Linux doesn't include it and apparently never has. I just downloaded the latest NDK to check it doesn't have it either. In fact the changelog says that "as"...
by marcov
Jan 04, 2021 20:44
Forum: General
Topic: Translating zero length arrays in C headers
Replies: 6
Views: 425

Re: Translating zero length arrays in C headers

adeyblue wrote: Return (@this.dwEvent) + 1 '' return a pointer that points to the DWORD after dwEvent


Change that to (BYTE*) @this)+sizeof(*this) or so ? Iow the first byte after the struct would be more generic than assuming the field before is called "dwevent" and DWord sized.
by marcov
Jan 04, 2021 15:48
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 302
Views: 26178

Re: FreeBASIC 1.08 Development

There is a third option, isn't there? Emit LLVM bitcode, without linking to the LLVM libraries, and without using Clang. I thought that was the original intent behind LLVM. That's also fairly close to LLVM, so I lumped that in the same category. I added the "link to the llvm libraries" la...
by marcov
Jan 02, 2021 14:20
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 302
Views: 26178

Re: FreeBASIC 1.08 Development

Hi marcov, I meant the poke with the utmost respect. I think we have had some friendly worthwhile discussions from time to time about FPC's development and fbc's short-comings. I feel you have me at disadvantage as I think I am certain you likely know a lot more about fbc than I will know about FPC...
by marcov
Jan 02, 2021 4:33
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 302
Views: 26178

Re: FreeBASIC 1.08 Development

Mixing of .o files from C and from Fbc. fbc has a high degree of compatibility with C. Regardless of what anyone says [yes, I'm thinking of your opinions, marcov, :) ], it is a goal of the project. In theory, you should be able to freely mix C and fbc code. And how can you do this more (with the ga...
by marcov
Jan 01, 2021 18:16
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 302
Views: 26178

Re: FreeBASIC 1.08 Development

Some discussion has come up before, not just gfx, on how to add new things to fbc. The main issues are: - negative reactions to adding new global namespace keywords to fbc - negative reactions to making users to use '#include' to get additional features https://www.freebasic.net/forum/viewtopic.php...
by marcov
Dec 21, 2020 9:26
Forum: General
Topic: Translating zero length arrays in C headers
Replies: 6
Views: 425

Re: Translating zero length arrays in C headers

In FreePascal sometimes an empty struct (sizeof()=0) is used in these cases. The type is wrong (not DWORD), but at least you have the dwparms identifier and the size matches. It is then accessed with an expression like pdword(@structref.dwparms)[index]; I'm not entirely sure what would function if d...
by marcov
Dec 17, 2020 21:50
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 302
Views: 26178

Re: FreeBASIC 1.08 Development

As I think about it, all modern IDEs essentially use compilers as libraries. Either they use an existing compiler as a library (like llvm) or implement the compiler themselves in the editor. That's the only way to get complex type and symbol information, especially with a complex language like C++....
by marcov
Dec 15, 2020 16:02
Forum: Community Discussion
Topic: Freedos Question
Replies: 15
Views: 530

Re: Freedos Question

It is the same with FPC, and there it occasionally is verified. As you certainly know: "talk is cheap, money buys the whisky". ;-) Can you provide code that proves your claim? I'm not going to sweat it for your hang-ups. Just not expect the rest of us to share them. If you care, test it y...

Go to advanced search