Programming Language Jam -- Let the hacking begin!
UPDATE: how to submit your project
Excited to kick-off our inaugural Programming Language Jam. If you're just hearing about this, or need a refresher, then please visit the following links:
If you haven't signed up yet, or think someone else might be interested, it's not too late to do so now. We'll keep registration open for another week.
We're keeping the theme open-ended with the main criteria being "freshness" or new ideas. We won't be publicizing our complete judgment criteria because that would do the opposite of encouraging new ideas. The most important thing is that you get to a working prototype of an interesting language. Everything else is secondary.
If you want to compete but don't have a team, please visit our discord, we've set up a channel for you to meet others wanting a team-up.
If Repl.it is missing native support for your favorite language or tooling. Then you have a few ways you can make it work:
- You can open a shell terminal from your repl and use the tool directly because it might be already available on our base image (cmd/control+k and click "open shell")
- You can configure the environment using the .replit file. See docs for details. See also how I made Haskell Cabal work in Repl.it without native support.
- If your dependency is not available on the base image, consider sending a PR to polygott, our open-source base image.
- You can also simply download a binary on the container and run it directly. You can do that for languages and dependencies
- On bash repls you can also use
pkg-installto install dependencies that you otherwise would use apt-get to install
P.s. we're hiring a language hacker to help us make our language tooling better.
But the most straightforward thing to do would be to use a language that Repl.it supports natively and fully. We know Repl.it is not the most complete solution as we prize simplicity over completeness. We also don't expect you to build the most optimized or complete language for this jam. Focus on making a compelling prototype.
If you're bringing your existing language and for some reason, it doesn't run on Repl.it, consider adapting your language ideas to a new, perhaps simpler prototype. After the jam, we'll let you take those ideas back to your language.
Ultimately, this jam is about having fun and getting more hobbyists interested in programming language design. We don't intend to use any of the languages you produce in production, nor does this have any immediate business value for us beyond promoting our platform as a fun place to code.
We'll do our best to answer questions, merge pull requests, and provide assistance. It's worth noting though that the core Repl.it team is very small and busy at this time of year as we prepare to serve our education customers in the fall semester. However, our community is incredibly helpful. Feel free to post questions on this forum, or ask for help on our discord. Also, check out other programming language communities like ProgLangDesign.net
At some point towards the middle of the jam, we'll release instructions and guidelines on how to make your submission.
Happy hacking and we're excited to see what you build!
Can I use a programming language to create a programming language
(can I use python to create my entry?)
@Benramin Ok. Good question.
Yes, you are going to need another programming language to create your own programming language.
No, I would not use Python to even consider attempting to creating a functional programming language.
Python is a high-end programming language, garbage collected and is slow in-and-of itself.
Using Python to make your programming language will not be the best choice because then not only does the Python compiler compile for your language, but your language will be twice as slower than the compilation of Python and your language will fully depend on the compilation and error checking that Python is doing, not only this but you will have no control on how your language acts, just the keywords and the syntax
Using C, however, would be the way to go!
Python is acceptable with a compiled language because the bytecode/machine code usually runs really fast. The compile time wouldn't be that fast, but most people care less about the compile time, and more about the run time.
But D is better than C due to it's amazing features.
@nk1rwc We all have opinions. To me C is better, to you D is better.
And, if you are writing the programming language source code you should kinda care about the compile time.
But, Python has horrible runtime as well. I have watched many youtube videos talking about all of the fundamental ideals about Python that everyone should know and nearly everyone of those videos stated that the compilation time as well as the runtime isn't the best and is often times counted as being slow
@nk1rwc C is a compiled programming language which is why it's runtime and compilation speed is quite fast. Not only is Python slow due to the fact it is interpreted, but it is also Garbage Collected and you do not have much Low End capability, or features I guess you can say, that allow you to get hands-on with building a programming language.
Just the fact that Python is garbage collected is probably a big NO NO when it comes to programming a new programming language. You are going to want to have full access on how memory is being managed. You want to be in control, you wouldn't want your language depending on another language that is depending on it's compiler to allocate memory..
Is there some policy about my language promoting before the Jam ends? I don't think that judging will take the hype into account, but maybe it is prohibited in turn, or some special place exists out of general forum areas.
you could use an IDE, it is the IDE which does that job, eg, you could build an electron shell for it.
in terminal, you could split the string into words and check for keywords and edit the split strings to their color codes by appending to the start with their color and the reset escape code at the end for each item in the resulting list from this method. then you just put it back together... BUT DON'T USE INPUT, i suggest using something like the getkey module. @PDanielY
you just need lists for the definitions eg
PURPLE = "\033[0;35m" WHITE= "\u001b[37m" sytax1 = ["print", "in"] string = "print 'hi'" string = string.split() # splits up into ["print", "'hi'"] stuff = "" for i in range(len(string)): if string[i] in sytax1: syntax=PURPLE+string[i]+WHITE stuff= stuff + syntax else: stuff= stuff + " " + string[i] print(stuff)
that is an example
view more colors here --> https://repl.it/talk/learn/ANSI-Escape-Codes-in-Python/22803
@mamcx one method is creating a language extension for vscode to add syntax highlighting. you can find some info about it here: https://code.visualstudio.com/api/language-extensions/syntax-highlight-guide. naturally, that would only work with vscode. if, for example, you are showing the language in the browser with the monaco text editor, they support this: https://microsoft.github.io/monaco-editor/playground.html#extending-language-services-custom-languages. the latter would probably be the best thing to do because iirc replit uses the monaco editor
What interface options available now in a Repl.it sandbox for a language with interactivity such as classical Smalltalks?
I don't think that something like PyQt5 works, so maybe Web UI wrapper exists?
im new to this, what do you do