Search found 1460 matches

by caseih
Apr 30, 2020 18:40
Forum: Beginners
Topic: How to dynamic load a library?
Replies: 22
Views: 787

Re: How to dynamic load a library?

I don't think the winver stuff has anything to do with it. The msvcrt dlls come in different flavors, with the version in the file name. msvcrt70.dll etc. These correspond to the Visual C compiler versions, not the windows versions. Unfortunately only certain versions ever shipped with the OS. Every...
by caseih
Apr 30, 2020 14:11
Forum: Beginners
Topic: How to dynamic load a library?
Replies: 22
Views: 787

Re: How to dynamic load a library?

So does FB load a version that is different from "msvcrt.dll"? Which version does it load then? Possibly. msvcrt.dll is very old--dates back to Visual Studio 6 days. It's still always available, though, for backwards compatibility. The version of msvcrt that FB uses depends on the version...
by caseih
Apr 30, 2020 3:11
Forum: Beginners
Topic: How to dynamic load a library?
Replies: 22
Views: 787

Re: How to dynamic load a library?

I know your code is an example, but be warned dynamically loading msvcrt.dll is not recommended. That's because a version of the standard C runtime dll is already in memory--all FB programs load it and you can access any symbol in it already. Dynamically loading a different version of msvcrt.dll int...
by caseih
Apr 29, 2020 15:28
Forum: Tips and Tricks
Topic: fast sine and fast cosine
Replies: 14
Views: 655

Re: fast sine and fast cosine

How do the optimized routines from the widely-used gsl library stack up? FB ships with gsl headers.
by caseih
Apr 27, 2020 3:32
Forum: Community Discussion
Topic: What do you use FreeBASIC for?
Replies: 91
Views: 4056

Re: What do you use FreeBASIC for?

I can't speak for Pascal, but C is definitely a PITA with its curling braces. Searching for a single character in a 20k line source is never fun. Assembly, for example, offers clear delimiters like proc/endp and macro/endm. BASIC offers sub/end sub or function/end function. Readability is utterly i...
by caseih
Apr 26, 2020 22:53
Forum: Community Discussion
Topic: What do you use FreeBASIC for?
Replies: 91
Views: 4056

Re: What do you use FreeBASIC for?

I get a headache thinking about the time I spent, when coding C, looking for the missing brace. I don't see how looking for a missing brace is any different than looking for a missing begin or end keyword. Compiler tells you about where to look either way. To say nothing of a text editor that snaps...
by caseih
Apr 26, 2020 20:09
Forum: Community Discussion
Topic: What do you use FreeBASIC for?
Replies: 91
Views: 4056

Re: What do you use FreeBASIC for?

Maybe. Depends on the person. I still think C-like languages hold a slight edge in efficiency of typing.
by caseih
Apr 26, 2020 17:58
Forum: Community Discussion
Topic: What do you use FreeBASIC for?
Replies: 91
Views: 4056

Re: What do you use FreeBASIC for?

Apparently this argument, while valid, does not seem to be considered by language developers in modern times. Apart from C, it is also used in CSS and Go, and perhaps another bunch of C-like languages that I'm not familiar with. The possible reasoning is that it is aesthetically more pleasing than ...
by caseih
Apr 26, 2020 4:06
Forum: Community Discussion
Topic: What do you use FreeBASIC for?
Replies: 91
Views: 4056

Re: What do you use FreeBASIC for?

Hmm, so he abandoning Pascal for C because C has a goto statement? I do accept that goto is very useful and powerful when doing many types of programming (as stated in the paper). But it's not the only way to do things. Personally I maintain a fondness for BASIC, and the dialect that FreeBASIC has d...
by caseih
Apr 20, 2020 3:20
Forum: General
Topic: Should an error be thrown here? (A Function calls itself)
Replies: 38
Views: 1890

Re: Should an error be thrown here? (A Function calls itself)

Right, I see what you're saying. Everything involves tradeoffs. Some end up being more costly than others. Your combination of FB-style function return syntax (a return statement as well as a function=expression syntax), the optional end of statement semicolon, the calling of functions without (), a...
by caseih
Apr 19, 2020 21:30
Forum: Community Discussion
Topic: What do you use FreeBASIC for?
Replies: 91
Views: 4056

Re: What do you use FreeBASIC for?

Yes you're right. Although I don't think it's the language itself that matters, but the libraries you use. A library can take a complicated task like speech recognition and abstract it in such as way as to be easy to interface with from a language. Here's a library that uses the Google speech API th...
by caseih
Apr 19, 2020 20:58
Forum: Community Discussion
Topic: What do you use FreeBASIC for?
Replies: 91
Views: 4056

Re: What do you use FreeBASIC for?

No I don't believe I am. Besides if it's open source, there's a freedom to fork it if someone had the will to do so. I'm sure the creators of all languages dominate for a while since they are the ones doing the work initially. And politics can happen in any language community. Sad that Julia's getti...
by caseih
Apr 19, 2020 18:49
Forum: Community Discussion
Topic: What do you use FreeBASIC for?
Replies: 91
Views: 4056

Re: What do you use FreeBASIC for?

When it comes to training computer scientists, universities are being overrun by the market power of large manufacturers of programming environments. It is therefore not surprising to me that professional computer scientists want or need to work on precisely these platforms. No matter whether C, C+...
by caseih
Apr 19, 2020 18:33
Forum: General
Topic: Should an error be thrown here? (A Function calls itself)
Replies: 38
Views: 1890

Re: Should an error be thrown here? (A Function calls itself)

It is impossible to warn about missing semicolons if the code over several lines is syntactically correct. Not impossible at all. To the parser the syntax tree looks the same whether its over several lines or one line. I made the recursion mistake myself while testing (luckily), which inspired me t...
by caseih
Apr 17, 2020 23:44
Forum: General
Topic: Should an error be thrown here? (A Function calls itself)
Replies: 38
Views: 1890

Re: Should an error be thrown here? (A Function calls itself)

Sure you can tack as much runtime checking as you want onto a language. FB has some runtime checking you can enable with -exx, particularly in relation to bounds checking. But if you tack enough on, you'll end up with essentially an interpreter. I repeat what I've said. I've never seen an actual seg...

Go to advanced search