I made some progress on a similar transpiler some years ago https://git.ivysaur.me/code.ivysaur.me/php2go but never really finished. I still have the use case. Do you know if there's any production quality transpiler?
Today you would probably involve an LLM somehow, but it's hard to trust the result.
As someone who knows both languages intimately (written more code in both of those languages than any others), I can't think of any two (non-toy) languages which are more diametrically opposed.
In a similar spirit, I have started an experimental go to c++ compiler. But it's not in a usable state at the moment (no gc, imports management is not finished, some syntax are still not managed) and the code is probably quite bad as I'm not used to program in go. (The repo is here: https://github.com/Rokhan/gocpp if anyone interested).
author here: yeah, as someone pointed out already, I could not find a way to make them async. PHP only has Fibers, and they are not sufficient for that.
That's SQL with Spanish words. I think the parent meant something along the lines of: dame el nombre de cada cliente cuyo ciudad sea 'Granada' y que no tenga telefono. Anything more flowery will be hard to translate, though.
In the 70's there was a significant trend of translating programming languages to French - for example LSE, Pascal, Cobol, Algol... Didn't abide - we now take English for granted but reading code in my native is a strange sensation !
I should rephrase. Go is simple, but it cuts corners which can really over complicate simple things that other languages would handle more elegantly. Struct tags are a perfect example of missing language features that require a weird post-processing step to get dynamic typing working.
100go.co is a great website! I referred to it a lot when learning go and It's my go to (pun unintended) for anyone learning the language
Maybe not exactly what you meant...but you are not alone in your dream. Here's what i learned of: "Pushup - page-oriented web framework for Go" [https://pushup.adhoc.dev/]
81 comments
[ 5.5 ms ] story [ 113 ms ] threadhttps://github.com/MagicalTux/goro
Today you would probably involve an LLM somehow, but it's hard to trust the result.
Edit: this project is the sort of thing I'd do if I had the time to :)
This is deeply cursed and I love it.
They look to be supported:
https://github.com/tuqqu/go-php/blob/main/tests/Functional/f...
> No support for real goroutines, go statements run sequentially
Sorry, I'm heading to my workstation to ask Copilot to help me build a new JVM language using ancient Greek reserved words.
As a socially inept geek, I would like to: whisper database queries to desirable persons and have a good chance of getting some.
This is awesome.
Well, darn.
This is something you add to a project to obscure some sploit.
Not a leading question, I’m curious if there are any technical complications with fast-reload Go.
100go.co is a great website! I referred to it a lot when learning go and It's my go to (pun unintended) for anyone learning the language
[1] - https://frankenphp.dev