Better HN
topnewbestaskshowjobs
Log inSign up

inem

38 karma · joined Mar 23, 2015 (11y ago) · 19 submissions

Submissions

comment 8mo ago · link · parent

ChatGPT renders every message in the DOM at once. At 2,000 messages that's ~500K nodes. The tab freezes or crashes.

The AI handles long conversations fine. It's purely a frontend problem — React re-rendering an ever-growing tree.

The fix is simple: intercept the fetch response for /backend-api/conversation/{id}, truncate the mapping to the last N messages for rendering, keep full context for the model. 30KB, no dependencies, no external requests.

I built this because my most useful conversations were becoming unusable. Chrome Web Store submission is pending review, so distributing via Gumroad for now.

Happy to answer questions about the implementation.

2.

Unfreeze for ChatGPT – Fix freezing on long conversations /30KB Chrome extension(inem.gumroad.com ↗)

2 points · by inem · 8mo ago · 1 comment

3.

A Proof of the Collatz Conjecture(github.com ↗)

1 points · by inem · 9mo ago · discuss

4.

Show HN: Open in Cursor" Finder Extension for macOS(github.com ↗)

1 points · by inem · 1y ago · discuss

5.

It doesn't have to be painful to work with Rails(railshurts.com ↗)

2 points · by inem · 8y ago · 1 comment

comment 8y ago · link · parent

comment 8y ago · link · parent

Nope, no yet. But I've got few recommendations from hamlit gem author Takashi Kokobun.

Takashi recommends to take a look at these gems: - https://github.com/judofyr/temple - https://github.com/eagletmt/haml_parser

comment 8y ago · link · parent

RestructuredText seem to me like an alternative to Markdown.

Hamdown idea is to enable automated content-generation by allowing ruby code embedding (like you can do with HAML)

comment 8y ago · link · parent

Hamdown author here. To make it clear the I don't see this as a replacement for HTML/ERB/whatever templating solution for your web app.

The niche is rather narrow - it is for people who use static site generators like Jekyll/Middleman, and write content mostly in Markdown.

I often simply want to do a quick look-and-feel experiment by styling some of the elements with Tachyons. This is where Markdown becomes a bottleneck.

Another idea is to make front-matter a first class citizen of Hamdown so that you could add a bit of structured data on top of your blog post and use on the page.

P.S. You kinda can achieve this with kramdown, but I find its syntax super-weird.

comment 8y ago · link · parent

You're welcome! :)

11.

Show HN: New markup language for fans of Haml and Markdown(github.com ↗)

64 points · by inem · 8y ago · 58 comments

12.

Ask HN: Is there a single comprehensive high-level Ruby on Rails style guide?

4 points · by inem · 8y ago · discuss

comment 8y ago · link · parent

Well, not really :) But it is definitely inspired by crontab.guru

comment 8y ago · link · parent

Thanks! That's true. And it is pretty annoying, because regular developer has no chances to remember all the shortcuts.

Actually after we started working on it, we found five projects, attempting to solve the same problem: foragoodstrftime.com, strftime.org, strftime.net, strftimer.com, strfti.me

None of them were ideal though. We analysed them, took the best parts, threw away the worst - this is how strftime.guru appeared.

15.

Show HN: Strftime.guru – automatic strftime format detection from date samples(strftime.guru ↗)

11 points · by inem · 8y ago · 5 comments

16.

TabSqueeze – tabs shortener for Chrome(producthunt.com ↗)

1 points · by inem · 9y ago · discuss

17.

Quiz: Ruby or Rails? Matz and DHH were not able to get 10/10(twitter.com ↗)

2 points · by inem · 10y ago · 1 comment

18.

Two reasons to abandon your cloud storage client(medium.com ↗)

2 points · by inem · 10y ago · discuss