Live data from Hacker News

Show HN: I'm 17 and wrote a guide on how to build your own programming language

easel.hackclub.com

41–50 of 73 posts

Re: Show HN: I'm 17 and wrote a guide on how to build your own programming language

#41
Excellent work. When I was your around your age, it was QuakeC that exposed me to programming concepts and really sparked my interest in programming. If you’re interested you may want a follow up project to create a stack or register based VM.

Re: Show HN: I'm 17 and wrote a guide on how to build your own programming language

#42
post #58

[stub for offtopicness]

Totally unrelated to the content of your post but labeling posts with "I'm [a teenager] and X" has always irked me. It either serves to undermine the content (older people immediately questioning the authority of a teenager) or people respond with meaningless praise ("Wow, great job! I was playing video games when I was your age!"). It also harkens back to the 2000s and 2010s when the industry was obsessed with "teen…

Definitely just grouchy.

Re: Show HN: I'm 17 and wrote a guide on how to build your own programming language

#43

Very cool. Someone correct me if I am wrong but I dont think this is accurate. >Minimally, should have the following features: variables, looping (think: for/while loops), conditional branching (think: if/else statements) and some form of recursion (think: functions). Why? These are what make a programming language Turing-complete.

Trivially, you can get Turing completeness out of a Turing machine, which does not have these features, so no, it is not accurate to say they're absolutely necessary. There's a practical side to this, though. What sort of syntactic conveniences should you provide such that anyone might actually want to use your language? That's probably what it should say. The mov instruction is Turing complete, but you likely want some higher level of abstraction that allows for things like developer ergonomics, the possibility of type checking, allowing for human readable source code.

Re: Show HN: I'm 17 and wrote a guide on how to build your own programming language

#44
post #38

Very cool. Someone correct me if I am wrong but I dont think this is accurate. >Minimally, should have the following features: variables, looping (think: for/while loops), conditional branching (think: if/else statements) and some form of recursion (think: functions). Why? These are what make a programming language Turing-complete.

In fact, NAND gates are enough to build a Turing complete machine. ;-)

My favorite turning complete language is Fractran - https://en.wikipedia.org/wiki/FRACTRAN

    17 78 19 23 29 77 95 77  1 11 13 15  1 55
    -- -- -- -- -- -- -- -- -- -- -- -- -- --
    91 85 51 38 33 29 23 19 17 13 11  2  7  1
That computes prime numbers.

Iterate through the list (start with n = 2) and iterate through until the fraction is an integer. Repeat with the new number.

For this, after 2, the next value is 15 (when it gets to 15/2). Then it will be 825 (15 * 55/1). Then it will be 725 (825 * 29 / 33) and so on. At some point, n will be 2^x where the sequence of when the number is just a power of 2 will be: 2^2, 2^3, 2^5, 2^7, 2^11 and so on... the exponents of 2 are the prime sequence.

2, 15, 825, 725, 1925, 2275, 425, 390, 330, 290, 770, 910, 170, 156, 132, 116, 308, 364, 68, 4, 30 ...

https://oeis.org/A007542

https://news.ycombinator.com/item?id=35966537

https://softwareengineering.stackexchange.com/questions/2201...

https://web.archive.org/web/20150923211455/http://www.cs.vu....

Re: Show HN: I'm 17 and wrote a guide on how to build your own programming language

#45
post #7

Earlier quoted context omitted.

Totally unrelated to the content of your post but labeling posts with "I'm [a teenager] and X" has always irked me. It either serves to undermine the content (older people immediately questioning the authority of a teenager) or people respond with meaningless praise ("Wow, great job! I was playing video games when I was your age!"). It also harkens back to the 2000s and 2010s when the industry was obsessed with "teen…

This comes up every time someone posts like this, and it's not really very helpful.

Yes, the problem is there are a fresh supply of 17 (or whatever) year olds, who haven't seen the old-man-yelling-at-cloud messages like OPs that are posted when they do this.

Re: Show HN: I'm 17 and wrote a guide on how to build your own programming language

#46
post #7

Earlier quoted context omitted.

Totally unrelated to the content of your post but labeling posts with "I'm [a teenager] and X" has always irked me. It either serves to undermine the content (older people immediately questioning the authority of a teenager) or people respond with meaningless praise ("Wow, great job! I was playing video games when I was your age!"). It also harkens back to the 2000s and 2010s when the industry was obsessed with "teen…

This comes up every time someone posts like this, and it's not really very helpful.

These kinds of feats aren't more or less impressive with age. Maybe the opposite, teens have so much free time.

When I was 17 I was working on a programming language, and I promised myself I would find the time to finish it during college. But during college I didn't have the time.

I have two friends who founded a startup at 16, one of which was quite succesful. I can think of two seperate friends who started a Minecraft hostar at 16, both of which makes up the majority of minecraft servers hosted in the Netherlands currently and one of them is now a generic hostar with his own datacenter.

And this isn't a problem in and on itself, but phrasing it like this discourages older people to work on pet projects. I started working as a Cyber Security TA at a private IT school and older students keep telling me "I'll never be as good as you because I didn't start so young" and it's a harmful mindset. Because it only took me a few years to learn what I know. Stating your age everywhere as a young developer reinforces this mindset in people.

If you want to see a teen/student do cool stuff. I suggest checking Adam McDaniel on GitHub. That dude really is impressive.

Re: Show HN: I'm 17 and wrote a guide on how to build your own programming language

#47
post #58

[stub for offtopicness]

Totally unrelated to the content of your post but labeling posts with "I'm [a teenager] and X" has always irked me. It either serves to undermine the content (older people immediately questioning the authority of a teenager) or people respond with meaningless praise ("Wow, great job! I was playing video games when I was your age!"). It also harkens back to the 2000s and 2010s when the industry was obsessed with "teen…

Kids and especially teens seem to do this implicitly whenever they are doing things that they feel is advanced for their age

Re: Show HN: I'm 17 and wrote a guide on how to build your own programming language

#48

Very cool. Someone correct me if I am wrong but I dont think this is accurate. >Minimally, should have the following features: variables, looping (think: for/while loops), conditional branching (think: if/else statements) and some form of recursion (think: functions). Why? These are what make a programming language Turing-complete.

Trivially, you can get Turing completeness out of a Turing machine, which does not have these features, so no, it is not accurate to say they're absolutely necessary. There's a practical side to this, though. What sort of syntactic conveniences should you provide such that anyone might actually want to use your language? That's probably what it should say. The mov instruction is Turing complete, but you likely want s…

[deleted]

Re: Show HN: I'm 17 and wrote a guide on how to build your own programming language

#49

Very cool. Someone correct me if I am wrong but I dont think this is accurate. >Minimally, should have the following features: variables, looping (think: for/while loops), conditional branching (think: if/else statements) and some form of recursion (think: functions). Why? These are what make a programming language Turing-complete.

Trivially, you can get Turing completeness out of a Turing machine, which does not have these features, so no, it is not accurate to say they're absolutely necessary. There's a practical side to this, though. What sort of syntactic conveniences should you provide such that anyone might actually want to use your language? That's probably what it should say. The mov instruction is Turing complete, but you likely want s…

[deleted]

Re: Show HN: I'm 17 and wrote a guide on how to build your own programming language

#50
post #58

[stub for offtopicness]

Totally unrelated to the content of your post but labeling posts with "I'm [a teenager] and X" has always irked me. It either serves to undermine the content (older people immediately questioning the authority of a teenager) or people respond with meaningless praise ("Wow, great job! I was playing video games when I was your age!"). It also harkens back to the 2000s and 2010s when the industry was obsessed with "teen…

Thanks for absorbing the downvotes. Helpful or not, I mostly agree with your reaction. Let the work stand on its own without injecting identity into it.
Post reply on HN