Re: [fpc-pascal] What's in Hello World

2024-01-08 Thread code dz via fpc-pascal
I remember i made a simple  win32 window app with custom tiny RTL , and
final exe size was 4.5kb  .

On Sun, Jan 7, 2024, 20:33 Michael Van Canneyt via fpc-pascal <
fpc-pascal@lists.freepascal.org> wrote:

>
>
> On Sun, 7 Jan 2024, Sven Barth via fpc-pascal wrote:
>
> >>>
> >>> - FPC compiled as is: 388976 B
> >>> - FPC compiled with full smartlinking: 55920 B
> >>> - FPC compiled with C linkage: 388760 B
> >>> - FPC compiled with full smartlinking and C linkage: 56792 B
> >>
> >> Maybe it is a good idea to add these numbers to the above WIKI page,
> >> to quantify
> >> the discussion and to illustrate what the effect is of various options.
> >
> > Probably... 路‍♀️
> >
> > And just for the fun of it, the size if the RTL is compiled into a
> > dynamic package and that is used:
> >
> > - no smartlinking: 15784 B
> > - with smartlinking: 15608 B
> >
> > With the librtl.so having a size of 649912 B which will ammortize itself
> > if multiple applications use dynamic packages.
>
> Nice result. Smaller than a C program :-)
>
> >
> >> I think we should also explain why linking to C has almost no effect
> >> on actual binary size.
> >
> > That's mainly because the functions that differ between FPC_USE_LIBC and
> > not are rather slim syscalls anyway, so the main bunch of Pascal code is
> > still the same in both cases.
>
> I know this, but most likely users will not realize this... :-)
>
> Michael.___
> fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
> https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
>
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] First Version Vector Toolkit in OpenGL

2021-11-06 Thread code dz via fpc-pascal
wow bero your gui looks amazing ,
i'am just wondering if this could be run on non vulcan machines ? (gl3
for example)


2021-11-05 16:41 UTC+01:00, Benjamin Rosseaux via fpc-pascal
:
> I'm curious to see how it compares with my vector-based UI framework stuff
> at PasVulkan ( https://youtu.be/YR0KruyQbx4 ), where the GPU itself renders
> everything by shader, where nothing is bitmap-based, if one ignores the 2D
> vector signed distance field textures for fonts and so on. The CPU pushes
> just roughly basic draw information to the GPU, where the fragment
> übershader itself applies the corresponding design look with help of 2D SDF
> math in an always antialiased way then.
>
> On Wed, Nov 3, 2021 at 11:45 AM Anthony Walter via fpc-pascal <
> fpc-pascal@lists.freepascal.org> wrote:
>
>> @code
>>
>> It's a bit weasely to claim immediate or retain based on how the
>> underlying implementation works. The UI toolkit is drawn using a vector
>> based OpenGL library. The library uses hardware vertex buffers, render
>> buffers, and a hardware stencil buffer (for anti-aliasing) to draw lines
>> and shapes. With regards to what people familiar with OpenGL would
>> consider, this is the opposite of immediate mode.
>>
>> However, these vertex buffers are repopulated every frame and where the
>> entire scene is redrawn. This makes it seem to fall under the auspice of
>> immediate mode.
>>
>> BUT
>>
>> If you read up a few messages back, I described how you can enable render
>> buffers to save your work, and it's quite possible and even I'd say easy
>> to
>> do with my framework. But it's an opt-in step.
>>
>> HOWEVER
>>
>> This UI toolkit is only an incidental part of the library I am writing.
>> The actual purpose of the library is to provide users with a very fast 2D
>> graphics system with a hardware accelerated backend to render vector
>> graphics. Further work will also include a Pascal object oriented
>> interface
>> to the fairly robust, fast, and powerful Chipmunk2D physics engine. My
>> creating of this UI toolkit is only meant to give people writing physics
>> simulations, games, or graphical demos a means to select, input, or
>> change
>> options for their physics simulation, game, or graphical demo. It is not
>> meant to be used as a general purpose UI toolkit.
>> ___
>> fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
>> https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
>>
>
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] First Version Vector Toolkit in OpenGL

2021-11-03 Thread code dz via fpc-pascal
2021-11-03 8:16 UTC+01:00, Anthony Walter via fpc-pascal
:
> Tonight I added a third theme based on nothing in particular. I named it
> graphite. With the completion of this theme, the UI toolkit is feature done
> for this first release. I am going to work on writing a custom performance
> graphing widget, create a few more demos, write a bit of documentation,
> then publish.
>
> Here is a video where I change widget themes while running my text brush
> demo:
>
> https://streamable.com/00amir
>

this is a good looking gui :) , is this an immediate gui or retained ,
looks the same as dear imgui  (https://github.com/ocornut/imgui)
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Looking for testers for 3.2.0 release cross-compilers for NDS, GBA and WII targets

2020-10-04 Thread code dz via fpc-pascal
2020-10-04 17:35 UTC+01:00, Pierre Muller via fpc-pascal
:
>   Hi everyone,
>
>  I was wondering if there are still users of
> Free Pascal compiler targeting arm-nds, arm-gba or powerpc-wii.
>

i had always the same question i my head , since these are very old
console devices
i will give it a try :)
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Strange "Undefined symbol" error in FPC 3.2.0

2020-08-01 Thread code dz via fpc-pascal
removing inline keyword resolve the problem
seems a bug
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] FPC 3.2.0 released!

2020-06-20 Thread code dz via fpc-pascal
great .
but why fpc-3.2.0.i386-win32.exe in the ftp site is different in size
and date than sourceforge one

2020-06-20 12:43 UTC+02:00, Dave Connolly via fpc-pascal
:
> Fantastic. Superb work everyone.
>
> On Sat 20 Jun 2020, 11:04 Marco van de Voort, 
> wrote:
>
>> Hello,
>>
>> Finally, the Free Pascal 3.2.0 release is available from our servers and
>> from sourceforge.
>>
>> Changes that may break backwards compatibility will be documented at:
>> http://wiki.freepascal.org/User_Changes_3.2.0.
>>
>> For an overview of what is new see
>>
>> https://wiki.freepascal.org/FPC_New_Features_3.2
>>
>> The website has been update for the major targets and work is still
>> being done for the rest.
>>
>> All downloads are available at the main FTP server and sourceforge.
>>
>> https://sourceforge.net/projects/freepascal/files/
>>
>> ftp://ftp.freepascal.org/pub/fpc/dist/3.2.0/
>>
>> Enjoy!
>>
>> The Free Pascal Compiler Team
>>
>>
>>
>> ___
>> fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
>> https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
>>
>
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] TMS Web core released - based on pas2js.

2018-02-16 Thread code dz
nice , but its slow
i wich we can achive some thing fast like this :
https://flyover.github.io/imgui-js/example/
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] First pas2js public release

2017-12-16 Thread code dz
good news & thanks for the effort

is it similar to Emscripten ?
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] FPC 3.0.4 released!

2017-12-03 Thread code dz
2017-12-03 18:59 UTC+01:00, Florian Klämpfl :
> Am 03.12.2017 um 18:49 schrieb kardan:
>> Apart from that, do
>> you imply, that you intend to burden programmers with work the release
>> team should have done?
>
> Which release team? We are happy that we managed within 3 month to find
> people being able, willing
> and having the resources to build and upload 3.0.4. That's the situation.
> Not some useless checksum.
> ___

this is a scary situation :(predicts a mysterious future of fpc
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] program crash when -Cfsse2 enabled

2017-08-14 Thread code dz
Hi
this is a portion of the program , when i add -Cfsse2 it crashes.
but works ok without sse2
//
program demo;
{$ifdef FPC}{$mode objfpc}{$h+}{$endif}
uses math;
const XRES = 1280;
const YRES = 720;
var myLut  : array[0..XRES*YRES-1] of longword;

procedure initLut;
var i,j : longint;
var x,y,w,r,a,u,v : single;
var iu,iv,iw : int32;
begin
 for j:=0 to YRES -1 do
for i:=0 to XRES -1 do
begin
x := -1.0 + i*(2.0/XRES);
y :=  1.0 - j*(2.0/YRES);
r := sqrt( x*x+y*y );
a := arctan2( y, x );

u := 1.0/r;
v := a*(3.0/3.14159);
w := r*r;
if( w>1.0  ) then w := 1.0;

iu := round(u*255.0);
iv := round(v*255.0);
iw := round(w*255.0);

myLut[XRES*j+i] := ((iw and 255)<<16) or ((iv and 255)<<8) or
(iu and 255);
end;
end;
begin   
initLut;
readln;
end.

/
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] GLM library alternative?

2017-05-30 Thread code dz
tested with the fpc trunk , got only 3 fps increased .
but even with this result fpc does great job , compared with gcc7  ,
gcc is faster only about 45% . so when compared with a compiler like
gcc which get tens of patches par day from from around the world
including big companies like sumsung . and you get only 45% deference
in speed , no doubt fpc is great compiler .
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] FPC Graphics options?

2017-05-25 Thread code dz
seems fpc faster than llvm on -O3/4 only . this is a good news :)
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] MSEide+MSEgui 4.4 for Free Pascal 3.0.2

2017-02-15 Thread code dz
2017-02-15 15:33 UTC+01:00, fredvs :
> Great news Martin.
>
> MSE gui is strong and the solution you have found for docking forms is the
> best, much better than all other dock-system.

msegui/mseide is my best gui library except docking system . i still
have have an opinion that is not easy at first glance for users ,

with qt docking is much simple , you just drag & drop .
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] The Next Release

2016-10-13 Thread code dz
due to the fact that there is no fixed time between major releases ,
one can wait maybe 10 years to see a next major release , just like
gcc4 (2004-2014) , in the other hand gcc5 lives only 1 year .
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] The Next Release

2016-10-12 Thread code dz
slow development but it is the best compiler ever ;)
i hope i can see fpc 4.0 befor dying  :D


2016-10-11 21:59 UTC+02:00, Sven Barth :
> Am 11.10.2016 19:57 schrieb "Tony Whyman" :
>>
>> What's the timetable for the next release? Can we assume that all of
> "trunk" will be in it or will it be more nuanced?
>
> The next release will be 3.0.2 (soonish) which will contain quite some
> fixes compared to 3.0.0, but definitely not everything and most importantly
> no new compiler and/or language features. That's for the next major release
> (3.2.0) for which we currently have no timetable (but as a very rough
> estimate one can say that it's around two years between major releases).
>
> Regards,
> Sven
>
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Free Delphi 10.1 Berlin Starter Edition

2016-08-23 Thread code dz
thanks for the link
downloading 

2016-08-23 10:43 UTC+01:00, Maciej Izak :
> Hi,
>
> finally we have simple way to test new syntax to improve FPC quality /
> $MODE DELPHI without spending $ on Delphi :)
>
> Probably limited time offer:
>
> https://www.embarcadero.com/products/delphi/starter/promotional-download
>
> --
> Best regards,
> Maciej Izak
>
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal