Live data from Hacker News

Viewing profile — Tarean

Tarean

HN member
Joined
Thu, Apr 21, 2016, 6:47 PM UTC
HN karma
446
Public activity
239 items

About Tarean

No profile information was provided.

Recent public activity

  1. comment
    Comment #48860577

    Java can also have 15+ minute cold compiles on large projects if you kill all caches. It's less bad on smaller codebases because you don't have to recompile dependencies if you tar…

  2. comment
    Comment #46368712

    Having pair programmed over some truly awful and locked down connections before, dropped frames are infinitely better than blurred frames which make text unreadable whenever the mo…

  3. comment
    Comment #46360724

    Intellij also has structural search and replace, where you can do full subgraph isomorphism search in the code and with patterns like $x$.foo($args$) Where you add filters like x's…

  4. comment
    Comment #45784197

    I think WasmGC is very hard to make work with laziness. A lazy value is always a closure on the heap. If an expression might be unused, throw a closure which computes it on the hea…

  5. comment
    Comment #45772126

    Sometimes keeping a fixed shape for the variable context across the computation can make it easier to reason about invariants, though. Like, if you have a constraint is_even(x) tha…

  6. comment
    Comment #45721047

    I'm pretty sure recall was specifically a selling point for laptops with ai chips which could do the processing locally and reasonably efficiently? Though storing the data locally …

  7. comment
    Comment #45056929

    Interval arithmetic is only a constant factor slower but may simplify at every step. For every operation over numbers there is a unique most precise equivalent op over intervals, b…

  8. comment
  9. comment
    Comment #43204044

    In my head the two dimensions are tail Vs non-tail jumps, and explicit Vs implicit scope passing. The most interesting case is implicit scope+non-tail recursion, usually this requi…

  10. comment
    Comment #42668812

    Forgot to mention: In the twee style, the int for the function id contains metadata (is it a unification variable or constant name? how many args does it take?). That way f1(f3(f5(…

  11. comment
    Comment #42666175

    Twee (an equational theorem prover in Haskell used by quickspec) has an interesting take on this. Terms are slices of arrays, but you get a normal interface including pattern match…

  12. comment
    Comment #42027980

    As of python 3.6 you can nest fstrings. Not all formatters and highlighters have caught up, though. Which is fun, because correct highlighting depends on language version. Haskell …

  13. comment
    Comment #41730956

    This behaviour was introduced in 3.6 (and made part of the spec in 3.7 iirc) From the python 3.6 change log: New dict implementation¶ The dict type now uses a “compact” representat…

  14. comment
    Comment #41531793

    Either hackernews or autocorrect ate the p, it was supposed to be \p{L} which is a unicode character class. As the other comment mentioned pcre-compatible Regex are a standard, tho…

  15. comment
    Comment #41530615

    For Regex I like lens-regex-pcre > import Control.Regex.Lens.Text > "Foo, bar" ^.. [regex|\p{L}+|] . match ["Foo", "bar"] > "Foo, bar" & [regex|\p{L}+|] . ix 1 . match %~ T.intersp…

  16. comment
    Comment #41473849

    Both strategies start from roots (e.g. the stack) and then transitively chase pointers. Any memory reachable this way is live. To do this chasing precisely you need some metadata, …

  17. comment
    Comment #41067809

    But that stores all elements into memory?

  18. comment
    Comment #41067716

    Love this algorithm. It feels like magic, and then it feels obvious and basically like binary search. Similar to the algorithm to parallelize the merge step of merge sort. Split th…

  19. comment
    Comment #40821011

    To me the big winning is that you don't have to memoize transitively. Occasionally someone asks me for help to optimize some react code, and then the dependency array contains some…

  20. comment
    Comment #40820897

    The big problem is that - memoization sometimes crucial for performance. - passing objects and functions around is common. - you cannot compare objects and functions for semantic e…

  21. comment
    Comment #40650202

    Computer-Checked proofs are one area where ai could be really useful fairly soon. Though it may be closer to neural networks in chess engines than full llm's. You already use tons …

  22. comment
    Comment #40556764

    Lambdas have two hidden features: Variable capture lets you access variables/values from outer scopes, and statements/calling other functions lets you do control flow. Monads are t…

  23. comment
    Comment #40509714

    Orm's do a lot for you if you require related data from multiple tables: - Eager loading the data efficiently is annoying, most ORM's can do batched select-in loading now - Detecti…

  24. comment
    Comment #40509656

    Ideally a query could return multiple cte tables. A lot of ORMs default eager loading to select-in loading with multiple queries because it performs best. First A is loaded and the…

  25. comment
    Comment #39188080

    Often, the concrete problems we are interested in have some internal structure that make them easier to solve in practice. Solving Boolean formulas is NP-complete but we routinely …