Show more

's compiler has a 'profile' build type which makes the outputted binary generate a trace file when ran.[0]

The first 'viewer' for this profiler output hasnt been committed too since 2017 and doesnt work.[1]

There is also a profile to graphviz viewer, which also doesnt work at HEAD, but a previous revision works.[2]

Its honestly no surprise that hasnt had much uptake of users.




My GP surgery has finally managed to put up perspex in front of the reception desks to protect staff.

I can't believe how many months it's took them to do this, when my pharmacy had an entire perspex and wood box/airlock built behind their door within a week or so of lockdown 😄

Samathy boosted

What do you call someone who starts a joke but doesn't finish it? 

The more I read of the Dragon Book, the more I think I'm never going to finish this compiler because there's always new ways to improve stuff.

I.e, having read a bunch this weekend, I have loads more ideas for the lexing section. But... I should really start writing the parsing section soon!

Perhaps I should have read the entire Dragon Book and Modern Compiler Dev before embarking on this journey.

"Optimise" your recursive functions by replacing tail calls with goto!

Its funny because it shows the age of this book (1986), a modern C compiler probably notices the tail recursion and optimises accordingly for you.

Ich mochte nicht kaufen wasser in Deutschland, weil ich hasse Wasser mit Kohlensäure und ich konnte nicht 'Wasser ohne Kohlensäure' gesagt.

Endlich ich wie sagen 'Still Water' gelernt und es ist sehr....Deutsch.

Auf Englisch: Still or Sparkling

Deutsch: Mit oder Ohne Kohlensäure.

Schwerig und...genau? (Precise/exact/specific)


Although it initially felt like I'd be wasting my compiler-dev day this week by spending it reading, I certainly feel pleased that I've finished the day understanding recursive descent, predictive (LL) and LR parsers.

I will probably be reading more of the dragon book this week, but I feel confident enough to start thinking about implementing a predictive parser for C next week.

Potentially unpopular opinion: Compilers - Principles, Techniques and Tools (A.V.Aho, R.Sethi, J.D.Ullman) has a parsing section that is much easier to digest than Modern Compiler Development (A.Appel).

MCD has a lot more mathsish theory in than the Dragon Book. Which is useful, but not at the expense of actually explaining _how_ a parser does the parsing well.

Today, instead of writing compiler code, I am reading the parsers section of my compilers book.

My brain hurts, this is really hard stuff.

Recursive decent is fairly easy to understand. But now we're talking about LL parsing and it's hard. 🤯

Ugh, Python2 -> Python3 converting is a nightmare.

text_type calls __repr__ on the data you give it.

__repr__ for a bytes string in Python3 is b"string". So you get back that, encapsulated in an str(): "b'string'"


I need to read up on parsers for the next bit of my compiler development.

But I also have a hankering to read some graph theory books...and also all those other 10s of maths/computing & other technical books I havent read yet.

Ugh, Ich will Technologik Bücher lesen. Aber Ich niemals die zeit finden.

📚 📚 📚

Ich habe ein großen Appetit für Theorie, aber nur ein bischen Zeit für Romane lese, nichts Technologik Bucher auch. 😩

Its so frustrating to read articles and SO answers where the writer refers to "the programmer" exclusively as a "him".

I've been told that this is partly because of native speakers of a gendered language using non-gendered English - where "the programmer" would default to a "him" in a gendered language because it has to be one of "her" or "him" as there is no singular "they".

However, its really hecking annoying to read content which appears to assume all programmers are men.

I used to use NoScript, but it took SO MUCH TIME to make websites I used work properly with minimal JS that using the Internet became just rubbish.

Nowadays, it's just tracker blockers like DDG and Privacy Badger and Facebook container.

Idk what using them really does though.

Apparently I've become the kind of person who needs reminding about all the privacy addons I have enabled when a website stops working properly.

Me: Why won't the Pets at Home website let me add this to my basket?
Partner: Have you broken your browser again?
Me: *Turns off DuckDuckGo Privacy add on, and Privacy Badger*

Laptop fans spin up. DDG goes Red-48 trackers found, Privacy Badger says 18

Product added to basket.

Parrot Posting 

Sending my blood results over unencrypted email makes me uncomfortable. But there really isnt any other way to send information to the Gender Clinuc or GPs.

I mean, the email is encrypted in terms of SSL/TLS, but who knows if those emails are encrypted at rest on the receiving end.

Do they get stored on NHS servers?
Are they encrypted there? Do they get stored encrypted on client machines? 🤷‍♀️

Trans health 

Show more
Mastodon is one server in the network