rapid
play

RAPID Rapid API Dialect The Team Nate Brennand Benjamin Edelstein - PowerPoint PPT Presentation

RAPID Rapid API Dialect The Team Nate Brennand Benjamin Edelstein Brendon Fish Dan Schlosser Brian (Dong Hee) Shin Motivation Rapidly prototype and develop an API server, using strong typing to provide some guarantees about


  1. RAPID Rapid API Dialect

  2. The Team ● Nate Brennand ● Benjamin Edelstein ● Brendon Fish ● Dan Schlosser ● Brian (Dong Hee) Shin

  3. Motivation Rapidly prototype and develop an API server, using strong typing to provide some guarantees about API functionality.

  4. Hello World println("Hello world");

  5. Hello World via API http () string { return "Hello World"; }

  6. GCD Calculator func gcd(int p, int q) int { while (q != 0) { int temp = q; q = p % q; p = temp; } return p; }

  7. Let’s Make it a Server! namespace gcd { param int a { param int b { http (int a, int b) int { int res = gcd(a, b); return res; } } } }

  8. OOP in RAPID class User { User stephen = new User(age=29); int age; println(stephen.age); string name = "Stephen"; stephen.height = 73; optional int height; println(stephen.height); instance my { if (stephen.is_old()) { func is_old() boolean { println("Stephen is old"); return (my.age >= 30); } } else { func make_older() { println("Stephen is young"); my.age = my.age + 1; } } stephen.make_older(); } if (stephen.is_old()) { } println("Stephen is old"); }

  9. Types ● Ints ● Floats ● Strings ● Booleans ● Classes ● Lists

  10. Functions ● Instance functions ● Standalone functions ● Multiple return types ● Type checked args ● Optional args with default values

  11. Compiler Pipeline AST Source Code Parser Translator Unsafe Semantic Semantic AST Generated Go Code AST Semantic Checker Go Compiler Generator (2-pass)

  12. Lessons Learned ● Set smaller milestones and stick to them. Meet more regularly to work. ● Programming a sizeable project in a new programming language takes longer than expected. ● Rigorous code review, and testing are important! ● Focus. Our LRM was ambitious

  13. Demos ● GCD Server ● OOP

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend