Skip to content
HomeVideosBooksBlogs
AllTop postsTopics
Podcasts
HistoryListsWatch laterLiked videosFollowing

The videos, books, blogs and podcasts Hacker News keeps recommending, all in one place.

VideosBooksBlogsPodcastsAboutPrivacySettings

Data from Hacker News, HackerTube, HackerBooks, HackerBlogs and Open Library. Credits · Not affiliated with Y Combinator.

HomeVideosBooksBlogsPodcasts
Ctrl K
    L

    Liu Liu

    liuliu.me · Personal blog · on HN since 2010

    Liu Liu writes technical posts on machine learning on devices, JavaScript face detection, Bazel builds, and fast data loading.

    Visit blogHN submissions
    AI & Machine LearningMobile & AppleSystems & Performance
    What HN says

    HN commenters link his posts on running Stable Diffusion on an iPhone and on JavaScript face detection, plus one on cryptocurrency risk.

    Stats for nerds
    20HN people shared it
    29linked in comments
    1.2Kstory points
    Apr 2023last shared
    2010people per year2023

    Top posts on HN

    1. 1
      Stretch iPhone to its limit: 2GiB Stable Diffusion model runs locally on device
      5 people · 751 points · first shared 2022 · 175 comments on HN
    2. 2
      Loading CSV File at the Speed Limit of the NVMe Storage
      2 people · 198 points · first shared 2020 · 66 comments on HN
    3. 3
      Bazel For Open-Source C/C++ Libraries Distribution
      1 person · 64 points · first shared 2020 · 76 comments on HN
    4. 4
      A More Natural Stackless Coroutine in C That Maintains Local Variables
      1 person · 61 points · first shared 2019 · 13 comments on HN
    5. 5
      Research Notes on Humanoid Robots
      1 person · 25 points · first shared 2021 · 13 comments on HN
    6. 6
      Reducing Memory Usage for DNN Training with Tensor Compression
      1 person · 25 points · first shared 2019 · 3 comments on HN
    7. 7
      Face Detector in JS
      4 people · 23 points · first shared 2012 · 4 comments on HN
    8. 8
      The Endgame for Cryptocurrency
      1 person · 21 points · first shared 2021 · 21 comments on HN
    9. 9
      The Lesson from Private Ski Lesson, or How Money Cannot Buy Performance
      1 person · 11 points · first shared 2021 · 6 comments on HN
    10. 10
      Write Cross-Platform GUI in Swift Like It Is 1998
      1 person · 10 points · first shared 2020 · 3 comments on HN

    What HN people wrote when they linked it

    • desroApr 2023

      After reading through all the comments, I'm surprised that no one has looked at this from a Siri-centric perspective [except for the comment about Clippy ;)].

      To me this looks like laying the groundwork for centralizing the most relevant and important information about yourself, which so crucially includes the contexts you are in! and are so often painstaking to actually record in detail when journalling manually. For what purpose? I genuinely think this leads to a Siri that's finally useful in a way that leapfrogs everything and everyone else out there. Think GPT-4(+) with an insane amount of detail and context tailored to you, and (hopefully!) executed in a way that re-affirms Apple's stated commitment to privacy and security.

      I have only the most cursory understanding of ML technology but have obviously been trying to follow along with everything pretty much since DALLE-2 made such a splash. With some of the impressive performance shown in smaller models, sometimes with different quantization, I think that Apple Neural Engine silicon might be getting more attention soon... okay, "soon" is probably over-optimistic. But – in September '22 I asked online about running Stable Diffusion[0] on M1 chips on iPad, since I was able to run it on an M1 Mac Mini. The 8-ball said "outlook not so good," and yet by November 8th liuliu had it running on _iPhone_[1]. These are truly interesting times.

      [0] I know this is not a 1:1 comparison. But Llama ran on my MacBook without any…

    • zk00006Mar 2014

      I agree, putting one more layer on top of JS does not allow to do substantially different things. But I would argue that this is the only option. Google is pushing its PNaCl [1] clients where you can run C++ code in your browser independent of the platform. Isn't this partially solution to the chicken-and-egg problem? It may get adapted because there is a strong player behind it. It also allows substantially different things to be on the web. For instance you can run some heavy computer vision app analyzing webcam stream directly on client side. Apart from notable JS exceptions [2].

      [1] http://www.chromium.org/nativeclient/pnacl
      [2] http://liuliu.me/ccv/js/nss/

    • nlMar 2012

      Back in 2009 I did some work on augmented reality in the browser[1]. Back then there was no WebRTC, so I had to shim Flash to Canvas to get webcam images, and I implemented image tracking using a simple color tracking algorithm.

      If this really is doing image tracking in JS (as tomp noted the explanation isn't clear) then I'm very impressed.

      The previous state of the art was some great face-detection code I'd seen, but it is much slower than this.

      [1] http://nicklothian.com/blog/2009/11/18/augmented-reality-virtual-keyboard-using-html-5-video/

      [2] http://liuliu.me/eyes/javascript-face-detection-explained/, http://apprtc.appspot.com/html/face.html

    • mayanklahiriNov 2010

      The blog post is a little light on details. Just go to the source and demo on the original creator's site: http://liuliu.me/detect/detect.html

      Canvas allows access to individual pixels in an image, and JS is arguably faster than BASIC interpreters of the 80s. Fun things lie ahead in client-side image processing.

      EDIT: Incidentally, the code is pretty hairy and has about 3 comments. It's hard to figure out what ML approach he's using from a cursory look.

      EDIT: Aah, definitely an image pyramid in there, so some multi-resolution stuff happening.

    • templaedhelNov 2010

      It seems to on average get about half the faces.
      http://liuliu.me/detect/detect.html#http%3A%2F%2Fwww.alexreisner.com%2Fimg%2Fbaseball%2Ffaces.reisner.gif
      http://liuliu.me/detect/detect.html#http%3A%2F%2Fkk.org%2Fct2%2FFaceSw2.jpg
      It recognizes upside down faces though, which is impressive.
      http://liuliu.me/detect/detect.html#http%3A%2F%2Fwww.scifun.ed.ac.uk%2Fpages%2Fabout_us%2Fshows%2FJennifer_Lopez-upside-down-face.jpg
      Overall, a great demo.

    • liuliuOct 2021

      That's always the game plan though. I wrote about it a few days ago: https://liuliu.me/eyes/the-endgame-for-cryptocurrency/

      Once you have big enough following, having enough systematic risk, you, average scammers can enter "too big to fail" category, especially in democratic countries.

      If USDT successfully turned half of the U.S. families holding 25% of cryptocurrency-related assets, they can work out any scamming issues they have in hand.

    Related

    Matthijs Hollemansmachinethink.net15 people

    The lost art of 3D rendering without shaders

    Matthijs Hollemans
    Personal · last shared 2021
    Hugging Face Blogmedium.com/huggingface25 people

    Faster Natural Language Processing in Python

    Hugging Face Blog
    Company · last shared 2024
    SVDS Blogsvds.com27 people

    Ethereum: Rise of the World Computer

    SVDS Blog
    Company · last shared 2021
    Google AI Blogai.googleblog.com596 people

    Google Duplex: An AI System for Accomplishing Real World Tasks Over the Phone

    Google AI Blog
    Company · last shared 2026
    Interconnectsinterconnects.ai74 people

    A look at Apple's technical approach to AI including core model performance etc.

    Interconnects
    Personal · last shared 2026
    Apple Machine Learning Researchmachinelearning.apple.com254 people

    Apple's On-Device and Server Foundation Models

    Apple Machine Learning Research
    Company · last shared 2026
    Kaggle Blogblog.kaggle.com72 people

    Approaching Almost Any Machine Learning Problem

    Kaggle Blog
    Company · last shared 2018
    Christian S. Peroneblog.christianperone.com27 people

    PyTorch – Internal Architecture Tour

    Christian S. Perone
    Personal · last shared 2026