4 ms·
Author here - happy to answer questions
by muth02446 3y ago
Author here - happy to answer questions
- lelanthran 3y ago> Author here - happy to answer questions What's the goal with this? I mean, where are you going with this? Research language? Scratching an itch? Learning exercise? All good answers, IMHO. But ... is there a real gap in the needs of programmers that Cwerg is attempting to address? If there is, can you explain a little more the actual gap being addressed?
- bobajeff 3y agoI too am curious about this. I've seen other languages with similar features similar such as Odin and C3 but they used llvm and now Odin is trying to use TildeBackend (from cuik c compiler) as an alternative. What i'm really interested in, is if the risc-like IR is a alternative to llvm.
- muth02446 3y agoThis section contains a list of features that are unlikely to be added to the Cwerg backend: https://github.com/robertmuth/Cwerg?tab=readme-ov-file#intentional-limitations https://github.com/robertmuth/Cwerg?tab=readme-ov-file#inten... If you can live without them, it can be a replacement for LLVM.
- muth02446 3y agoCwerg started off as a "Covid side project" with no pericular goal other than seeing how far you can push something that is simple enough be maintained by a single person. Oberon was an inspiration and I'd like to make Cwerg self hosted and maybe work on an OS written in it some day. In term of features, Cwerg is roughly in the same space as Odin, Zig, Hare, etc. (see https://github.com/robertmuth/awesome-low-level-programming-languages https://github.com/robertmuth/awesome-low-level-programming-...) But I am much more willing to sacrifice compatibility for simplicity, e.g. no shared libs, no varargs, no linking with non-Cwerg code etc. I also feel that compilation speed has not received as much attention in the compiler space as it deserves. Go-lang was one of the first to highlight this recently.
- xcdzvyn 3y agoLooking over the Readme, this sounds a lot like Zig. What languages have you taken the most inspiration from?
- muth02446 3y agoHard to say. I created this for inspiration: https://github.com/robertmuth/awesome-low-level-programming-languages https://github.com/robertmuth/awesome-low-level-programming-...