Hacker Newsnew | past | comments | ask | show | jobs | submit | r4victor's commentslogin

Super cool! It recommended me Scalene Python profiler (https://github.com/plasma-umass/scalene), which looks very interesting – I haven't heard about it before..

Working now? It's a 1cpu/1gb VPS – maybe too small to handle hn hugs.

The website repo is public, so it's also available on github: https://github.com/r4victor/tenthousandmeters/blob/master/we...


Yes! I also got bitten by format_on_save when working with legacy projects with inconsistent formatting. Given another discussion I saw, the maintainers didn't think about this use case much, i.e. "why don't you want to have a proper formatting?". It can be turned off now, so not sure if they'll change the default.


It's like Excel changing .csv files after opening them so a simple load/save cycle can corrupt the file and your original copy is nowhere to be found. I imagine the damage is smaller in case of auto-formatter but still - not something I would expect a program to do to my file in a simple "open file - close the program" cycle.


Hmm, I found Zed to consume battery less than VScode on my M1 MBP. It's ~100 vs ~200 12h power consumption on average according to Activity Monitor. Do you compare it to VSCode?


Yes VSCode uses far less power than Zed on my machine. I believe it is probably related to these issues:

https://github.com/zed-industries/zed/issues/21146 https://github.com/zed-industries/zed/issues/8043


It's unlikely that anyone will see this but I tried using Zed again after not using it for a while and the power draw is significantly lower! So I don't think it is related to those issues after all. I don't see much of a difference between Zed and VSCode in the amount of energy they use, but Zed is noticeably snappier (and not owned by MSFT)

That's a good idea. I considered VSCodium but the issue is that I used VSCode's proprietary extensions such as Pylance. So it would require to switch to OSS replacements at which point I decided why wouldn't give Zed a try – it has a better feeling by not being an Electron app.

I think VSCodium is a good option if you need extensions not available in Zed.


If you are good with a slightly jank option, I have had success with just moving the extension directory from VSCode to the VSCodium directory. Works for the Oracle SQL Developer plugin I use often. It might go against the terms in the extension, but I don’t care about that.


That doesn't help with Pylance and similar extensions. Microsoft implemented checks to verify the extension is running in VS Code, you have to manually patch them out of the bundled extension code (e.g. like this[0], though that probably doesn't work for the current versions anymore).

[0]: https://github.com/VSCodium/vscodium/discussions/1641#discus...


Basedpyright and ty should both work under vscodium.


Basedpyright is really good. I've been using it in neovim for a while. I'm currently evaluating ty. It is definitely not as good, but it is also really new.

I appreciate that we have good alternatives to pylance. While it is good, it being closed source is a travesty.


I've been using vscodium with basedpyright as I've thought it was supposed to be a open source version of pylance. I've got to say it's annoying about type errors and after changing it's setting to be less strict it still annoys me and I've even started littering my code with the their # ignore _____ .

I'm really glad the article mentioned ty as I'm going to try that today.

On zed I tried it but the font rendering hurt my eyes and UI seems to be glitchy and also doesn't support the drag and drop to insert links in markdown feature * I use all the time.

* https://code.visualstudio.com/Docs/languages/markdown#_inser...


Hi, I'm the author of the post. I hope it resonates with many who got tired of VSCode and found Zed.

I'd also like to add there are many small features I miss in Zed that I don't go over in the post, e.g. autodetect and respect file's indentation (https://github.com/zed-industries/zed/issues/4681). But I see Zed is actively shipping the missing features, so I believe they'll improve significantly over the next year.


Your blog appears to have been hugged to death. I look forward to reading it someday.



Have you tried using vim? Or rather nvim? If tinkering is your thing, feel free to completely do your own setup but out of the box lazyvim is pretty sane and you may not need much to get it to your liking.

But it’s very nice to easily able to extend or modify to fit your workflow. I’m just curious what people are getting out of zed that seems like vim has available.


I use both zed and vim, but the former for 'big' work because of:

a) file tree - I really like being able to 'root' the view at a directory, explore the hierarchy, and easily open any file within it

b) LSP - Zed's auto-formatting is it's best feature, for me

I generally like a whole bunch of things the gui gives me, but I would probably drop zed if I could get these two features working as well (or, at least, almost as well) in vi.


If it helps, I use the NERDTree plugin which gives a very decent file tree to vim.

+1 for lazyvim. I tried multiple times to switch to nvim from vscode, but lazyvim finally made it painless. love lazygit too. debugging in nvim also works like a charm.


Yep, same experience (except Sublime with vim bindings) lazygit + lazydocker is really nice. Folke has done a great job.

Is it on linux?



So far I prefer the Hashimoto's solution to this that "AI tooling must be disclosed for contributions": https://news.ycombinator.com/item?id=44976568

I use it like this: If a PR is LLM-generated, you as a maintainer either merge it if it's good or close if it's not. If it's human-written, you may spend some time reviewing the code and iterating on the PR as you used to.

Saves your time without discarding LLM PRs completely.


But what does LLM-generated mean? What if I use CoPilot for completions? Is that considered "AI generated"? What if I grab the code from Claude, and update greater than 50%. Am I now taking ownership of it as my code?

It's like the ship of theseus


Their twitter says

> Joined November 2017

so likely a bit older :)


Ah, that's true. They even have HackerOne activity from 8 years ago: https://hackerone.com/daniel/hacktivity?type=user

So either they lied about their age then in order to join social media and they're some sort of child prodigy... or they're lying now.


that's a hackerone bug, that 8-year-old report is not mine :)


It's clearly a different username on the 8 year old report.


Or that hackerone account has been traded.


H1 activity at 8 is pretty crazy but yeah, I never put real information unless it's financial/stuff I care about

Benjamin Dover, 1600 Pennsylvania Ave, born in 1999 ;)


It's not unfathomable for a precocious 8yr old to register for an account, with or without parental guidance.


I agree - “failed” may be not the best word. I mean failed only compared to the k8s abundance.

Anyway, impressive scale for Swarm! Are there any crucial features you miss in Swarm?


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

Search: