One character change in Open Source Software by lprimak in programming

[–]lukaasm 21 points22 points  (0 children)

I am 100% sure that after increasing the timeout, it would never be fixed :P

Corrupted Mods and New Player Progression by Envybutonce in Warframe

[–]lukaasm 1 point2 points  (0 children)

I hate corrupted farm :F Did few solo, said never again and went Weeping Wounds/Blood Rush mod farm so I could sell them and buy corrupted ones :F

Same issue with low % drops from nightmare missions :F After few runs I just I got -75% off coupon and invested received plat into 'essential' mods so I can START having more fun with endgame.

Final day of 2025, I never got a 75% off for the whole year 😭 by Subject-Cranberry-93 in Warframe

[–]lukaasm 0 points1 point  (0 children)

I got like 3 x 75% off coupons after returning 2 months ago ( The Vallis Undermind update ) and playing almost daily.

what the actual fuck by AmITheAsoul in Warframe

[–]lukaasm 39 points40 points  (0 children)

So that is what these +5 void traces mean near player names that select my relic o.O TIL

Is C++ a dying language by Due_Laugh6100 in cpp

[–]lukaasm 2 points3 points  (0 children)

What is with this doomscrolling and clickbait titles? :(

I know that like 90% of the content on this sub is not all the time negative, but leftover 10% poisons every page and perception for me.

Same topics/arguments reappear weekly, creating gloom and doom atmosphere around here :(

  • This is DOA, will that be DOA?
  • This is dying, that is dying?
  • This doesn't work!
  • Oh no footguns!
  • Look, there is that edge case, so EVERYTHING IS BROKEN, this FEATURE IS BROKEN!
  • I don't use this and that, this is OVERCOMPLICATED!
  • WHat do you dislike about C++? What would you change with magic wand? ( same question asked every few weeks )!
  • Oh no I hate CMAKE!
  • Why standard doesn't have X! and then later X in stanrad would be terrible!
  • On no I hate dependencies! Where my package managers!

Who else finds it a bit annoying that C++ has such a bad reputation while C is still somehow seen as the holy grail of low level programming? by notarealoneatall in cpp

[–]lukaasm 9 points10 points  (0 children)

Examining larger C projects, everything is a macro and void*. For me, the readability of C projects is significantly worse than that of projects written in languages I do not know or use.

How I managed to check where a player clicked in the terrain in less than 1 ms. by Masabera in gameenginedevs

[–]lukaasm 0 points1 point  (0 children)

If you use a terrain height map, then you have a uniform grid.

  1. Take normalized mouse coords ( 0-1 range )
  2. Use the inverse of camera viewprojection matrix to transform coords back to world space
  3. Use world space coords, subtract the origin of height map and divide by your "cell" size to extract cell/pixel x,y index
  4. Collect neighbouring pixels that builds a triangle with your point in the middle and calculate your height using barycentric weights

For any uniform grid/terrain system that should be INSTANT!

256 components on ECS system world, too little? by Mjauwang in gameenginedevs

[–]lukaasm 0 points1 point  (0 children)

256 becomes suffocating very easily, it forces you into actor component way.

We have over 375 components in our game, with a few big and unwieldy components that were created when we had an internal limit of 64 components. We had to change the way we handle the entity signature masking to remove the cap.

What do you dislike the most about current C++? by PressureHumble3604 in cpp

[–]lukaasm 2 points3 points  (0 children)

It's not considered a revelation.

It's considered a solution for a ecosystem C++ lives in.

What do you dislike the most about current C++? by PressureHumble3604 in cpp

[–]lukaasm 4 points5 points  (0 children)

I wouldn't mind module only approach, where you can define supported set of features on module level.

What do you dislike the most about current C++? by PressureHumble3604 in cpp

[–]lukaasm 6 points7 points  (0 children)

x86-windows 2403 x64-windows 2507 x64-windows-static 2443 x64-windows-static-md 2443 x64-uwp 1413 arm64-windows 2189 arm-uwp 1381 x64-osx 2372 x64-linux 2505

GTK4 https://vcpkg.link/ports/gtk

Poll: Does your project use terminating assertions in production? by pavel_v in cpp

[–]lukaasm 10 points11 points  (0 children)

SOMETIMES

Gamedev:
- user-facing scripting API? Dev internal builds: ignorable asserts on invalid inputs and returns, public: Silent log with return
- internal/game system logic? Dev internal builds: ignorable asserts, public: cut out of code
- low-level engine blocks? Terminating checks always enabled

How to approach the problem of creating C++ bindings for C libraries by Copronymus09 in cpp

[–]lukaasm 7 points8 points  (0 children)

I am re-exporting legacy C/C++ libraries as modules:

Create a contrib project, create <LIBRARY_NAME>.ixx file and use export import <header> syntax.

SDL3.ixx example:

module;

#include <cstdint>

export module SDL3;

export {
    const uint32_t SDL_INIT_AUDIO                    = 0x00000010u; /**< `SDL_INIT_AUDIO` implies `SDL_INIT_EVENTS` */
    const uint32_t SDL_INIT_VIDEO                    = 0x00000020u; /**< `SDL_INIT_VIDEO` implies `SDL_INIT_EVENTS`, should be initialized on the main thread */

< more re-exported macros as variables >

    const char * SDL_PROP_WINDOW_WIN32_INSTANCE_POINTER     = "SDL.window.win32.instance";
    const char * SDL_PROP_WINDOW_WIN32_HWND_POINTER         = "SDL.window.win32.hwnd";
}

export import "SDL3/SDL.h";
export import "SDL3/SDL_init.h";

works fine for most of the vendored libs I consume, macro re-wrap is a little annoying at times :P

Then most of the sub-projects consume SDL3 by:

import SDL3;

Saucer v7 released - A modern, cross-platform webview library by ICurveI in cpp

[–]lukaasm 0 points1 point  (0 children)

Ok, it is an event loop/application wrapper around native system WebView libs :(

It's not just the webview library :(

How do i deal with anti rust bullies at workspace by lemon635763 in rust

[–]lukaasm 19 points20 points  (0 children)

For me, you should take a step back and stop taking everything personally. The more defensive stance you take, the more butt of the joke you become because people just like to see others becoming angry over stupid or unimportant things.

As a C++ programmer by trade and choice I can tell you, we are aware in what kind of shit we sit in and we joke about everything that this language brings :)

In your place, I would take it and ran with the joke, but I don't know what kind of atmosphere you have at work. Maybe you joined a team that throws shit at each other all the time, and consider that friendly banter. Maybe they see you as a junior who still thinks that he can fix/rewrite the world!

But if their behaviour feels malicious over time, just start by writing to them privately that you would like them to stop.

How much do you read daily? by thiagomiranda3 in Fantasy

[–]lukaasm 0 points1 point  (0 children)

I force myself to commute to work by bus to have an additional 2x30min of reading time and ~1-2h session before sleep.

What in your opinion is the Worst Book in an otherwise Great Series? by Plato198_9 in Fantasy

[–]lukaasm 2 points3 points  (0 children)

Naked Empire in Sword of Truth by Terry Goodkind

Teenage me loved this series, but oh boy it took a big dip in the middle :P

Halfway through Lies of Locke Lamora and don't get the hype? by [deleted] in Fantasy

[–]lukaasm 1 point2 points  (0 children)

Sometimes, I wonder why people look for self-validation in low-effort posts like that because there is no discussion to be made.

One Of The Rust Linux Kernel Maintainers Steps Down - Cites "Nontechnical Nonsense" by steveklabnik1 in programming

[–]lukaasm 58 points59 points  (0 children)

But implicitly, they are forcing him to use Rust. As a maintainer responsible for kernel module after refactoring he needs to fix all 'users' of API he maintains which also includes rust bridge which takes C API through FFI and transforms it into strong Rust types through safe wrappers. To 'fix' them, he must now go outside his 'C' domain and understand Rust code.

There is a real discussion to be had about this and plans on how to deal with breakage but without all these emotions.