## Language-agnostic New Question

• ### Efficiently transform float and double values into

I need a method by which to efficiently translate any float or double value to an array of bytes so that it preserves the comparison relationship to any other value.Example: V1 and V2 are turned into ......

• ### Ray trace a whole 2D grid from a single light sour

In a 2D grid world with known boundary, there are :-a light source (blue org)walls (grey)How to ray trace from center of every white block in the grid to center of org efficiently?For each block,......

• ### What's the etymology for the word “busin

Why it's been called "business logic" but not "main logic" or "important logic" or "core logic"...?Was it related to "trading" or "commercial&......

• ### How an integer number is converted to binary in a

I know that everything is stored as 0s and 1s in computer memory. To be specific let's take an example of integer. We assign n = 5 and it's equivalent binary would be 101 with 29 leading 0s. It's easy ......

• ### What are prototypes in programming?

This isn't a specific question about a language, but more about programming in general. The question came after I started an argument with a friend about "Function prototypes" which I learnt ......

• ### Most generally correct way of updating a vertex bu

Assume a vertex buffer in device memory and a staging buffer that's host coherent and visible. Also assume a desktop system with a discrete GPU (so separate memories). And lastly, assume correct inter-......

• ### Declarative Function Naming

How can functions be named to clearly reflect that they follow a declarative paradigm? Context: I've recently started working on creating libraries that work in a declarative manner but I'm having ......

• ### Magic methods on other programming languages

Python has such methods as __add__, __mul__, __cmp__ and so on (called magic methods), which are used as a class methods and can give a different meaning to adding(+), multiplying(*), comparing(==), ........

• ### How to choose operator precedence?

In Idris, you can define operators using infix, infixl or infixr, followed by the precedence of the operators then a list of operators, likeinfixl 8 +, -I imagine you can do this in other ......

• ### Will my server be able to run only one client if i

I have googled decent enough to understand threads and processes. One thing I am confused is about single-threaded process.The scenario is the Server-Client application process where each client is ......

• ### Generating unsatisfiable test problems

I'm trying to generate some test problems for propositional satisfiability, in particular to generate some that are unsatisfiable, but according to a fixed pattern, so that for any N, an unsatisfiable ......

• ### Can AsciiDocs be used like JavaDoc?

I've been using AsciiDocs to write all my documentation, and i was wondering if i could take it a step further and generate the html from my source code, like how JavaDoc does with Java source code.......

• ### Standards describing how navigation is handled in

For a recent project I've been working on a simple word processor, and because I need fine-grained control have had to implement the text shaping* myself. Most of this is fairly straight-forward and ......

• ### Time complexity of sorting two arrays

If I have two unsorted arrays of different sizes and I want to sort them both, I get that the runtime complexity is gonna be O(nlog(n)), but what does the n represent? The larger or smaller array?...