Live data from Hacker News

Viewing profile — bterlson

bterlson

HN member
Joined
Tue, Jan 19, 2016, 6:27 PM UTC
HN karma
428
Public activity
60 items

About bterlson

Working @ Microsoft on Azure, TS/JS, TypeSpec.

Recent public activity

  1. comment
    Comment #43573180

    I work on TypeSpec. I'll be around if anyone has questions!

  2. story
  3. comment
    Comment #41603104

    You can get by, e.g. you can use JSDoc comments describing format or pattern, generic types taking a parameter of either format or pattern along with a base type, or create a custo…

  4. comment
    Comment #41603060

    It is being worked on. The best place to follow the development is our discord, there's a channel for graphql.

  5. comment
    Comment #41602868

    We first tried a TypeScript DSL and I really wish it would have worked for our use cases (e.g. describing complex REST APIs in Azure), but unfortunately it didn't. I explained a bi…

  6. comment
    Comment #41602829

    As someone who works on TypeSpec, my feeling is that they are mostly different things. TypeSpec is a general purpose DSL which supports "emitting" to protobuf and other things, but…

  7. comment
    Comment #40213017

    There are a few emitters in our standard library - OpenAPI 3.0, JSON Schema 2020-12, and Protobuf. REST client and service emitters for a few languages are coming online now and sh…

  8. comment
    Comment #40207430

    I think it can be, but it can also be used with OpenAPI to great effect as well. We're not trying to replace OpenAPI, OpenAPI is great in many ways and is useful for many people. I…

  9. comment
    Comment #40207406

    TypeSpec is designed primarily as an API first tool as opposed to being an output. In the context of ASP.NET and HTTP/REST APIs, our goal is that you can write your spec and genera…

  10. comment
    Comment #40207169

    The OpenAPI and Json Schema emitters can produce yaml.

  11. comment
    Comment #40207031

    Yup, similar to that specific piece, and I definitely agree that GraphQL's DSL shows how much the DX of the description language itself matters, and how codegen is a productivity m…

  12. comment
    Comment #40206939

    Moreover, compiling an IDL to N languages is substantially easier than compiling implementation code across N languages, especially when generating idiomatic code is a requirement.…

  13. comment
    Comment #40206928

    (I work on the team) I wouldn't say that TypeSpec is like GraphQL, so it would be hard for TypeSpec to become that on its own. GraphQL has a lot of opinions that are required in or…

  14. comment
    Comment #40148315

    Grats on the release! It will be awesome to see how far y'all can push codegen quality from an OpenAPI source of truth. I worked on this extensively inside Azure and I know it is n…

  15. comment
    Comment #39900915

    I'm just a JS guy trying to understand the world around me and documenting what I find, not trying to be discourteous (or even courteous). I'll add the note about Python, thanks fo…

  16. comment
    Comment #39899635

    Pedantically, IEEE 754 defines decimal floating point formats (like decimal128) which are appropriate for representing currency. Representing currency in non-integer values in any …

  17. comment
    Comment #39899560

    If you would like to contribute Swift tests, I would be happy to take it! You can send a PR into this document, updating the data tables and adding a code sample at the end: https:…

  18. comment
    Comment #39899089

    JS is likely to get a hook to be able to handle serialization/deserialization of such values without swapping out the entire implementation[1]. Native support for these types, with…

  19. comment
    Comment #39899046

    I think the spec just means, assume IEEE 754. In the case of 0.1, which cannot be represented exactly, software should assume that `0.1` will be represented as `0.10000000000000000…

  20. comment
    Comment #39898955

    I have added this note, thanks! In the blog I am mostly trying to show the behavior you get using the (maybe defacto) stdlib with its default configuration, but this is useful data…

  21. story
  22. comment
    Comment #39872909

    We're working on bringing it into the TypeSpec project as we speak. You can see an initial demo of it working in this repo: https://github.com/bterlson/typespec-todo .

  23. comment
    Comment #39869904

    The link should load up with a sample I wrote, I think? It does for me anyway! Let me know if you don't see it. But I'll also paste it here: model Foo { /** this is a description *…

  24. comment
    Comment #39848461

    The playground I posted has a description. They're pulled from JSDoc style comments. You can also use the `@doc` decorator, though that's usually reserved for more advanced cases l…

  25. comment
    Comment #39847929

    By the way, you can use the "allOf hack" to put documentation alongside a ref. TypeSpec emits this for common cases like this one: https://typespec.io/playground?c=bW9kZWwgRm9vIHsN…