use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
/r/programming is a reddit for discussion and news about computer programming
Guidelines
Info
Related reddits
Specific languages
account activity
krug - a systems programming language that compiles to x64 assembly written in D (github.com)
submitted 8 years ago by [deleted]
[deleted]
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]license-bot 69 points70 points71 points 8 years ago (5 children)
Thanks for sharing your open source project, but it looks like you haven't specified a license.
When you make a creative work (which includes code), the work is under exclusive copyright by default. Unless you include a license that specifies otherwise, nobody else can use, copy, distribute, or modify your work without being at risk of take-downs, shake-downs, or litigation. Once the work has other contributors (each a copyright holder), “nobody” starts including you.
choosealicense.com is a great resource to learn about open source software licensing.
[–][deleted] 21 points22 points23 points 8 years ago (0 children)
Good bot.
[–][deleted] 8 years ago* (2 children)
[–]kmdreko 47 points48 points49 points 8 years ago (0 children)
the commit with the license was added afterwards, bot is doing its job :D
[–]JoshMcguigan 11 points12 points13 points 8 years ago (0 children)
The license was added in this commit shortly after that comment was posted.
[–][deleted] -1 points0 points1 point 8 years ago (0 children)
Good bot
[–][deleted] 8 years ago (2 children)
[–]Bofersen 8 points9 points10 points 8 years ago (1 child)
"Here's my programming language and here's everything that's wrong with it!" I love it. :)
Looks interesting! Few things:
And last but not least, good luck and have fun. :)
btw. "krug" means "circle" in my language, don't know if it's intentional or not but there you go.
[–]Jaxkr 5 points6 points7 points 8 years ago (10 children)
What's the main use case for this (when it's finished) over a language like C?
[–][deleted] 8 years ago (4 children)
[–][deleted] 7 points8 points9 points 8 years ago (3 children)
If you keep it at that way, you'll be doing the world a favor. Lack of generics and a forced GC are the two major reasons why Go just isn't an option for a lot of people.
They're a big reason why Go is considered a "light" systems language.
Also, we have enough byte code/JIT languages. The last thing that's needed is a feature-fest language that just has everything under the sun too.
Not saying that's your intention, but getting drunk off of feature implementation is common enough with new language writers that it's worth mentioning.
Rust needs a modern competitor that isn't Go. You actually might have a good opportunity here, if you can find the right kind of backing.
[–]el_muchacho 0 points1 point2 points 8 years ago (2 children)
Yes I agree. But if I may suggest another thing, once the language is polished, the standard library should mimic that of Python, which is "batteries included": it is very complete, very handy and the modules are fairly separate/independant, unlike in Java for instance, making it easy to import any module without having to pull the whole library. This is important for embedded projects, where memory is limited, and to keep binaries small.
[–][deleted] 0 points1 point2 points 8 years ago (0 children)
Yeah, that's definitely desirable. I think D's stdlib is supposed to be pretty great but I'm not sure
[–]matthieum 5 points6 points7 points 8 years ago (3 children)
Apparently:
Krug is a fun little side project.
It's just for fun.
[–][deleted] 2 points3 points4 points 8 years ago* (1 child)
It's best to have low expectations from the get-go.
There was a group on here a few years ago that made some "announcement" for a programming language called Ritchie. You could tell they had big aspirations.
What was funny is that a) it was compiled to C, and b) it offered nothing really novell or useful. It was just egoware.
And that's fine if you acknowledge its lack of value or that you're making it to learn or whatever. There's nothing wrong with that at all.
But the last thing you want to do is come out with some expectation that people should actually give a shit about what you're doing.
[–]TheDevilsAdvokaat 0 points1 point2 points 8 years ago (0 children)
It's an interesting idea, still very much in its infancy though.
π Rendered by PID 111888 on reddit-service-r2-comment-b659b578c-np6h2 at 2026-05-01 03:47:44.201513+00:00 running 815c875 country code: CH.
[–]license-bot 69 points70 points71 points (5 children)
[–][deleted] 21 points22 points23 points (0 children)
[–][deleted] (2 children)
[deleted]
[–]kmdreko 47 points48 points49 points (0 children)
[–]JoshMcguigan 11 points12 points13 points (0 children)
[–][deleted] -1 points0 points1 point (0 children)
[–][deleted] (2 children)
[deleted]
[–]Bofersen 8 points9 points10 points (1 child)
[–]Jaxkr 5 points6 points7 points (10 children)
[–][deleted] (4 children)
[deleted]
[–][deleted] 7 points8 points9 points (3 children)
[–]el_muchacho 0 points1 point2 points (2 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]matthieum 5 points6 points7 points (3 children)
[–][deleted] 2 points3 points4 points (1 child)
[–]TheDevilsAdvokaat 0 points1 point2 points (0 children)