Hacker Newsnew | past | comments | ask | show | jobs | submit | GrumpySloth's favoriteslogin

I trained the raccoons that visit my house at night. I started them out getting a peanuts from a water bottle. Then I tied the bottle to a rope. Then kept raising the bottle higher. At that point, I built an automated feeder system using a linear actuator activated by pulling the rope with the bottle attached. It had LEDs that were green / red to show when the feeder would / wouldn't dispense peanuts. It was all driven by an ESP32, it even had a web page on our LAN reporting how many correct / incorrect pulls were done. Over the coarse of a few nights they figured it out. Raccoons are so cool.

I always recommend his talk "A macro writer's bill of rights" [0] to people. It ties into some of the papers he has written, and also shows how nice it is to have a source->source optimizer. You write some code, and can the look at it after most of the common transformations (inlining, DCE, loop unrolling, constant propagation).

I spent some time reading the r6ra discussions and was blown away by the thought that went into the whole thing. There are very few parts of the semantics of R6RS that are actually bothersome. The only thing I really don't like is promises and the dynamic environment.

[0] https://m.youtube.com/watch?v=LIEX3tUliHw


If you want to see how destination driven code generation (DDCG) works concretely, check out this old presentation by a V8 developer.

It shows concretely how DDCG compares to common optimizations like peephole and top-of-stack caching.

And shows concrete examples of compiling various forms (expressions, assignment, control flow, etc) with DDCG.

The only reason it's on my personal Github is because the original is so hard to find.

https://github.com/eatonphil/one-pass-code-generation-in-v8


There are lots of cool papers Dybvig has published related to Chez Scheme that are relevant for anyone hacking on compilers. Specifically, destination-driven code generation is really neat.

My favorite is the slides on the development of Chez Scheme: http://icfp06.cs.uchicago.edu/dybvig-talk.pdf.

A few other good ones:

* Destination Driven Code Generation: https://legacy.cs.indiana.edu/~dyb/pubs/ddcg.pdf

* The Development of Chez Scheme: https://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.72...

Here's a pretty full list: https://www.researchgate.net/scientific-contributions/R-Kent....


I thought everyone said butterface.

If powerhouses like ARM, Apple, Google, Microsoft and even Linux kernel admit not being able to, now even pushing for hardware memory tagging as the only remaining way to fix C and its influence on C++/Objective-C, you are indeed a top expert.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: