← Home ← Back to /g/

Thread 106211232

13 posts 2 images /g/
Anonymous No.106211232 >>106211627 >>106211674 >>106211794
In QuakeC, string literals and numbers are effectively treated as global
>In QuakeC, string literals and numbers are effectively treated as global constants. This means they are stored in the program's data section rather than the stack or heap associated with individual function calls
>. This has several implications:
>Why are string literals and numbers global in QuakeC?
>
> Efficiency: Storing literals globally allows the QuakeC engine to optimize memory usage by having only one copy of each unique string or number in the game's memory.
> Immutability: String literals, once defined, cannot be changed. Treating them as global constants helps enforce this immutability.
> Simpler Management: QuakeC is a relatively simple scripting language, and treating these literals globally simplifies memory management within the engine.


QuakeC chaos_sque does not have 65k global variables
Faggots will delete this thread immediatly because they want to diss this "non trans, non-feminist" project by libel.
They want you to think there is something wrong with the programming of this project.
When the issue is with QuakeC itself, the virtual machine, and the choices the compiler makes and the QuakeC architecture has. That is: you might not be using global variables: but QuakeC creates a global every time you reference a number it doesn't "know".
They will then say "skill issue" etc for not
Throw away statements.

They are simply enemies and I _WILL_ kill them.


If you listed 66k individual numbers in your source code: it would not compile in QuakeC. So a simple list from 0...66k would error out.
And people would diss you "HAHAHAHH U R USING 65k GLOBAL VARIABLES"
No you are not.

If you had 66k individual words, phrases, or statements in the source code: again you would hit that limit.

There are simply limits to what you can do in QuakeC.
Also every time you create an array in quakeC: each element of that declared array uses a global. No matter how "local" you declared it.
That's just how it is.

See how it's easy to use them all up.
Anonymous No.106211407 >>106211688 >>106211693 >>106211832
sounds like bad design ngl
Anonymous No.106211627 >>106211688 >>106211693 >>106211832
>>106211232 (OP)
You're a great guy, but why are you wasting your time arguing with retards and talking about shit nobody cares about? Just use the best tools and methods, and laugh at retards.
Anonymous No.106211674 >>106211701
>>106211232 (OP)
This is what a schizophrenic meltdown looks like.
Anonymous No.106211688
>>106211407
Perhaps it made sense on the machines of the day, which were ram constrained.

>>106211627
The idea that the project uses "65k global variables" is currently being used by feminists and trans to dissuade people from every looking at the project for "techincal reasons". When their goal is to censor it because they oppose my views.
Same reason they removed reiserFS from the linux kernel and are "celebrating" the 100kbytes that freed for "wallpapers.

This is to dissuade hackers from bothering with opensource anymore. To show no contribution or change they make will ever be "accepted". And that they cannot communicate with other hackers any longer or gain a community of like minded "MAAAAALLLEEE" programers.

It doesn't use 65k global varibles
Anonymous No.106211693
>>106211407
Perhaps it made sense on the machines of the day, which were ram constrained.

>>106211627
The idea that the project uses "65k global variables" is currently being used by feminists and trans to dissuade people from every looking at the project for "techincal reasons". When their goal is to censor it because they oppose my views.
Same reason they removed reiserFS from the linux kernel and are "celebrating" the 100kbytes that freed for "wallpapers.

This is to dissuade hackers from bothering with opensource anymore. To show no contribution or change they make will ever be "accepted". And that they cannot communicate with other hackers any longer or gain a community of like minded "MAAAAALLLEEE" programers.

It doesn't use 65k global varibles
Anonymous No.106211701 >>106211753
>>106211674
>This is what a schizophrenic meltdown looks like.
So, in your opinion; does QuakeC not use globals for string literals? Does QuakeC not use globals for numbers?
Anonymous No.106211708
>In QuakeC, string literals and numbers are often conceptually global because of how the Quake engine handles data storage and access:
>1. String literals
>
> String literals (e.g., "Hello world") are stored in a read-only section of the data segment within the Quake engine, according to Substack. This means they are immutable and exist for the entire duration of the game, rather than being created and destroyed on the stack for each function call.
> When a string literal is used multiple times, the compiler or engine often stores only one copy in memory and directs all references to that single location. This makes them globally accessible in a practical sense, as any part of the code can reference the same literal without creating new instances.
> QuakeC also features built-in functions like ftos (float to string) and vtos (vector to string) that generate temporary strings. These strings are stored in a dedicated buffer and only last for the duration of the function call within the Quake engine.
>
>2. Numbers (floats)
>
> The primary numeric type in QuakeC is float. These are 32-bit floating-point numbers.
> Similar to string literals, when a literal number (like 128) is used in QuakeC code, the Quake engine's data handling often treats these as globally accessible constants. They exist as part of the overall game state accessible to the QuakeC code.
> The progs.dat file, containing the compiled QuakeC code, includes a "Definitions data" section storing floating-point values, integers, and vectors. These are generally available throughout the QuakeC environment.
>
>In summary, the "global" nature of string literals and numbers in QuakeC stems from their storage in dedicated memory areas and their accessibility throughout the game engine's execution, rather than being confined to specific function scopes or requiring explicit dynamic allocation and deallocation.
Anonymous No.106211753
>>106211701
Why does your pedokike ass come here? The dark places trannies weren't fucked up enough?
Anonymous No.106211794
>>106211232 (OP)
Sure, the string and numeric literals may have been effectively treated as global, but was that how they identified?
Anonymous No.106211807
I literally couldn't possibly care less about a 30 year old game. Touch grass, incel.
Anonymous No.106211832 >>106211875
>>106211407
Perhaps it made sense on the machines of the day, which were ram constrained.

>>106211627
The idea that the project uses "65k global variables" is currently being used by feminists and trans to dissuade people from every looking at the project for "techincal reasons". When their goal is to censor it because they oppose my views.
Same reason they removed reiserFS from the linux kernel and are "celebrating" the 100kbytes that freed for "wallpapers.

This is to dissuade hackers from bothering with opensource anymore. To show no contribution or change they make will ever be "accepted". And that they cannot communicate with other hackers any longer or gain a community of like minded "MAAAAALLLEEE" programers.

It doesn't use 65k global varibles
Anonymous No.106211875
>>106211832
I read it..... No need to notify me 3 times.