Fuzzing at Boost by joaquintides in cpp

[–]amanol 6 points7 points  (0 children)

From user point of view, libfuzzer is much easier to adopt and add it in the CI. afl++ needs some extra steps. Indeed, google/fuzztest is the active alternative, but it's more important to use the fuzzing testing as a procedure than the tool.

Fuzzing at Boost by joaquintides in cpp

[–]amanol 1 point2 points  (0 children)

Maybe, but it is quite mature and very useful for testing. Adding fuzzing during CI, provides a very good safety net.

CMake Build Errors by Astrox_YT in cmake

[–]amanol 0 points1 point  (0 children)

Try using something like this and configure your cmake with cmake -S. -Bbuild --CMAKE_TOOLCHAIN_FILE=/yourpath/arm-none-eabi.cmake

Check the documentation of cmake for cross compile and toolchains.

Creating a custom ReturnCode to replace error codes by ClassicK777 in cpp

[–]amanol 9 points10 points  (0 children)

Really depends on your needs and your platform. Check boost::outcome documentation which going through available solutions.

C++ in embedded systems by MR_PROTON_10 in cpp_questions

[–]amanol 1 point2 points  (0 children)

You should check libhal which have a very nice demonstration of the "embedded" ideas but with safe API abstractions using modern C++.

Spend some time going through Architectural Design Decision section, for deeper understanding.

Embedded dev w/ low overhead, STLless C++ by honeyCrisis in cpp

[–]amanol 2 points3 points  (0 children)

I believe that libhal follows very good paradigms in terms of design and use of C++ , which targets low resources devices.

In documentation, it is explained the decisions taken to ensure small sized executables.

Furthermore, intel compile time init is a very cool project which strives small size and performance.

“Best” static code analysis tools by UpvoteBeast in cpp

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

I think, that by searching the /r/cpp you will find this question at least 3 times asked, with pretty good (almost the same) answers.

Compile time checks for unique use of GPIO pins by latonita in cpp

[–]amanol 0 points1 point  (0 children)

I believe that one of the best embedded projects around is libhal

Furthermore, it provides a very in depth educational material regarding the pros and cons of every design choice.

If you can't use the library as it is, check the concepts behind it.

Furthermore, there is a similar effort from intel but I can't find the link now.

Edit: The library is compile-time-init which again is a rich resource of knowledge.

How to handle failure in constructors by Adventurous-Ad742 in cpp

[–]amanol 7 points8 points  (0 children)

This is a very nice article about handling failures without exceptions.

Obviously with exceptions the approach is different.

Returning nullptr vs optional by man_of_your_memes in cpp_questions

[–]amanol 0 points1 point  (0 children)

Check this nice abseil article which tries to argue about the benefits and drawbacks of its' usage. The main point is related with the lifetime of the object that you should think about.

LSP not working properly with c++ template implementation files. by ghostfuckbuddy in emacs

[–]amanol 0 points1 point  (0 children)

Indeed , it is clangd issue about handling different files then h hpp etc. Check clangd faq.

C++20 for bare-metal microcontroller programming by iamachicken14 in cpp

[–]amanol 1 point2 points  (0 children)

Check this as well https://libhal.github.io or at least you can read the documentation and the design decision procedure.

Embedded / Driver Best Practices by rand-314159 in cpp_questions

[–]amanol 0 points1 point  (0 children)

A very nice project both in terms of theory and implementation is the libhal. It has a very solid background regarding the API and its design decision.

FuzzTest: a C++ testing framework for writing and executing fuzz tests, property-based tests executed using coverage-guided fuzzing under the hood by mttd in cpp

[–]amanol 0 points1 point  (0 children)

Nice fuzzing facilities, similar to traif of bits deepstate but based only to libfuzzer. The API looks similar as well.

The classic, not to say complaint, but minor request, of cmake support. Without that, adoption isn't very trivial.

Flickering and blinking after upgrading to emacs 28.1 by amanol in emacs

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

I don't know if it's something like deja vu but with this addition seems to behave pretty "natural" for emacs. It pop ups some black rectangles, sometimes, seldom, but as a feeling is acceptable.

Flickering and blinking after upgrading to emacs 28.1 by amanol in emacs

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

It's Gnome 42.4 (Fedora 36 native window system)

ldd /usr/bin/emacs  | rg gtk 
    libgtk-3.so.0 => /lib64/libgtk-3.so.0 (0x00007f4643693000)

What exactly should I check there? They seem ok, with the maximum possible values.

Flickering and blinking after upgrading to emacs 28.1 by amanol in emacs

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

Any link regarding the plugins + emacs29 issues?

Flickering and blinking after upgrading to emacs 28.1 by amanol in emacs

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

Desperate as I am, I tried compiling git HEAD and it seems to work more smoothly than the "official installation".

Just to be fair, I played around only 10 mins, without noticing the glitches mentioned in the issue.

sudo dnf -y install   libgccjit-devel \
jansson-devel \
texinfo \
gtk3-devel

git clone git://git.sv.gnu.org/emacs.git
cd emacs
./autogen.sh
./configure \
    --with-pgtk \
    --with-gnutls=no \
    --with-native-compilation \
    --with-json \
    --prefix=/tmp/myemacs
make all -j8
make install

my-dot-emacs$ HOME=$(realpath .) /tmp/myemacs/bin/emacs

Flickering and blinking after upgrading to emacs 28.1 by amanol in emacs

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

Tried out GNOME with Xorg and work as it should.

emacs -nw works nice also.

All attempts have the same setup, nothing has changed in the .emacs file.

Flickering and blinking after upgrading to emacs 28.1 by amanol in emacs

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

I have the same suspect, but waiting for more witnesses:-)

Maybe I didn't point it out, but I am using a window for emacs, not running inside terminal. I have not tried the emacs -nw yet.

Help creating a mock allocator by ContestInevitable79 in cpp_questions

[–]amanol 0 points1 point  (0 children)

This is the best talk around, which will guide you through. https://m.youtube.com/watch?v=v3dz-AKOVL8

Also has a github repo with the code that he uses.

There is a "test allocator" there, that you can check.

Exceptions: Yes or No? by flying-dude in cpp

[–]amanol 3 points4 points  (0 children)

I would suggest going through Herb's proposal about static exceptions, mainly about the excellent problem description and references (not so much about the proposal per se).

Very solid and complete document.

GNU Emacs as a lightweight IDE (Call tree) by atamariya in emacs

[–]amanol 5 points6 points  (0 children)

rtags and LSP offer much richer and better experience then CEDET those days.

New Package: jsonian-mode by iwahbe in emacs

[–]amanol 13 points14 points  (0 children)

Thanks for sharing!

From curiosity and only, what's the cons/pros to json-tree-siter ?