Better HN
topnewbestaskshowjobs
Log inSign up

bkryza

236 karma · joined Feb 22, 2023 (3y ago) · 8 submissions

https://github.com/bkryza
Submissions

comment 4mo ago · link · parent

Two days ago I was in Hamburg on a conference, where I visited the Miniature Wonderland. One of rooms has a miniature 'functioning' airport with planes taxiing etc. In one place near the hangars I noticed a small RV with wings with a small figure fueling it presumably.

I immediately knew I knew it from somewhere, but couldn't figure it out - only after about 20 minutes it hit me - Spaceballs!

comment 8mo ago · link · parent

They have an interesting regex for detecting negative sentiment in users prompt which is then logged (explicit content): https://github.com/chatgptprojects/claude-code/blob/642c7f94...

I guess these words are to be avoided...

3.

Visualizing entire Chromium include graph(blog.bkryza.com ↗)

72 points · by bkryza · 1y ago · 4 comments

4.

Visualizing modern C++ code using Clang and UML(blog.bkryza.com ↗)

2 points · by bkryza · 1y ago · discuss

comment 1y ago · link · parent

If you've ever tried to use any Clang-based tooling such as clangd, ccls, clang-tidy, include-what-you-use and many others, you probably had to figure out yourself how to generate the compilation database within your setup.

This post describes my attempt to generate compile_commands.json database from as many C/C++ build systems as possible (I've managed 17 + plugins). For each build system you can find steps how to setup the same reference Hello World C++17 project, generate the compile_commands.json and verify whether it works with clang-tidy and discusses issues (if any) and how to resolve them.

The list of build systems covered in the post include: B2, Bazel, Buck2, build2, CMake, Clang++, FASTBuild, Make, Meson Build, MSVC, Ninja, Premake, Qbs, SCons, Waf, XCode and xmake.

6.

Compile_commands.json Gallery(blog.bkryza.com ↗)

1 points · by bkryza · 1y ago · 1 comment

comment 3y ago · link · parent

Yes, absolutely, in fact clang-uml also uses Doxygen for it's own documentation - although diagrams are 'self'-generated by clang-uml - for instance see here: https://clang-uml.github.io/structclanguml_1_1config_1_1conf...

However, the main difference between clang-uml and Doxygen is that in Doxygen the diagrams are a by-product of generated documentation. clang-uml aims to give you much more control over what you want in your diagrams, without having to use Doxygen or any other documentation tool, which possibly makes it more flexible in how you can use its output.

Obviously, which approach you prefer depends on your use case and needs.

8.

Show HN: Clang-uml – C++ to UML diagram generator based on Clang(github.com ↗)

79 points · by bkryza · 3y ago · 20 comments