Search found 3291 matches

by coderJeff
Aug 15, 2024 22:17
Forum: Beginners
Topic: What is randomize / rnd ?
Replies: 50
Views: 5583

Re: What is randomize / rnd ?

Löwenherz wrote: Aug 15, 2024 19:25 Perhaps you can follow my Idea of my Last example and question.. Page 3 top
Hi Löwenherz, please post the code you want to discuss next again in this topic (sorry). It is mixed in with the other topic, thanks.
by coderJeff
Aug 15, 2024 22:11
Forum: Beginners
Topic: What is randomize / rnd ?
Replies: 50
Views: 5583

Re: What is randomize / rnd ?

Discussion about argument evaluation order split to https://www.freebasic.net/forum/viewtopic.php?t=32800
by coderJeff
Aug 15, 2024 22:10
Forum: General
Topic: Argument evaluation order and byref (from: What is randomize / rnd ?)
Replies: 50
Views: 3280

Re: Argument evaluation order and byref (from: What is randomize / rnd ?)

New topic split from original What is randomize / rnd ? fxm, thank-you for the bug report. Yes when days become shorter and nights colder I may have time again ... I will post an example of a related behaviour on sf.net ---- My opinion is that if the code author's intent is clear and there are speci...
by coderJeff
Jul 27, 2024 14:36
Forum: General
Topic: A party trick for random number generators.
Replies: 62
Views: 6424

Re: A party trick for random number generators.

The seed is 64-bit. Just speculating: Is "this.seed" from earlier codes for sure unsigned? If not, This will affect '(x shr 32) or (x shl 32)'. Or perhaps some other complexity it might be seen as signed? fbc should select the correct shift operator, but perhaps there is reason or scenari...
by coderJeff
Jul 27, 2024 12:26
Forum: General
Topic: A party trick for random number generators.
Replies: 62
Views: 6424

Re: A party trick for random number generators.

All of my implementations cannot be wrong. Well, they could be, but I doubt that, so there must be something wrong with the code above. Perhaps try a different -gen backend, optimization level, or an older version of fbc to compare? Your number generators are written in fbc and could be a victim of...
by coderJeff
Jun 18, 2024 0:21
Forum: Community Discussion
Topic: Freebasic 1.20.0 Development
Replies: 298
Views: 39763

Re: Freebasic 1.20.0 Development

Xusinboy Bekchanov wrote: Jun 11, 2024 8:04 In GTK4 these two arguments have been removed. How to fix it?
Perhaps implement your own entry point?

Code: Select all

#ifdef __USE_GTK4__
	#define generic_gtk_init() gtk_init()
#else
	#define generic_gtk_init() gtk_init(0, 0)
#endif

generic_gtk_init()
by coderJeff
Jun 18, 2024 0:18
Forum: Community Discussion
Topic: Freebasic 1.20.0 Development
Replies: 298
Views: 39763

Re: Freebasic 1.20.0 Development

Since SWAP is in the discussion I've been meaning to ask: why does it enforce no parenthesis? It's the only keyword I've seen that rejects optional parenthesis. fbc doesn't enforce it exactly; the parser just doesn't have any logic to check for optional parentheses. Like ?, PRINT, and ERASE, and ma...
by coderJeff
Jun 18, 2024 0:11
Forum: Community Discussion
Topic: Freebasic 1.20.0 Development
Replies: 298
Views: 39763

Re: Freebasic 1.20.0 Development

It's a bug. Example in a short code #define foo(a,b) foo1(a,b) #ifdef notdefined not a statement <-- don't throw an error foo() <--- throw an error #endif It's something, for sure, but, I don't know I would call it a bug. Macros are super global and handled by the lexer, and so skipping over macro ...
by coderJeff
Jun 17, 2024 0:30
Forum: Community Discussion
Topic: Freebasic 1.20.0 Development
Replies: 298
Views: 39763

Re: Freebasic 1.20.0 Development

Last few of weekends, working on: - demangler - which evidently is non-trivial to implement from scratch. Itanium c++ ABI gives a BNF grammar, which, oh joy, has left recursive productions and lots of special notes. - testing of release packages (trying to sort out my build scripts) Of note to users...
by coderJeff
Jun 09, 2024 11:54
Forum: Documentation
Topic: basic macros (built-in macros)
Replies: 20
Views: 11321

Re: basic macros (built-in macros)

fxm, thank-you!
by coderJeff
Jun 09, 2024 11:42
Forum: Community Discussion
Topic: FreeBASIC 1.10.1 Release Discussion
Replies: 160
Views: 37006

Re: FreeBASIC 1.10.1 Release Discussion

Adding extern wrap solwed error, but FB10 did not complain either way. Yes, changed in fbc 1.10.0 commit: commit: f02c400 If we have a procedure declaration (which will have a calling convention either explicitly or by default) and the definition does not explicitly specify a calling convention, th...
by coderJeff
Jun 02, 2024 1:06
Forum: General
Topic: [SOLVED] Pass UTF-8 strings
Replies: 39
Views: 6145

Re: [SOLVED] Pass UTF-8 strings

I think it would be worthwhile to handle the source file as a container only, and then add a precise way to indicate the encoding of literals in source code. That way if fbc doesn't support a particular conversion either at compile time, or implicitly at run time, it can error out on what is not sup...
by coderJeff
May 22, 2024 9:41
Forum: Community Discussion
Topic: Freebasic 1.20.0 Development
Replies: 298
Views: 39763

Re: Freebasic 1.20.0 Development

Before returning to work on strings, I find myself with a puzzle to solve before I can move on. I started fully testing the build process for release packages since the recent additions. With manual intervention it is certainly possible make all 1.20 release builds from 1.10.x and pass the test suit...
by coderJeff
May 18, 2024 11:52
Forum: Documentation
Topic: Profiling freebasic programs
Replies: 41
Views: 7243

Re: Profiling freebasic programs

In the last update 2024-05-17, the '-profgen fb' is mostly doing the kinds of things that I want it to do. - can build the fbc test suite profiled and generate the report - can build fbc itself and then compile fbc to generate a profiling report. - Lots of information is collected and the report out...
by coderJeff
May 18, 2024 11:38
Forum: General
Topic: [FBC 1.10.1 BUG] Define concat and stringize
Replies: 5
Views: 1240

Re: [FBC 1.10.1 BUG] Define concat and stringize

Me too, but I regret that Discord takes priority over the Forum (I suppose the question was asked on both). For me, the forum is still priority for communication about freebasic. Discord offers convenience for live conversation but if I gave discord priorty I would get nothing else done so for me i...