Live data from Hacker News

Viewing profile — mhagemeister

mhagemeister

HN member
Joined
Wed, Nov 02, 2016, 8:48 PM UTC
HN karma
206
Public activity
56 items

About mhagemeister

I like simple things.

Recent public activity

  1. comment
    Comment #43151339

    This time we're going to look at the challenges and solutions to making JavaScript plugin support for Deno's Rust-based linter performant.

  2. story
  3. comment
    Comment #40895751

    Author here. That's good feedback. Looks like that part of my article is a bit confusing and I've updated the phrasing a little to hopefully make it less so. You're spot on with al…

  4. comment
    Comment #40895731

    Author here. Agree! The whole npm ecosystem is based around npm packages shipping JS files and doing anything else would break it. I've updated the article to hopefully make it les…

  5. comment
    Comment #40895719

    Author here. True, I think I should've worded it better. I work for Deno and it being a JS runtime that is able to run TS natively makes this less of an issue. The problem that a d…

  6. comment
    Comment #40895712

    Author here. I should've worded that better. The recommendation is not to stop compiling TS->JS for npm users. The whole npm ecosystem is built around the assumption that you ship …

  7. comment
    Comment #40895698

    Oh no, I just woke up and saw this comment. It seems to be up again. Apologies for the inconvenience. Looks like the HN hug of death is real! Happy to hear that you like the series…

  8. comment
    Comment #40895693

    Author here. I should've worded that better in the article. The takeaway should not be to publish only TS sources to npm. The whole npm ecosystem is based around the assumption tha…

  9. comment
    Comment #40895678

    Author here. Unfortunately, I think worded that a bit confusingly in the article. I'm used to working with runtimes that run TS natively and didn't have to care about .d.ts files m…

  10. comment
    Comment #40895668

    Author here. That's a good point and maybe a matter of perspective. I've worked on projects where using tsc to generate .d.ts files took close to an hour. Even 13s would be too lon…

  11. comment
    Comment #40895648

    Author here. Thanks for sharing that feedback. I think I missed the mark by being so used to working with runtimes that natively run TS files, that I forgot that this is not the de…

  12. comment
    Comment #39570338

    > I'd like tool to generate the whole package root, including a transpiled or generated package.json That's exactly what JSR does. We generate the package.json ourselves.

  13. comment
    Comment #39570333

    I think you're looking for esm.sh . It transpiles both npm and jsr packages for the browser so that they can be used in a simple script tag.

  14. comment
    Comment #39570292

    The performance of type inference matters for runtimes which work with TypeScript files directly, rather then using the transpiled .js + .d.ts files like Deno. This has several ben…

  15. comment
    Comment #39570242

    yup, we added the `jsr` tool mostly so that you don't have to be aware of the @jsr scope that's used under the hood. We're not publishing to npm though, but rather mapping the @jsr…

  16. comment
    Comment #39570223

    We do some basic inference, but that's why we require explicit return types in the public API, see https://jsr.io/docs/about-slow-types . TypeScript itself will ship with a new `is…

  17. comment
    Comment #39562877

    > This makes the already complicated module resolution logic in most bundler/packaging tools even more complicated as they must account for the intricacies of another package manag…

  18. comment
    Comment #37818507

    It's not a secret what jest does. There are a few abstractions to jump through, but I find jest's code very readable overall. By default the `workerThreads` option is set to `false…

  19. comment
    Comment #37818042

    Author here. Compilation isn't the problem, loading and instantiating the module graph is. The timings for that are currently not exposed in any runtime afaik.

  20. comment
    Comment #37817321

    Author here. That's fair criticism. Whilst the setup shown in the article is synthetic, the experience is from working on real world projects. I've worked on a bunch of projects wh…

  21. story
  22. comment
    Comment #37621301

    They are unfortunately not removed, because the way they are used makes it difficult for bundlers to detect them. Deno encourages you to submit the original sources which can be ev…

  23. comment
    Comment #37621244

    Glad to hear you like it! Those flame graph screenshots are taken from https://www.speedscope.app/ .

  24. comment
    Comment #37608409

    That's a very good point. Didn't know about the grammarly incident. I could definitely see this happening again with the amount of polyfills in npm packages. Polyfills are usually …

  25. comment
    Comment #37604249

    Thanks for the kind feedback! It's definitely something in the back of my mind. I feel like I need to collect a little more content to fill a whole book, but I'm enticed by the tho…