News for hackers. Stuff that matters.
Re:Show HN: AsciiDots – a 2D esoteric language inspired by c... by aaronduino on Monday August 07, 2017 @10:22AM (#14947629)
Author here, I'm open to any suggestions or feedback.
Re:Show HN: AsciiDots – a 2D esoteric language inspired by c... by Someone on Monday August 07, 2017 @07:08PM (#14952044)
Suggestion: if you want it to be more "inspired by circuits", remove this feature:

  + is the crossing of paths (they do not interact)
That's not how the real world works. Instead, make a feature where source file names can include metadata declaring which layer in your printed circuit board they describe, and add a way to drill holes in all layers (lowercase 'o'?)

That also will allow you to make the front layer contain nothing but outputs, so that one could, for example, write a program that mimics pong or a digital clock (or basically everything)

That also can make you get rid of warps and that weird "Define warps at the beginning of the file by listing them after a %$" rule.

Also, libraries would simply be additional layer files that can be rotated and translated to their right location. Programs using one would have to provide connectors to that layer in just the right places.

Re:Show HN: AsciiDots – a 2D esoteric language inspired by c... by davemp on Monday August 07, 2017 @12:44PM (#14948890)
Neat idea, I really like it.

The only comment I have is that the `__main__.py` looks like a bit like spaghetti with ~1200 lines, multiple classes, and scattered global state. Not really a big deal unless you plan on growing the project or using it as a portfolio piece. Also in my opinion the project really is a prime portfolio piece, it shows creativity, polish, and theoretical understanding.

Re:Show HN: AsciiDots – a 2D esoteric language inspired by c... by aaronduino on Monday August 07, 2017 @01:59PM (#14949613)
Yeah. I rewrote the code with a state machine pattern but haven't uploaded the new code yet
Re:Show HN: AsciiDots – a 2D esoteric language inspired by c... by aaronduino on Monday August 07, 2017 @02:00PM (#14949619)
Also, thanks!
Re:Show HN: AsciiDots – a 2D esoteric language inspired by c... by aaronduino on Monday August 07, 2017 @06:48PM (#14951925)
@davemp, I just uploaded the new code, a total rewrite.
Re:Show HN: AsciiDots – a 2D esoteric language inspired by c... by davemp on Monday August 07, 2017 @11:45PM (#14953982)
Looks much cleaner.

Again, I really like the project and encourage you to dive deeper into progamming language theory.

Re:Show HN: AsciiDots – a 2D esoteric language inspired by c... by aaronduino on Tuesday August 08, 2017 @12:04AM (#14954128)
Thanks a ton
Re:Show HN: AsciiDots – a 2D esoteric language inspired by c... by arcstat on Monday August 07, 2017 @01:03PM (#14949068)
Cool idea -- curious if you looked much at the classic 2D esolangs like Befunge in developing this
Re:Show HN: AsciiDots – a 2D esoteric language inspired by c... by aaronduino on Monday August 07, 2017 @05:24PM (#14951389)
Funny thing-- I read about Befunge for the first time in the middle of development.

Befunge is a really fun language, but I decided to continue development of AsciiDots because I find it more legible (not to discredit Befunge)

Re:Show HN: AsciiDots – a 2D esoteric language inspired by c... by hamitron on Monday August 07, 2017 @01:59PM (#14949606)
How are potential infinite loops handled? Say you reflect, multiply, and reflect back.
Re:Show HN: AsciiDots – a 2D esoteric language inspired by c... by aaronduino on Monday August 07, 2017 @02:14PM (#14949776)
Right now, it just loops, without freezing the computer.

I think this caused the try-it-online server to crash. (Yeah, it was dumb to have it work like that online)

Re:Show HN: AsciiDots – a 2D esoteric language inspired by c... by cultureulterior on Tuesday August 08, 2017 @11:10AM (#14958590)
Adding support for unicode line drawing characters would be cool
Re:Show HN: AsciiDots – a 2D esoteric language inspired by c... by sillysaurus3 on Monday August 07, 2017 @11:41AM (#14948321)
I liked the factorial calculator.
Re:Show HN: AsciiDots – a 2D esoteric language inspired by c... by aaronduino on Monday August 07, 2017 @11:57AM (#14948475)
Thanks