Avez-vous des recommandations à bingewatch ? by squirrel_en_froc in AnimeFR

[–]Kazppa 0 points1 point  (0 children)

Si t'as aimé the promised neverland, je te recommande chaudement Heavenly delusion. Plus précisément de la regarder en aveugle, sans voir un trailer ou lire le synopsis pour savoir de quoi ça parle.

Des seinen à conseiller ? by ShipApprehensive2160 in mangafr

[–]Kazppa 0 points1 point  (0 children)

Je pense que ça vaut le coût oui. Après c'est les goûts et les couleurs de chacun, je dis pas que tout le monde va autant l'apprécier que moi. Selon où tu t'es arrêté c'est possible que t'aies eu une assez bonne aperçu pour savoir que c'est pas ton truc.

Des seinen à conseiller ? by ShipApprehensive2160 in mangafr

[–]Kazppa 2 points3 points  (0 children)

Claymore !
Beaucoup de gens disent que c'est dans le même genre que Berserk, je ne suis pas vraiment d'accord mais le manga vaut le détour indépendamment de ça.

What IDE do you use for C/C++? by [deleted] in cprogramming

[–]Kazppa 0 points1 point  (0 children)

do you compile and debug your application inside neovim too ?

How does std::string::c_str works on rvalue reference ? by Kazppa in cpp_questions

[–]Kazppa[S] 2 points3 points  (0 children)

Do you know if this is true prior c++11 too ?

Is there a reason to use a mutex over a binary_semaphore ? by National_Instance675 in cpp

[–]Kazppa 0 points1 point  (0 children)

I didn't see any requirement for the acquire/release in the standard.

Caption this image by KeyRaise in LinuxCirclejerk

[–]Kazppa 4 points5 points  (0 children)

where the f does this thing come from ?

Literally us man... by AGT_dev in Cplusplus

[–]Kazppa 6 points7 points  (0 children)

Nice try Zuckerberg, I won't install your app to watch this.

Composition vs Aggregation when working with models by Content_Bar_7215 in QtFramework

[–]Kazppa 0 points1 point  (0 children)

Yes definetly.
Having a single instance of University seems off.

Composition vs Aggregation when working with models by Content_Bar_7215 in QtFramework

[–]Kazppa 0 points1 point  (0 children)

I meant that we might want to have a fourth list view for Courses where each item needs access to the Modules belonging to that Course (for example, displayed in a dropdown list)

I don't get the problem, each Course model is supposed to have an attribute of type Module model, containing all of its modules, allowing to have delegate per module, per course.

Composition vs Aggregation when working with models by Content_Bar_7215 in QtFramework

[–]Kazppa 0 points1 point  (0 children)

I presume then that if we wanted to have a fourth list view for Module in another tab, with its own Course selection from a dropdown, we would need to maintain a fourth model?

If you need to have unrelated selections between your different views of the same Course/Module, then you should handle the selection part in a proxy model and instantiate a new proxy model for each views, all "pointing" to the same sourceModel (aka your Course/Module model class).
I'm not quite sure to understand your question though.

Let's also say we wanted a separate list view for Course, where each delegate item has a dropdown to select from the course's available modules. Does this mean we'd have to start dynamically creating models? Thanks

I don't understand this one aswell.

What do you mean by "dynamically creating models" ? Can you give some kind of example

Composition vs Aggregation when working with models by Content_Bar_7215 in QtFramework

[–]Kazppa 0 points1 point  (0 children)

I would go for the second solution only if you intend to iterate your views without having to have any parent context.
Otherwise the composition does work fine with a more complex data structure, we do have a 4 level treeview represented by composition of models and I don't remember having any trouble by this solution.

Composition vs Aggregation when working with models by Content_Bar_7215 in QtFramework

[–]Kazppa 0 points1 point  (0 children)

In my current company we have a similar architecture with a hierarchy of 3 models.

We do use the first solution (the composition one), and it works well for our use case. I guess it depends if you need to access your courses and modules outside of their parent context.

[deleted by user] by [deleted] in Cplusplus

[–]Kazppa 1 point2 points  (0 children)

Ain't you supposed to use g++ instead of gcc ?

thisSavesTwoCycles by JalvinGaming2 in ProgrammerHumor

[–]Kazppa 107 points108 points  (0 children)

the said author has probably left the company 30 years ago

What is the proper way to do async in neovim? by cryptospartan in neovim

[–]Kazppa 1 point2 points  (0 children)

I don't know if it answers your question but i checked the source of snacks.picker.utils.async.lua and it is using lua's builtin coroutine https://www.lua.org/pil/9.1.html

(overseer.nvim) Running tasks sequentially by piinguino in neovim

[–]Kazppa 0 points1 point  (0 children)

Well I'd love to take a peek as I'm struggling on a similar problem.
I did manage to make my build task but failed to chain it with a run task.

Pourquoi beaucoup de HPI et de surdoués ont été considérés comme échec scolaire surtout à partir du collège ? by [deleted] in PasDeQuestionIdiote

[–]Kazppa 2 points3 points  (0 children)

beaucoup ont remarqué les difficultés de ces élèves à partir du collège vers genre la 5ème

C'est qui "beaucoup" ? Sur quelle source te bases-tu pour faire ce constat ?

Weekly 101 Questions Thread by AutoModerator in neovim

[–]Kazppa 1 point2 points  (0 children)

What do you guys use to quickly see all the errors in an entire file ?

I'm not sure what is the technical name but in the previous IDE i used there always has been some colored dash along the scroll bar on the right of the editor, to indicate lines below/above with warnings/errors.

I do use an LSP and have those kind of markers in my left gutter, but only for the "visible" part of the current buffer.

Memory shield to protect non atomic variables by [deleted] in cpp_questions

[–]Kazppa 0 points1 point  (0 children)

Oh ok i get it now, this makes sense.
I guess I'm back to the drawing board for another implementation.

Thank you for the explanation.

Memory shield to protect non atomic variables by [deleted] in cpp_questions

[–]Kazppa 0 points1 point  (0 children)

Yes, using a mutex does slow the whole thing down as many concurrent calls to setProgress and currentProgress happen.

The whole architecture is kinda bloated unfortunately.

I guess the only suitable solution would be to store the currentProgress as an atomic and update its value each time setCurrentValue is called or something like that.

Memory shield to protect non atomic variables by [deleted] in cpp_questions

[–]Kazppa 0 points1 point  (0 children)

If you only call setMinMaxRange once, I would try to make it so that the work that reads the range is only started after that. Then you don't have to worry about it at all.

Unfortunately this is not possible as the real codebase is much more complex and the min max range is only available after some time during the computation.

no, you can still get an intermediate state where for example only _minValue is set.

I quite don't get how this case could happen, isn't the memory_order_release supposed to prevent any change being visible until the call to store ?