I am a programming language developer. I love just testing out new things to do with programming languages! Do you think you'd actually make something like this?
@MocaCDeveloper i might if i get really bored but i would use the llvm library to compile to portable and executable machine code instead of bytecode for performance
@DungeonMaster00 I don't know anything about C++. Yeah, it's like C but with classes, but I don't understand its syntax.
I am going to attempt to do it with C! I think using the Clang compiler to run C code directly with llvm will work, but I don't know, seems like that's the same as executing the C code into a .o file.
It will be a learning process, that is for sure!
I will keep you updated if I find out anything interesting over llvm!!
What is your wildest programming language idea? This could be fun (silly) ideas or really cool and useful ones.
Go!
Also on le twatter: https://twitter.com/replit/status/1275525512861900800
It will be basically a combination Swift, Go, Lua, and D.
It will have a massive standard library suitable for many projects.
It will have documentation comments via a subset of Markdown.
It will be compiled to efficient bytecode for portability.
The bytecode intepreter will be fast and efficient.
It will have support for both low level and high level programs.
It will be object oriented.
The programs will be class based.
It can have built-in functions equivalent to assembly instructions, to reduce the need for pure assembly.
Readable syntax.
@DungeonMaster00 That would be interesting!
I am a programming language developer. I love just testing out new things to do with programming languages!
Do you think you'd actually make something like this?
@MocaCDeveloper i might if i get really bored but i would use the llvm library to compile to portable and executable machine code instead of bytecode for performance
@DungeonMaster00 Is llvm a C++ library?
What is llvm, lol.
Me and Coder100 have been talking about transpiling but also compiling my language with the llvm library but we don't know anything about it.
Think you can kinda lay it out and explain it?
@MocaCDeveloper this will basically combine elements of other programming languages into one package. it will also have an optional garbage collector
@DungeonMaster00 So is llvm a C++ library?
@MocaCDeveloper clang is repl.it's c/c++ compiler used.
it uses llvm to compile
it is also used in the official compilers for swift and rust
@MocaCDeveloper i dont know but it's portable and its for compilers
@DungeonMaster00 So llvm can be used with C, correct?
Because C is the language I am writing my language in..
@MocaCDeveloper i dont know
maybe but i would rather use c++ for it's safety and the fact that it's easier to use
@MocaCDeveloper and i might use d if there is llvm library support for making compilers with it.
@MocaCDeveloper d is improved c and c++
@DungeonMaster00 So, what I am getting from this is to:
Transpile my language into C++, then use llvm to compile it..
@MocaCDeveloper hmm i would read tutorials i never used llvm before but it sounds good
@MocaCDeveloper i would try writing compiler with c/c++ and using llvm
but you can do whatever
@DungeonMaster00 yeah I am looking it up. According to my 5 minute research I can use the Clang compiler for it and compile my C code into llvm..
@DungeonMaster00 Yeah I am probably going to switch my C compiler over to Clang since I found a article that explains how to run C code with llvm
@MocaCDeveloper not exactly the best solution, but it may work
im guessing since i never actually created a language bedore
@MocaCDeveloper cool
i would use c++ but good luck with c
@MocaCDeveloper oh cool i found a version of llvm for d
@DungeonMaster00 I don't know anything about C++. Yeah, it's like C but with classes, but I don't understand its syntax.
I am going to attempt to do it with C!
I think using the Clang compiler to run C code directly with llvm will work, but I don't know, seems like that's the same as executing the C code into a .o file.
It will be a learning process, that is for sure!
I will keep you updated if I find out anything interesting over llvm!!
@DungeonMaster00 Sweet!
@MocaCDeveloper ok good luck
this may help if your wondering how to use llvm with d (thats my personal favorite language)
@MocaCDeveloper now to figure out how to install the llvm-d
@DungeonMaster00 I've heard of D I've just have never been motivated by it