Skip to content
Sign upLog in
← Back to Community

Polygott

Profile icon
Masy

Does anyone know about Polygott and could teach me how it works

Voters
Profile icon
imamit01
Profile icon
beatdropper
Profile icon
Masy
Comments
hotnewtop
Profile icon
SPQR

Polygott, to the extent of my knowledge, is an experimental repl.it language which allows languages to use binaries from other languages thus allowing for interaction between scripts from multiple languages. It uses Makefile syntax (basically modified Bash) and can do all sorts of useful things like compile external libraries from source, add additional compilation options, etc. Its most useful (imo) feature is that it can install ubuntu packages using install-pkg PACKAGENAME which opens up a ton of possibilities for porting things and such, or for utilizing libraries not available in native repl.it

Some example programs utilizing Polygott for various purposes:

This port of Doom 1
This SDL program (SDL is normally not usable on repl.it)

If you have any more questions @ me :)

Profile icon
Masy

@SPQR
so in theory you could run a instance of team viewer on a polygott makefile?

Profile icon
SPQR

@Masy
if it runs on ubuntu Linux, in theory, yes

Profile icon
programmeruser

@SPQR
how do you use it to port stuff? All I know is

.PHONY: run run: <bashcommands>

Sorry for necroposting.

Profile icon
SPQR

@TheProgrammer3
That is a year old comment, jeez!
basically you port it by typing in the bash commands one would use to install and run the program you're porting in an Ubuntu terminal.

Profile icon
CrazyVideoGamer

@SPQR
When I run: "undefined reference to `IMG_Load'

Profile icon
programmeruser

@SPQR
sorry for the necropost again, but polygott IS NOT just a Makefile. Polygott is repl.it's evaluation Docker image. You can find its source code at https://github.com/replit/polygott. If you open a new polygott repl, you will see run-project under the run target. This is a special repl.it command that tries to guess the language type and runs the project. It is NOT just a makefile (again). The reason polygott uses a makefile is because polygott just automatically invokes make if other languages don't work.
@Masy
I know it has been 2 years, but can you mark one of these comments as correct?

Profile icon
Zavexeon

@SPQR
may be able to help.

Profile icon
nupurkrishnan

#how do you get Polygott?
Do you say import polygott?