HackerTrans
TopNewTrendsCommentsPastAskShowJobs

ergeysay

no profile record

Submissions

Safe Made Easy Pt.2: Don't Fear the Ref

ergeysay.github.io
6 points·by ergeysay·w zeszłym miesiącu·0 comments

Safe Made Easy Pt.1: Single Ownership Is (Not) Optional

ergeysay.github.io
9 points·by ergeysay·2 miesiące temu·0 comments

Optimizing Interpreters: Fusion

ergeysay.github.io
7 points·by ergeysay·2 lata temu·0 comments

comments

ergeysay
·2 lata temu·discuss
I found sokuza-kanren [0] to be a wonderful introduction. It starts with the absolute basics and builds into a minimal logic system through a series of well-documented steps.

[0] https://github.com/miniKanren/sokuza-kanren
ergeysay
·2 lata temu·discuss
> loops like this are easy for compilers to analyze, in a way that makes them not representative of real code

Which makes it a perfectly fine benchmark to measure whether a particular compiler implements these optimisations. The benchmark also highlights fine implementation details. I did not know about Dart's interrupt checks, for instance.

I see these microbenchmarks as genuinely useful, as I can analyse them, the logic behind them, and apply results in interpreter design. Consider [0] for example. Any sane compiler would do this kind of optimisation, but I've seen only one production interpreter (daScript) doing it.

[0] https://ergeysay.github.io/optimising-interpreters-fusion.ht...
ergeysay
·2 lata temu·discuss
As you said, OpenTelemetry and friends can help. I had great success with these.

I am curious, what were implementation issues you have encountered?