TOGVM-Spec
inform
TOGVM-Spec | inform | |
---|---|---|
2 | 13 | |
0 | 1,259 | |
- | - | |
4.4 | 9.3 | |
9 months ago | 5 days ago | |
PHP | C | |
- | Artistic License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
TOGVM-Spec
-
The AST Typing Problem
Make each AST node an RDF node and then you can cram whatever information into it you want. That's the approach I've been taking with https://github.com/TOGoS/TOGVM-Spec/, anyway.
Of course, for conveniently and safely manipulating in memory in $programming_language, you're probably going to want to define some structs/ADTs/whatever that only contain the data a given compilation stage is actively working with.
I've been thinking that what I need is a system that allows me to quickly define different lower-level datatypes for representing different views of the conceptual types and automate, to some degree, translation between them, so then each part of the system can work with objects designed specifically to be processed by it with minimal fuss.
A technical reason for avoiding those specialized types might be that the computer then has to spend more time transforming from one schema to the next. I would think that in practice this isn't any worse than having to do a lot of null checks.
A more human reason is that it could bean a combinatorical explosion of AST types. I guess this is where my idea about lightweight variations comes in.
In TypeScript this kind of thing might not be so bad, since any object can be downcast with no cost to a type that contains a subset of the information, and variations on types can be easily defined without even necessarily being named, e.g. `ASTNode & HasResultType & HasSourceLocation`.
-
Six programming languages I’d like to see
As far as graph-based languages and languages with arbitrary metadata and relationships between objects are concerned, I've been mulling over a language where expressions are represented as RDF graphs and that has built-in support for manipulating RDF graphs. I've use the concepts as an intermediate representation for functional expressions in a few different systems (including Factorio's map generator), but haven't yet had the motivation to really flesh it out into a full-blown language. https://github.com/TOGoS/TOGVM-Spec
inform
-
What engine do you use for making true IF games?
Inform 7 is the most popular IF engine. The best place to download it in 2023 is from GitHub: https://github.com/ganelson/inform/releases
-
Open source Inform available for multiple platforms
Releases can currently be found via this link: https://github.com/ganelson/inform/releases
- I am writing an interactive fiction builder in C#. I decided to put it to the test by recreating Zork 1
-
Six programming languages I’d like to see
Did you know Inform is now (finally) open source?! https://github.com/ganelson/inform
-
Gaiman: Programming language for text-based games in browser
Inform 6 is still being developed, and Inform 7 went open source earlier this year: https://github.com/ganelson/inform
- Donald Knuth Was Framed
-
Is there a way to package an interpreter with a story?
Here's the github repo, it was just open sourced last week. You can compile it from source now, and I imagine the UI frontends will be updated in a couple of weeks. IIRC, compiling directly to other languages is now possible, although I'm not sure how much that impacts your use case.
- First python text-based adventure
-
Inform 7 now open source
For those who don't know it, Inform 7 is the venerable "design system" for interactive fiction. It has been freely available for some time with the promise of a release as open source for some time now. Looks like that has happened.
- Inform 7 is now open source
What are some alternatives?
impulse - Impossible Dev Tools for React and Tailwind
gruescript - Point-and-click text adventure maker
dafny - Dafny is a verification-aware programming language
zork1 - Zork I (Microcomputer Version) by Infocom
sdk - The Dart SDK, including the VM, dart2js, core libraries, and more.
power-fx-host-samples - Samples for hosting Power Fx engine.
prusti-dev - A static verifier for Rust, based on the Viper verification infrastructure.
inform7-ide - A design system for interactive fiction based on natural language.
docs - Red-related user documentation repository
Lazy - Lazily evaluated (late-binding) definition for Dyalog APL
DataLang - Specification and refernce implementation of DataLang
halo - An experimental graph-based meta programming language