i was talking on that recently but now i making some cleaning in my
green fire library i watch on things after rethinking that concept
and yet more see an urging need of this pinpoints in c
without it is really a mess
two examples
1) i got a code that measures usage of ram of my app (as i like to see
it on screen)-a-a and of course i got a function for it in my windows_ut file.. (which is ok) i draw it in my diagnostic_hud file (also ok)
but i also need a point where i call it (to change how often i call it
(i dont acll it every frame but once some n frames) - and this is NOT
okay
its not okay as i must damn find it thats forst second is i need to
pin many things in this window_setup file but they are not exactly a
part of that file becouse they are only pinned here - need a point to
pin and thet mess of pinned clien is a mes that dont belong to
windows_setup file
it needs to be emphasised and it is more and more clear..
c needs a pin points
whet more pin points are importat to be reckognized in programmer consciousnes becouse in present state of things it is what makes
or may make some trouble
2) if yu work with ai ai give pices of code but te trouble is often
related to lack of pinpoints becouse you would take the pice and
put it in where you need to put it if you would have pin points defined
you could just replace old separate block and pinpoints would hold
On 27/09/2026 10:54, fir wrote:
i was talking on that recently but now i making some cleaning in myWhat the hell is a 'pinpoint'? Do you mean literally like a pin you
green fire library i watch on things after rethinking that concept
and yet more see an urging need of this pinpoints in c
without it is really a mess
two examples
1) i got a code that measures usage of ram of my app (as i like to see
it on screen)-a-a and of course i got a function for it in my windows_ut
file.. (which is ok) i draw it in my diagnostic_hud file (also ok)
but i also need a point where i call it (to change how often i call it
(i dont acll it every frame but once some n frames) - and this is NOT
okay
its not okay as i must damn find it thats forst second is i need to
pin many things in this window_setup file but they are not exactly a
part of that file becouse they are only pinned here - need a point to
pin and thet mess of pinned clien is a mes that dont belong to
windows_setup file
it needs to be emphasised and it is more and more clear..
c needs a pin points
whet more pin points are importat to be reckognized in programmer
consciousnes becouse in present state of things it is what makes
or may make some trouble
2) if yu work with ai ai give pices of code but te trouble is often
related to lack of pinpoints becouse you would take the pice and
put it in where you need to put it if you would have pin points defined
you could just replace old separate block and pinpoints would hold
stick in a map?
If so, then why does it need to be part of the language? This would be
up to your development environment.
C already has the means to inject metadata within source code that can
be detected by some external tool, for example:
-a /* pinpoint(...) */
i was talking on that recently but now i making some cleaning in my
green fire library i watch on things after rethinking that concept
and yet more see an urging need of this pinpoints in c
without it is really a mess
two examples
1) i got a code that measures usage of ram of my app (as i like to see
it on screen)-a-a and of course i got a function for it in my windows_ut file.. (which is ok) i draw it in my diagnostic_hud file (also ok)
but i also need a point where i call it (to change how often i call it
(i dont acll it every frame but once some n frames) - and this is NOT
okay
its not okay as i must damn find it thats forst second is i need toWhat the hell is a 'pinpoint'? Do you mean literally like a pin you
pin many things in this window_setup file but they are not exactly a
part of that file becouse they are only pinned here - need a point to
pin and thet mess of pinned clien is a mes that dont belong to
windows_setup file
it needs to be emphasised and it is more and more clear..
c needs a pin points
whet more pin points are importat to be reckognized in programmer consciousnes becouse in present state of things it is what makes
or may make some trouble
2) if yu work with ai ai give pices of code but te trouble is often
related to lack of pinpoints becouse you would take the pice and
put it in where you need to put it if you would have pin points defined
you could just replace old separate block and pinpoints would hold
[...]
c needs a pin points
On 2026-09-27, fir wrote:
[...]
c needs a pin points
What is a "pin point"? Nothing you said actually describes what this
"pin point" is, or what it should actually do.
The closest I could fathom was that you want an IDE that allows you to
create something roughly equivalent to HTML anchors...
Dan Purgert pisze:
On 2026-09-27, fir wrote:
[...]
c needs a pin points
What is a "pin point"?-a Nothing you said actually describes what this
"pin point" is, or what it should actually do.
The closest I could fathom was that you want an IDE that allows you to
create something roughly equivalent to HTML anchors...
no there are special places of code when you need to "pin" your code
for exampla i have fsin fcos fatan2 functions
(f stand for fast) which use precomputed lookup tables
so i have some function like
InitOrecomputedFTrigTables()
{
//........
}
ad i nit to pin it at aplication ninitialisation place
to spare
1) extremally tedious code jumping
2) unusual mess in that kind of points like init place
c need pinpoint support like
InitOrecomputedFTrigTables() @init
{
//........
}
where init is just label like this for goto
init:
in some place of code
You need such pinpoint support in c to spare code jumping and
increase code-a independency and less mess
fir pisze:
Dan Purgert pisze:
On 2026-09-27, fir wrote:
[...]
c needs a pin points
What is a "pin point"?-a Nothing you said actually describes what this
"pin point" is, or what it should actually do.
The closest I could fathom was that you want an IDE that allows you to
create something roughly equivalent to HTML anchors...
no there are special places of code when you need to "pin" your code
for exampla i have fsin fcos fatan2 functions
(f stand for fast) which use precomputed lookup tables
so i have some function like
InitOrecomputedFTrigTables()
{
//........
}
ad i nit to pin it at aplication ninitialisation place
to spare
1) extremally tedious code jumping
2) unusual mess in that kind of points like init place
c need pinpoint support like
InitOrecomputedFTrigTables() @init
{
//........
}
where init is just label like this for goto
init:
in some place of code
You need such pinpoint support in c to spare code jumping and
increase code-a independency and less mess
you may have it in points
1. "code independency"
2. "less mess"
3. spare "code jumping"
the mechanism is ismple
fir pisze:
fir pisze:
Dan Purgert pisze:
On 2026-09-27, fir wrote:
[...]
c needs a pin points
What is a "pin point"?-a Nothing you said actually describes what this >>>> "pin point" is, or what it should actually do.
The closest I could fathom was that you want an IDE that allows you to >>>> create something roughly equivalent to HTML anchors...
no there are special places of code when you need to "pin" your code
for exampla i have fsin fcos fatan2 functions
(f stand for fast) which use precomputed lookup tables
so i have some function like
InitOrecomputedFTrigTables()
{
//........
}
ad i nit to pin it at aplication ninitialisation place
to spare
1) extremally tedious code jumping
2) unusual mess in that kind of points like init place
c need pinpoint support like
InitOrecomputedFTrigTables() @init
{
//........
}
where init is just label like this for goto
init:
in some place of code
You need such pinpoint support in c to spare code jumping and
increase code-a independency and less mess
you may have it in points
1. "code independency"
2. "less mess"
3. spare "code jumping"
the mechanism is ismple
main
{
init:
-a for(;;)
-a{
loop:
-a-a-a-a}
}
-aexit:
}
foo() @init {printf("initializing..");}
boo() @init {SetupFont("lucida");}
moo() @exit {DestroyFont("lucida");}
it will compile like
foo() {printf("initializing..");}
boo()-a {SetupFont("lucida");}
moo() {DestroyFont("lucida");}
main
{
init:
-a foo();
-a boo();
-a for(;;)
-a{
loop:
-a-a-a-a}
}
-aexit:
-a moo();
}
its not to use all functions this 'reversed' way..but in some crucial
cases you really need it
LIKE you write separate pice of code and as this pice is separate the
points where this piece is "anchored" to main code belong to THIS piece
of code - TO READ IT PROPERLY ypu need only read this piece of code and
know what goven pinpoints mean
this way the architecturally crucial points of "anchor" become able to
be read..in present situation you need to search tru whole tree which is hopeless
this as to independency
you also spare code jumping which is extremally distracting
you know you for example need to anchor your init_tables()
function at app startup point so you only type @init or maybe @app_initialisation no need to travel there and write init_tables()
there
(this is as to spare code jumping)
Dan Purgert pisze:
On 2026-09-27, fir wrote:
[...]
c needs a pin points
What is a "pin point"? Nothing you said actually describes what this
"pin point" is, or what it should actually do.
The closest I could fathom was that you want an IDE that allows you to
create something roughly equivalent to HTML anchors...
no there are special places of code when you need to "pin" your code
for exampla i have fsin fcos fatan2 functions
(f stand for fast) which use precomputed lookup tables
so i have some function like
InitOrecomputedFTrigTables()
{
//........
}
ad i nit to pin it at aplication ninitialisation place
to spare
1) extremally tedious code jumping
2) unusual mess in that kind of points like init place
c need pinpoint support like
InitOrecomputedFTrigTables() @init
{
//........
}
where init is just label like this for goto
init:
in some place of code
You need such pinpoint support in c to spare code jumping and
increase code independency and less mess
fir pisze:
fir pisze:
Dan Purgert pisze:
On 2026-09-27, fir wrote:
[...]
c needs a pin points
What is a "pin point"?-a Nothing you said actually describes what this >>>> "pin point" is, or what it should actually do.
The closest I could fathom was that you want an IDE that allows you to >>>> create something roughly equivalent to HTML anchors...
no there are special places of code when you need to "pin" your code
for exampla i have fsin fcos fatan2 functions
(f stand for fast) which use precomputed lookup tables
so i have some function like
InitOrecomputedFTrigTables()
{
//........
}
ad i nit to pin it at aplication ninitialisation place
to spare
1) extremally tedious code jumping
2) unusual mess in that kind of points like init place
c need pinpoint support like
InitOrecomputedFTrigTables() @init
{
//........
}
where init is just label like this for goto
init:
in some place of code
You need such pinpoint support in c to spare code jumping and
increase code-a independency and less mess
you may have it in points
1. "code independency"
2. "less mess"
3. spare "code jumping"
the mechanism is ismple
main
{
init:
for(;;)
{
loop:
}
}
exit:
}
[...]
its not to use all functions this 'reversed' way..but in some crucial
cases you really need it
On 2026-09-29, fir wrote:
Dan Purgert pisze:
On 2026-09-27, fir wrote:
[...]
c needs a pin points
What is a "pin point"? Nothing you said actually describes what this
"pin point" is, or what it should actually do.
The closest I could fathom was that you want an IDE that allows you to
create something roughly equivalent to HTML anchors...
no there are special places of code when you need to "pin" your code
for exampla i have fsin fcos fatan2 functions
(f stand for fast) which use precomputed lookup tables
so i have some function like
InitOrecomputedFTrigTables()
{
//........
}
ad i nit to pin it at aplication ninitialisation place
to spare
1) extremally tedious code jumping
2) unusual mess in that kind of points like init place
c need pinpoint support like
InitOrecomputedFTrigTables() @init
{
//........
}
where init is just label like this for goto
init:
in some place of code
You need such pinpoint support in c to spare code jumping and
increase code independency and less mess
Not really sure how this solves anything, you're still going to be
"jumping all over the place" to find those subroutines in the first
place ...
On 2026-09-29, fir wrote:
fir pisze:
fir pisze:
Dan Purgert pisze:
On 2026-09-27, fir wrote:
[...]
c needs a pin points
What is a "pin point"?-a Nothing you said actually describes what this >>>>> "pin point" is, or what it should actually do.
The closest I could fathom was that you want an IDE that allows you to >>>>> create something roughly equivalent to HTML anchors...
no there are special places of code when you need to "pin" your code
for exampla i have fsin fcos fatan2 functions
(f stand for fast) which use precomputed lookup tables
so i have some function like
InitOrecomputedFTrigTables()
{
//........
}
ad i nit to pin it at aplication ninitialisation place
to spare
1) extremally tedious code jumping
2) unusual mess in that kind of points like init place
c need pinpoint support like
InitOrecomputedFTrigTables() @init
{
//........
}
where init is just label like this for goto
init:
in some place of code
You need such pinpoint support in c to spare code jumping and
increase code-a independency and less mess
you may have it in points
1. "code independency"
2. "less mess"
3. spare "code jumping"
the mechanism is ismple
main
{
init:
for(;;)
{
loop:
}
}
exit:
}
[...]
its not to use all functions this 'reversed' way..but in some crucial
cases you really need it
Let's say you're looking at the 'init:' anchor up there. What's getting called?
How do you know without "jumping all over the code" ?
On 30/09/2026 23:32, Dan Purgert wrote:
On 2026-09-29, fir wrote:
Dan Purgert pisze:
On 2026-09-27, fir wrote:
[...]
c needs a pin points
What is a "pin point"?-a Nothing you said actually describes what this >>>> "pin point" is, or what it should actually do.
The closest I could fathom was that you want an IDE that allows you to >>>> create something roughly equivalent to HTML anchors...
no there are special places of code when you need to "pin" your code
for exampla i have fsin fcos fatan2 functions
(f stand for fast) which use precomputed lookup tables
so i have some function like
InitOrecomputedFTrigTables()
{
//........
}
ad i nit to pin it at aplication ninitialisation place
to spare
1) extremally tedious code jumping
2) unusual mess in that kind of points like init place
c need pinpoint support like
InitOrecomputedFTrigTables() @init
{
//........
}
where init is just label like this for goto
init:
in some place of code
You need such pinpoint support in c to spare code jumping and
increase code-a independency and less mess
Not really sure how this solves anything, you're still going to be
"jumping all over the place" to find those subroutines in the first
place ...
The concept of being able to write code that is implicitly run before
main() is common in many languages.-a Pascal units have their initialiser code, C++ constructors and initialisers for program-lifetime objects run before main(), and gcc has the "constructor" attribute as an extension.
The benefit of this is primarily for being able to put such code in a
very different place than "main()" - it's strange to see Fir's example
of "init::" inside main() in another post.
And I think it is inevitable that it would mean "jumping all over the
place" - with the pros and cons that brings.
On 2026-09-29, fir wrote:
Dan Purgert pisze:
On 2026-09-27, fir wrote:
[...]
c needs a pin points
What is a "pin point"? Nothing you said actually describes what this
"pin point" is, or what it should actually do.
The closest I could fathom was that you want an IDE that allows you to
create something roughly equivalent to HTML anchors...
no there are special places of code when you need to "pin" your code
for exampla i have fsin fcos fatan2 functions
(f stand for fast) which use precomputed lookup tables
so i have some function like
InitOrecomputedFTrigTables()
{
//........
}
ad i nit to pin it at aplication ninitialisation place
to spare
1) extremally tedious code jumping
2) unusual mess in that kind of points like init place
c need pinpoint support like
InitOrecomputedFTrigTables() @init
{
//........
}
where init is just label like this for goto
init:
in some place of code
You need such pinpoint support in c to spare code jumping and
increase code independency and less mess
Not really sure how this solves anything, you're still going to be
"jumping all over the place" to find those subroutines in the first
place ...
Dan Purgert pisze:
On 2026-09-29, fir wrote:
fir pisze:
fir pisze:
Dan Purgert pisze:
On 2026-09-27, fir wrote:
[...]
c needs a pin points
What is a "pin point"?-a Nothing you said actually describes what this >>>>>> "pin point" is, or what it should actually do.
The closest I could fathom was that you want an IDE that allows
you to
create something roughly equivalent to HTML anchors...
no there are special places of code when you need to "pin" your code >>>>>
for exampla i have fsin fcos fatan2 functions
(f stand for fast) which use precomputed lookup tables
so i have some function like
InitOrecomputedFTrigTables()
{
//........
}
ad i nit to pin it at aplication ninitialisation place
to spare
1) extremally tedious code jumping
2) unusual mess in that kind of points like init place
c need pinpoint support like
InitOrecomputedFTrigTables() @init
{
//........
}
where init is just label like this for goto
init:
in some place of code
You need such pinpoint support in c to spare code jumping and
increase code-a independency and less mess
you may have it in points
1. "code independency"
2. "less mess"
3. spare "code jumping"
the mechanism is ismple
main
{
init:
-a-a-a for(;;)
-a-a {
loop:
-a-a-a-a}
}
-a-a exit:
}
[...]
its not to use all functions this 'reversed' way..but in some crucial
cases you really need it
Let's say you're looking at the 'init:' anchor up there.-a What's
getting called?
How do you know without "jumping all over the code" ?
when developing the program you usually write a modules (files of code)
that you later pin
so you have such module open than you dont jump on code if you use thi s syntax on remote pin
note the modules have usualy like 3 inpoints each not just one
in the other scenartio you write five modules you got a lot of jumping
it is not only on jumping hovever as i said..its also on architecture
i began to artificially denote pinpoints as a functions - it more
clearly shows thise pinpoints - how the modules are wired/sewed and
in what points
see those pinpoints its a mess but those pinpoints are generally a mess
and naming them helps
void PreWindowPinpoint()
{
-a-a-a-aMakeDpiAware();
-a-a-a-aInitOPtiTables();
-a-a-a-aSetupRawInput();
}
void PreLoopPinpoint()
{
-a-a-a-atimeBeginPeriod(1);
//-a-a-a sys_text(0,0,0xffffff,"");
-a-a-a-aif(initialize_callback) initialize_callback();
}
void PreFramePinpoint()
{
-a-a-a-aUpdateKeyboard();
-a-a-a-aif(arrow_hidden) CenterCursor();
}
void PostFramePinpoint()
{
-a-a-a-aUpdateFrameGraph();
-a-a-a-aif(!(frame_number%20)) UpdateMemoryUsage();
-a-a-a-aif(f1_toggler) DrawDiagnosticHud();
-a-a-a-araw_mouse_dx = 0;
-a-a-a-a raw_mouse_dy = 0;
}
void PostLifePinpoint()
{
-a-a-a-atimeEndPeriod(1);
}
-a(some i could name like
keyboard_pin() {UpdateKeyboard();}
and only put this name in that pinpoint
PreFramePinpoint()
{
-a-a keyboard_pin();
}
fir pisze:
Dan Purgert pisze:
On 2026-09-29, fir wrote:
fir pisze:
fir pisze:
Dan Purgert pisze:
On 2026-09-27, fir wrote:
[...]
c needs a pin points
What is a "pin point"?-a Nothing you said actually describes what >>>>>>> this
"pin point" is, or what it should actually do.
The closest I could fathom was that you want an IDE that allows >>>>>>> you to
create something roughly equivalent to HTML anchors...
no there are special places of code when you need to "pin" your code >>>>>>
for exampla i have fsin fcos fatan2 functions
(f stand for fast) which use precomputed lookup tables
so i have some function like
InitOrecomputedFTrigTables()
{
//........
}
ad i nit to pin it at aplication ninitialisation place
to spare
1) extremally tedious code jumping
2) unusual mess in that kind of points like init place
c need pinpoint support like
InitOrecomputedFTrigTables() @init
{
//........
}
where init is just label like this for goto
init:
in some place of code
You need such pinpoint support in c to spare code jumping and
increase code-a independency and less mess
you may have it in points
1. "code independency"
2. "less mess"
3. spare "code jumping"
the mechanism is ismple
main
{
init:
-a-a-a for(;;)
-a-a {
loop:
-a-a-a-a}
}
-a-a exit:
}
[...]
its not to use all functions this 'reversed' way..but in some crucial
cases you really need it
Let's say you're looking at the 'init:' anchor up there.-a What's
getting called?
How do you know without "jumping all over the code" ?
when developing the program you usually write a modules (files of code)
that you later pin
so you have such module open than you dont jump on code if you use thi
s syntax on remote pin
note the modules have usualy like 3 inpoints each not just one
in the other scenartio you write five modules you got a lot of jumping
it is not only on jumping hovever as i said..its also on architecture
i began to artificially denote pinpoints as a functions - it more
clearly shows thise pinpoints - how the modules are wired/sewed and
in what points
see those pinpoints its a mess but those pinpoints are generally a mess
and naming them helps
void PreWindowPinpoint()
{
-a-a-a-a-aMakeDpiAware();
-a-a-a-a-aInitOPtiTables();
-a-a-a-a-aSetupRawInput();
}
void PreLoopPinpoint()
{
-a-a-a-a-atimeBeginPeriod(1);
//-a-a-a sys_text(0,0,0xffffff,"");
-a-a-a-a-aif(initialize_callback) initialize_callback();
}
void PreFramePinpoint()
{
-a-a-a-a-aUpdateKeyboard();
-a-a-a-a-aif(arrow_hidden) CenterCursor();
}
void PostFramePinpoint()
{
-a-a-a-a-aUpdateFrameGraph();
-a-a-a-a-aif(!(frame_number%20)) UpdateMemoryUsage();
-a-a-a-a-aif(f1_toggler) DrawDiagnosticHud();
-a-a-a-a-araw_mouse_dx = 0;
-a-a-a-a-a raw_mouse_dy = 0;
}
void PostLifePinpoint()
{
-a-a-a-a-atimeEndPeriod(1);
}
-a-a(some i could name like
keyboard_pin() {UpdateKeyboard();}
and only put this name in that pinpoint
PreFramePinpoint()
{
-a-a-a keyboard_pin();
}
i got no practice in simulating of this pinpoints in c so i dont know
which is best now rewritten my 5 pinpoint to
void PreWindow__Pinpoint()
{
-a-a-a-aUtil_PreWindow_pin(); //generate tables for cosin & atan
-a-a-a-aInput_PreWindow_pin(); //setup raw input
}
void PostWindow__Pinpoint()
{
}
void PreFrame__Pinpoint()
{
-a-a-a-aInput_PreFrame_pin(); //setup keys variables
-a-a-a-aif(arrow_hidden) CenterCursor(); // ???
}
void PostFrame__Pinpoint()
{
-a-a-a-aDiagnosticHud_PostFrame_pin(); //update and draw
-a-a-a-aInput_PostFrame_pin();-a-a-a // zero mouse variables
}
void PostLife__Pinpoint()
{
}
only 3 used - yet one used is WNdProc__Pinpoint() which i yet
not defined but it need to be defined
generally in app you got limited number of pinpoints imo
yet ypu may call on the "trunk" side and modules side as imo you
generally pin modules to the truunk of code... though in more alaborated apps probably those could be more of this pinpoints too
this above is far from ideal but at least on abstract way for me its
celar pinpoints or some analog of it is absolutely neded
| Sysop: | Amessyroom |
|---|---|
| Location: | Fayetteville, NC |
| Users: | 74 |
| Nodes: | 6 (0 / 6) |
| Uptime: | 121:16:29 |
| Calls: | 1,194 |
| Files: | 1,352 |
| Messages: | 290,208 |