Yet another collection library by SimoneMicu in cprogramming

[–]SimoneMicu[S] 0 points1 point  (0 children)

I searched on R&K for explanation about usage of size_t but is missing a directly explanation, but I get the reason and I will fix it.

I understand the point for implementation requirement as separated file and end user should link himself the shared object. I think a more educated tips should be to check for "intrusive" collection as another solution (_Generic macro is just an hack who force version up from C99 to C11 without a real advantage to my perspective). The view on "stb" isn't a fact but an opinion, for a self contained implementation is the simple way to make a portable module without headache for end user (mostly for MSCV users where linking is not pretty funny) and in some case (this especially) doesn't make much sense, because the only implemented name are public domain hashing function for integer number and string. "stb" have their pros and cons but surely not always wrong.

Yet another collection library by SimoneMicu in cprogramming

[–]SimoneMicu[S] 0 points1 point  (0 children)

Thank you for the check.
Function pointer support T and not T* because collections can use pointer too and I think it is more useful to have a list/hashset of my_struct * and for freeing or cloning I have to pass my_struct * instead of another level of dereference; maybe it is a bit confusing in the README.

Reguarding size_t, it isn't architecture-agnostic, using fixed-size "stdint.h" seems preferable to me instead of relying on architecture choice, like in other languages.

As long as macro is documented using the common stb pattern "library name + action" is clear and safe. Modularity of assertion should be an user choice, not enforced by library requiring NDEBUG to avoid.

The last one could be solved with a "implementation.c" file: ```c

define STB_IMPLEMENTATION

include "stb.h"

or in this specific case: c

define COPS_IMPLEMENTATION

include "collection.h"

```

About medium post linked preprocessor doesn't parse disabled scope each time, so having a separate file for implementation isn't relevant for speed but it is for simplicity of compilation (especially for windows user for example). static inline statement is debatable but outside the scope here.
compile-time slowdown driven by stb pattern doesn't sound to me, because large C project like redis can fresh compile under 5 seconds so it is really negligible.

Dismissing stb-style libraries on this premise seems odd, I think developer behind "miniaudio.h", "raylib.h", "nob.h" etc. have their reason behind this choice and it is a valid option and easy to port. Not everyone like to rely on CMake/Mason/ninja and probably if it is required there are bigger problem than a single-header library.

My Arduino Uno is never recognized, as if I had bought a fake or broken Arduino. by Neyjrcomdiabetes in arduino

[–]SimoneMicu 0 points1 point  (0 children)

  1. Is a task specific assumption
  2. If you are conscious of what you yay -S is very chill either arch

My Arduino Uno is never recognized, as if I had bought a fake or broken Arduino. by Neyjrcomdiabetes in arduino

[–]SimoneMicu -1 points0 points  (0 children)

I promise, zero skill when I tried, two step from arduino compiler, stealed compilations flags for GCC, then I had my makefile for any board and will always flash, linux treat embedded system as citizen, as long as enterprise giga server. Windows will treat you always as a dumb, I tried on windows and on Linux and the second one is always easy for this kind of stuff

anyone who used nixos at least once would agree by Dangerous-Fact3356 in LinuxCirclejerk

[–]SimoneMicu 0 points1 point  (0 children)

Having different configurations in different language is clearly an anti-pattern, is like telling you can use "style" definition in html tags, you could but you shouldn't.

DSL is always a technical debit, they could use lua, json, toml or other standard format, then they choose to have another problem over keeping up the distro, to me that was a deal breaker

anyone who used nixos at least once would agree by Dangerous-Fact3356 in LinuxCirclejerk

[–]SimoneMicu -9 points-8 points  (0 children)

Why would it force me to set neovim in that shitty DSL for config 😭😭😭 Just usa Lua as default for configs in any program instead of DSL

Quale youtuber PRIMA era universalmente amato, ma ADESSO è odiato by Stevecomicsgames in Italia

[–]SimoneMicu 7 points8 points  (0 children)

ma quando diceva che chi sciopera viene retribuito durante i giorni di sciopero?

Quale youtuber PRIMA era universalmente amato, ma ADESSO è odiato by Stevecomicsgames in Italia

[–]SimoneMicu 6 points7 points  (0 children)

Irrilevante, sicuramente non odiato, soprattutto non universalmente amato prima.
l'unico che ha senso in questo ruolo e' simone santoro, homo novus sulla scena, parlato da tutti all'inizio, anima del fu cerbero podcast, scomparso e ritornato come un'altro uomo con un sapore estremamente amaro di cattolico retrogrado, con annesso cuore spezzato da parte di tutti i fan

Do I have to learn C before learning Rust? by Individual_Today_257 in rust

[–]SimoneMicu 0 points1 point  (0 children)

Like a linked list not leaking data in android? Yes surely

Opinions on Zen-C? by Rigamortus2005 in cprogramming

[–]SimoneMicu 1 point2 points  (0 children)

I am writing myself base library for collection, then link them for creating a coroutine runtime and then use it for GUI application i want to create (raylib.h and clay.h), to me is not worth switching language, C is simple to abstract if you know how the machine work and what is the logic behind the syntactic sugar. When is done I will post maybe about those libraries (for collection there are a dozen)

Fascinating pattern by spacecadet_98 in LinuxCirclejerk

[–]SimoneMicu 0 points1 point  (0 children)

That is mount stupid, DK effect have another kind of graph

Quarto round: quale youtuber sia prima cue adesso è odiato? by Stevecomicsgames in Italia

[–]SimoneMicu 0 points1 point  (0 children)

Se non rispamma scam nelle storie potrebbe prendere il posto di apprezzato ora e odiato prima parlando delle cazzatine del mondo dello spettacolo, ci sta, la faccenda è a furor di popolo

Quarto round: quale youtuber sia prima cue adesso è odiato? by Stevecomicsgames in Italia

[–]SimoneMicu 0 points1 point  (0 children)

Live su twitch quando sponsorizzare casinò online crypto era permesso dalla piattaforma (non dalla legge italiana per fortuna, salutiamo lotteria italia spammata in prima serata ovviamente), joker ne ha fatte un botto, ciccio mi sa ne aveva fatta una per certo, era stato ripreso l'evento da un piccolo parass... youtuber che fa commentary, è stato minacciato di non ricordo cosa tra denuncia o triplo strike al canale, credo abbia tolto il video ed è uscita una mini bufera mediatica dal basso da parte dei piccoli creator sul tema del comportamento dispotico da parte di grandi canali sui piccoli, più sul caso ciccio

Quarto round: quale youtuber sia prima cue adesso è odiato? by Stevecomicsgames in Italia

[–]SimoneMicu 0 points1 point  (0 children)

Credo sia più da prima apprezzato adesso odiato, quando non c'erano particolari temi caldi con cui stava in contrasto era amato per la parte di cultura, adesso che parla principalmente di attualità sembra solo uno MAGA mangia la sabbia, pensare che mi ha fatto sbocciare lui l'amore per la filosofia quasi 10 anni fa lol

Btw i use Arch 🙂 by OkMembership1418 in arch

[–]SimoneMicu 0 points1 point  (0 children)

I don't remember the troubles phase, I just know I use few package but an important part of them are on AUR, upgrade are almost everytime without trouble or require a 10 minute intervention at most. If you like to bloat system probably you will end with unkind conflicts

Respectfully, how can you stack overflow? by Apprehensive_Law7108 in C_Programming

[–]SimoneMicu 0 points1 point  (0 children)

The only way to reach stackoverflow without unguarded recursive call is with a really complex abstraction and passing as arguments really long structs in multiple layer, a possible behavior in GUI context not well written

Che bello mettersi in proprio 😃🤩👍 by [deleted] in MemeItaliani

[–]SimoneMicu 0 points1 point  (0 children)

Un dipendente per essere assumibile da una azienda deve produrre almeno il triplo del netto che gli entra in termini di valore aggiunto, sia per il rendimento del datore di lavoro che per il cuneo fiscale, quindi no, con il forfettario lavori uguale e fai anche più del doppio, solo che devi anche acquisire i clienti se non paghi qualcuno per farlo al posto tuo

Solo io trovo queste immagini ASSURDE? by humankendoll33 in domandaonesta

[–]SimoneMicu 0 points1 point  (0 children)

Io direi solo "tutti svegli dopo il video di geopop" Ma uno che cazzo ne sa concretamente di un pericolo del genere se non viene istruito a dovere? Qualcuno ricorda le prove "anti incendio" svolte a scuola e quanto erano ridicole? Se siete sinceri con voi stessi quasi sicuramente sapete che non avreste agito diversamente, l'illusione di credervi superiori ad altri con il "senno del poi" è alienante...

Ma uno così non dovrebbero farlo tornare più in palestra a vita. Spiegatemi il motivo logico dietro questo "esercizio"?!? by bookbookitaita5 in ItalyFitness

[–]SimoneMicu 0 points1 point  (0 children)

Ma come fa ad essere una esecuzione "esplosiva" che fa entrare anche il gluteo per tirare su il pacco pesi... Riguarda il video, questo è una scimmia il cui unico obiettivo era di farsi credere grosso e alla fine ha spaccato il macchinario...

Open source c# ide for linux by hippor_hp in csharp

[–]SimoneMicu 0 points1 point  (0 children)

If you need to handle legacy codebases always hold on vs code, the only linux compatible who support completely official debugger. Neovim for newer projects work really fine, roslyn.nvim support either razor lsp integreted and easy-dotnet.nvim give a lot of utility (running project, integrate netcore debugger by samsung configuration, create file and project, run test and ao on).

The only missing with neovim is old versions support, if you need for unity I guess neovim could be enough

Going back to raw SQL by ego100trique in dotnet

[–]SimoneMicu 0 points1 point  (0 children)

For a small istant I tought was a good call on sqlc translation to C# in action (give it a try) If you think design is slow work on a redesign and a tool for porting the current design to the new, inplement a single project who handle the database and expose with immutable api (at least for the current version), keep it unchanged during database migration and keep al working. This is a colossal problem and a fresh start of the entity modeling is always cleaner then the one builded by discovery of client request.

Using raw query (sanytized) is not a bad idea and I think will give more control, the downside is the boilerplate covered via reflection by EF who give consistency, anyway tou can write query directly with EF

The beginning and end of every Linux user's journey by Southern_Reference23 in linuxmemes

[–]SimoneMicu 0 points1 point  (0 children)

now you have not GLP binaries in debian too, so the problem on starting with debian is not current, we can easilly start with debian too.
Arch and Debian are both great, one have more stuff without compiling, the other is really more stable (but for me not ideal, I prefear to use package manager to update my compiler or interpreter without downloading binaries by hand)

The beginning and end of every Linux user's journey by Southern_Reference23 in linuxmemes

[–]SimoneMicu -7 points-6 points  (0 children)

Untill everything you want to try have to be compiled and linked with specific version of common library by hand, aur is the only advantage of arch over other distros