Jump to content

Wikipedia:Reference desk/Computing: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Mattmill30 (talk | contribs)
Mattmill30 (talk | contribs)
Line 216: Line 216:
* [[Key (cryptography)]] - This seemed very close, except that in the case of cryptography it is described as "a piece of information" whereas I am looking for a word to refer to a "set of information".
* [[Key (cryptography)]] - This seemed very close, except that in the case of cryptography it is described as "a piece of information" whereas I am looking for a word to refer to a "set of information".
* [[Identification key]] - "aids the identification of biological entities", rather than describing the parameters of the entities creation.
* [[Identification key]] - "aids the identification of biological entities", rather than describing the parameters of the entities creation.
* [[INI file]] - "a text-based content with a structure and syntax comprising key–value pairs for properties, and _sections_ that organize the properties", so what would be the same of the section?
* [[INI file]] - "a text-based content with a structure and syntax comprising key–value pairs for properties, and ''sections'' that organize the properties", so what would be the name of the section?
* [[Installation_(computer_programs)#Unattended_installation|Answer file]] - Contains the data that is essentially what I am describing, except that an answer file is context-specific to computer program installation.
* [[Installation_(computer_programs)#Unattended_installation|Answer file]] - Contains the data that is essentially what I am describing, except that an answer file is context-specific to computer program installation.
* [[Recipe]] - Are configurations equivalent to 'ingredients'? I would have thought a recipe would include much more detail that just application version numbers and parameters.
* [[Recipe]] - Are configurations equivalent to 'ingredients'? I would have thought a recipe would include much more detail that just application version numbers and parameters.

Revision as of 16:37, 2 June 2024

Welcome to the computing section
of the Wikipedia reference desk.
Select a section:
Want a faster answer?

Main page: Help searching Wikipedia

   

How can I get my question answered?

  • Select the section of the desk that best fits the general topic of your question (see the navigation column to the right).
  • Post your question to only one section, providing a short header that gives the topic of your question.
  • Type '~~~~' (that is, four tilde characters) at the end – this signs and dates your contribution so we know who wrote what and when.
  • Don't post personal contact information – it will be removed. Any answers will be provided here.
  • Please be as specific as possible, and include all relevant context – the usefulness of answers may depend on the context.
  • Note:
    • We don't answer (and may remove) questions that require medical diagnosis or legal advice.
    • We don't answer requests for opinions, predictions or debate.
    • We don't do your homework for you, though we'll help you past the stuck point.
    • We don't conduct original research or provide a free source of ideas, but we'll help you find information you need.



How do I answer a question?

Main page: Wikipedia:Reference desk/Guidelines

  • The best answers address the question directly, and back up facts with wikilinks and links to sources. Do not edit others' comments and do not give any medical or legal advice.
See also:


May 19

GNOME issue with gestures

Hello, I recently installed both Vanilla GNOME and Ubuntu GNOME on my Linux Mint machine lately to try out the gestures, but they don't seem to work on my computer's touchpad. I tried the three and four finger swipes, but they don't work. I tried disabling tap to click. Still nothing. The model is HP Pavilion dv6t-6c00, with Beats Audio, 8 GB RAM, no AMD Graphics, and came with Windows 7 Home Premium preinstalled. (Also, GNOME just doesn't look like how modern GNOME screenshots look, the top right menu looks very different.) Any help would be appreciated. If you reply here, please ping me. thetechie@enwiki: ~/talk/ $ 17:59, 19 May 2024 (UTC)[reply]

More info: I am using Wayland and a Synaptics touchpad, which should meet the requirements. GDM3 is also set as the default display manager on my computer. thetechie@enwiki: ~/talk/ $ 21:01, 19 May 2024 (UTC)[reply]
Never mind, I figured it out. My touchpad doesn't support gestures. *oh well*
Resolved
thetechie@enwiki: ~/talk/ $ 02:55, 20 May 2024 (UTC)[reply]
*sighs* thetechie@enwiki: ~/talk/ $ 02:55, 20 May 2024 (UTC)[reply]


May 21

I've been trying to do strikethrough with Unicode. I'm finding that the composed characters are to the right of where they "should" be, and somewhat too low, see the examples on our article, and in the combining character article, these are not in the correct position to be a traditional strikethrough. In fact the tools I've used work best if the struck through text is preceded with a "space strikethrough" (and no strikethrough at the end?). Is there a better solution in Unicode? All the best: Rich Farmbrough 21:00, 21 May 2024 (UTC).[reply]

Implementations of combining characters tend to be plagued by bugs. The precise appearance, including positioning and kerning, is not regulated by Unicode but by the rendering engine of the browser, using its font tables for the specific font. Here are examples of plain and struck-through vertical bars in a few typefaces, using U+0335.
Times New Roman:
||||||||||
|̵|̵|̵|̵|̵|̵|̵|̵|̵|̵
Courier:
||||||||||
|̵|̵|̵|̵|̵|̵|̵|̵|̵|̵
Courier New:
||||||||||
|̵|̵|̵|̵|̵|̵|̵|̵|̵|̵
Comic Sans MS:
||||||||||
|̵|̵|̵|̵|̵|̵|̵|̵|̵|̵
For me, using Firefox on macOS, the effects are quite varied across these fonts. Using Safari, the effects are also varied, but markedly different. The widths of ⟨|⟩ and ⟨⟩ differ for each typeface on Safari. The struck-through bars are narrower for Comic Sans MS. Not only are they 226% (!) wider than the vanilla bars in Times New Roman, but they are even 33% taller, which I find quite bizarre.  --Lambiam 10:40, 22 May 2024 (UTC)[reply]


May 23

Organizing text and data

I'm working on a project that would go lot more smoothly if I could get myself organized. What I've got is pieces of text that I need to be able to classify in various ways and apply attribute tags to (e.g. this text has the tags applied for "Religion" and "Finances" while this other one has only "Animals", etc.). I would normally use Excel for something of this scale, but the text pieces aren't really appropriate for stuffing into a cell (and some have particular formatting I'd like to preserve, which again doesn't work great with Excel). At this point, my plan is to indeed do it in Excel, but hyperlink the text pieces, which is clunky at best. Any other options that spring to mind? There will be hundreds of records, which is large enough to need organization, but not zillions and zillions and it's a personal project, so I'm not looking to spend a lot. Any programs spring to mind as appropriate? Matt Deres (talk) 14:58, 23 May 2024 (UTC)[reply]

You could run a local copy of MediaWiki (the operation of which you are already very familiar), using categories for the classification. It's an issue if you want to produce automated reports (e.g. "list all the text that is in category X"), but a small php script should be able to do that. -- Finlay McWalter··–·Talk 21:44, 23 May 2024 (UTC)[reply]
I would personally use MediaWiki. It is easy to install and use. But, you are describing a common use-case for NoSQL databases. 75.136.148.8 (talk) 11:19, 24 May 2024 (UTC)[reply]
Are these pieces of text each in separate files, or in one large file, or are they divided across several files, some of which contain several classifiable items? Almost all approaches require that you already have, or create, a unique identifier for each item you want to classify. Suppose you are done with the job of classifying. Presumably you want to make some use of the fruits of your labour. What kind of searches/queries/other uses do you envisage? The best approaches may depend on the answers. There is a risk of us trying to solve an XY problem.  --Lambiam 11:55, 24 May 2024 (UTC)[reply]
Fair questions. The use case is for organizing folklore snippets in such a way that I can 1) keep them organized, 2) apply different kinds of tags to them (source location, source date, topics, etc.) for ease of grouping them in various ways, and 3) ideally find ways to connect related bits (e.g. this piece and that piece are likely variations on the same theme). Some of the snippets are literally on scraps of paper, others are from printed sources, still others are from online sources (documents, web sites), and some are audio files I'll need to transcribe. My earlier point about formatting being important is because, especially for the transcriptions of the audio stuff, I'd like to be able to show stresses, pauses, emphasized words or phrases, that kind of thing. Nothing crazy (italics and bolding, mostly), but Excel's ability to word process within a cell is extremely rudimentary; it's just not meant for that work. Matt Deres (talk) 17:13, 24 May 2024 (UTC)[reply]
It appears to me that the lion's share of the effort will be in labeling (with unique identifiers) and archiving the snippets in a way that allows you to retrieve them by their labels. If you scan or transcribe the items, you can store them as files with the labels as file names. The system for associating attribute tags with the item labels can then be purely (vanilla ASCII) text-based, whether an Excel work sheet or a database. TerminusDB, a free document-oriented database, should be eminently suitable for your purpose. While perhaps overkill for the immediate future, investing effort in becoming acquainted with its use may pay off in the end as your collection grows and your investigations become more sophisticated.  --Lambiam 07:01, 25 May 2024 (UTC)[reply]
You might consider Obsidian (software), which supports tags [1]. But see also the various links and lists under "see also" on that page, and the categories. Personal wiki software, note taking software, there's a lot available.  Card Zero  (talk) 07:20, 25 May 2024 (UTC)[reply]


Org mode has sufficed for me, but maybe you need something fancier for more complicated info. The general approach is Zettelkasten and there is a lot different software for it, none of which I've used. 2601:644:8501:AAF0:0:0:0:1ECE (talk) 05:08, 1 June 2024 (UTC)[reply]

May 25

What's the name for the blown up texts so common in social media?

In social media, many simple texts go viral which have nothing special other than they are blown up to a picture. People may forward them because (a) it's dead easy and (b) they find them funny or they want to proselytize the expressed opinion to others. What are they called? You might consider them a subgroup of internet memes. However, they don't fit the definition “Two central attributes of Internet memes are creative reproduction and intertextuality.”, nor do they contain any other noteworthy creativity. Their only purpose seems to be that they're bigger than normal text so that they gather more importance. Even “eye candy” would be too flattering, so I'd rather call them "rectangular attention sinks". Maybe I'd better turn to a sociologist with this question.

Related tech question: Do any social media offer a way to simply filter and ignore these attention sinks? ◅ Sebastian Helm 🗨 09:41, 25 May 2024 (UTC)[reply]

Can you provide any examples of "blown up texts"? Do you mean texts as in a form of online messaging between two people, such as SMS? ―Panamitsu (talk) 10:06, 25 May 2024 (UTC)[reply]
For example an image that contains nothing but the text
Why's it always “nyc smells like pee” and never “my pee smells like the greatest city in the world”
(In this particular case, the image actually contains some user name who may have originally posted this, along with their picture, contrary to what I described above. But I picked this because I found it somewhat witty. And the user name and picture are not important here.) ◅ Sebastian Helm 🗨 14:28, 25 May 2024 (UTC)[reply]
In magazines and newspapers, they are called pull quotes. 75.136.148.8 (talk) 22:06, 25 May 2024 (UTC)[reply]
Interesting; I wasn't aware of that term. But that's not the same thing. If you want to transfer the term onto social media, it would have to be some text taken from a longer discussion, rather like people use bold face and capitalization in such discussions as here. The blown up texts of my question do not pull a reader to any source. Even in the case of the “nyc” example which happens to contain something that looks like an author alias and picture, there is no way to jump to the original discussion. So, they're neither “pull” nor “quotes”. ◅ Sebastian Helm 🗨 08:21, 26 May 2024 (UTC)[reply]
For clarification: pull quotes are pulled from the text, though I guess they are designed to pull you in as well. --142.112.143.8 (talk) 21:24, 26 May 2024 (UTC)[reply]
Hmm, that seems redundant. Or what would be a non-pull quote, then? ◅ Sebastian Helm 🗨 05:08, 27 May 2024 (UTC)[reply]
Pull quotes (in the original sense of the term) coinhabit the space with the text from which they were pulled, so in a print magazine the quoted passage would typically appear twice on a page: once in the running text, and once standing out on ts own in a blown-up font size. Normal quotes typically appear merely once and usually have the same font size as the surrounding text, or when displayed as a block sometimes a slightly smaller font size.  --Lambiam 10:23, 27 May 2024 (UTC)[reply]
Thanks for the explanation. So their name seems to be a misnomer: The non-pull quotes even have more pulling to do, since they have to pull the text from farther away. But that was only a detour from my original questions. Can we turn back to them, please? ◅ Sebastian Helm 🗨 15:22, 28 May 2024 (UTC)[reply]

Diffs

English Wikipedia is almost at 1,225,620,000 diffs, increasing at about 1000 every ten minutes or so I'm guessing. Is there a limit to this number in MediaWiki or the underlying software – cognate with the Y2K problem and the like?

(This is a throwaway question that just occurred to me, not a complaint or anything to take seriously or anything that I'm worrying about!) 46.69.215.187 (talk) 17:18, 25 May 2024 (UTC)[reply]

MediaWiki stores complete revisions (previous versions stored backwards deltas as diffs, but later versions store the whole revision and computes the diffs) in the REVISION table. The primary key for that is "int unsigned", which in MySql is a 32 bit integer. That's a max of 4,294,967,295; so that would put en.wikipedia at about 1/4 of the way to the limit. I don't know what provision the developers have for the (surely inevitable) case where that becomes an issue.-- Finlay McWalter··–·Talk 18:27, 25 May 2024 (UTC)[reply]
Ah, that answers my question and provides useful extra reading! Thank you @Finlay McWalter: I'm very grateful for your time and expertise. 46.69.215.187 (talk) 18:34, 25 May 2024 (UTC)[reply]
The reference document also states that there is a 64-bit integer data type, which is one possible solution. Robert McClenon (talk) 01:12, 26 May 2024 (UTC)[reply]

May 26

Word Autorecovery

I am using Windows 11, and Word for Microsoft 365. My question has to do with the feature to Save Autorecovery information, which saves a copy of each Word document that is open and has been modified within the past 10 (or other user-settable time) minutes. These Autorecovery files are saved in Appdata \ Roaming \ Microsoft \ Word. However, if I look at them as I am editing various Word documents, sometimes I notice that some of them have sizes of 0 KB. I am attaching a screen shot showing a view of the Word folder with four documents having sizes of 0 KB. These files are in fact null files; that is, the 0 KB is correct. The files that I was editing were not null files.

What causes Word to stop creating good Autorecovery files? What I have found I can do is to stop Word (after saving the documents in question to their disk locations), and restart Word. If there is an unexpected stop or unexpected loss of Word functionality, updates to the documents being edited are lost.

Is there technical documentation of the Autorecovery feature? Does anyone know what causes these failures, or how to minimize their occurrence? Robert McClenon (talk) 03:36, 26 May 2024 (UTC)[reply]

What follows is a hunch, although based on Microsoft sources. Buried deep in the menus of office is a way to change the autosave location. [2] Perhaps this will solve the problem. I base that on hints in this otherwise irrelevant page [3]. It has the phrase "the roaming profile has reached its maximum storage limit". What is the Roaming directory? It seems to be to do with making user data accessible across a network. Maybe avoiding the "roaming" will also avoid the zero bytes file issue.  Card Zero  (talk) 08:24, 26 May 2024 (UTC)[reply]
Thank you, User:Card Zero. The sources that you have provided are very old, which I think you knew, but they do provide information for an educated guess, which is what you were trying to do. You ask: What is the Roaming directory? That is displayed in the screen shot that occupies too much space just above this discussion. It is a subdirectory of my User directory, and, as you imply, it has something to do with network access, but appears to be an old version of network access. I have changed the directory in which the Autosave is being done,and will see if that accomplishes anything. I think that we are both inferring that what was happening was that the Word subdirectory within the Roaming subdirectory had exceeded some size limit, which would be why the Autorecovery files were being zeroed. You provided some useful information to guess at what to do. Robert McClenon (talk) 16:38, 28 May 2024 (UTC)[reply]
Yes. A couple of other completely different wild guesses, which I have no time right now to investigate, is that they are lock files (to do with exclusive access to a file in use) or placeholders (when there is no need for an autosave but it is somehow convenient to Word if it can find the appropriate autosave file anyway). Also I really ought to dig the previous similar discussion out of the archives, I forget how it concluded.
Update: I searched the archives, and it turns out I was thinking of the saga of normal.dotm, a different problem you had with Word, although similar in that you lost supposedly saved data after a crash (in that case, template settings).  Card Zero  (talk) 20:23, 28 May 2024 (UTC)[reply]

"dracut"?

Where does the name of dracut (software) come from? --142.112.143.8 (talk) 04:38, 26 May 2024 (UTC)[reply]

Never mind, I found a Reddit thread with the answer. It's named after Dracut. I once read a novel where the "no resemblance to actual people" disclaimer said that "the characters are placenamed"; apparently some software developers had the same idea. --142.112.143.8 (talk) 05:10, 26 May 2024 (UTC)[reply]
Resolved

May 27

Ringtones for different known callers

Ringtone doesn't seem to mention that this is possible but I think it is. I tried finding sources but found nothing that Wikipedia would accept, and even then, nothing seemed to make it clear the concept even existed.— Vchimpanzee • talk • contributions • 22:36, 27 May 2024 (UTC)[reply]

Seems like that is part of the functionality of the software of the phone (iOS/Android), not part of the ringtone itself. Polygnotus (talk) 04:11, 28 May 2024 (UTC)[reply]
The best place to propose an improvement to any article is the talk page of that article. Shantavira|feed me 08:13, 28 May 2024 (UTC)[reply]
As mentioned, it is the phone's software, not the concept of a ringtone. On my phone, I can go into my contact list, select a contact, and set both an image and a ringtone for that contact. Then, when I receive a call from that number, the image I set shows up and the ringtone I set plays. If I haven't set either one, the default image and ringtone are used. So, it is possible to have a ringtone for a specific contact on a phone if the software allows it. It is also possible to have a different ringtone on different phones. It is possible to have a ringtone that plays when you purchase the phone, but then a person changes it later to a different one. It is possible to play a ringtone on a piano without a phone at all. It is possible that a frog may learn to vocalize sounds that mimic a ringtone. A lack of references should indicate that concept of "possible" and "ringtone" is not in itself notable (but I would like to see that frog). 12.116.29.106 (talk) 11:20, 28 May 2024 (UTC)[reply]
I can't really propose an improvement where I don't have the reliable sources that would support it. That was my purpose in asking here.— Vchimpanzee • talk • contributions • 14:30, 28 May 2024 (UTC)[reply]

May 28

How to search for fake references (in SparQL or with other methods)

In SparQL, how can I search for stuff like this. So it would start with an opening square bracket, then a number of up to 3 digits, then a closing square bracket.

Is there a way to do this via the normal search box? Is there another, better way? Thanks! Polygnotus (talk) 04:07, 28 May 2024 (UTC)[reply]

I'm not familiar with SparQL, but a regular expression that will serve for a search in most query pattern syntaxes is:
\[[0-9]+\]
Thus will also match "[2024]". If 3 is a hard limit on number of digits, this might work:
\[([1-9]|[1-9][0-9]|[1-9][0-9][0-9])\]
 --Lambiam 10:13, 28 May 2024 (UTC)[reply]
Thank you. I think that the problem is that the article content itself is not on Wikidata, which means I have to try a different approach. It seems like the search function also does not like regex. So I may have to download a dump and use regex. Polygnotus (talk) 11:24, 28 May 2024 (UTC)[reply]


May 30

What Programming Language Is This? (1998)

I was watching TV the other day and they showed a computer screen with code on it. Normally, I rewind the program to see what language they are using. However, I came across a language I don't recognize. It looks like they are using # signs for comments, CIF to terminate IF blocks, == for testing equality, & and | for compound conditions, = for assignment and maybe line numbers for a couple lines. The TV show was from 1998. What programming language is this? A Quest For Knowledge (talk) 10:15, 30 May 2024 (UTC)[reply]

So the oddest part about the language appears to be that it uses indentation for structure, which is known as the off-side rule. That article has a list of potential candidates, but I had a look through and wasn't able to find what's in the image. ―Panamitsu (talk) 11:51, 30 May 2024 (UTC)[reply]
I've just noticed your remark about CIF, sorry. ―Panamitsu (talk) 11:56, 30 May 2024 (UTC)[reply]
The code snippet deals with astronomical coordinates and a "beam", which suggests to me that this has to do with radio astronomical data (nothing to do with the story I guess). Some of the statements look like Fortran. The slashes suggested something like ESO-MIDAS, but that doesn't have CIF. In fact, I haven't found anything using CIF, but maybe I've just hit the limits of my google foo. --Wrongfilter (talk) 12:24, 30 May 2024 (UTC)[reply]
Looks like a newer variant of FORTRAN. If the C of CIF is in the first column then it's a comment. Graeme Bartlett (talk) 12:47, 30 May 2024 (UTC)[reply]

Here's a second screenshot. Unfortunately, there's some ghosting in the image but you can see that there are nested CIF's. A Quest For Knowledge (talk)

I think I've found it, or at least I've made a development. I've found a language called Cola ( COntrol LAnguage for use with Hermes)[4] which was created(?) in 1994. Here appears to its source code. It is part of some project called the Groningen Image Processing System which "is a highly interactive software system for the reduction and display of astronomical data," which falls in line with Wrongfilter's comment. It has the CIF and also CFOR (my guess is the C stands for close), and generally looks similar, except I can't find anything about what symbols are used to make comments. ―Panamitsu (talk) 12:30, 31 May 2024 (UTC)[reply]
Excellent! It seems to me that cola uses exclamation marks for comments, but otherwise it is very close. This seems to be based on sheltran, which as far as I understand was a sort of pre-processor for Fortran 77 to allow for a more structured coding style. Makes you wonder how the makers of that TV series found that piece of code. --Wrongfilter (talk) 13:02, 31 May 2024 (UTC)[reply]

Help with text

Hi, i'm trying to create a Category for discussion request on Wikimedia Commons but i need to do some work on the proposal itself before i can publish it. Could anyone help me out? I'll much rather ask here than on Commons since the response time here is much faster.

The raw text to the CfD can be found on https://pastebin.com/cEaWgU6R Trade (talk) 17:10, 30 May 2024 (UTC) Basically the things i need to do is the following:[reply]

  • Remove all duplicate entries
  • Remove all " (<number> C)" and everything in between them (including the space in front)
  • Start each entry with ":[[:Category:" and end each entry with "]]"

There are probably some way to automate it but as i said i have no clue how--Trade (talk) 17:19, 30 May 2024 (UTC)[reply]

I've created a subpage User:Trade/CfD Cristal on Wikimedia Commons – a much easier collaborative communication channel than PasteBin. I have fixed numerous issues (mainly lack of whitespace or the wrong case) that resulted in redlinks. CfD listings of multiple entries commonly use *; therefore I have not replaced * by :.
The usual terminology is to merge categories (such as Category:RED ƎYE Pictures logos) into target categories (such as Category:RED ƎYE logos), which means all category members get reassigned to the target category. So instead of
(Move all the images into "Category:RED ƎYE logos")
you might want to use
Merge the following categories into Category:RED ƎYE logos:
I have left your wording unchanged, though.  --Lambiam 08:53, 31 May 2024 (UTC)[reply]
Appreciated Trade (talk) 00:42, 1 June 2024 (UTC)[reply]


June 1

C++ array initialization

Let's say I allocate a new array

std::array<int,10> *x = new std::array<int,10>;

Considerable head scratching at cppreference.com doesn't tell me whether this array's elements are guaranteed to be initialized to 0. Experimentally they do seem to be, but that could be accidental. In C, of course, int x[10]; makes an array that is uninitialized. Does anyone know? Thanks. 2601:644:8501:AAF0:0:0:0:1ECE (talk) 05:14, 1 June 2024 (UTC)[reply]

Cplusplus.com says By default, regular arrays of local scope (for example, those declared within a function) are left uninitialized. This means that none of its elements are set to any particular value. I don't know what happens in a global scope. ―Panamitsu (talk) 06:33, 1 June 2024 (UTC)[reply]
In C, a global array is initialized to zero. (Reference: K&R, or the latest C standard.) I think C++ works the same way: this page from learncpp.com says "Global variables have static duration" and, later, "Unlike local variables, which are uninitialized by default, variables with static duration are zero-initialized by default." This is not very official C++ reference, but has the advantage of actually telling us the answer. And our compatibility of C and C++ article says various things about arrays, but nothing to contradict that the languages work the same in this respect.  Card Zero  (talk) 07:44, 1 June 2024 (UTC)[reply]
A std::array is not a C-style array. It acts similarly in many ways but has some differences.
The std::array constructor follows the rules of aggregate initialization. But if there is no initializer list (in braces), default initialization is used. The std::array constructor reference linked above says "note that default initialization may result in indeterminate values for non-class T", and the default initialization reference linked above clarifies that POD types ("plain old data", like int) are uninitialized by default initialization. So for a std::array<T> created without an initialization list, the elements are uninitialized if T is a POD type. If T is a non-POD class, the elements would be initialized with their default constructor. CodeTalker (talk) 05:53, 2 June 2024 (UTC)[reply]
But are you disagreeing, or agreeing? We've all agreed the array would be uninitialized if it has local scope. But do you think an int array with global scope (or "static duration" perhaps more relevantly), with default initialization, is uninitialized? Your links led me to zero initialization, but I still don't see a definitive answer on this site. Presumably it is telling us, in its way.

Zero-initialization is performed in the following situations: 1) For every named variable with static or thread-local(since C++11) storage duration that is not subject to constant initialization, before any other initialization.

Maybe that means global arrays are initialized to zero, but due to uncertainties about what very formally specified thing in the reference relates to what familiar thing in practice, I can't be sure. Is a global array a variable? Does it have static storage? Fairly sure of the latter, less certain of the former.
Perhaps you weren't disagreeing, but just elaborating: we have the new wrinkle that uninitialized non-POD types get a default initialization, even at local scope.  Card Zero  (talk) 08:22, 2 June 2024 (UTC)[reply]
As I read it, the elements are not guaranteed to be initialized. For reference, I'm using final C++23 draft; the numbers in parentheses are the relevant locations in the draft.
First off, only the pointer has static storage. The array has dynamic storage, having been created by a new-expression (7.6.2.8 (9)). What happens from there is, well, complicated.
  • An allocation function may be called to obtain storage (7.6.2.8 (11-13)); if so, the state of the memory thus returned is unspecified (6.7.5.5.2 (2)).
  • Now, the expression has no new-initializer, so the result is default-initialized (7.6.2.8 (23.1)).
  • Default-initialization means that the best applicable constructor for the initializer () (chosen via overload resolution) is called with an empty argument list to initialize the class (9.4.1 (7.1)).
  • The array class is an aggregate, and uses the implicitly-declared default constructor (24.3.7.2 (1)).
  • This performs whatever initializations that would be performed by a user-written default constructor with no ctor-initializer and an empty compound-statement (basically, a constructor that doesn't specify anything) (11.4.5.2 (4)).
Not actually knowing precisely what the data members contained are or how they are specified, we are stuck here. There is nothing preventing an implementation from, for instance, storing the data in an array specified with a default member initializer (see 11.9.3 (9.1)) of {142857, -32768}. IF one assumes that the class holds an array of 10 ints with no initializer specified (which seems more likely), that array is itself default-initialized (11.9.3 (9.3)); each element thereof is then also default-initialized (9.4.1 (7.2)). For an int, default-initialization performs no initialization (9.4.1 (7.3)), and we are left with whatever was in the memory we were allocated.
BentSm (talk) 14:01, 2 June 2024 (UTC)[reply]

June 2

Fingerprint, Identification key, Recipe, Answer file, INI file, Bibliographic Record

A couple of examples for context:

  1. ccache "caches compilations so that ... the same compilation can be avoided and the results can be taken from the cache... by hashing different kinds of information that should be unique for the compilation and then using the hash sum to identify the cached output."
  2. Saving a copy of an online webpage from within a Web Browser (File > Save Page As...)


What is the word for a set of parameters which attribute to an instance/snapshot the information required for it's reproduction?
In the examples above, ccache utilises "different kinds of information that should be unique for the compilation", similarly if I save a webpage from within a Web Browser, the only way for someone to be guaranteed to independently replicate the same file would be for the same URI to be accessed by the same version of the Web Browser with the same configuration (e.g. javascript enabled/disabled, identical installation+configuration of extensions which affect page retrieval/rendering) on the same Operating System with the same configuration.

In the case of ccache, the compiler version and flags are some factors of the "information that should be unique for the compilation", and during recompilation inputting the same selection of information results in an identical hash and therefore a cache match.
But what is the word to describe the information being input?
I'm not looking for a generic word like "metadata".

Some words I thought of which seemed to be candidate answers were:

  • Fingerprint (computing) - However fingerprint refers to an algorithmic output (e.g. ccache 'hash') whereas I am wanting to refer to the inputs, which the article simply defines as "a procedure that maps an arbitrarily large data item (such as a computer file) to a much shorter bit string, its fingerprint".
  • Key (cryptography) - This seemed very close, except that in the case of cryptography it is described as "a piece of information" whereas I am looking for a word to refer to a "set of information".
  • Identification key - "aids the identification of biological entities", rather than describing the parameters of the entities creation.
  • INI file - "a text-based content with a structure and syntax comprising key–value pairs for properties, and sections that organize the properties", so what would be the name of the section?
  • Answer file - Contains the data that is essentially what I am describing, except that an answer file is context-specific to computer program installation.
  • Recipe - Are configurations equivalent to 'ingredients'? I would have thought a recipe would include much more detail that just application version numbers and parameters.
  • Bibliographic record - This seems the most relevant as a name for the set of reproduction parameters, except that it is context-specific to library science.
  • Exif - Again, very similar, but the set of parameters is just referred to as EXIF metadata or tags.
  • User Agent/Generator - This is part of the information which would be included in the set.
  • Finite-state machine/Combinational logic - Wouldn't this be referring to the method/logic, rather than the input parameters?
  • Artifact - This refers to the File, rather than the attributes which contain the information required for the File's reproduction.
  • Snapshot (computer storage) - Again the File, rather than the attributes.

Mattmill30 (talk) 16:16, 2 June 2024 (UTC)[reply]