Upgrade to Pro — share decks privately, control downloads, hide ads and more …

JetBrains MPS: Create a programming language that the whole company can understand. Artem Tikhomirov, JetBrains, CEE-SECR 2017

CEE-SECR
October 21, 2017

JetBrains MPS: Create a programming language that the whole company can understand. Artem Tikhomirov, JetBrains, CEE-SECR 2017

Watch the benefits of creating a programming language that the whole company can understand. With MPS tool you can build powerful domain specific languages.

Preferred audience are IT consultants, Product & Project Managers, testers and decision makers.

CEE-SECR

October 21, 2017
Tweet

More Decks by CEE-SECR

Other Decks in Technology

Transcript

  1. JetBrains MPS Create a programming language that the whole company

    can understand Artem Tikhomirov Software Engineering Conference Russia October 2017, St. Petersburg
  2. Domain Specific Languages • A DSL is a focused, processable

    language for describing a specific concern when building a system in a specific domain • The abstractions and notations used are natural/suitable for the stakeholders who specify that particular concern. Markus Voelter
  3. • Health and medicine • Stakeholder integration, Scalable Business, Document

    Generation + Certification • Finance • Precise Specification and Implementation of Insurance Products („Rules“) • Government • Changing Regulations, Fast Implementation, End User Empowerment • Automotive • Code Complexity, Frameworks (Autosar), Product Lines • Aerospace • Reduction of Accidental Complexity in Code, Process Conformance (Docs) • Robotics • A powerful language and IDE for existing frameworks (Industry Robots, ROS) • Embedded software • Multi-Paradigm Programming, not just Simulink and C • Science • Consistent Derived Documents
  4. Demo • Language to configure voice menu for an answering

    maching • Jetbrains MPS as a Rich Client Platform • Business value is negligible – Market share of your office assistant is small
  5. • Health and medicine • Stakeholder integration, Scalable Business, Document

    Generation + Certification • Finance • Precise Specification and Implementation of Insurance Products („Rules“) • Government • Changing Regulations, Fast Implementation, End User Empowerment • Automotive • Code Complexity, Frameworks (Autosar), Product Lines • Aerospace • Reduction of Accidental Complexity in Code, Process Conformance (Docs) • Robotics • A powerful language and IDE for existing frameworks (Industry Robots, ROS) • Embedded software • Multi-Paradigm Programming, not just Simulink and C • Science • Consistent Derived Documents
  6. Healthcare Software Medical Devices Accessible to Doctors Robustness and Correctness

    Required To be FDA-certified Needs to run on multiple target platforms • IOS • Android • JavaScript
  7. Stakeholders driving the development Physicists Product Management System Engineering /

    R&D Customer Service Supply Chain Management Management (Business Cases) / Platform- & Release-Strategy
  8. SW Experts HW/ FW Software package System Engineering Physicists Product

    Management Customer Service Installed Software
  9. HW/ FW SW Experts Software package System Engineering Physicists Product

    Management Customer Service Installed Software Code generation space DSL DSL DSL DSL
  10. When to DSL? • Complex domain knowledge • Painful translation

    of expertise from a domain specialist to a programmer – Gap in abstraction level • Not directly related to programming – biology, math, insurance – Verification, analysis, simulation. • Classes of applications – Software factories
  11. Typical risks • Language design takes effort – Adds to

    the cost of the project → need for reuse • Language design skills – Steep learning curve – What goes into the language – How to make it elegant • Proper tooling
  12. DSLs with MPS • Abstract Syntax • Concrete Syntax •

    M2M, M2T • Semantics: Typesystem, Dataflow • IDE integration, UI • Tooling: build, plugins • Evolution/migration • Deployment: custom IDE, RCP
  13. DSLs with MPS • Abstract Syntax • Concrete Syntax •

    M2M, M2T • Semantics: Typesystem, Dataflow • IDE integration, UI • Tooling: build, plugins • Evolution/migration • Deployment: custom IDE, RCP
  14. Textual editing R A B C D R R A

    B C D R R A B C D R Text Text Binary edit parse save editing compile parse Compiler
  15. Projectional editing R A B C D R R A

    B C D R R A B C D R Text Binary edit save editing compile parse Compiler R A B C D R generate
  16. Projectional editing R A B C D R R A

    B C D R R A B C D R Binary edit save editing compile Compiler R A B C D R generate
  17. Parsing is the bottleneck … of language expressiveness – Limits

    the possible syntaxes – Allows only one editable code visualization – Complicates combining languages
  18. DSLs with MPS • Abstract Syntax • Concrete Syntax •

    M2M, M2T • Semantics: Typesystem, Dataflow • IDE integration, UI • Tooling: build, plugins • Evolution/migration • Deployment: custom IDE, RCP
  19. Code generation R A B C D R R A

    B C D R R A B C D R Text Binary edit save editing compile parse Compiler R A B C D R generate
  20. Generators Map solutions from a problem domain to an implementation

    domain • Transform models • Output models or text
  21. Compiler analogy do { call(); } while R := A

    MUL B 01101 10101 Source code Intermediate presentation Machine code repeat turnLeft do { call(); } while DSLs do { call(); } while General-purpose language Source code repeat turnLeft do { call(); } while DSLs Source code
  22. OMG/MOF Perspective A B C D R A B C

    D R A B C D R do { call(); } while Model to Model Model to Text repeat turnLeft do { call(); } while DSLs do { call(); } while General-purpose language Source code A B C D R AST == Model