Comments (7)
Yes you're right. It is far from complete.
I picked the fifty languages that I can install easily on Ubuntu. I wish Ubuntu would provide Befunge, Lazy K, Piet, etc etc. (Unlambda and Whitespace had been also provided when I had written the old version of Quine relay, but unfortunately they were deleted.)
So, I'd like you to become a Debian or Ubuntu developer and provide the interpreters. Then I can support them easily.
Alternative: give me a complete and small (up to about 100 lines) implementation written in Ruby, like unlambda.rb
and whitespace.rb
.
Incidentally, there is no reason that Erlang and PostScript are not included. It is just an accident.
from quine-relay.
http://lolcode.org/ Has an ANSI C based interpreter. A deb might be able to be packaged up for it.
from quine-relay.
Arch has lolcode interpreter aur/lci-git 20110725-1
. We need to check LOLCODE's support for strings.
I was thinking of Rust, but Ubuntu doesn't provide compilers in alpha.
Edit: long strings work, but double quotes can't be escaped. Next language is Lua, so " must be escaped to eg. c=string.char(34)
Edit: also need befunge language implementation
from quine-relay.
@pczarn Actually LOLCODE has the escape character. It is not backslash but colon, though.
"foo:"bar:)baz" in LOLCODE = "foo\"bar\nbaz" in C
The following CodeGen will work. However, the code spills from the template. We need to make the template bigger or the code smaller.
class LOLCODE < CodeGen
File = "QR.lol"
Cmd = "/path/to/lci QR.lol > OUTFILE"
Apt = [nil]
Code = %q(%(hai 1.2\nvisible "_"\nkthxbye).upcase.gsub("_"){PREV.gsub(/[:"\n]/,?:=>'::',?"=>':"',?\n=>":\x29")})
end
from quine-relay.
I found some bytes to throw out.
from quine-relay.
class Awk_Befunge < CodeGen
File = ["QR.awk", "QR.bef"]
Cmd = ["awk -f QR.awk > OUTFILE", "/tmp/cfunge-0.9.0/build/cfunge QR.bef > OUTFILE"]
Apt = ["gawk", nil]
Code = %q(%(BEGIN{s=#{E[D[PREV,?!]]};gsub(/!/,"\\\\\\\\",s);gsub(/./,"\\\\"&\\\\",",s);gsub(/"""/,"75*1-"
,s);print s,"@"}))
end
from quine-relay.
I approve.
from quine-relay.
Related Issues (20)
- Guile Error HOT 2
- Thue.rb HOT 3
- What is your Daily Routine?
- Include TεX in the loop HOT 2
- god is dead and we killed him with quines HOT 4
- dhall error HOT 1
- Language request Q. Was: Q# (quantum programming language) or other representing letter Q, e.g. Arabic Qualb (قلب) HOT 3
- It's not making the vendor dir. HOT 4
- HOW HOT 2
- Consider using dotnet compiler for C# instead of outdated mono HOT 1
- Compilation for Shakespeare Failed HOT 1
- Why not have an issue that questions why or why not why or why not, "Why or why not should we have the repo?" HOT 2
- 3 Language Requests HOT 1
- Error when running through Docker HOT 11
- Language Request - Modula 2 HOT 2
- Emojis HOT 6
- Image missing fonts HOT 1
- Statistics of quine-relay HOT 1
- Package Install Issue HOT 1
- Vlang HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from quine-relay.