3 ms·
Tail-Call Interpreters in Rust – Jimmy Ostler
- froh42 2mo agoWhy the fuck make a tech web page unreadable with CRT effects? Thank god, there is reader mode in Firefox.
- ubercore 2mo agoEveryone says they want the weird more personal internet back, then this is what we get when someone does a weird internet thing!
- mister_mort 2mo agoI think they could get a close-enough effect by removing the horizontal lines on the text glyphs themselves. This would still keep the colorscheme and slight glow, but drastically improve readability.
- seritools 2mo agoon my screen it's the opposite: the glow makes it look like i didn't clean my glasses for a month, disabling that `text-shadow` makes it readable, and the slight scanline effect is nice
- pjmlp 2mo agoI want my blink tag back! With flowers and co falling down the page, and everything else that use to be in Geocities, Hi5 and MySpace. /s
- deleted 2mo ago[deleted]
- arethuza 2mo agoI actually find it quite readable - YMMV.
- sph 2mo agoThen, with all due respect, you should not be anywhere near the design or evaluation of accessible systems. There's people reading this blog with all types of devices, screens, lighting and range of visual acuity. Even if you're blessed with perfect vision and excellent displays, it should be obvious that readability has been lowered for no obvious reason. The point of a blog is for people to read it, so it fails at its foremost job.
- arethuza 2mo agoI wasn't saying that I thought it should be adopted as a standard for others to follow - just that (somewhat weirdly) I personally find the code segments on that page quite easy to read.
- rz2k 2mo agoIt must depend on what you’re using to read it. It’s also readable for me on an OLED iPad, and gives me ideas about what I actually want when I wish I could turn the contrast down while reading it with low ambient light. Bringing the brightness levels of the background and text closer together doesn’t ever seem to work, but being able to add a slight blurry dropshadow behind behind each character might be a way to reduce the artifacts OLEDs seem to create when my eyes are tired.
- deleted 2mo ago[deleted]
- frameer 2mo ago[flagged]
- QuadmasterXLII 2mo ago“everyone has reader mode” is I guess freeing?
- layer8 2mo agoMight as well give up on CSS and just use brutalist HTML in that case.
- bigfishrunning 2mo agoWe should do that anyway, CSS was a mistake. I miss gopher.
- pjmlp 2mo agoNot nntp? :)
- klibertp 2mo agoIt's not that bad... But it is bad. It looks cool, and I managed to read the first few paragraphs. But when the code scrolled into view, it stopped looking cool and became an eye-destroying disaster. YMMV, but OP, if you read this, please consider disabling the text-shadow for code snippets... or disabling syntax highlighting in code snippets. These two things are not a good thing together.
- sph 2mo agoCtrl-Shift-C, click on a paragraph, search for "text-shadow" on the right pane of the inspector, untick the checkbox. There is a time and place for text and retro-CRT effects, this isn't one.
- narinciye 2mo agoThank you. I was about to get eye cancer
- sscaryterry 2mo agoExactly, I stopped trying to read it, thought I didn't have my glasses on.
- goda90 2mo agoReminder about Firefox's built in reader mode, which is great for working around annoying styling or mobile rendering issues.
- aboardRat4 2mo agoIn which extensions, such as a dictionary, don't work.
- Sparkle-san 2mo agoA personal blog isn't the time or place for playing around with things?
- noelwelsh 2mo agoMade my day that it references an article I wrote! :-D Another thing that is kinda neat: there is a duality (a bidirectional transform) between the AST for a tree walking interpreter and the AST for a stack machine. To create the stack machine AST, all you do is remove any occurrence of the expression type in the tree-walking AST; these values are now found on the stack. Obvious when you think about it, but useful nonetheless. I don't think there is a simple equivalent for a register machine as, unless you have an infinite number of registers, you need to do register allocation. (If the author reads this, my name changed from Noel to Neal at some point. I don't really mind though; my name is a bit unusual and I've been called all sorts of things.)
- whilenot-dev 2mo agoJust read your blog post[0], thanks for it! If I may leave some feedback here... It'd be cool if you could add some syntax highlighting, because being at it is, it's hard to distinguish comments from code paths. The code snippets are just Scala anyway, aren't they? Why, in the switch dispatch- and the subroutine threading-variants, is the recursive call in the dispatch function done with a call to loop(...)? Is that some Scala specific thing for recursion? [0]: https://noelwelsh.com/posts/understanding-vm-dispatch/ https://noelwelsh.com/posts/understanding-vm-dispatch/
- noelwelsh 2mo agoThanks for pointing those out. I've fixed both issues. Syntax highlighting was a discrepancy between my local env and the Netlify env that deploys the site. `loop` is what I usually call tail-recursive loops in my personal style. I think I changed that to `dispatch` for the blog post and didn't push the change all the way through.
- derdi 2mo agoHmm, what's a stack machine AST? I can't follow your description of the transform, what does "remove" mean here? I can remove all of the internal nodes of a tree, which leaves me with a soup of leaf nodes, but how is that an AST for a stack machine?
- rootnod3 2mo agoThat is a whole lot of unsafe blocks.