- Joined
- Nov 28, 2018
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
It's kind of funny in a sad sort of way that they went to all that trouble developing that elaborate notation system, when an entire symphonic score can easily be represented as a single well-chosen integer with a certain prime factorization.Yes, western music notation doesn't require a fancy editor to read it (and you really don't with Lisp either to read it, it's just that some extenions help), but it already has (most of) the necessary information packed in to it's elaborate, 400+ year old, tested and evolved notation system.
Some people swear by it. Have you looked at new implementations like Squeak and Newspeak?Yeah, no. I should not ask questions I know the answer to. And I've had my experience with Smalltalk - it's shit, as many novel, revolutionary, academic ideas are.
Besides, writing code as a text is basically creating AST, no? Potatoe, potatoh.
You're going to have to play make-believe with me for now, sorryLike what? C'mon man, don't make me do the work for you again. Propose something tangible, make a mockup in Paint, whatever.
But not one good for storing ASTs. ASTs belong in a graph databaseFilesystem is a database.
I found that it varies greatly. People think differently, maybe it plays a roleOr actually try to teach somebody what you're preaching and see how hard it is.
Because the AST is for the compiler, not humans.When you write you code, you don't do it in the terms and abstractions of the AST, you do it in whatever way the language defines its syntax, then a lexer and parser take that stream of characters and emit a AST. Why shouldn't the creation of code, because writing might not even be the appropriate term here, be done directly in the terms of the AST?
Mu (negative). The editor should indent code automatically, using any symbols necessary (or no symbols).Okay okay guys this is going nowhere. We should have a much more productive conversation.
Tabs, or spaces? Go!
Which is BADThe comments, headers, how I format it, having an extra newlines here and there, the file structure, etc. aren't present in the generated AST.
you wc your code? lolNot to mention the problem with having a special snowflake format, where I lose the huge amount of tools that work with plain-text files and now I need a special snowflake editor, a special snowflake grep, diff, wc, version control, "file" management, etc..
Are you against compiled code? Comments are going to quickly lose meaning when the code around them is transformed.Which is BAD
Why shouldn't comments be metadata attached to the code itself?
Mate, I still print out listings of my code on physical paper, and a lot of the 'comments' for a shameful amount of my code are pen-and-paper scribbles and highlighting. Those pages (at least in theory) end up stashed away in a binder somewhere in the office that can (again, in theory) be perused at some later date. If I'm feeling extra bold I might even type up some doxygen, but you can bet your ass it will be incomplete and confusing at best.Why shouldn't comments be metadata attached to the code itself?
Why?Mate, I still print out listings of my code on physical paper, and a lot of the 'comments' for a shameful amount of my code are pen-and-paper scribbles and highlighting. Those pages (at least in theory) end up stashed away in a binder somewhere in the office that can (again, in theory) be perused at some later date. If I'm feeling extra bold I might even type up some doxygen, but you can bet your ass it will be incomplete and confusing at best.
Will things like 'operating on code ASTs' and 'attaching metadata to code directly' and 'actually fucking writing docstrings and unit tests' ever come into vogue? Perhaps, but I hope to be long retired/dead by that point.
Why what? "Why do I not bother too much with redundant ephemeral documentation for my traditionally write-only code for projects that management tends to nix before they ever get traction?" Or "Why do I hope to be out of the software dev game before pointless make-work like proper, disciplined documentation and testing becomes the actual (and not just ostensible) industry standard?"Why?
I mentioned the binder, right?Do you not know about external storage mediums
Eww, no. Could you imagine?or are programming on punch Cards?.
It's a key-value store.It's a lookup table.
Because you're unable to propose anything tangible, that's why. Do some work.Why shouldn't the creation of code, because writing might not even be the appropriate term here, be done directly in the terms of the AST?
This whole line of conversation is just one big "let's make programming Better™ (for a suitable definition of the word) by being both closer and further from the abstraction at the same time". It's like gender - nonbinary, abstractfluid syntaxkin, my pronouns are gcc/g++.Because the AST is for the compiler, not humans.
The comments, headers, how I format it, having an extra newlines here and there, the file structure, etc. aren't present in the generated AST.
Because every single time the whole schtick is to make everything more Functional©™®, as I have stated repeatedly in this topic.Writing an AST for code sounds like the functional-programmer equivalent of singing the praises of writing everything in assembly.
It took me a while to recognize what you're referring to here, but ooh may gawd that is a brilliant response to any "such-and-such notation is so complicated/suboptimal/not functional enough" weenie that I'm stealing it.It's kind of funny in a sad sort of way that they went to all that trouble developing that elaborate notation system, when an entire symphonic score can easily be represented as a single well-chosen integer with a certain prime factorization.
Personally because, as much as I hate weak typing, I hate transpiling even more.Why the fuck is everyone not jumping to replace javascript with typescript. This seems like the most braindead simple choice to me.
That's what I'm saying though. If they just changed browsers to be able to natively read typescript it seems like everything would be solved overnight. All you'd need to do is tell it to discard the irrelevant ts tokens and it would read it like normal js.Personally because, as much as I hate weak typing, I hate transpiling even more.