New ask Hacker News story: Ask HN: Is there a dedicated programming language for business logic?
Ask HN: Is there a dedicated programming language for business logic?
4 by username90 | 6 comments on Hacker News.
I feel the main problem delivering value is that codebases are too big and complex. If we made a business logic language intentionally made to be sandboxed which doesn't let you refer to code in other files or include libraries that would help a lot separating business logic from infrastructure code. The way it would be used is that programmers writes some interface in their language, and then that interface becomes a compiler that can verify and compile a business logic script file. The script would run in a sandboxed environment with resource restrictions so it can't run too long or crash the server. Such a language wouldn't just help people write code files for apps, but could also enable just having a textbox field where you could add programs to filter or sort results to your liking etc. I guess you could view it in the same way as the popular regular expression language that is embedded in so many apps and programs, but with enough power that it would cover most business logic needs. Since it was designed from the start to be sandboxed like this it wont be hard to make it safe, and as it gets wider appeal more people would get interested in programming. That is the theory at least, is anyone aware of attempts to do this? The requirement that it can't depend on external code is absolutely necessary though, that is the main advantage of regular expressions and why you can easily embed those in API's.
4 by username90 | 6 comments on Hacker News.
I feel the main problem delivering value is that codebases are too big and complex. If we made a business logic language intentionally made to be sandboxed which doesn't let you refer to code in other files or include libraries that would help a lot separating business logic from infrastructure code. The way it would be used is that programmers writes some interface in their language, and then that interface becomes a compiler that can verify and compile a business logic script file. The script would run in a sandboxed environment with resource restrictions so it can't run too long or crash the server. Such a language wouldn't just help people write code files for apps, but could also enable just having a textbox field where you could add programs to filter or sort results to your liking etc. I guess you could view it in the same way as the popular regular expression language that is embedded in so many apps and programs, but with enough power that it would cover most business logic needs. Since it was designed from the start to be sandboxed like this it wont be hard to make it safe, and as it gets wider appeal more people would get interested in programming. That is the theory at least, is anyone aware of attempts to do this? The requirement that it can't depend on external code is absolutely necessary though, that is the main advantage of regular expressions and why you can easily embed those in API's.
Comments
Post a Comment