HNHacker News
TopNewBestAskShowJobs

NikhilVerma

267 karma · joined July 26, 2012

@NikhilVerma
submissionscomments
NikhilVerma··on Vomit: Clean up Claude 5's token output with a separate LLM
I am actually fine-tuning a version of Qwen to re-write Claude slop. This will complement it nicely
NikhilVerma··on Claude Opus 5
That's what led me to make https://slopsift.dev/editor/
NikhilVerma··on How to stop Claude from saying load-bearing
What would be fun if we can rewrite the Claude responses, as if we had edited them. So the next message goes back with the updated text tricking the model into believing that it had sent the modified text.

It's basically few-shot prompting but applied at the global level. I was messing around with ChatGPT, I asked it the capital of France. Then I modified the answer to London, and asked it "Why would you say that?"

The response came back with "I am not sure why I said that, the capital of France is Paris"

NikhilVerma··on Love systemd timers
I have a Canon printer, I actually can't trust that their print nozzle won't get jammed up after sitting idle for a while. So I had claude setup a systemd script to print a picture of my dog every week, I ensure it has enough CMYK spectrum to stress the printer. Its a nice surprise every monday as I sit on my desk to see a sudden picture pop up from the printer :)
NikhilVerma··on Webvm: Virtual Machine for the Web
I was thinking of a Chrome plugin to enable this, I think plugins can make arbitrary API calls.
NikhilVerma··on Webvm: Virtual Machine for the Web
Being able to run docker containers on the web will immediately unlock so many usecases for my work! Right now I've been trying to get a Python sentence parser to run in the browser but it requires a lot of the ecosystem (Pytorch and such). Which is not trivial to compile to WASM.
NikhilVerma··on Flaw has Microsoft Authenticator overwriting MFA accounts, locking users out
A similar thing has happened with Twitter. After the Musk takeover and the removal of SMS for auth something has changed they keys of the 2FA authenticator. My old keys don't work and my "ticket" has been waiting on Twitter support (which were probably all fired) for resolution.
NikhilVerma··on The sun's magnetic field is about to flip
I wonder what the astrologers have to say about this
NikhilVerma··on Show HN: I built a free in-browser Llama 3 chatbot powered by WebGPU
This is absolutely wonderful, I am a HUGE fan of local first apps. Running models locally is such a powerful thing I wish more companies could leverage it to build smarter apps which can run offline.

I tried this on my M1 and ran LLama3, I think it's the quantized 7B version. It ran with around 4-5 tokens per second which was way faster than I expected on my browser.

NikhilVerma··on New models and developer products
How do you manage token limits when sending large amounts of code structure to OpenAI?
NikhilVerma··on The sudden demise of Indian vultures killed thousands of people
I remember vividly when going out with my family in the year 2000. There used to be a stretch of road filled with vultures. Then a few years later they just stopped existing. I haven’t seen a real vulture since then.
NikhilVerma··on Using XPath in 2023
I wrote about my frustrations with modern day XPaths here - https://dev.to/nikhilverma/xpaths-in-the-modern-age-1gah
NikhilVerma··on My 20 year career is technical debt or deprecated
I've been programming professionally close to 16 years. Here is what I can remember of my code:

# Job 1 (3 yrs)

  - Worked on around three products, all shut down, code probably lives in some SVN archive.
  - Learnt advanced JS, PHP, MySQL, Photoshop, jQuery etc (skills mostly relevant)
# Job 2 (1.6 years)

  - Project never launched, code never saw the light of the day. Probably lives in some Git archive.
  - Learnt a few in-house frameworks (irrelevant) but also leant Git (relevant)
# Job 3 (8.5 years)

  - Worked on several products, the biggest one is still active and seeing millions of users weekly. Rest got shut down and live in a Git repo.
  - Learnt about some inhouse frameworks (irrelevant). React, React Native (skills still relevant)
# Job 4 (2 years)

  - Actively working
  - Learnt Vue (skills still relevant)
NikhilVerma··on Using a framework will harm the maintenance of your software
I see Frameworks as another layer of abstraction, just like programming languages. And they have the same pros/cons that comes with abstractions.
NikhilVerma··on Show HN: I may have created a new type of puzzle
So much fun! It'll be nicer to highlight the paths which are "available" given the criteria. It could be only enabled when you start dragging an entity
NikhilVerma··on Serving Netflix Video Traffic at 800Gb/s and Beyond [pdf]
I am curious why they manually split the video to compress individual clips with different bit rates. Encoders usually have a variable-bit-rate option that does the same?
NikhilVerma··on Thank You, Firebug (2017)
My first PR ever was in Firebug :) https://firstpr.me/#NikhilVerma

Loved that software and it truly kindled the frontend developer inside me.

NikhilVerma··on Spam domains that plague my email
I am seeing Google constantly fail to catch obvious spam emails. At this point I suspect there is some institutional error on their part, where bad actors inside the org are allowing certain domains to simply not be spam filtered.
NikhilVerma··on DRY is an over-rated programming principle?
I had a general guidelines in my previous company which I follow to this day to great results.

If a piece of code is duplicated thrice, it's ok. If a piece code is duplicated four times, then you must extract it.

NikhilVerma··on The balance has shifted away from SPAs
I understand that SPAs were being overused in many places. But the pendulum seems to be swinging back way too hard, and people are bashing SPAs as if it's the worst thing in the world.

SPAs are cheap to host, as you just need a reverse proxy and with increasing internet speeds, bundle splitting can be almost imperceptible from MPAs

NikhilVerma··on Underwater power cables make lobsters larvae bad swimmers
Issues like this and micro-plastics in our bloodstreams will be causing so many issues in our lifetimes. Future generations (if there are any) will be appalled that we used to be so unaware of the impact of our own existence.

It's akin to people relieving themselves in their own water supply.

NikhilVerma··on Orkut
Orkut is how I semi learnt Portuguese. I added a random Brazilian person as a friend and eventually they started messaging me Portugese words and sentences with their meanings.

It was way better and interactive than DuoLingo and I think a lot of people of my age chase the nostalgia of the unrestricted internet of those days.

Unfortunately I can’t forsee the same happening today.

NikhilVerma··on There's never been a better time to build websites
I am not sure why you say that, nothing stops a developer from opening notepad and building a website. One of the wonderful things about the web is it's backwards compatibility.

It's just that there's better tooling available for you to build it faster/featureful now.

NikhilVerma··on Amazon will allow many employees to work remotely indefinitely
It's usually when a "work-from-office" culture (for both you and your company) collides with the "work-from-home" culture.

Working from home is amazing if the company and the employee can embrace the changes that come with it. If your social stimulation happens to come from your office and your commute, maybe that's a problem? Same goes for meetings, usually embracing work from home comes with more async communications, more emails, documentations and less meetings.

But I agree, even at it's best work from home makes you come across less people face to face than a commute + office time. And I think in the coming years we will see some cultural impacts of this between people who love work from home and people who abhor it.

NikhilVerma··on Effective Code Browsing
Thank you! It's amazing to see so much work going into tools like this :) I am a huge fan of AST and AST based tools. I think there is so much to explore in this space.
NikhilVerma··on Effective Code Browsing
I've been tinkering with an AST based grep tool. (It only works for JS/TS right now). It allows you to search for code in a more free-form way and I hope better code-searching tools like this can come out. Because searching by string is really primitive. (pun intended)

Here is an example:

npx @nikhilverma/ast-grep '{ meta: { title: "___" }}' src/

NikhilVerma··on Show HN: Visualizing a Codebase
https://news.ycombinator.com/newsguidelines.html

> Be kind. Don't be snarky. Have curious conversation; don't cross-examine. Please don't fulminate. Please don't sneer, including at the rest of the community.

> When disagreeing, please reply to the argument instead of calling names. "That is idiotic; 1 + 1 is 2, not 3" can be shortened to "1 + 1 is 2, not 3."

> Please respond to the strongest plausible interpretation of what someone says, not a weaker one that's easier to criticize. Assume good faith.

NikhilVerma··on Ask HN: What are some tools / libraries you built yourself?
I made a small utility to help me search for JS code better. It's called @nikhilverma/ast-grep. It works really well for my use case but I hope to polish it more and release it more widely.

npx @nikhilverma/ast-grep '{ meta: { title: "___" }}' src/

This will search for any object with a key meta which is also an object and has a property called title which is any string. It uses AST for grepping so you don't need to worry about placement, whitespaces etc.

NikhilVerma··on Stranded sailor allowed to leave abandoned ship after four years
I believe they took his passport.
NikhilVerma··on Starting a TypeScript Project in 2021
Very much appreciate boilerplate tools, they often come with sane defaults and avoid configuration hell when you just want to get started. I just wish there was some easy way to version them, so you can migrate from an older boilerplate to a new one.

I quite like how React Native does it. They have git diffs of a created project for each released version. So if you want to migrate from version A to B you just see the diff and apply those changes yourself.

Not ideal but it really helps when you want a good mix of configurability while avoiding incompatible divergence.

Page 1 of 3Next →