Coalton is a really interesting language. Staticly typed common lisp. But still immature just like zig.
From what I have seen of it, including some of the papers (many well above my head), it is right back to basics like the early programming days. It kind of has a warm and cozy feeling of nostalgia.Lets just say that the first development environment for quantum computers will very likely be the equivalent of assemblers.
Until know i never ever seen even a vi-editor written in quantum-computing. So it must be still a long way to go.Lets just say that the first development environment for quantum computers will very likely be the equivalent of assemblers.
Indeed. In some ways when compiled, that isn't a program any more than a picture of a cat is. What needs to run it is the .NET VM which certainly has a lot of C.See https://github.com/dotnet/roslyn ... no C in there.
Well, again ... it's the compiler, and that's the only thing that implements the language, and of course, it's entirely written in C# (there's vb.net in this repo as well because it also contains the vb.net compiler).That isn't a program any more than a picture of a cat is. What needs to run it is the .NET VM which certainly has a lot of C.
libc
can only be written completely in C because the OS API/ABI it needs to use happens to be C (and that's not even entirely true, I'm pretty sure at the syscall level, you need some assembly glue!). If you'd need a libc
for an OS written in C# (and, seriously, this indeed existed as a lab project @ms), you'd need to include C# code in it.With a suitable VM, my picture of a cat could also implement the C# language in almost exactly the same way as Roslyn.Well, again ... it's the compiler, and that's the only thing that implements the language, and of course, it's entirely written in C#
VB.NET actually started out life from the early C# compiler.(there's vb.net in this repo as well because it also contains the vb.net compiler).
Honestly, this sounds like you never seriously used C#. As a language, I like it very much. It seems to me like "C++ done right". I'm not aware of anything it can't do. At work, we use it for self-hosted services that perform remarkably well and have a robust design (with a provable "domain layer" because it's implemented in a functional way, using pure functions and immutability).make C# a real language rather than a glorified text-file emitter
The language is good enough (Java with "extras"). I was purely referring to what is generated (bytecode requiring a VM).Honestly, this sounds like you never seriously used C#. As a language, I like it very much. It seems to me like "C++ done right".
It is pretty much this. It strongly increases the need for bindings.Wait, your concern here is that the .NET runtime comes with a virtual machine? I'd say this is completely irrelevant in this context (except for the fact it makes using a C ABI directly impossible because this ABI is always defined in terms of the real machine the code runs on).
Indeed. Though this is closer. As mentioned above, they could bolt on a tiny C frontend (slightly similar to Golang) and continue from there.edit, and then, if you really see an issue with that, just take the example of rust instead which DOES compile to "native" machine-code and still, the rust compiler is (of course) entirely written in rust.
Even better, running on a quantum computer, it will only save the best solution to whatever you typed in inUntil know i never ever seen even a vi-editor written in quantum-computing. So it must be still a long way to go.
Ctrl-x
That would not be my interpretation. I realized when I took NAND to Tetris that a compiler is just a text-processing program. It takes program text and emits a binary suitable for executing under some runtime....Let's start randomly with "C# is written in C". C#, in my interpretation, is the language, so when talking about it as a software product, one can only mean the compiler, and then: no, it isn't...
I am impatiently waiting for quantum computers so that I can run AI algorithms on it using blockchain.Even better, running on a quantum computer, it will only save the best solution to whatever you typed in in
Hopefully using only modern languages and techniques.I am impatiently waiting for quantum computers so that I can run AI algorithms on it using blockchain.
That would be me... wrote quite a bit just to get familiar.(Anyone remembers e.g. Modula-2?)
Perl is also quite good at being slow. Modern compilers are among the most complex things you may write. Perl May be of use for a proof of concept, but imagine building chromium with a compiler written in Perl. Maybe that would be a good idea, developers would be forced to write shorter code again.Lastly, I wonder why more compilers are not written in Perl? It is quite good at text processing.
*Ding ding ding* Bingo!I am impatiently waiting for quantum computers so that I can run AI algorithms on it using blockchain.
Standardization of programming languages existed long before C was even thought about. The first COBOL standard was done by CODASYL in the 1950s. The first FORTRAN standard done by a standards body was 1966 (thence the name FORTRAN-66). Both languages were widely successful; at some point around 1990 or 2000, 80% of all software being run on computers was still written in COBOL. So standardization does not guarantee long-term success (although FORTRAN is still being heavily used, for scientific calculations on supercomputers).What we see is after great success of C, a language being formally standardized, which enabled a lot more interoperability and stability. And I would expect any language that could ever replace C to be standardized as well, and have several competing implementations.
Why is necessary replacement of C? Only to make a "change"? Many new languages are created to replace C in direction "It is too complex, let invent new language which can do the same but is ... easier".We are all talking about replacements for C in this thread.
My guess is probably similar; especially for projects in the last decade. At risk of dredging up my obvious hang-up, if it wasn't for the issue of bindings, I imagine it would also be a lot lower for absolute percentage of C.I don't actually know what fraction of the world's overall software production is in C and C++, but my educated guess is: relatively small, perhaps 20% (or 10% or 30%) of it all.
Why is necessary replacement of C? Only to make a "change"? Many new languages are created to replace C in direction "It is too complex, let invent new language which can do the same but is ... easier".
This doesn't convince me.Because to write C programs without memory errors, programmers have to remember and apply a bunch of rules. If there's one thing that computers do better than humans, it's remembering and applying a bunch of rules.