[HN Gopher] Golang Interpreter Written in PHP
       ___________________________________________________________________
        
       Golang Interpreter Written in PHP
        
       Author : hu3
       Score  : 72 points
       Date   : 2024-08-24 17:34 UTC (5 hours ago)
        
 (HTM) web link (github.com)
 (TXT) w3m dump (github.com)
        
       | dominick-cc wrote:
       | finally
        
       | nasretdinov wrote:
       | I mean, Go is now finally suitable for web development with hot
       | code reload?
        
       | laidoffamazon wrote:
       | This is an amusing companion to the PHP interpreter written in go
       | (by Mark Karpeles of MtGox infamy)
       | 
       | https://github.com/MagicalTux/goro
        
         | mcpherrinm wrote:
         | I wonder how keep you can stack them before things start to
         | break down
        
         | AdamJacobMuller wrote:
         | This seems actually useful since it's really doing transpiling!
        
           | mappu wrote:
           | 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.
        
       | surfingdino wrote:
       | Ah, PHP! The grumpy old git of the programming languages (see
       | also Jeremy Corbin and Bernie Sanders) /s
        
       | ndegruchy wrote:
       | I wonder if you can run this in FrankenPHP.
        
         | bubblesnort wrote:
         | I wonder if you can run FrankenPHP in this.
        
       | antonvs wrote:
       | Each day we stray further from god's light
        
       | minkles wrote:
       | _locating spoons to scoop own eyes out with_
       | 
       | Edit: this project is the sort of thing I'd do if I had the time
       | to :)
        
       | personalityson wrote:
       | Butwhy.gif
        
         | philipwhiuk wrote:
         | Online Go code checker?
        
       | shaftoe444 wrote:
       | If we could bring in awk somehow...
        
         | Flop7331 wrote:
         | And then make it run Doom.
        
       | AdamJacobMuller wrote:
       | 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.
       | 
       | This is deeply cursed and I love it.
        
         | mannyv wrote:
         | The next project should be writing a Golang interpreter in
         | JavaScript!
        
           | amelius wrote:
           | I vote for a JVM written in Perl.
        
             | prasoonds wrote:
             | Horrors beyond comprehension.
        
             | mhd wrote:
             | https://github.com/claesjac/pjvm
        
       | remoquete wrote:
       | This is the kind of "why not" projects that one could use Copilot
       | for!
       | 
       | Sorry, I'm heading to my workstation to ask Copilot to help me
       | build a new JVM language using ancient Greek reserved words.
        
         | Flop7331 wrote:
         | I've always wanted a Spanish DB query language. SQL is very
         | boring. It needs some pizazz and somewhat more lyrical language
         | than what we have.
        
           | kolme wrote:
           | SELECCIONA * DE CLIENTES CUANDO TELEFONO SEA NULO
        
             | dullcrisp wrote:
             | I do like that
        
       | yas_hmaheshwari wrote:
       | I thought "the right way" was to do everything in Rust :-)
        
       | wavemode wrote:
       | My brain read the title as "PHP interpreter written in Go" - I
       | assume because such a thing -wouldn't- be an abomination...
        
       | withinboredom wrote:
       | Can you compile frankenphp to run php?
        
       | rzz3 wrote:
       | I have never simultaneously seen something both so amazing and so
       | horrible :) No but really, this is impressive.
        
       ___________________________________________________________________
       (page generated 2024-08-24 23:00 UTC)