[HN Gopher] Mir: A lightweight JIT compiler project (2020)
___________________________________________________________________
Mir: A lightweight JIT compiler project (2020)
Author : mpweiher
Score : 26 points
Date : 2023-07-01 13:00 UTC (1 days ago)
(HTM) web link (developers.redhat.com)
(TXT) w3m dump (developers.redhat.com)
| samsquire wrote:
| Thanks for this.
|
| I started a basic toy JIT compiler for a language that looks
| similar to JavaScript. It is incomplete. (jitcompiler.c)
|
| https://github.com/samsquire/compiler
|
| With these kinds of projects there is a lot of work to be done
| and I feel it's difficult to get started reading a codebase for a
| JIT compiler or gcc or LLVM.
| tedunangst wrote:
| I like how the page rescrolls to the top as I approach the
| middle. Very efficient means to generate tons of content.
| low_tech_punk wrote:
| I noticed that they use JavaScript to modify the hash string in
| the URL. Here is the probably root cause:
|
| There is an H2 heading between "Lightweight JIT compiler
| project goals" and "The current state of the MIR project". That
| h2 contains the Hoover Dams image and has an id generated from
| empty content because the content is just image: <h2
| id="-h2"></h2>. When you scroll near that image, the javascript
| tries to update the url but that broken ID caused it to set the
| empty ID ("#"), thus jumping to top.
|
| You can verify this by open the table of contents bar and see
| an untitled section. Whatever CMS they are using, it didn't
| handle the empty H2 correctly. Few additional considerations:
|
| 1. The article author should never produce an H2 with only an
| image in it.
|
| 2. The image should have an `alt` label to be accessible.
|
| 3. CMS should use `alt` label or file name to generate the ID
| when the H2 has no other textual content.
| gavinray wrote:
| Some threads with previous discussion:
|
| - https://news.ycombinator.com/item?id=22098399
|
| - https://news.ycombinator.com/item?id=25300225
| Andrex wrote:
| Don't know if it's worth pointing out, but Mir is Canonical's
| competitor to Wayland for Ubuntu's display server.
___________________________________________________________________
(page generated 2023-07-02 23:00 UTC)