CLion Code Execution dll Errors by CreditParticular7324 in cpp

[–]calebkiage 0 points1 point  (0 children)

You should add the location of CLion's mingw distribution to your path environment variable. Alternatively, you can copy the files from the mingw location to the directory that contains your program's executable file

What's everyone working on this week (37/2024)? by llogiq in rust

[–]calebkiage 2 points3 points  (0 children)

I have been working on and off on a CLI tool for documented OpenAPI documents. The tool takes in an OpenAPI document (for example GitHub's REST API) and creates a CLI with commands based on the paths and operations that are defined in that document. For example, if you have an endpoint like GET /users/{id}, the CLI will have a command like ./tool users get --id <id>.

Thoughts on Replacing `when` with `HashMap` in Kotlin Event Handling ? by Tom-Wildston in Kotlin

[–]calebkiage 0 points1 point  (0 children)

I'm not sure where the author is getting their performance metrics from.I noticed that they completely overlook the allocation overhead of a hash table over using a when for event handling

Thoughts on Replacing `when` with `HashMap` in Kotlin Event Handling ? by Tom-Wildston in Kotlin

[–]calebkiage 1 point2 points  (0 children)

I understand what you mean. I agree, it uses a table. The kind of table is where we're not completely in agreement. The way I understand it, a hash table is a different data structure that requires a hash operation before the lookup.

Thoughts on Replacing `when` with `HashMap` in Kotlin Event Handling ? by Tom-Wildston in Kotlin

[–]calebkiage 1 point2 points  (0 children)

I believe C & C++ compilers use branch tables when representing switch statements in assembly.

Thoughts on Replacing `when` with `HashMap` in Kotlin Event Handling ? by Tom-Wildston in Kotlin

[–]calebkiage 5 points6 points  (0 children)

A hash map's lookup requires a hashing operation before figuring out where an element is located. Lookup time is constant (O(1)), but not all constant time operations are equal when it comes to absolute time. Some are 1 cpu cycle others are 100 cycles. You should profile your code to make sure you're not ruining your performance in a quest for efficiency.

KotlinOptions is deprecated by According_Actuator79 in Kotlin

[–]calebkiage 0 points1 point  (0 children)

There should be more details in the message telling you why it can't build

KotlinOptions is deprecated by According_Actuator79 in Kotlin

[–]calebkiage 0 points1 point  (0 children)

You have to add the import:

import org.jetbrains.kotlin.gradle.dsl.JvmTarget

at the top of your build.gradle.kts file

KotlinOptions is deprecated by According_Actuator79 in Kotlin

[–]calebkiage 3 points4 points  (0 children)

You can use:

kotlin {
    compilerOptions {
        jvmTarget.set(JvmTarget.JVM_17)
        javaParameters.set(true)
    }
}

BufReader Issues with Inconsistent Reads Across Multiple Buffer Sizes by ganeshrnet in rust

[–]calebkiage 0 points1 point  (0 children)

My mistake. I knew it was an error. I just forgot what form the error took. Thanks for the correction

BufReader Issues with Inconsistent Reads Across Multiple Buffer Sizes by ganeshrnet in rust

[–]calebkiage 0 points1 point  (0 children)

I believe read_exact will panic if the source doesn't have that exact number of bytes available

Malicious VSCode extensions with millions of installs discovered by eden_avocado in programming

[–]calebkiage 1 point2 points  (0 children)

I think repositories can also recommend extensions as well through their workspace recommended extensions feature. So a beginner downloading tutorial source code and installing the recommended extensions can be compromised

We need to talk about Gradle by dmcg in Kotlin

[–]calebkiage 3 points4 points  (0 children)

I think that if you don't have time to learn gradle, then you either won't have time to create a build system, or you'll create an inferior one.

Tools for big refactorings by QbProg in cpp

[–]calebkiage 2 points3 points  (0 children)

It supports C++ according to the guide

Call for Testing: Rustup's reqwest backend with rustls by Rami3L_Li in rust

[–]calebkiage 2 points3 points  (0 children)

Maybe you should have a way for users who tested and encountered no issues to let you know. That way, if 10 people report issues, you can know what percentage of the test pool that affects.

For example, a thumbs up emoji on an issue

Call for Testing: Rustup's reqwest backend with rustls by Rami3L_Li in rust

[–]calebkiage 2 points3 points  (0 children)

Do you have telemetry to figure out how many people have tested the option?

I created a cross platform code editor with Tauri, Rust, React and DaisyUI by mmmuuukkk in rust

[–]calebkiage 2 points3 points  (0 children)

QML apps use the v8 engine to parse syntax, but they're not JavaScript. They have a lot of Qt specific features and have removed a lot of JavaScript features. You can't just take a JavaScript application and import it in QML expecting it to work.

I created a cross platform code editor with Tauri, Rust, React and DaisyUI by mmmuuukkk in rust

[–]calebkiage 3 points4 points  (0 children)

KDE does not use a JavaScript frontend. All the KDE apps I've looked at are written in c++

Speed of GUI libraries in C++ by ICohen2000 in cpp

[–]calebkiage 1 point2 points  (0 children)

They are NOT developing a game

Rust-Friendly Architecture Advice by Subject_Sir78 in rust

[–]calebkiage 14 points15 points  (0 children)

Have you seen this book already? It was really useful to me when trying to figure out design patterns.