Golang Interpreter Written in PHP
Go-PHP is a Golang interpreter for PHP, allowing Go code execution within PHP. It is a work in progress, not for production, with sequential execution and examples available in the repository.
Read original articleGo-PHP is a Golang interpreter designed to run within a PHP environment, enabling the execution of Go code alongside PHP. The project includes an example demonstrating how to define a Go struct and function, and execute it within PHP. The provided example code illustrates the creation of a `person` struct and a function to instantiate it, followed by a print statement to greet the user. Users can run the examples by navigating to the examples directory and executing the PHP script. The project is currently a work in progress and is not intended for production use. Users can find implemented features in the tests directory. To set up the project, dependencies can be installed using Composer, and tests can be run with a make command. However, it is important to note that the interpreter does not support real goroutines, meaning that Go statements execute sequentially rather than concurrently. For further information, users can visit the project's GitHub repository.
- Go-PHP allows execution of Go code in a PHP environment.
- The project is a work in progress and not for production use.
- Users can run examples by executing PHP scripts in the examples directory.
- The interpreter does not support real goroutines; execution is sequential.
- Development instructions include installing dependencies and running tests with make commands.
Related
Pad jumps to avoid Intel erratum (2019)
The GitHub URL contains information about the Go programming language repository. For assistance or details about Go, you can ask for help.
Show HN: Gothem stack – An Htmx and templ template
The "gothem-stack" GitHub project is a flexible template using Go, Templ, HTMX, Echo, and Mage. It supports TailwindCSS, DaisyUI, and Alpine.js, aiding quick setup and various functionalities. Persistence relies on Postgres and sqlc.
Learn PHP the Right Way
The GitHub repository presents a YouTube series, "Learn PHP The Right Way," covering basic to advanced PHP concepts, including a project section for building a web application with user authentication and AJAX.
Go is my hammer, and everything is a nail
Markus, a solo developer, exclusively uses Go for software development, valuing its simplicity and versatility. He believes focusing on one language enhances productivity and deepens expertise without limiting career options.
Show HN: Monogo – Evolve your go workspace to a real monorepo
Monogo is a CLI tool for managing Go workspace monorepos, facilitating dependency management, code formatting, and testing. It offers various commands and flags to enhance functionality for developers.
- Many commenters find the idea of combining Go and PHP to be both intriguing and absurd.
- Some mention existing alternatives like FrankenPHP, which offers more comprehensive solutions.
- There are discussions about the potential for web development with Go, emphasizing the desire for features like hot code reloading.
- Several comments reflect on the philosophical implications of such projects, questioning whether they should exist at all.
- Overall, the project is seen as a playful experiment rather than a serious production tool.
This is deeply cursed and I love it.
Well, darn.
Sorry, I'm heading to my workstation to ask Copilot to help me build a new JVM language using ancient Greek reserved words.
[1] - https://frankenphp.dev
This is awesome.
This is something you add to a project to obscure some sploit.
Edit: this project is the sort of thing I'd do if I had the time to :)
Related
Pad jumps to avoid Intel erratum (2019)
The GitHub URL contains information about the Go programming language repository. For assistance or details about Go, you can ask for help.
Show HN: Gothem stack – An Htmx and templ template
The "gothem-stack" GitHub project is a flexible template using Go, Templ, HTMX, Echo, and Mage. It supports TailwindCSS, DaisyUI, and Alpine.js, aiding quick setup and various functionalities. Persistence relies on Postgres and sqlc.
Learn PHP the Right Way
The GitHub repository presents a YouTube series, "Learn PHP The Right Way," covering basic to advanced PHP concepts, including a project section for building a web application with user authentication and AJAX.
Go is my hammer, and everything is a nail
Markus, a solo developer, exclusively uses Go for software development, valuing its simplicity and versatility. He believes focusing on one language enhances productivity and deepens expertise without limiting career options.
Show HN: Monogo – Evolve your go workspace to a real monorepo
Monogo is a CLI tool for managing Go workspace monorepos, facilitating dependency management, code formatting, and testing. It offers various commands and flags to enhance functionality for developers.