News for hackers. Stuff that matters.
Re:A Programmable Programming Language by hyperion2010 on Saturday February 24, 2018 @06:36PM (#16456143)
Racket isn't really a source to source compiler/interpreter (you could try to write a compiler that converted racket into your language of choice, but that can often be quite difficult). Everything ultimately has to pass through Racket's language semantics, so matching implementation details requires a lot of work if the underlying language spec is large. The #lang C example down below sidesteps these issues because it acts as a pass through to the system c compiler and then handles returning those results into racket, essentially it delegates the language semantics to the c compiler and only deals with how to map the results of calling c code back onto racket objects. Similar issue with the FFI if you want to translate from one language to another, you still have to go through the process of mapping language semantics.

Two examples where languages/parsers have been implemented in racket:

Algol60 is the best and most complete example https://docs.racket-lang.org/algol60/index.html. A python parser has been implemented https://github.com/dyoo/ragg/blob/master/ragg/examples/pytho...

Re:A Programmable Programming Language by araes on Saturday February 24, 2018 @06:54PM (#16456221)
Thank you for the clarification. Even after two articles I obviously still didn't fully get it. Appreciate the help, and the example links.
Re:A Programmable Programming Language by fiddlerwoaroof on Saturday February 24, 2018 @07:10PM (#16456300)
Racket uses macros to transform your language’s syntax into valid racket code, which is then interpreted.
Re:A Programmable Programming Language by skrishnamurthi on Sunday February 25, 2018 @05:02PM (#16461443)
No, this is far too glib, and the last part is wrong. See https://www.hashcollision.org/brainfudge/ instead.
Re:A Programmable Programming Language by skrishnamurthi on Sunday February 25, 2018 @05:02PM (#16461445)
Try reading https://www.hashcollision.org/brainfudge/ and see if that helps.