Re: [fpc-pascal] Vector code

2020-05-01 Thread Adriaan van Os
Zamrony P. Juhara via fpc-pascal wrote: I found that this repository have some free ebooks about assembly but maybe not specific to vector code Thanks for the links. No, but you can ask questions here. I've done some minor x86_64 assembler work for image processing. Things like format

Re: [fpc-pascal] Pascal Language Server

2020-05-01 Thread Ryan Joseph via fpc-pascal
> On May 2, 2020, at 12:13 AM, Mattias Gaertner via fpc-pascal > wrote: > > By many functions in CodetoolBoss. Explore, FindDeclaration, > FindReferences, GatherIdentifiers. All of them checks if a file have > changed and rebuilds nodes. If no file/setting has changed, nodes are > kept.

Re: [fpc-pascal] TFPGMap retrieving values

2020-05-01 Thread Marco van de Voort
Op 2020-05-01 om 20:15 schreef Sven Barth via fpc-pascal: Ryan Joseph via fpc-pascal > schrieb am Fr., 1. Mai 2020, 17:48: > On May 1, 2020, at 10:18 PM, Sven Barth mailto:pascaldra...@googlemail.com>> wrote: > > If you need to

Re: [fpc-pascal] TFPGMap retrieving values

2020-05-01 Thread Sven Barth via fpc-pascal
Ryan Joseph via fpc-pascal schrieb am Fr., 1. Mai 2020, 17:48: > > > > On May 1, 2020, at 10:18 PM, Sven Barth > wrote: > > > > If you need to decide which map to use I suggest you to look at this > benchmark page: http://www.benibela.de/fpc-map-benchmark_en.html You can > select various of the

Re: [fpc-pascal] Pascal Language Server

2020-05-01 Thread Mattias Gaertner via fpc-pascal
On Fri, 1 May 2020 21:32:24 +0700 Ryan Joseph via fpc-pascal wrote: > > On May 1, 2020, at 9:28 PM, Mattias Gaertner via fpc-pascal > > wrote: > > > > "Explore" checks if some files have changed and if so rebuilds the > > nodes. > > so I missed something fundamental! I used Explore because

Re: [fpc-pascal] TFPGMap retrieving values

2020-05-01 Thread Ryan Joseph via fpc-pascal
> On May 1, 2020, at 10:18 PM, Sven Barth wrote: > > If you need to decide which map to use I suggest you to look at this > benchmark page: http://www.benibela.de/fpc-map-benchmark_en.html You can > select various of the maps that FPC supports (both ones distributed with FPC > and

Re: [fpc-pascal] TFPGMap retrieving values

2020-05-01 Thread Ryan Joseph via fpc-pascal
> On May 1, 2020, at 10:18 PM, Sven Barth wrote: > > It is a map. It maps keys to values. Nowhere does it say how the map is > implemented. > > If you need to decide which map to use I suggest you to look at this > benchmark page: http://www.benibela.de/fpc-map-benchmark_en.html You can >

Re: [fpc-pascal] TFPGMap retrieving values

2020-05-01 Thread Sven Barth via fpc-pascal
Am 01.05.2020 um 16:12 schrieb Ryan Joseph via fpc-pascal: I've been starting to use the RTL so I'm not very familiar with it but I thought TFPGMap was supposed to be a hash table for fast lookup, so why does TFPSMap.Find using a binary search instead of computing a hash key and indexing into

Re: [fpc-pascal] Pascal Language Server

2020-05-01 Thread Ryan Joseph via fpc-pascal
> On May 1, 2020, at 9:28 PM, Mattias Gaertner via fpc-pascal > wrote: > > "Explore" checks if some files have changed and if so rebuilds the > nodes. so I missed something fundamental! I used Explore because I noticed that I was able to get parser errors after calling it. When does the

Re: [fpc-pascal] Pascal Language Server

2020-05-01 Thread Mattias Gaertner via fpc-pascal
On Fri, 1 May 2020 20:23:01 +0700 Ryan Joseph via fpc-pascal wrote: >[...] > > What are you doing between calls of Explore? > > I'm walking the node tree and then using the Start/EndPos to read > into the source text so that I can extract identifier. It's just: > LoadFile, Explore, WalkTree.

[fpc-pascal] TFPGMap retrieving values

2020-05-01 Thread Ryan Joseph via fpc-pascal
I've been starting to use the RTL so I'm not very familiar with it but I thought TFPGMap was supposed to be a hash table for fast lookup, so why does TFPSMap.Find using a binary search instead of computing a hash key and indexing into the array like that? Is this not the type I should be using

Re: [fpc-pascal] Vector code

2020-05-01 Thread Zamrony P. Juhara via fpc-pascal
I found that this repository have some free ebooks about assembly but maybe not specific to vector code https://github.com/EbookFoundation/free-programming-books/blob/master/free-programming-books.md#assembly-language I also wrote vector operation utility in assembly with SIMD in case you are

Re: [fpc-pascal] Pascal Language Server

2020-05-01 Thread Ryan Joseph via fpc-pascal
> On May 1, 2020, at 4:55 PM, Mattias Gaertner via fpc-pascal > wrote: > > This thread is getting too long. > > Can you please create new threads for new topics? Sure. I'll respond now on this last question but I'll make new ones later if that's better for the list. > > On Fri, 1 May

Re: [fpc-pascal] Pascal Language Server

2020-05-01 Thread Mattias Gaertner via fpc-pascal
On Wed, 29 Apr 2020 21:18:02 +0700 Ryan Joseph via fpc-pascal wrote: > Testing this more I'm having a problem getting overwhelmed by > completions for classes because of methods from TObject (and other > parents) The RTL is powerful. That's why I prefer to put recently used identifiers at top

Re: [fpc-pascal] Pascal Language Server

2020-05-01 Thread Mattias Gaertner via fpc-pascal
This thread is getting too long. Can you please create new threads for new topics? On Fri, 1 May 2020 16:27:46 +0700 Ryan Joseph via fpc-pascal wrote: > Ok, got things working now. Here's the basic pattern I'm using. I > call explore and then walk the root tree node to find what I need but >

Re: [fpc-pascal] Vector code

2020-05-01 Thread Marco van de Voort
Op 2020-05-01 om 10:44 schreef Adriaan van Os: Can someone recommend a good book on writing (assembly) vector code ? No, but you can ask questions here. I've done some minor x86_64 assembler work for image processing. Things like format conversions, uniform lighting, rotate, erosion/dilation

Re: [fpc-pascal] Pascal Language Server

2020-05-01 Thread Ryan Joseph via fpc-pascal
Ok, got things working now. Here's the basic pattern I'm using. I call explore and then walk the root tree node to find what I need but i've noticed the 2nd time I do this I get less results than the first time! What is happening? I assume it's caching something but do I need to reference the

[fpc-pascal] Vector code

2020-05-01 Thread Adriaan van Os
Can someone recommend a good book on writing (assembly) vector code ? Thanks, Adriaan van Os ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Pascal Language Server

2020-05-01 Thread Ryan Joseph via fpc-pascal
> On May 1, 2020, at 2:42 PM, Mattias Gaertner via fpc-pascal > wrote: > > The Node.StartPos are referring to the Tool.Scanner.CleanedSrc, which is > the code stripped of skipped $ifdef ranges and include files included. That's what I was missing. Thanks again. Regards, Ryan Joseph

Re: [fpc-pascal] Question about compiling FPC trunk after revision 44849

2020-05-01 Thread Florian Klämpfl
Am 29.04.20 um 21:12 schrieb Marco van de Voort: Op 2020-04-29 om 19:50 schreef Jonas Maebe: Yes, but you cannot use "clean" and "all" in the same make invocation. This was in fact never supported, and did not work on all platforms either. So simply split it: make -j 9 clean make -j 9 all

Re: [fpc-pascal] Pascal Language Server

2020-05-01 Thread Mattias Gaertner via fpc-pascal
On Fri, 1 May 2020 12:31:26 +0700 Ryan Joseph via fpc-pascal wrote: > Stuck on another code tools problem. > > I've been using code like this to find words at node offsets and this > works well until there are $ifdefs in the file and then the text > position getting offset and fail to return

Re: [fpc-pascal] Porting from Turbo Pascal to FPC

2020-05-01 Thread Markus Greim
Hello, I run Borland Pacal 7.01 in Dosemu / XdosEmu (don't use the 64bit binary) on Linux (Kernel 4.15, 64bit, Linux Mint 19.1, 16 CPUs...) here. Works fine, even the serial interface. At least for my experience, the printer doesn't work. So I "print" in a (shared) graphic file, and print