Questions tagged [standards]

Standards are officially published or well agreed upon formats, procedures, or protocols. Use this tag for questions about a specific standard, or about a standardization process. DO NOT use this tag for questions about programming language technicalities or design just because the language has a standard. Use [language-lawyer] or [language-design].

Filter by
Sorted by
Tagged with
0 votes
0 answers
36 views

Goland: command go get failed with multiple sub directories in repositories

We created a subgroups structure for the order of our projects in gitlab, in which the modules built in Goland are in the following path : https://git.repo.co/proyect/back-end/utility/model.git When ...
Juan Carlos Burgos Pulido's user avatar
0 votes
0 answers
20 views

BW of LoRa signal and ETSI 300-220 standard

We want to transmit a LoRa signal at the frequency of 869.525 MHz, with requirements specified by the ETSI 300-220 standard. Currently, we have set the bandwidth (BW) to 125 kHz, because I think that ...
WITC's user avatar
  • 155
3 votes
4 answers
214 views

What the C standard says about extern const

Consider the following program extern const int foo; extern void blah(void); int toto(void) { int x = foo; blah(); int y = foo; return x + y; } arm-linux-gnueabihf-gcc -std=c99 -O2 -fno-pic -...
David Monniaux's user avatar
0 votes
4 answers
123 views

Is this two-increments expression well-defined in C?

I want to iterate over integers up to some power of 2 t by skipping all integers having a specific bit set. Let m be some power of 2 (smaller than t), I want to skip all integers j such that j&m !=...
Thomas Baruchel's user avatar
0 votes
0 answers
37 views

How to calculate robust standard errors in R for mixed effects model with large dataset?

I need to calculate robust standard errors for a mixed effects model with a large dataset (200000 observations). I've been trying to use the vcovCR function from the clubSandwich package but after 2 ...
fffionaaa's user avatar
1 vote
1 answer
68 views

What is the point of using >| when redirecting to /dev/null?

I'm looking at a Bash file from the GitHub docs. Here's an excerpt: agent_load_env () { test -f "$env" && . "$env" >| /dev/null ; } agent_start () { (umask 077; ssh-...
BadHorsie's user avatar
  • 14.2k
0 votes
0 answers
18 views

Is there any standardized, cross-platform, way to represent relative file paths?

I am working on a tool to handle dependency resolution on the JVM. I expect users to give me maven coordinates in the form of package urls and I output a list of file paths containing their ...
Ethan McCue's user avatar
19 votes
2 answers
1k views

Which version of the C Standard Library does the C++23 Standard incorporate?

(My original question was going to be about "What happened to _BitInt?" but that was based on a misreading of some cppreference pages). The Library Introduction section 16.2 of the C++23 ...
Spencer's user avatar
  • 2,126
0 votes
0 answers
36 views

Certification for Eigen C++ Library

We are planning to use Eigen in our projects. Is there any software certification already available for the Eigen C++ Library? If anybody knows of any work done in this direction, please reply.
Soo's user avatar
  • 913
1 vote
2 answers
196 views

Is the C23 standard backward compatible?

Can C17 code be interpreted as C23 code? If not, what are the breaking changes?
DarkFranX's user avatar
  • 460
1 vote
2 answers
134 views

Anonymous Unions in C++ Contiguous Memory Layout

struct Vec0 { union { float x, r, h; }; union { float y, g, s; }; union { float z, b, v; }; }; I wanted to ask, does the C++ standard guarantee this data will be aligned exactly the same ...
The Floating Brain's user avatar
2 votes
1 answer
106 views

C: NULL > NULL always false?

Is it guaranteed by the C standard that, given type_t* x = NULL; type_t* y = NULL; we always have x > y evaluating as false? I ask because of the conversation in initial or terminal malloc buffer ...
Sasha's user avatar
  • 339
0 votes
1 answer
30 views

Is there a standard for disambiguation in character sets?

Is there any form of standard for a character set where similar-looking characters are excluded? Examples of characters that can easily be misread by a human: il1! oO0 4AH 5S 7T I'm asking because I'...
Reyhn's user avatar
  • 1,006
2 votes
1 answer
91 views

In C++ is the expression for a value to access a static member sequenced before the static member access?

Suppose I have: struct Foo { static void bar(); }; Foo foo() { return Foo(); } In the expression foo().bar() is the call to foo guaranteed to happen BEFORE the call to bar()? Where is this ...
6502's user avatar
  • 113k
4 votes
3 answers
278 views

How do the C and C++ standards tell you to deal with situations that are not covered by them?

It is well known that in each of the C and C++ standards there were "blind spots" that did not describe certain cases in well-formed programs. It is obvious that in non-formal descriptions ...
cher-nov's user avatar
0 votes
1 answer
34 views

How does medical laboratory analyzer work regarding protocols and communication?

I have been studying about Abbott analyzers and came through ASTM protocol. I do not understand thought the exact process: 1)Is the "middleware/host" sending orders to the analyzer when a ...
Christ's user avatar
  • 9
3 votes
1 answer
98 views

Inheritance and conditionally explicit constructors

The use case is for a subclass of std::expected, but the following reproduces the behaviour I'm interested in. #include <type_traits> template<class T> struct Foo{ T value; constexpr ...
shirleyquirk's user avatar
  • 1,558
0 votes
0 answers
120 views

What are the benefits of enforcing C++ 461? [initial value of reference to non-const must be an lvalue] [duplicate]

void inc(int &n) { n++; } Consider the above function. If I were to call it with an rvalue, C++ would shout at me. For example inc(1). It seems perfectly reasonable for the standard to have ...
doliphin's user avatar
  • 782
1 vote
3 answers
96 views

Multiline expression: How does c compilers treat newline?

I'm reading the introduction section of the K&R book on C. To see what code format generates errors, I tried splitting printf("hello world!"); into different lines, as shown below. The ...
Icelightz's user avatar
1 vote
1 answer
55 views

When is a temporary object created in a function argument supposed to be destroyed?

Short version In this code : QString dataStr; myfunc(dataStr.toUtf8().constData()); Is the temporary QByteArray object created by toUtf8() destroyed before entering the scope of myfunc() or is it ...
Mickaël C. Guimarães's user avatar
1 vote
0 answers
53 views

Why doesn't SQL have standardized metadata queries?

I was trying to find a way to query the columns in a table of a SQL database. This seems like a reasonable functionality to expect, but I found that it is largely implementation dependent. For example:...
David D.'s user avatar
0 votes
1 answer
199 views

Eslint prettier-plugin-tailwindcss config for autosave - standard/ts-standard

How to config **prettier ** to prettier-plugin-tailwindcss in **eslint **and works with just he onsave format i just have seen the docs that works with the formatter in prettier. Initial: .eslintrc....
devdariill's user avatar
1 vote
0 answers
13 views

Any way to store extra information for the printing phase in .oxps (ECMA-388)?

Reminder: XPS or OXPS is a document format for printing purpose. It is now normalized and a standard: ECMA-388. At its beginning, it was designed to be a viable alternative to PDF (which it is, I ...
Sandburg's user avatar
  • 767
1 vote
1 answer
97 views

Is it safe to rely on evaluation order for this C++ function call with -O3 optimizations?

I am having a problem with some C++20 code that is crashing when compiled in release (-O3, clang 15), and it's very tricky to debug due to a number of obfuscation techniques being applied on the final ...
Znurre's user avatar
  • 215
1 vote
1 answer
50 views

How to see the history of the HTML spec?

HTML Standard is a living standard, which is more or less constantly updated. https://html.spec.whatwg.org/multipage I want to do some research on how things have changed in the spec during time. How ...
Janghou's user avatar
  • 1,673
0 votes
0 answers
39 views

Protocols, standards or languages that are lacking of implementation

Is there some protocol, standard or language, like YAML, GeoJSON, server-sent events, that doesn't have an library implementing it in some language like C, Python or Rust? Looking for ideas for some ...
Afkaaja's user avatar
  • 47
-1 votes
2 answers
38 views

what is the R code to calculated a mean and standard deviation of multiple mean and standard deviations?

what is the R code to calculated a mean and standard deviation of multiple mean and standard deviations? each has its own number of items... I tried to search online and in this forum but there was no ...
giovanni_1983's user avatar
0 votes
0 answers
24 views

Standard and best pratices to represent unit symbols of physical quantities in JSON

I am looking for a standard for representing various unit symbols of physical quantities in JSON. I have looked for several examples and each uses its own standard. For example, for speed in meters ...
Gianni Spear's user avatar
  • 7,222
2 votes
3 answers
174 views

Is it UB to compare pointers casted from integers?

#define POINTER_TO_SOMETHING ((int*)(0x80000000)) #define BAD_POINTER ((int*)(0x12345678)) int *p = some_condition ? POINTER_TO_SOMETHING + 42 : BAD_POINTER; if (p == BAD_POINTER) { ... } Does this ...
Sylvain Hubert's user avatar
0 votes
1 answer
68 views

What is the jargon or area of study for this type of code (non-compliant, non-conforming)? [closed]

What is the technical jargon for a module/library that's considered bad because it strays from or changes standard behavior (especially implicitly)? For example, if I have module.js with the following ...
Joe Boris's user avatar
  • 497
0 votes
0 answers
102 views

Does `is_iec559` imply anything concerning floating point arithmetic?

After going through various posts concerning this topic, it seems that things like floating point division by zero behavior isn't universally agreed upon when is_iec559 is true, unlike an analogous ...
Jake1234's user avatar
  • 197
-1 votes
1 answer
71 views

Compiler dependency and well defined output

Is the output of this code well defined ? I thought that it is updating the variable more than once between two successive sequence points. #include<stdio.h> int main() { int p=10,*q; q= &...
SUBHAJIT PAUL's user avatar
-1 votes
1 answer
25 views

How to calculate the SE for multiple column and plot in the line graph in R?

Con A B C D 20.0000 0.7150 0.6014 0.5665 0.5954 10.0000 0.5245 0.5139 0.5119 0.7416 5.0000 0.4305 0.3585 0.3347 0.6231 2.5000 0.2941 0.2592 0.2189 0.4809 1.2500 0.2257 0.1990 ...
Tanjim Ahmed's user avatar
0 votes
1 answer
145 views

Would overwriting a polymorphic object byte-by-byte in memory ever be valid in C++?

This is more of a 'what if' question than a practical one. Assume that I allocate some polymorphic objects in such a way that the allocator always reserves enough room for the largest object. I want ...
samvv's user avatar
  • 1,994
0 votes
0 answers
17 views

Is there a developer-friendly open standard / ontology for personal health data?

I am looking to organize and centralize all my personal health data in a machine-readable format on my self-hosted private server. My intention is to have a consolidated, single source of information ...
Jonas Kemper's user avatar
  • 3,785
0 votes
1 answer
159 views

In what layer is GraphQL?

I've been learning about client server communication and read that according to OSI there are several layers where protocols are implemented. For example, TCP happens at layer 4 and HTTP at layer 7. ...
Juan Perez's user avatar
0 votes
0 answers
65 views

Why can't I call a pointer method on a temporary object?

type A struct{} func (*A) F() {} func main() { a := A{} a.F() // OK (&a).F() // OK (&A{}).F() // OK A{}.F() // Error: cannot call pointer method F ...
xmllmx's user avatar
  • 40.1k
0 votes
0 answers
25 views

Standardise data for a spider plot in relation to a control variable

I am trying to standardise a series of data so that I can plot the data in a radarplot where my control condition is 0 and the treatment varies between +1 and -1. The final figure should look like ...
Rosario's user avatar
  • 183
3 votes
2 answers
119 views

Is it safe to swap two integers by `a, b = b, a` in golang?

package main import "fmt" func main() { a := 1 b := 2 fmt.Printf("Before Swap: %v %v\n", a, b) a, b = b, a fmt.Printf(" After Swap: %v %v\n", a, b) ...
xmllmx's user avatar
  • 40.1k
0 votes
1 answer
169 views

CMake includes header files with a higher c++ standard

My main project is building with c++11. It includes a library that requires c++17. CMakeList (of my main project) ... cmake_minimum_required(VERSION 2.8.12 FATAL_ERROR) set(CMAKE_CXX_STANDARD 11) ...
Nhan Ly-Trong's user avatar
0 votes
0 answers
47 views

How to get rid of the @copydoc warning when producing code documentation using Doxygen?

I'm using Ubuntu 22.04.2 LTS and doxygen 1.9.1. When producing code documentation using Doxygen, I receive the following warning: solver/linear/storage/aim/VrbBlkCompressedMCSRMatrix.h:66: warning: @...
lmc's user avatar
  • 23
1 vote
0 answers
59 views

Indendentation of Python Multi-line Comment

In python, I have a short comment - using the # syntax - that I want to add to a statement. It isn't important enough to be a docstring; it's just a little reminder. The comment takes up two lines, ...
Zach Joseph's user avatar
1 vote
0 answers
63 views

Is presence of /dev/shm mountpoint mandated on Linux/Unix systems?

I am working on a problem where a certain file must be placed on a tmpfs and not on a regular filesystem (such as ext4, xfs etc.) The background for the requirement is that the file will be used for ...
Grigory Rechistov's user avatar
0 votes
1 answer
42 views

What is the standard for sharing/transferring databases? [closed]

Im a beginner in database management and want to know what is the standard procedure of sharing databases? Im a self taught person and would like to know how things work. For reference, I have hired ...
malaikat's user avatar
-3 votes
1 answer
88 views

Why does −0 convert to the string "0"?

When dealing with floating-point numbers, −0 is a different number from 0. I am building a timer application in JavaScript and apparently found out the hard way when converting the number of minutes ...
azoundria's user avatar
  • 956
2 votes
1 answer
64 views

`const_cast`, top-level const and lvalue-to-rvalue conversions

Let's assume we have a simple piece of code, int main() { int x = 5; int* const y = &x; const_cast<int*>(y); } Is my assumption that a lvalue-to-rvalue conversion happens inside the ...
SomeoneWithPassion's user avatar
0 votes
3 answers
156 views

Is there a standard way to define a big list of "magic numbers" or parameters? [duplicate]

Abstractly, say you were building a physics simulation and needed many universal constants or typical values for things like mass. It feels like there should be a standard approach to implementing ...
Tess's user avatar
  • 3
7 votes
0 answers
693 views

Android Jetpack Compose dimensions coding standards

For the old XML layouts I always use the dimen.xml file to define almost all dimensions, paddings, margins, etc. While learning Jetpack Compose I find that all repositories, examples, etc., hardcode ...
API_1024's user avatar
  • 509
4 votes
2 answers
107 views

Is it possible to write a strictly conforming C program that outputs to the display?

According to ISO/IEC 9899:2017: A strictly conforming program shall use only those features of the language and library specified in this document. It shall not produce output dependent on any ...
Tux1's user avatar
  • 41
0 votes
0 answers
22 views

Redirect standard output of another process

I would like to get the standard output and input of an existing process. The only option I found was to start the process for example in C# with the Process-Type and redirect standard input and ...
rwCapt's user avatar
  • 11

1
2 3 4 5
68