Search found 1153 matches
Python is slow - if you use native Python code in a speed-critical loop. If, however, you let its internal routines (coded in C or Assembly) do their job, it can by faster than anything else. Google fastest sort algorithm python to see what I mean.
The final alternative is to create a Python function using the C API and have that function pass data between FB and Python. See https://stackoverflow.com/questions/13942128/how-to-pass-an-array-from-c-to-an-embedded-python-script. The SOF article speaks only about passing data to Python. You might...
I'm no Python expert, so it would cost me a steep learning curve, but memory-mapped files are also an option. Under Windows, you can also share data via a DLL.srvaldez wrote:I did a fair amount of web searching and pipes were among the hits, it's a pity that there's no simple and efficient way to exchange data.
Maybe use a pipe?srvaldez wrote:the one hairy detail is: how to exchange data between the python script and FB, sure you could write it to a file and then read it, but that's not very efficient.
Do you want to make a test? If it's not confidential, upload it somewhere, otherwise post a hundred lines here. If you prefer, I can give you my email here, but it would disappear asap.
The RichMasm editor has an autoformat function, but it's very specialised on x86 assembler. It would be helpful if you posted a hundred lines of example code... how many lines is the source you want to reformat?
Topic summary: Nice idea but a little bit buggy (and I don't have the time now to fix it). Thanks for confirming that this is a real coding thread. For some time I was inclined to believe that "Squares" was some secret game where old FB insiders are pulling each others' legs. So much nons...
The Mohs value for mercury is valid only for solid mercury at -38.89 Celsius grades and lower.dodicat wrote:I was going to say that the Moh's hardness scale only applies to solids, but I see mercury documented as hardness 1.5.
The other liquid element at room temperature is bromine, but it is not listed.
- Jun 10, 2019 11:55
- Forum: Projects
- Topic: Windows only : another simple tool for cartesian plots
- Replies: 4
- Views: 315
The source is MasmBasic and still very confused. Perhaps when it is ready I could create a static lib to make the code accessible for FreeBasic (Win32 only, it's Gdi+).marpon wrote:very nice, but as you only provide an exe, no real interest for me.