home.social

#printf — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #printf, aggregated by home.social.

  1. /* Oh, it's a waste of space, but oh-so-yummy for debugging. This version of printf() does not include 64-bit support. "Live with it." */

    github.com/torvalds/linux/blob

    #linux #kernel #printf #x86

  2. Как Работать с UART на Микроконтроллерах ( UART + FIFO = LOG )

    В этом тексте я написал про то как работать с UART на микроконтроллерах. Вы узнаете как пользоваться UART до того, как он будет включен. Допустим вы решили делать в своей прошивке printf- отладку. Или даже забабахать UART-CLI (Shell). Или у ваc есть какое -то внешнее устройство конфигурируемое по UART. Например микросхема U-Blox со своим UBX протоколом. Или LTE модуль с AT-командами. Первое с чем Вы столкнетесь - это настроить UART-трансивер. Как же реализовать алгоритм работы с UART периферией?

    habr.com/ru/articles/981028/

    #uart #прерывания #dma #gpio #fifo #LOG #cli #shell #printf #Критическая_секция

  3. Как Работать с UART на Микроконтроллерах ( UART + FIFO = LOG )

    В этом тексте я написал про то как работать с UART на микроконтроллерах. Вы узнаете как пользоваться UART до того, как он будет включен. Допустим вы решили делать в своей прошивке printf- отладку. Или даже забабахать UART-CLI (Shell). Или у ваc есть какое -то внешнее устройство конфигурируемое по UART. Например микросхема U-Blox со своим UBX протоколом. Или LTE модуль с AT-командами. Первое с чем Вы столкнетесь - это настроить UART-трансивер. Как же реализовать алгоритм работы с UART периферией?

    habr.com/ru/articles/981028/

    #uart #прерывания #dma #gpio #fifo #LOG #cli #shell #printf #Критическая_секция

  4. Как Работать с UART на Микроконтроллерах ( UART + FIFO = LOG )

    В этом тексте я написал про то как работать с UART на микроконтроллерах. Вы узнаете как пользоваться UART до того, как он будет включен. Допустим вы решили делать в своей прошивке printf- отладку. Или даже забабахать UART-CLI (Shell). Или у ваc есть какое -то внешнее устройство конфигурируемое по UART. Например микросхема U-Blox со своим UBX протоколом. Или LTE модуль с AT-командами. Первое с чем Вы столкнетесь - это настроить UART-трансивер. Как же реализовать алгоритм работы с UART периферией?

    habr.com/ru/articles/981028/

    #uart #прерывания #dma #gpio #fifo #LOG #cli #shell #printf #Критическая_секция

  5. Как Работать с UART на Микроконтроллерах ( UART + FIFO = LOG )

    В этом тексте я написал про то как работать с UART на микроконтроллерах. Вы узнаете как пользоваться UART до того, как он будет включен. Допустим вы решили делать в своей прошивке printf- отладку. Или даже забабахать UART-CLI (Shell). Или у ваc есть какое -то внешнее устройство конфигурируемое по UART. Например микросхема U-Blox со своим UBX протоколом. Или LTE модуль с AT-командами. Первое с чем Вы столкнетесь - это настроить UART-трансивер. Как же реализовать алгоритм работы с UART периферией?

    habr.com/ru/articles/981028/

    #uart #прерывания #dma #gpio #fifo #LOG #cli #shell #printf #Критическая_секция

  6. ✨🎨 Breaking news: yet another tech genius spends holiday break inventing a #printf #hack for #HLSL because, clearly, what the world needs now is more ways to debug shaders. 🙄 Meanwhile, in a shocking turn of events, we discover people might actually want useful tools. Who would've guessed?! 💡🔍
    abolishcrlf.org//2025/12/31/Pr #technews #shaderdebugging #innovation #HackerNews #ngated

  7. Полезные утилиты RTT Viewer и System Viewer

    Хорошие инструменты для отладки встраиваемого ПО микроконтроллеров давно стали делом привычным. Возможности таких инструментов определяются как архитектурой ядра, так и выбором отладчика. Рассмотрим три понятия: DAP (Debug access port), ITM (Instrumentation Trace Macrocell) и RTT (Real-Time Transfer). Всё это «механизмы» позволяющие выводить отладочную информацию в том или ином виде. DAP – это аппаратный блок, который дает доступ к шинам и ядру микроконтроллера. ITM – это специальный блок внутри Cortex-M (начиная с M3 и выше), предназначенный для сообщений с минимальными потерями времени. RTT – технология компании SEGGER, построенная на использовании кольцевого буфера внутри RAM. Именно о ней и пойдет речь в публикации.

    habr.com/ru/articles/1011650/

    #RTT_Viewer #System_Viewer #rtos #программирование_микроконтроллеров #printf

  8. GitHub's latest masterpiece: a Tic-Tac-Toe #game powered by the sheer #complexity of a single `printf` call. 🤖💻 Because who wouldn't want to pit their wits against a glorified string formatter in the most convoluted way possible? 😅🎉
    github.com/carlini/printf-tac- #GitHub #TicTacToe #printf #programming #fun #HackerNews #ngated

  9. 🚨 Breaking News: "Programmer discovers #strncpy is bad! 🎉" In a shocking revelation, it turns out using a function that doesn't null-terminate strings can lead to problems. Who would have thought? Next, Daniel plans to tackle the #mysteries of 'printf' – stay tuned! 🤔
    daniel.haxx.se/blog/2025/12/29 #BreakingNews #ProgrammerProblems #Issues #printf #HackerNews #ngated

  10. Dateien in Linux per Kommandozeile erstellen

    Dateien in Linux per Kommandozeile erstellen Dateien in Linux über die Kommandozeile zu erstellen, ist eine grundlegende und häufig genutzte Fähigkeit, die in vielen Situationen hilfreich ist – vom Anlegen leerer Dateien bis hin zur Erstellung von Dateien mit spezifischem Inhalt. Im Folgenden werden die wichtigsten und einfachsten Methoden vorgestellt, um schnell Dateioperationen bequem im Terminal auszuführen. 1. Dateien mit touch erstellen Der Befehl touch dateiname erstellt eine […]

    andreas-moor.de/dateien-in-lin

  11. ¿Usar un debugger como gdb?

    Naa, a mi dejame con los printf metidos por todos lados, y una directiva #define para activarlos o desactivarlos a todos juntos cuando la cosa se complica 😆

    #programming #c #gdb #debugging #printf

  12. There should be a format `%ꙮ` that just shits an unfeasible number of zeroes all over the place.

    `printf("%ꙮ\n", 32)`

    000000000032.0000000000

  13. [Перевод] Когда кажется, что нашёл баг в компиляторе

    Расскажу вам историю о том, как я далеко не в первый раз столкнулась с багом компилятора. Дело в том, что я уже довольно хорошо научилась распознавать случаи, когда проблема заключается совсем не в моём коде.

    habr.com/ru/companies/timeweb/

    #timeweb_статьи_перевод #c++ #компиляторы #баги #прграммирование #printf #сборка_ядра #код #байт #arm

  14. STM32 Tutorial #36 - Serial Print (Arduino users need to watch this!)
    This video goes into detail about the many different ways a serial console can be implemented. The video also show how to make a virtual COM port using USB. Everything in this video has been explained in earlier videos in little side notes but here is the complete detailed view.
    #stm32 #tutorial #printf #serial #uart #swo #usb #stm32world #arduino
    youtube.com/watch?v=y_KKHWecsj0

  15. [Перевод] Крестики-нолики на printf

    Представляем вам реализацию игры в крестики-нолики на С с помощью одного вызова printf. Написана для участия в IOCCC в 2020 году.

    habr.com/ru/articles/873554/

    #printf #болото_тюринга #scanf

  16. @AdamOnza

    In addition to the f-string example someone else gave, printf-style formatting has always supported this by using "*" as the width specifier and passing a value in the parameters in its place:

    >>> print("a %*s b" % (6, "foobar"))
    a foobar b
    >>> print("a %*s b" % (16, "foobar"))
    a foobar b

    #printf #format

  17. Pierwszy krok ku #debugowaniu aplikacji w języku programowania, którego jeszcze się nie używało, to nauczyć się, jak używać w nim #printf.

  18. The first step towards #debugging an app written in a programming language you've never used is learning how to use #printf there.

  19. Just released: Lua string.format Cheat Sheet by ambigious

    Download it free at cheatography.com/ambigious/che

    Here's their description of it: A quick reference for Lua's standard library string.format function.

    @cheatsheets #CheatSheet #CheatSheets #printf #format #lua

  20. ::: Ditching user disrespecting Windows for Linux has never been more viable :thinkhappy:

    Did you know? You can play Windows-only games on Linux in Steam by just enabling PROTON there :linux:

    Proton? It's Valve's enhancement based on work of Wine project - Wine 7.22 is out now to take things all the more further!

    Wine 7.22 main updates:

    - 32-on-64 thunks for both Vulkan & OpenGL

    - OpenLDAP library bundled / built as PE

    - Support for the RAW print processor in WinPrint

    - More progress on the long types printf format conversion

    => winehq.org/announce/7.22

    #Wine #gaming #Linux #deleteWindows #deleteMicrosoft #Vulkan #OpenGL #OpenLDAP #WinPrint #printf

  21. is a tiny implementation.

    nanoprintf is a single header library written in C99 (only for types) that provides a C11 compliant printf implementation on platforms without much of the standard library. nanoprintf compiles to 1 K to 3 K of program memory on ARM platforms.

    Website 🔗️: github.com/charlesnicholson/na

  22. Beyond Printf(): Better Logging Practices for Faster Debugging - All of us who do some programming know that logging is a time-tested way to output messages about ... more: hackaday.com/2020/07/21/beyond #softwaredevelopment #hackadaycolumns #debugging #libpoco #logging #skills #printf

  23. ✨🎨 Breaking news: yet another tech genius spends holiday break inventing a #printf #hack for #HLSL because, clearly, what the world needs now is more ways to debug shaders. 🙄 Meanwhile, in a shocking turn of events, we discover people might actually want useful tools. Who would've guessed?! 💡🔍
    abolishcrlf.org//2025/12/31/Pr #technews #shaderdebugging #innovation #HackerNews #ngated

  24. ✨🎨 Breaking news: yet another tech genius spends holiday break inventing a #printf #hack for #HLSL because, clearly, what the world needs now is more ways to debug shaders. 🙄 Meanwhile, in a shocking turn of events, we discover people might actually want useful tools. Who would've guessed?! 💡🔍
    abolishcrlf.org//2025/12/31/Pr #technews #shaderdebugging #innovation #HackerNews #ngated

  25. ✨🎨 Breaking news: yet another tech genius spends holiday break inventing a #printf #hack for #HLSL because, clearly, what the world needs now is more ways to debug shaders. 🙄 Meanwhile, in a shocking turn of events, we discover people might actually want useful tools. Who would've guessed?! 💡🔍
    abolishcrlf.org//2025/12/31/Pr #technews #shaderdebugging #innovation #HackerNews #ngated

  26. #nanoprintf is a tiny #publicdomain #printf implementation.

    nanoprintf is a single header library written in C99 (only for types) that provides a C11 compliant printf implementation on platforms without much of the standard library. nanoprintf compiles to 1 K to 3 K of program memory on ARM platforms.

    Website 🔗️: github.com/charlesnicholson/na

    #free #opensource #foss #fossmendations #programming

  27. [Перевод] Крестики-нолики на printf

    Представляем вам реализацию игры в крестики-нолики на С с помощью одного вызова printf. Написана для участия в IOCCC в 2020 году.

    habr.com/ru/articles/873554/

    #printf #болото_тюринга #scanf

  28. [Перевод] Крестики-нолики на printf

    Представляем вам реализацию игры в крестики-нолики на С с помощью одного вызова printf. Написана для участия в IOCCC в 2020 году.

    habr.com/ru/articles/873554/

    #printf #болото_тюринга #scanf

  29. [Перевод] Крестики-нолики на printf

    Представляем вам реализацию игры в крестики-нолики на С с помощью одного вызова printf. Написана для участия в IOCCC в 2020 году.

    habr.com/ru/articles/873554/

    #printf #болото_тюринга #scanf