Live data from Hacker News

Viewing profile — leeoniya

leeoniya

HN member
Joined
Thu, Jun 09, 2011, 9:18 PM UTC
HN karma
9,711
Public activity
2,901 items

About leeoniya

"All problems in computer science can be solved by another level of abstraction...except for the problem of too many levels of abstraction."

L6 @ Grafana

https://github.com/leeoniya

leeoniya_at_gmail

Recent public activity

  1. comment
    Comment #49228740

    i've always been impressed by NBA*: https://github.com/anvaka/ngraph.path demo: https://anvaka.github.io/ngraph.path.demo/

  2. story
    Show HN: easy-tz – A fast, 10KB, dependency-free getTimeZonesAt(timestamp)

    If you have a time zone picker in your web UI that shows accurate & current time zone abbreviations, there's a good chance it's pulling in 770KB of moment-timezone dependency. And …

  3. comment
    Comment #48444991

    so, Your Attention is All They Need?

  4. comment
    Comment #48268104

    or was it Windows hiding file extensions by default and you downloaded a .mp3.exe file?

  5. comment
    Comment #48250193

    surprised not to see http://phpsadness.com/ here

  6. comment
    Comment #48210105

    the term "Americans" always bothered me, though it's commonly used to refer to US

  7. comment
    Comment #48153932

    > "no no, it has full test coverage" i don't have enough fingers (and toes) to count how many times i've demonstrated that "100% coverage" is almost universally bullshit.

  8. comment
    Comment #48132051

    if you want to do image diffing, use https://github.com/dmtrKovalenko/odiff however, if you have SVGs already, compare those without rasterizing them first, then if that fails rast…

  9. comment
  10. comment
    Comment #47792915

    Levenshtein distance is often a poor way to fuzzy match or rank. i suspect that in js, even the trie approach would incur significant GC/alloc thrashing or cost of building a huge …

  11. comment
    Comment #47650379

    > Sen. Sheldon Whitehouse ok, i was confused for a minute. > And, given that the gas breaks down relatively quickly, this would have been one of the fastest ways to reduce global w…

  12. comment
    Comment #47591532

    > for a 2–3% performance gain this is highly workload-dependent. there are plenty of APIs that are multiple-factor faster and 10x more memory efficient due to native implementation…

  13. comment
    Comment #47572252

    ack, see my reply to sibling comment: https://news.ycombinator.com/item?id=47572206

  14. comment
    Comment #47572206

    no disagreement. i never claimed uWrap did anything more than it does. it was not meant for typography/text-layout but for line count estimation. it never needed to be perfect, and…

  15. comment
    Comment #47572157

    i don't have a mac to test this with currently, so hopefully it's not the price but a matter of adding a Safari-specific adjustement :) internally it still uses the Canvas measureT…

  16. comment
    Comment #47569929

    tried just doing a concat of the 100k sentences with line breaks, it wasnt much faster, ~1880ms.

  17. comment
    Comment #47569103

    it is not clear from the API/docs how i would use prepare() once on one text and then use layout() for completely different text. i think the intended purpose is that your text is …

  18. comment
    Comment #47569081

    correct, it was meant for estimating row height for virtualizing a 100k row table with a latin-ish LTR charset (no emoji handling, etc). its scope is much narrower. still, the diff…

  19. comment
    Comment #47568878

    i wrote something similar for this purpose, but much simpler and in 2kb, without AI, about a year ago. uWrap.js: https://news.ycombinator.com/item?id=43583478 . it did not reach 11…

  20. comment
    Comment #47455978

    just throw another few on the pile: https://mastodon.social/@azureshit

  21. comment
    Comment #46951154

    the good ones would usually follow up with, "how much detail do you _really_ want ;D"

  22. comment
    Comment #46949567

    i used something like this in unstructured technical interviews all the time. "you type a phrase into google search, you press enter, get some results. tell me, in technical detail…

  23. comment
    Comment #46714011

    hey! > But regarding sampling, if it's a line chart, you can sample adaptively by checking whether the next point makes a meaningfully visible difference measured in pixels compare…

  24. comment
    Comment #46713996

    > In Ardour (a cross-platform, libre, open source DAW), we actually compute and store min/max-per-N-samples and use that for plotting (and as the basis for further downsampling. th…

  25. comment