Click here to Skip to main content
15,887,350 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: unpopular opinion: Rust: not a fan Pin
trønderen22-Mar-22 5:03
trønderen22-Mar-22 5:03 
GeneralRe: unpopular opinion: Rust: not a fan Pin
raddevus22-Mar-22 4:18
mvaraddevus22-Mar-22 4:18 
GeneralRe: unpopular opinion: Rust: not a fan Pin
honey the codewitch22-Mar-22 4:37
mvahoney the codewitch22-Mar-22 4:37 
GeneralRe: unpopular opinion: Rust: not a fan Pin
megaadam22-Mar-22 4:38
professionalmegaadam22-Mar-22 4:38 
GeneralRe: unpopular opinion: Rust: not a fan Pin
TNCaver22-Mar-22 4:53
TNCaver22-Mar-22 4:53 
GeneralRe: unpopular opinion: Rust: not a fan Pin
honey the codewitch22-Mar-22 4:54
mvahoney the codewitch22-Mar-22 4:54 
GeneralRe: unpopular opinion: Rust: not a fan Pin
TNCaver22-Mar-22 5:09
TNCaver22-Mar-22 5:09 
GeneralRe: unpopular opinion: Rust: not a fan Pin
honey the codewitch22-Mar-22 6:11
mvahoney the codewitch22-Mar-22 6:11 
I like the challenge of developing highly usable type safe interfaces that resolve to really efficient assembly like you'd have typed by hand.

A recent endeavor had me bitbanging the SPI hardware registers on an ESP32 MCU to get faster performance. It was all microsecond sensitive, requiring me to have total control over what got inlined and not. I had to use constexpr everywhere to forward as much of the configuration, like pin assignments off to compile time evaluations.

It replaced a nasty set of C preprocessor macros that accomplished the same. Byte for byte it generates the same assembly instructions.

The guts of this file are not clean, but what it presents to the user of this header *is*

htcw_tft_io/tft_spi.hpp at master · codewitch-honey-crisis/htcw_tft_io · GitHub[^]
To err is human. Fortune favors the monsters.

GeneralRe: unpopular opinion: Rust: not a fan Pin
TNCaver22-Mar-22 11:10
TNCaver22-Mar-22 11:10 
GeneralRe: unpopular opinion: Rust: not a fan Pin
honey the codewitch22-Mar-22 11:24
mvahoney the codewitch22-Mar-22 11:24 
GeneralRe: unpopular opinion: Rust: not a fan Pin
Ryan Peden23-Mar-22 5:46
professionalRyan Peden23-Mar-22 5:46 
GeneralRe: unpopular opinion: Rust: not a fan Pin
honey the codewitch23-Mar-22 5:48
mvahoney the codewitch23-Mar-22 5:48 
GeneralWSO CCC OTD 22 March 2022 - SOLVED Pin
Kornfeld Eliyahu Peter22-Mar-22 0:00
professionalKornfeld Eliyahu Peter22-Mar-22 0:00 
GeneralRe: WSO CCC OTD 22 March 2022 Pin
OriginalGriff22-Mar-22 0:09
mveOriginalGriff22-Mar-22 0:09 
GeneralRe: WSO CCC OTD 22 March 2022 Pin
Kornfeld Eliyahu Peter22-Mar-22 0:32
professionalKornfeld Eliyahu Peter22-Mar-22 0:32 
GeneralRe: WSO CCC OTD 22 March 2022 Pin
pkfox22-Mar-22 0:33
professionalpkfox22-Mar-22 0:33 
GeneralRe: WSO CCC OTD 22 March 2022 Pin
OriginalGriff22-Mar-22 0:53
mveOriginalGriff22-Mar-22 0:53 
GeneralRe: WSO CCC OTD 22 March 2022 - SOLVED Pin
pkfox22-Mar-22 1:44
professionalpkfox22-Mar-22 1:44 
GeneralRe: WSO CCC OTD 22 March 2022 - SOLVED Pin
Kornfeld Eliyahu Peter22-Mar-22 2:00
professionalKornfeld Eliyahu Peter22-Mar-22 2:00 
GeneralWordle hurdle of the day Pin
dan!sh 21-Mar-22 22:38
professional dan!sh 21-Mar-22 22:38 
GeneralRe: Wordle hurdle of the day Pin
pkfox21-Mar-22 22:46
professionalpkfox21-Mar-22 22:46 
GeneralRe: Wordle hurdle of the day Pin
OriginalGriff21-Mar-22 22:48
mveOriginalGriff21-Mar-22 22:48 
GeneralRe: Wordle hurdle of the day Pin
Kornfeld Eliyahu Peter21-Mar-22 23:19
professionalKornfeld Eliyahu Peter21-Mar-22 23:19 
GeneralRe: Wordle hurdle of the day Pin
pkfox21-Mar-22 23:51
professionalpkfox21-Mar-22 23:51 
GeneralRe: Wordle hurdle of the day Pin
OriginalGriff21-Mar-22 23:55
mveOriginalGriff21-Mar-22 23:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.