Oleksii Trekhleb

trekhleb.dev · Personal blog · on HN since 2021

Oleksii Trekhleb writes JavaScript tutorials and visual demos on machine learning, genetic algorithms, image processing, and number representation.

What HN saysHN commenters like his visual demos, such as the self-parking car, and find his content-aware image resizer a notable idea.
22HN people shared it
2linked it in comments
46stories submitted
995story points
3 months agolast shared
2021people per year2026

Most-shared posts

  1. 1
    Self-Parking Car in ~500 Lines of Code
    8 people · 28 points · first shared 2021 · 2 comments on HN
  2. 2
    JavaScript IMAGE CARVER, a content-aware image resizer
    4 people · 20 points · first shared 2021 · discussion on HN
  3. 3
    Content-aware image resizing in JavaScript
    3 people · 491 points · first shared 2021 · 61 comments on HN
  4. 4
  5. 5
    S.O.L.I.D. principles around you (2017)
    3 people · 5 points · first shared 2021 · discussion on HN
  6. 6
    Binary representation of the floating-point numbers
    3 people · 4 points · first shared 2021 · discussion on HN
  7. 7
    Show HN: Self-Parking Car Evolution
    2 people · 117 points · first shared 2021 · 43 comments on HN
  8. 8
    Accessing device orientation in pure JavaScript
    2 people · 28 points · first shared 2021 · 6 comments on HN
  9. 9
    API Design of X (Twitter) Home Timeline
    2 people · 8 points · first shared 2024 · discussion on HN
  10. 10
    Interactive Machine Learning Experiments
    2 people · 8 points · first shared 2021 · discussion on HN
  11. 11
    California Counties and Cities Comparison
    2 people · 3 points · first shared 2026 · discussion on HN
  12. 12
    Dynamic Programming vs. Divide-and-Conquer (2018)
    1 people · 217 points · first shared 2021 · 115 comments on HN
  13. 13
    Attempt to make printed links clickable
    1 people · 35 points · first shared 2021 · 7 comments on HN
  14. 14
    Training Baby GPTs in Browser
    1 people · 7 points · first shared 2024 · 1 comments on HN
  15. 15
    Technical Interview Preparation Checklist (2019)
    1 people · 3 points · first shared 2021 · discussion on HN

What HN people wrote when they linked it

trekhleb · 2024-04-29
It is a very visual and entertaining visualization, I love it. It inspired me to experiment with a genetic algorithm in "Self-parking car evolution": https://trekhleb.dev/self-parking-car-evolution/
DonnyV · 2026-04-23
I can't believe this doesn't mention Image Seam Carving. Surprise this was never built into browsers. https://trekhleb.dev/js-image-carver/

Keyboard shortcuts

/Search
j kNext / previous blog
EnterOpen selected blog
vVisit the blog site
fFollow / unfollow
lSwitch grid / list view
dSwitch dark mode
g hHome
g pTop posts
g tTopics
g fFollowing
g lLiked
g yHistory
g qFAQ
EscBack / close