Conversation

Lorenzo Stoakes

Beautiful
3
0
4

@ljs is this that min()/max()/whatever thing expanded?

1
0
1

DougMerritt (log😅 = 💧log😄)

@ljs
"*You* debug it" -- "No, *you*"

1
0
2
@dougmerritt I bloody well am involved in it, because of my big mouth and wanting this thing fixed haha
0
0
2

@ljs For a second I thought I was looking at a C++ error message. Must be because of all the < characters making it look like a deeply nested template expansion.

1
0
1
@cesarb being recently ex-C++ lol, but also the irony here is that templates would REALLY help.

It's fucky because of limitations of C and trying to do what templates could do trivially very non-trivially in... a macro.

TL;DR anyway is we were far too clever with this stuff and need to un-clever ourselves so the build isn't slowed down by this crap
1
0
0

DougMerritt (log😅 = 💧log😄)

@ljs @cesarb
Since this is a preprocessor issue -- wait, I've mentioned this before, haven't I? Well, that's ok, it's pretty remarkable:

I once did development on a system with a sucky port/implementation of stdio. IO was disappointingly slow, but there's only so much you can slow down that sort of thing, right?

So I was astonished at one point to discover that the preprocessor (a port of the original Bell Labs preprocessor) was literally faster than "cat file.c"(it didn't use stdio)

Investigation revealed that the author, John Reiser, had used every trick in the book to make cpp as fast as possible. I talked to the author some years later. He was embarassed more than proud.

It was impressive, though. Blindingly fast.

0
0
1