Hacker Newsnew | past | comments | ask | show | jobs | submit | kevthecoder's commentslogin


The bytecode interpreter in the second half of the book doesn't use the visitor pattern.


No, but his first "Tree-walk Interpreter" does - he builds an AST then uses the visitor pattern to interpret it.

https://craftinginterpreters.com/representing-code.html#work...


To quote the very first paragraph of the bytecode interpreter section[1]:

> The style of interpretation it uses—walking the AST directly—is good enough for some real-world uses, but leaves a lot to be desired for a general-purpose scripting language.

Sometimes it's useful to teach progressively, using techniques that were used more often and aren't as much anymore, rather than firehosing a low-level bytecode at people.

[1] https://craftinginterpreters.com/a-bytecode-virtual-machine....


Sure, I'm not criticizing it.

He's doesn't actually build on this though, but rather goes back to a single pass compiler (no AST, no visitor) for his bytecode compiler.


the parser does


The parsers in crafting interpreters do not use the visitor pattern. The visitor pattern is used when you already have a tree structure or similar. The parser is what gives you such tree structure, the AST. When you have this structure, you typically use the visitor pattern to process it for semantic analysis, code generation, etc.


I’ve only glanced at the second part but I don’t remember that being the case.



Yep that's the one, I have to say it's kinda tempting on one hand, but on the other the Pi 5 is still about 4x slower than this already slow Framework 12 with a GPU that barely qualifies being called that so using it would be pretty painful I imagine.


The Metaverse Standards Forum has had some activity around gaussian splats recently, for example debating whether it's too early to standardise.

There's a town hall on 5th March with speakers from Niantic and Cesium: https://metaverse-standards.org/event/gaussian-splats-town-h....

The previous splats town hall, and other related talks, are on the videos page (there was another gaussian splat talk a couple of days ago from Adobe). https://metaverse-standards.org/presentations-videos/


Nice list. USD (Universal Scene Description) has been renamed to OpenUSD. Part of the motivation was to make it easier to search for. Not all the official docs have been updated yet though.


Given USD is in the list, I am a little bit surprised that alembic (.abc) isn't.


A strategic move


Another example of 'control flow' is the new behavior graph from Khronos (glTF Interactivity Specification). They did a survey of existing visual programming langauges and are trying to making a standard. It's just been released for public comment: https://www.khronos.org/blog/gltf-interactivity-specificatio...


Talk about making creative tools from V Buckenham, author of Downpour and Cheap Bots Done Quick.

Focusses on themes like simplicity and survivability (think like a cochroach!).



The strapline seems to suggest it is an ORM (I've not used Diesel yet):

>Diesel: A safe, extensible ORM and Query Builder for Rust

https://github.com/diesel-rs/diesel



He gave an interesting talk about his gaussian splatting work only a couple of days ago in Metaverse Standards Forum.

Hopefully the video of the talk will arrive in the list of presentations soon - https://metaverse-standards.org/presentations-videos/.


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

Search: