News for hackers. Stuff that matters.
Re:Libui: a portable GUI library for C by c-smile on Saturday May 19, 2018 @10:31PM (#17110853)
Interesting, never saw such way of std::vector/std::map allocations:

    g->children = new std::vector<struct gridChild *>;
    g->indexof = new std::map<uiControl *, size_t>;
At least needless level of indirection ...

https://github.com/andlabs/libui/blob/master/windows/grid.cp...

Re:Libui: a portable GUI library for C by pubby on Saturday May 19, 2018 @10:40PM (#17110884)
There's a glaring memory leak if the second new throws.
Re:Libui: a portable GUI library for C by saagarjha on Saturday May 19, 2018 @11:02PM (#17110945)
Probably because it’s easy to create memory leaks this way…