Paolo Amoroso · @amoroso
1870 followers · 2896 posts · Server fosstodon.org

I run across the 1988 paper "Design and Implementation of the UW Illustrated Compiler" about an educational compiler, implemented in Interlisp-D, for a simple block structured language. The system took advantage of Interlisp-D's GUI and environment to visualize the compiler's scanning, parsing, and code generation features and state.

dl.acm.org/doi/pdf/10.1145/539

#interlisp #compilers #retrocomputing

Last updated 1 year ago

· @ELLIOTTCABLE
190 followers · 466 posts · Server kolektiva.social

continuing from this post, re: semgrep/comby/ROTOR: discuss.ocaml.org/t/next-prior

Y’know, just musing, and i’m brand-new to this terminology so this may sound stupid, but …

with tools like Semgrep/Comby, we’re effectively talking about pattern-matching (over syntax instead of ADTs), and pattern-matching is a specific application of unification, right?

Am I correct in thinking that a truly-general refactoring tool like that would have a lot in common with a first-order ?

#typechecker #typetheory #compilers #compsci

Last updated 1 year ago

comex · @comex
2400 followers · 714 posts · Server mas.to

Compilers Mastodon, does anyone know of examples where major C compilers exploit UB of misaligned loads/stores to produce silent misbehavior?

That's excluding
- Generating instructions that trap if misaligned (e.g. x86 movdqa), because that's not silent.
- Exploiting code that does more than just making misaligned loads/stores, such as calling __builtin_assume_aligned.

(cc @regehr... hmm, who else should I cc. I wish Mastodon had search. )

#gcc #llvm #compilers

Last updated 1 year ago

Adrian Sampson · @adrian
934 followers · 768 posts · Server discuss.systems

I’m getting ready to teach my weird open-source grad course next week: cs.cornell.edu/courses/cs6120/

And it occurs to me to ask: does anybody else want to teach a class like this (i.e., focused on “mid-end” hacking and research)? I built a bunch of special infrastructure and would be delighted to help adapt it for another school/purpose/context/etc. if you want.

#compilers

Last updated 1 year ago

~ashwinvis · @ashwinvis
483 followers · 283 posts · Server mastodon.acc.sunet.se

If someone tried could be employed to create source-to-source with Treesitter parsed trees behaving like intermediate representations. :blobcat3c:

But then again, someone will go ask ChatGPT instead to rewrite the code from X to Y and all such engineering efforts would go to the drain. :blobcatpout:

#compilers #treesitter

Last updated 1 year ago

Lobsters · @lobsters
2597 followers · 28780 posts · Server botsin.space
Lobsters · @lobsters
2597 followers · 28758 posts · Server botsin.space
Lobsters · @lobsters
2597 followers · 28758 posts · Server botsin.space
Lobsters · @lobsters
2597 followers · 28758 posts · Server botsin.space
Curated Hacker News · @CuratedHackerNews
1 followers · 5008 posts · Server botsin.space

#compilers

Last updated 1 year ago

Andrew Tropin · @abcdw
699 followers · 1282 posts · Server fosstodon.org

A book on compilers. Free for personal use:

compilerbook.org

I would also like to share Compiling with Continuations, but it's not free available.

#book #books #compiler #compilers #llvm #gcc

Last updated 1 year ago

Lobsters · @lobsters
2590 followers · 28691 posts · Server botsin.space
Lobsters · @lobsters
2589 followers · 28684 posts · Server botsin.space
Lobsters · @lobsters
2583 followers · 28664 posts · Server botsin.space
Lobsters · @lobsters
2577 followers · 28603 posts · Server botsin.space
Lobsters · @lobsters
2571 followers · 28556 posts · Server botsin.space
Alex · @stsquad
282 followers · 2158 posts · Server mastodon.org.uk

@markhepburn there are things like the static analysers that run on code bases looking for smells that don't involve local builds. Thankfully most are getting better, the one is pretty damn good but when it falls short it is usually a brain teaser.

#compilers #rust

Last updated 1 year ago

Lobsters · @lobsters
2567 followers · 28531 posts · Server botsin.space

#compilers #rust

Last updated 1 year ago

Lobsters · @lobsters
2567 followers · 28510 posts · Server botsin.space
Lobsters · @lobsters
2567 followers · 28510 posts · Server botsin.space

Melody: a language that compiles to regular expressions and aims to be readable and maintainable github.com/yoav-lavi/melody | lobste.rs/s/efo3o8

#compilers

Last updated 1 year ago