User loginNavigation |
archivesBasic building blocks of a programming languageI've tried to understand category theory, but while I can't say I've got the mathematical skills to understand it, I think I kind of grasp what it intends to do. It is basically a way of building bigger things out of smaller things as flexibly as possible. Designing my language I get inspired by this thought, and started to think along those lines. This means trying to realize what are the basic building blocks from which to build larger blocks, i.e. from where do I start? In an attempt to figure this out, I thought about what languages typically tries to do. What I found so far are: 1. Calculate data, i.e. from data produce some other data, i.e. functions The idea here is to make these elements as versatile as possible, so they can be combined without restriction as long as it is reasonable. Allow functions to generate other functions, hierarchies and/or patterns. Allow hierarchies to contain functions, other hierarchies and/or patterns. Allow patterns to describe functions, hierarchies and/or other patterns. First of all, do you agree that these three could be used as basic building blocks, or is there something missing or wrong? Secondly, the pattern. I can see patterns used in two that seems like distinctly different ways. One is that you write a template like code, which you could see as a patter Perhaps those two cases of patterns should be named differently? Any thoughts on this? |
Browse archivesActive forum topics |
Recent comments
24 weeks 7 hours ago
24 weeks 11 hours ago
24 weeks 11 hours ago
46 weeks 1 day ago
50 weeks 3 days ago
52 weeks 19 hours ago
52 weeks 19 hours ago
1 year 2 weeks ago
1 year 7 weeks ago
1 year 7 weeks ago