You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order for Fart to properly convert a source Fart into a runnable program, it must be provided an implementation file. This file will hold the code needed to run the Fart generated program.
An "implementation file" is any file that [defaultly] exports an implementation of the source Fart.
Awesome! Now we have a guessing game design and implementation supported in TypeScript. To run the guessing game in the command line via Deno, all the user must do is simply run the following command:
deno run https://fart.tools/deno.cli/EthanThatOneKid/fart/main/ex/guessing_game/guessing_game.ts~EthanThatOneKid/fart/main/ex/guessing_game/ts/guessing_game.impl.ts
The Fart server parses this URL such that the segment after the ~ is the location of the implementation file. Implementation files are used often by Fart cartridges that generate runnable programs out-of-the-box.
The result should be a functioning guessing game running in Deno.
The text was updated successfully, but these errors were encountered:
http_client: Library that fetches from server instance
The idea is that each of the code cartridges above would have separate versions for each supported programming language.
Example
Let's say you created a generative art implementation in TypeScript, but you want to use the service in Go. Shoot, you do not have a Go implementation, just a TypeScript implementation. It is okay though because we can just generate the Go http_client targeting the generative art implementation TypeScript http_server or http_edge. This bridges the gap between languages via Internet connection. As long as a language has a standard HTTP library, the language should be able to support all other implementations out-of-the-box.
Purpose
Every time you write a feature or library, it is often dedicated to a single point of access such as a UI or server endpoint. Imagine you could instead standardize your library such that it can be used [and/or implemented] by any programming language. This way, your code can be reused as a module and can be reused and repurposed as a CLI, HTTP server, HTTP client, and more.
In order for Fart to properly convert a source Fart into a runnable program, it must be provided an implementation file. This file will hold the code needed to run the Fart generated program.
An "implementation file" is any file that [defaultly] exports an implementation of the source Fart.
Idea
Awesome! Now we have a guessing game design and implementation supported in TypeScript. To run the guessing game in the command line via Deno, all the user must do is simply run the following command:
The Fart server parses this URL such that the segment after the
~
is the location of the implementation file. Implementation files are used often by Fart cartridges that generate runnable programs out-of-the-box.The result should be a functioning guessing game running in Deno.
The text was updated successfully, but these errors were encountered: