Ask coding questions

← Back to all posts
Can we make a new Programming Language
[deleted]

Hello friends, I know this is weird but Let me just Say it.
Is it actually possible to create a new programming Language like C++ and other. I saw Go( A language made by Google). So is it actually possible, I know it is not within my reach but if the whole team of Repl.it comes together,it is possible. Just a suggestion to start a new project. I found a few videos on YouTube and got inspired though nothing went in my head 😩

NOTE

I have no idea about it just an inspiration.😃

Commentshotnewtop
StudentFires (327)

It is very possible, as we wouldn't have anything but binary right now. I'm pretty sure this message was sent using JavaScript, and it was made by someone (or more, most likely), wasn't it? Of course, it was! But the real question is "WHY"? Why should we make a whole new language when there are thousands? Why is yours better than what's available? Are you trying to make a better version of C++? It's still being updated, and there's D anyway. Are you trying to make a stricter version of JavaScript? There's TypeScript already. Are you trying to make a language specifically for graphing? Too late, already done, I think that'd be R. What's it run context? Will it be executed in a browser, on a computer? Is it fast, optimized, efficient? Will it work on a Mac, Linux, or a Windows system... or all of them?

Lastly, and most importantly... making a new language is EXTREMELY hard, okay that's not necessarily true, but making a good + useful language is anything but easy.

[deleted]

@StudentFires Every Language has its pros and cons. Every thing has its own advantages and disadvantages,that may or may not be parallel or we can say appropriate to our needs. Hence it is better to create something that fits our needs. According to your views no new language like C++, Java and others won't be discovered. We would have sticked to FORTRAN.

CaptainAnon (116)

@StudentFires Fortran was the first programming language.

CaptainAnon (116)

@MrHackman Fortran is an awesome programming language.

[deleted]

@CaptainAnon

Did not try SO IDK

[deleted]

@CaptainAnon IDK= I don't Know

CaptainAnon (116)

@MrHackman I was wondering what 'SO' meant.

[deleted]

@CaptainAnon So in English sorry for the Caps

CaptainAnon (116)

@MrHackman Oh, no worries. I was just momentarily confused :).
Fortran is really good for numerical computing.

[deleted]

@CaptainAnon Seriously, I have no Idea about it.

[deleted]

@CaptainAnon

It seems really good.

CaptainAnon (116)

@MrHackman It's got great concurrency and works really well for anything linear algebra. Not so good for anything else.

[deleted]

@CaptainAnon Once it was the best perhaps

CaptainAnon (116)

@MrHackman It's still the best in its field, but designed for specific applications only within the domain of HPC (high-performance computing).

[deleted]

@CaptainAnon Anyway this is going out of the topic.

Viper2211 (56)

Excuse me, but could I join? I didn't see this post until now! @MrHackman

[deleted]

@Viper2211 Actually this was an idea to unite the full repl.it team to work under a single project but till now no initiative is taken to start . So you are not late.☺️

Stay focussed on this thread until something is done and an initiative is made.

StudentFires (327)

@MrHackman I didn't give my views, did I? I just questioned why. We would still be using binary or assembly today, as no languages would've been developed, but they improved upon the current options and filled a niche, so we have them.

DynamicSquid (2242)

@StudentFires Making a language is good practice. But you're right on that, I've never made one since it's extremely hard to do so

[deleted]

@JadenGarcia It is too old bro.

[deleted]

@StudentFires When you ask why,you question the proposal. Anyway you are interested now. I guess.

[deleted]

@DynamicSquid Yes. A new Language is second hardest project in the world of programming. Hardest project is making an OS. But we don't need to work on it.

CaptainAnon (116)

@MrHackman I'd dispute that. I think there are much more tricky things; numerical computing (I'm including machine learning in this as well as the classic algorithms), networking and databases are pretty hard.

CaptainAnon (116)

@JadenGarcia FORTRAN was the world's first high level programming language. Assembly was the world's first set of abbreviations for programming with.

[deleted]

@CaptainAnon 🤷 Did not try

luffy223 (6)

I am more of intrestented on the unity of repolers
Why not make repl.it more into an active place like a game
levels and leguse depending in your programing knolwedge and making every legue with the same group and chat with some sort of missions so to level up and the final two missions is to make a lungusge then a n os
if you want to unite all repolers into one project you should give them the platform (an imaginery one) to grow @MrHackman

MrEconomical (2197)

this question has already been answered by a lot of people but I'll just restate what I consider the important points:

  • Yes, it's possible to make a programming language
  • There's not really a point to make a useful language since lots of already been made
  • Making a programming language is EXTREMELY difficult. In fact, it's one of the most difficult things to do if you are making it properly with an interpreter, lexer, parser, compiler, etc. I would rank it only a bit less difficult than making an operating system itself (if you are actually making the entire compiler)
  • Most "programming languages" you see on repl.it are fake and not really programming languages they just use lots of text replacement and regex
[deleted]

@MrEconomical VERY TRUE actually very few know it and they claim to make their own. They don't know that a full well established Company(GOOGLE) sat down at one place to develop a language GO. hence I asked the full Repl.it also to do the same

BUT>>

😩

all are scattered to their own.

Highwayman (1316)

@MrEconomical

lots of text replacement and regex

I’m trying to make one with someone, but that’s what they are trying to do, and I don’t know how to break it to them that that’s bad and now I’m sad :(

You can ignore this post if you want thanks for listening or not either way thx.

Highwayman (1316)

@DynamicSquid 🤷‍♂️ Is what it is I guess.

DeaconBurgess (74)

Im actually making one with Chezcoder

eekboi (166)

Yes, making a coding language is possible (even on repl). I've helped make a few.

AdriaDonohue (53)

My brother is making one right now so yes,it is possible!😁

finlay44111 (39)

I got a book a few months ago, and it went through from the basic logic gates up to a high level language (i think it was rust) and it showed you all the steps, and you got to build a design of a basic computer, an assembly language a compiler and a high level language. I would recomment it since it has some stuff on compilers. The book's name is 'The Elements of Computing Systems', Written by Noam Nissam and Shimon Schocken.

[deleted]

@finlay44111 Thanks I will see to it.

StudentFires (327)

Update: I just remembered... amasad, CEO of repl.it, is already making a language: https://repl.it/talk/learn/Announcing-Basic-Language-With-Graphics-Beta/31741

[deleted]

@StudentFires Oh no Basic is a language bro.

First appeared: May 1, 1964; 55 years ago

StudentFires (327)

@MrHackman Of course, I'm aware that BASIC is a language, but I don't think you understand what he's doing, go check it out.

[deleted]

@StudentFires Yes but the commands look like a remake of Basic.

StudentFires (327)

@MrHackman It is. Also, BASIC is a family of languages, not 1 language.

[deleted]

@StudentFires Hmm. With Qbasic, VB

[deleted]

@CodeABC123 I will look into it. But this is such a project no tutorial will be of much help.😩

rediar (292)

I propose the language developed be called TimChenese in honor of the great Tim Chen.

[deleted]

@rediar or Ripple in honor of Repl.it but it is too early to say as nothing is done till now.

JacksonPhilips (45)

This would be a very fun project, although I'd keep it simple.

[deleted]

@JacksonPhilips This is the hardest project.

Pygrammar (2)

Yes it is possible.(We need the whole Repl.it team to unite as you said)

[deleted]

@Pygrammar I KNOW.

LiamDonohue (279)

im in the process of making one

[deleted]

@LiamDonohue Great 👍

RayvelArjoon (68)

@LiamDonohue How do you make it? Do you need a specific programming language to program another language?

[deleted]

@RayvelArjoon Yes. Like Java was made in C++

CaptainAnon (116)

@RayvelArjoon You use bootstrapping; the first version of the programming language is written in another language and subsequent versions are written in itself.

[deleted]

@CaptainAnon How to do it is unknown to me.

DeaconBurgess (74)

I could possibly help

[deleted]

@DeaconBurgess Great! Stay focussed on this thread.👍

DeaconBurgess (74)

@MrHackman Will any body else join in

[deleted]

@DeaconBurgess

🤷

Don't know.

DeaconBurgess (74)

@MrHackman I remember I tried to make a coding language called rerf

DeaconBurgess (74)

@MrHackman I will remake it but what language should I use

[deleted]

@DeaconBurgess Better use C or Python as there are tutorials on Youtube for them. YEET. Happy Coding

[deleted]

@DeaconBurgess Switch to multiplayer if you need assistance.

DeaconBurgess (74)

@MrHackman Ok I might invite a few people to help

DeaconBurgess (74)

@MrHackman I can use both python and c for rerf

[deleted]

@DeaconBurgess Yes.Better to stick on one as both has its own flaws. So you will end up to nothing.

DeaconBurgess (74)

@MrHackman should rerf be for game development?

DeaconBurgess (74)

@DeaconBurgess Just so you know I might also make a game engine for rerf

[deleted]

@DeaconBurgess Depends on the advantages. First create then decide its pros and cons then about games and all. Very powerful ones can be used only for such things👍

theangryepicbanana (1602)

It's always possible to make any sort of programming language. If you're interested, craftinginterpreters is a really good place to look at if you want to learn how to make a language. I hope that helps :)

[deleted]

@theangryepicbanana Would you like to help. Nothing is possible without implementation

theangryepicbanana (1602)

@MrHackman It depends on what your goals are for the language and which language you're planning to implement it in. I'm already working on my own language so idk

[deleted]

@theangryepicbanana Is it the Red.js one?

theangryepicbanana (1602)

@MrHackman Red.js is more of a language recreation than an original language. This is my actual language I'm making

sugarfi (466)

Absolutely! In making a language, there are three main things you need to do:

  • First, write a lexer, which takes a bunch of code and splits it into tokens. Your lexer might convert a = 5 to [(a, name), (=, op), (5, val)]. This is needed so the computer can understand the code you enter.
  • Then you need to write a parser, which takes a list of tokens and generates a parse tree, which is just a more organized form of the token list. The parse tree for [(a, name), (=, op), (5, val)] might be program [assign [a 5]] or something similar.
  • Then you make either the interpreter or compiler. There are three main things to do here: one is to run the parse tree directly. Another is to compile it to a different format, like C compiles to machine code. The last one, and most common, is to compile it to bytecode, which you then execute. This is what many languages, including Lua and Python, do. Bytecode is just like machine code or something, only it is only for your language.
[deleted]

@sugarfi Let's start of all repl.it programmer together

sugarfi (466)

@MrHackman that would be cool, but you would have to have some way to get everyone to work on it and some way to make sure they stayed organized. Get that done and I'll be happy to help!

[deleted]

@sugarfi I know but it wont be easy. Many are making there own language so a sole organised making is not easy until.....

CaptainAnon (116)

It's definitely possible, the question is what advantages would said new language have over existing languages?

[deleted]

@CaptainAnon If all support that it is possible,It must be implemented.For nothing is possible without implementation

CaptainAnon (116)

@MrHackman But why would people use it if it doesn't do anything different to existing programming languages and is less well known and thus less desirable from a career point of view and has a less strong community than existing languages?

sugarfi (466)

@CaptainAnon if it looks better or is easier to use they might use it even if it doesn't change anything.

CaptainAnon (116)

@sugarfi Other languages have large communities which can provide support - e.g. Stackoverflow questions.

[deleted]

@CaptainAnon Make a community in Repl.it itself for it like Golang

CaptainAnon (116)

@MrHackman But why wouldn't people on repl.it use other languages they already know such as Python which have decades of optimisation under their belt?

[deleted]

@CaptainAnon Yes but as I said that a new language will provide undue advantages. If a single language provide all advantages of Java, C,C#,C++,python and all. They will learn it. It is an all in one like all in one tacos

CaptainAnon (116)

@MrHackman The problem here is that you can't have everyting. You have to pick and choose. The flexibility that Python offers comes directly at the expense of performance, due to dynamic programming.

[deleted]

@CaptainAnon Hmm. But we must focus the best or the advantage needed at this era of coding as of now.

CaptainAnon (116)

@MrHackman I think the downside with building domain-specific programming languages is that domains evolve rapidly and the languages built around them are likely to go out of fashion with the domain.

sugarfi (466)

@CaptainAnon yes, but you need to actually make a language before you make it popular and different.

[deleted]

@CaptainAnon Any positive?

[deleted]
CaptainAnon (116)

@sugarfi I don't think that's true. You can't just start building the translator without knowing what the language looks like given that the design of the translator is intimately bound together with the function the language is designed to deliver.

sugarfi (466)

@CaptainAnon it doesn't have to be a translator: in fact most languages are interpreted or compiled, rather than transpiled.

Highwayman (1316)

I know someone made at the least a transpilar on here a while ago, also someone else made a lua interpreter and a third person was in the process of making a c compiler I think it was so it’s definitely a thing :P

[deleted]

@Highwayman yes compiler and transpilers are a part of making a programming language but a full Language need a lot of work, eh?

CaptainAnon (116)

@MrHackman A compiler is the complete translation machinery for a programming language. True, some run-time support and a standard library might be needed, but the most tricky part is the translator.

[deleted]

@CaptainAnon Hmm.As bytecode is the advantage of java. All languages can't translate the source code to bytecode.

CaptainAnon (116)

@MrHackman True, but why wouldn't people use Java instead of the language we might write?

[deleted]

@CaptainAnon Why people use GO (language made by google). Also Java has its own cons. So if we make the language to remove all the cons (pretty hard). Why people won't use it?I

Highwayman (1316)

@MrHackman con number 1: it uses byte code.

Making it

S L O W

[deleted]

@Highwayman But platform independent.

Highwayman (1316)

@MrHackman the again. You are making an interpreter, so I guess it’ll be slow anyways,

[deleted]

@Highwayman ??? hmm

CaptainAnon (116)

@MrHackman Go has distinct advantages which don't exist in other languages to date. It also has the corporate backing of Google and has a clear domain of application in writing microservices.

[deleted]

@CaptainAnon That is undeniable though.🤔

[deleted]

@CaptainAnon Check out the advantages

Golang has efficient concurrency, like C, C++, Java, and at the same time concurrency in Go is done much easier thanks to goroutines, channels, and garbage collection.

CaptainAnon (116)

@MrHackman True, but our language would have to have advantages which haven't been implemented yet.

[deleted]

@CaptainAnon

If we make it and we need some one with a hacker plan as they have unlimited invites

CaptainAnon (116)

@MrHackman I have a hacker plan, and I'm happy to create the repl but I think that we need to establish in what way our programming language would be different.

[deleted]

@CaptainAnon Only way to do that is to contact the makers of Repl.it like @amasad

CaptainAnon (116)

@MrHackman I don't think that's necessarily true. What problems do you see with existing popular languages such as Python?

[deleted]

@CaptainAnon I said in the question

Just a suggestion to start a new project. I found a few videos on YouTube and got inspired though nothing went in my head 😩

Highwayman (1316)

@MrHackman I agree with @CaptainAnon , ya’ll definitely should think about how your lang will stand out + all those other specifications.

Nice think tank you got going here by the way :P

Let’s make a small list of things we have discussed so far in the thread about programming languages.
1) true speed (idk - eh)
2) portable "compiled" results (byte code - coolio)
3) efficient concurrency (goroutines - noice)
4) general ease of use (python/go - yee)
5) nothing else.(at least that I’ve seen)

Of these so far, what is it ya’ll want the most? What else do you guys like about other languages? What things do you guys hate about other languages?

[deleted]

@Highwayman I am making a list in a pastebin

Highwayman (1316)

What do you have down so far? @MrHackman

[deleted]

@Highwayman Actually NOTHING

Highwayman (1316)

@MrHackman
Oh. :(

Well, I mean, you got 4 things right there that I made..