Hacker Newsnew | past | comments | ask | show | jobs | submit | code-faster's commentslogin

Could you release a fork of jq whose make does all this fanciness? I use jq A LOT so would love a turnkey solution to make it faster.


https://github.com/01mf02/jaq?tab=readme-ov-file#performance

jaq runs 5x faster on my machine in some cases


jaq is nice. It just loses, performance-wise, to the final step in this article, and it can't do the second mentioned workload (yet) so I didn't include it.


Which workload can't it do? I've had good success with jaq performance.


It bombs out on the jq program I use for the 2nd corpus that I mentioned. On further investigation, the show-stopping filter is strftime. In the jaq readme this is the only not-yet-checked box in the compatibility list, so perhaps some day soon.


Not a fork but a similar program I've been using: https://github.com/tidwall/jj?tab=readme-ov-file#performance


If I had the time to fork jq, I would convert the relevant part to C++ so it doesn't spend literally all of its time dynamically allocating strings it is just about to discard.


Why does that require C++? A quick search showed up plenty of material about "pure C" arena allocators, etc.


The reason why these articles appear every 5 years is because many engineers pride themselves on how they solve problems. And then when they see people solving those problems without putting in the hard work that they had to put in, it really bothers them.

This is a timeless post. We'll see it today. We'll see it in five years. We'll see it in 10 years.


Yes. Ten years ago some friends asked me to teach PHP to them, I showed them the book I learned from 20 years ago. It had 1200 pages and you could learn web development and MySQL without using the Internet. No one used that book. They searched for easy ingestable tutorials and went from there. After a year, some of them actually wrote software in production. I can't know if more or less of them would be able to write software, if they had used the book. But sure enough, I was disappointed that they didn't.

My oldest son doesn't even use tutorials, he uses LLMs. Only time will tell, if his way is worse than mine. And right now, I think it doesn't really matter _how_ he learns writing software. It matters more that he doesn't stop doing that.


Method of acquiring is not necessarily equal to knowledge.

I never liked learning from books. I often played with code myself. In the long term I think this had some negative effect, where I did not learn all the things but used more common solutions over and over.

I like writing with LLMs, as it sometimes show a pattern I never could think of. This also teaches me new ways to solve a problem / write a code.


Hehe, in 2000 I bought the 2nd edition of the book "Beginning Linux Programming (Programmer to programmer series)" [1] and learnt so much about Linux programming, and programming in general.

For us people 40+, even "Stack Overflow" was the easy/lazy way to get knowledge. There was something called expertsexchange.com at some point in the 2000 (but it became pay-walled at some point). But generally, downloading PDFs from Emule or going to the library was THE way to learn.

Fortunately, nowadays we have LLMs and tools that are way better. No regrets, and I am so happy to live in this era.

[1] Beginning Linux Programming (Programmer to Programmer) 2nd edition by Stones, Richard, Matthew, Neil (2000) Paperback


dusts off HN account

AI coding is even more impactful considering that most coding-oriented AIs will explain what the generated code does. My offline combo of Ollama, Qwen Coder 14b, and the Continue.dev VS Code extension will always explain what it did at the end of each chat message in understandable English. And if I'm still confused, I can literally type in "I don't understand these changes could you walk me through it" and it will walk me through the code changes with the whole codebase as context/RAG material. All running on-device with no token limits or subscription fees (runs really slow, but still $0), only limited by the computer hardware itself.

In fact, I credit my AI stack with removing a huge coding "writer's block" I've had since recovering from a mental health crisis right before the start of the COVID lockdown, and has made me fall in love with building software all over again.

And it's only going to get even better the more open/shared source on-device stuff gets released. Forget multimodal models, these specialized tools are where the real magic is happening!


Some people learn better by doing rather than getting info dumped.


You're absolutely right, but I'd add that there is still an element of truth to the article - someone who struggles through a manual will retain more than someone who re-implements an answer from Stack Overflow, who will retain more than someone who gets the working code handed to them by an LLM.


>>many engineers pride themselves on how they solve problems.

Im guessing its only a matter of time we see newer programming languages specially invented to work in the LLM era. So the same old processes like ever before continue. You need to understand things in a fundamental way else you won't have a clue what is going on.

You could say you still need to have done a fair of code work without LLMs to work through difficult to find and fix bugs.


He was great, he deserves, in death, no dishonor


I love pieces like this. They're great programmer sociology if such a field existed.


Will AI change this? If AI can assess who is good for us, then we can get somewhere


It will undoubtedly make it worse. Products don't work well because of the lack of understanding and time spent on the products. "AI" only widens the gap and increases lack of understanding.


It will make everything even more disposable than it is today. Products will be cheap and they will last a few months before breaking.


Two years ago, this comment would have asked whether Blockchain will change this.

I wonder what it'll say two years from now.


I mean, maybe? Why can’t you tell us? Any opinion on it?

Sorry about the metacommentary but it’s a bit tiring with every third thread having the same stock question: Is this made irrelevant by AI?/Does AI [magically] solve this problem?

They all at the same time strongly hint that yes, AI will <panacea>. But they still don’t take any stance or make any contribution themselves!


All you're doing is creating a new spec that's not JSON. JSON has no comments. Your spec does. Your parsers handle both specs.

https://xkcd.com/927/ applies


I had to double take back to HN that this wasn't some super custom website pulling my name out of cookies.


CSV is great because excel can import it, but it can't import USV, so at that point, why use USV when you can use JSON?

https://github.com/tyleradams/json-toolkit/


Maybe their objective in submiting to the ietf is to get programs like Excel to start supporting it.


That’s… not how Excel/Microsoft works.


Yes you're exactly right.


Can you not customize the separators used when importing csv-likes into excel? Libreoffice has a neat little window for it that even shows a preview of what values go into which cells.


Sure if you want to stop and fiddle with Excel.

If you want to just double click and get to work, no.


Seems like the corporations are criminally negligent for leaking customer info. What if the best way to stop swatting was to go after them?


Shouldn't we go after the people actually committing the crime? Swatting does not occur because of corporations. It occurs because a few people abuse the emergency response system. The fix is to punish people who abuse the system. Preferably with long jail sentences.


Let's do both. There's two crimes:

1 - Giving away info without consent

2 - The crime of abusing police resources.


I'd argue the police are also depriving people of rights, a third crime.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: