Live data from Hacker News

Viewing profile — edemaine

edemaine

HN member
Joined
Thu, Jun 20, 2024, 4:48 PM UTC
HN karma
47
Public activity
17 items

About edemaine

No profile information was provided.

Recent public activity

  1. comment
    Comment #41928834

    Do blocks in Civet are mainly to provide shielded scopes (with local declarations). They're currently also necessary to handle declarations (const/let) in the middle of expressions…

  2. comment
    Comment #41928807

    Thanks for the report! This was tricky to track down, but I've got a fix: https://github.com/DanielXMoore/Civet/pull/1501

  3. comment
    Comment #41918571

    As an example, Solid's JSX compiler changes multiple times in a year. It's better to target JSX than the compiled form. There are also many JSX compilers. (Even React ships with at…

  4. comment
    Comment #41910950

    Yes, Civet has taken a lot of syntactic inspiration from LiveScript. At this point, I think we have most of the good features, but we might be missing some. Let us know what you th…

  5. comment
    Comment #41910930

    The JSX spec hasn't changed for almost 10 years, and I'd guess there will never be a JSX 2.0. On the other hand, ideas for a better JSX are plentiful (check out the issues on the J…

  6. comment
    Comment #41910907

    Good question! I don't have hard numbers, but for larger files, I find that it can take on the order of a second to compile. It's still fast enough to get real-time feedback from T…

  7. comment
    Comment #41910888

    You can also turn off implicit returns in Civet if you don't like them. They also work well with TypeScript annotations: if you annotate a return value of `void`, then there's no i…

  8. comment
    Comment #41910863

    In case you wondered how Civet compared to CoffeeScript in these regards: * `is not` is the textual equivalent of `!==`. You can use `isnt` if you turn on the feature explicitly (o…

  9. comment
    Comment #41910814

    It's doing a few things at once: First line: * `{min, max} := Math` is a destructuring declaration. It's similar to the destructuring assignment `{min, max} = Math` (i.e., `min = M…

  10. comment
    Comment #41910791

    But we are using indentation style; that's one of the major design principles. In Civet, the body of an "if" can be multiple lines, and it's clear (from indentation) what they're n…

  11. comment
    Comment #41910764

    We're definitely looking for ways to improve ways to specify types! I think destructured typing [ https://civet.dev/reference#destructured-typing ] is already quite useful, especia…

  12. comment
    Comment #41910714

    One of the Civet devs here. To me, the main benefit of Civet is the ability to rapidly add useful features to the language, while preserving all the benefits of TS (tooling, etc.).…

  13. comment
    Comment #40744047

    Regarding the first question, I've gone ahead and implemented random build orders, so at least the two Ls in HELLO will usually produce different animations (depending on random ch…

  14. comment
    Comment #40742464

    I find the back/forward buttons useful for undoing/redoing changes, so that I don't lose past cool designs / settings, though I can see it being a controversial approach. That said…

  15. comment
    Comment #40740887

    Good idea! I've gone ahead and implemented this feature: if "obscure in URL" is turned on, the text won't be visible unless you focus on the textbox (e.g. to edit it).

  16. comment
    Comment #40740803

    I couldn't reproduce this bug. Perhaps the program you're using to display the GIF doesn't support the GIF frame delay feature? (E.g., Chrome seems to display them fine.) Feel free…

  17. comment
    Comment #40740768

    Thanks for the feature suggestion! I've gone ahead and implemented random valid stacking order. So if you reload the page, and enter text that repeats the same letter more than onc…