Search found 2965 matches

by marcov
Nov 29, 2020 22:31
Forum: Community Discussion
Topic: hey all, new programming language support gwbasic,freebasic
Replies: 13
Views: 306

Re: hey all, new programming language support gwbasic,freebasic

CodeBaseTeam wrote:pascal


Does it bootstrap freepascal cq Lazarus?
by marcov
Nov 23, 2020 11:14
Forum: General
Topic: When to use Integer and when not to
Replies: 25
Views: 612

Re: When to use Integer and when not to

On the other hand, I see very few reasons to use Integer (or int in C) and at the same time, I see great disadvantages in applying it to everything. In most practical aspects, an Integer is but a 64 bit field of which only 32 bits can be used, that is int in C is generally not 64-bit even on 64-bit...
by marcov
Nov 14, 2020 15:34
Forum: DOS
Topic: DOS "Window" in FreeBasic graphic mode
Replies: 5
Views: 1090

Re: DOS "Window" in FreeBasic graphic mode

Also, most dos thread libs only exploit one core, since Dos is not a multiprocessing OS either. IOW the threads don't run at the same time, but interleaved in short intervals
by marcov
Nov 13, 2020 16:05
Forum: Windows
Topic: Freebasic Driver Programming
Replies: 5
Views: 644

Re: Freebasic Driver Programming

Can i make windows drivers with freebasic? Device drivers are typically written in C, using the Driver Development Kit (DDK). There are functional and object-oriented ways to program drivers, depending on the language chosen to write in. It is generally not possible to program a driver in Visual Ba...
by marcov
Nov 10, 2020 13:10
Forum: General
Topic: LongInt on 32 bit architecture
Replies: 15
Views: 481

Re: LongInt on 32 bit architecture

SSE2 XMM registers are not volatile in 32-bits ABI so need costly register save Strangely enough, Google refuses to give me the x86 ABI - but I'm pretty sure that xmm0 ... xmm3 are volatile registers. From my own experience, certain Windows functions started trashing these registers from Win7-64 on...
by marcov
Nov 09, 2020 22:57
Forum: General
Topic: LongInt on 32 bit architecture
Replies: 15
Views: 481

Re: LongInt on 32 bit architecture

Usually for 2*wordsize emulated routines are fairly thin and can be inlined. A int32*int32 with 64-bit result is often included in the instruction sets. Larger helpers (like Divide) are part of the library (for gcc in libgcc). COMP (64-bit int in FPU) used to be slow and was rarely used for this pur...
by marcov
Nov 09, 2020 22:47
Forum: General
Topic: Binary includes
Replies: 9
Views: 741

Re: Binary includes

Most of such systems are limited by the object code being hard to decompile, not by the binary form of their headers. Every major language I used (except maybe C++, but I'm sure there are compilers that support binary includes) There are C and C++ compilers with precompiled headers, e.g. MSVC (.PCH...
by marcov
Nov 08, 2020 11:16
Forum: Community Discussion
Topic: [offtopic] R.I.P J.H. Conway
Replies: 3
Views: 248

Re: [offtopic] R.I.P J.H. Conway

Sad to hear. Played with the game of life in many instances (from micro to webbased) over the years.
by marcov
Oct 31, 2020 14:09
Forum: Documentation
Topic: Windows version GFX-driver
Replies: 3
Views: 240

Re: Windows version GFX-driver

coderJeff wrote:
- For FreeBSD's I will have to check. Again, using the default for the platform


The system C compiler on most FreeBSD (and afaik most BSD including OS X) is LLVM's Clang

gcc is installable from ports though
by marcov
Oct 24, 2020 11:55
Forum: Beginners
Topic: [HELP] KNN code doesn't work
Replies: 68
Views: 2439

Re: [help] converting code from python to FB

Usually you check the regression coefficient R to check if the regression is valid. It is typically a value slightly under one, if you have to make the judgement programmatically it is easier to work with to check -(10log(1-R))
by marcov
Oct 14, 2020 20:20
Forum: General
Topic: I hate shell
Replies: 17
Views: 5093

Re: I hate shell

Same question. How do you know if the executed program/command returns an errorlevel?
by marcov
Oct 14, 2020 19:40
Forum: General
Topic: I hate shell
Replies: 17
Views: 5093

Re: I hate shell

jdmcbride wrote:
And rc being a string, would return the output of the command or the error text if it fails.


And how would the user differentiate between those two options?
by marcov
Oct 06, 2020 11:27
Forum: Hardware Interfaces / Communication
Topic: Try to use inpout32.dll
Replies: 49
Views: 1588

Re: Try to use inpout32.dll

Maybe the importlib stub changes calling convention?
by marcov
Oct 02, 2020 14:58
Forum: Community Discussion
Topic: immutable thread titles?
Replies: 43
Views: 1336

Re: immutable thread titles?

Afaik you can do python communication more highlevel through a dll. See e.g. https://wiki.freepascal.org/Python4Delphi

So it should be the matter of translating the header and figuring out some examples

Disclaimer: I don't use python, this is just from my saved urls stash.
by marcov
Oct 01, 2020 10:10
Forum: Community Discussion
Topic: immutable thread titles?
Replies: 43
Views: 1336

Re: immutable thread titles?

Hmm, possibly also a bit of a wave in people's habits. In the (first) lockdown period, the Lazarus forums were very busy too, but now they are also fairly calm.

Go to advanced search