17,478 questions
Advice
0
votes
2
replies
68
views
How to compile the source code of CrossOver on Mac?
I downloaded the source code from https://www.codeweavers.com/crossover/source but I don't know how to compile it. After extracting there are a lot of folders in it. Does compiling it requires manual ...
Advice
0
votes
1
replies
91
views
How to make a Qt MSVC solution?
There are plenty of sites describing how to build the Qt 6 for Windows using MSVC compiler (like: this or this, official page), but the job is being done from the command line by using x64 Native ...
Best practices
0
votes
0
replies
67
views
gradle incremental build generated gRPC java code
I am looking for advice on how to apply gradle's incremental build for generated code. To build a gRPC client, I fetch the proto files and successfully apply gradle's protobuf plubin . Consequently, I ...
Best practices
0
votes
0
replies
48
views
Algorithms behind OpenCL's WorkGroupFunctions
From what it seems the usage of workGroupFunctions in OpenCL kernels, e.g. work_group_scan_exclusive_add pushes the implementation of the underlying algorithm to the device (if it does indeed support ...
Best practices
2
votes
13
replies
371
views
Which form of incrementation is best for speed in C?
I have been using x += 1 in my code for a long time, but I have been wondering whether it would be faster to use x++ instead.
I imagine that the first one would compile to something along the lines of ...
Score of 1
1 answer
93 views
How to link compiled module interfaces and object files?
Just for a simple example, I have a project like this:
.
├── animals.cpp
├── animals.cppm
├── gcm.cache
│ ├── animals.gcm
│ └── std.gcm
└── main.cpp
It can be compiled and linked like this:
g++ -...
Score of 0
0 answers
56 views
Android build, how to cache `out` folder
Soong has support for incremental building. When you finish to compile it once and modify just some files, only a very small subset of the files will be recompiled.
Therefore, I'm trying to make a ...
Score of 0
2 answers
169 views
Gradle multi-module can't compile because class file for `javafx.stage.Stage` is not found
I am setting up a Gradle 9.5.0 multi-module project with Java 25. In this project I am using Spring Boot 4.0.5 and JavaFX 26.0.1. I have set spring.main.web-application-type: none because I am ...
Advice
0
votes
0
replies
55
views
Does anyone know how I could make a lambda calculus compiler
I’m trying to make a spin on lambda calculus with printing text, and drawing to the screen
does anyone know how i could make something like this
Score of 1
1 answer
102 views
Apparent unnecessary duplication in jit compiled `jax` function
Take the minimum working example for my problem (MWE). I'm specifically interested in what the jit compiler does for this flow:
def blackbox_function(x, y): # Blackbox function I'm given. Can't break ...
Score of 0
0 answers
45 views
Changing the order of attributes in custom pytree significantly changes the runtime
I'm having trouble making a minimum working example for this problem, and I can't copy the whole code here. So I need help to know what to look for first.
I have a jax function my_func() which I time ...
Score of 1
1 answer
127 views
Making non cuda code compatible with cuda which uses std functions where cuda::std exists
I'm attempting to create a function that handles bit casting a float/double/float16 to an unsigned key of equivalent size. I can do this in host code easily with
template<std::floating_point T>
...
Score of 1
1 answer
146 views
Anomaly when benchmarking C binaries
I'm in an internship in a lab and I'm doing some benchmark on micro architecture. I use https://github.com/FoRTE-Research/UlSWaP-Bench/tree/master and I have modified the mainmain.c. The goal of the ...
Advice
0
votes
1
replies
66
views
How can i make Syntax highlighting for a custom extension?
i'm working on an llvm<sup>[1]</sup>
based language and i want it to have its own Syntax Highlighting,
i don't know how to do that, and the documentation<sup>[2]</sup> for VSC ...
Tooling
0
votes
22
replies
623
views
Is there any way to use C++23 print() function?
I started learning C++ in high school in a C-like way. Now I want to start learning how to program using a modern approach.
Being on Windows, I use MinGW downloaded from WinLibs, the most recent ...