• 2 Posts
  • 112 Comments
Joined 1 year ago
cake
Cake day: June 30th, 2023

help-circle










  • I am currently writing a C compiler, with my own backend (and hopefully, frontend) in OCaml.

    But why write your own C frontend? It’s much more of a pain than people imagine. I maintain a C frontend implemented in OCaml (the project itself goes back 25 years) and it’s still not on par with GCC or Clang.

    For any other language, sure, but C has so many “wonderful” features, starting with the lexer hack. Your grammar conveniently overlooks this issue but it’s something you’ll have to deal with to actually implement it. So it simply won’t be as nice as theory suggests.



  • These include semgrep, ast-grep, LLMs, and one-off scripts. After running these tools on a large code-base, you usually end up with lots of additional unintended changes. These range from formatting/whitespace to unrequested modifications by LLMs.

    Maybe LLMs do, but why would semgrep or your one-off script be making unrelated changes? This is like using sed to replace something and using grep to filter out the very things you just specifically modified. It should be unnecessary if you commit frequently enough and don’t do 10 different refactorings before starting to commit each one.


  • Isn’t that just drafts for that comment’s reply?

    Because I just saved a comment draft, went looking at something else and wanted to go back. The problem was that I couldn’t find the right post/comment where I saved the draft.

    I thought Boost saved that because going to reply to the same comment would automatically bring up the draft.




  • Sometime HSP just stopped working so now I have to do calls with my laptop built-in mic.

    Also, some programs like Zoom just fail to use the right output device no matter what I choose in settings. I just have to make headphones the fallback device for anything to work.

    But the most annoying thing is Linux somehow stealing the playback when my headphones are connected to multiple devices. Even when nothing plays on the computer but does play on the phone, there’s no audio. I have to disable/disconnect my computer to use headphones with phone when my computer is in range.