Better HN
topnewbestaskshowjobs
Log inSign up

ajeetdsouza

254 karma · joined Feb 16, 2019 (7y ago) · 35 submissions

meet.hn/city/12.9767936,77.590082/Bengaluru

Socials: - github.com/ajeetdsouza - linkedin.com/in/ajeetdsouza

Submissions

1.

Parallel agents in Zed(zed.dev ↗)

279 points · by ajeetdsouza · 7mo ago · 164 comments

comment 2y ago · link · parent

This is really well-written!

Shameless plug: you may want to check out Loxcraft: https://github.com/ajeetdsouza/loxcraft

I too followed the path of "ignore safe Rust for maximum performance". It got pretty close to the C version, even beating it on some benchmarks.

3.

Dgraph: New Funding Announcement(discuss.dgraph.io ↗)

1 points · by ajeetdsouza · 4y ago · discuss

4.

Regex Licensing(regexlicensing.org ↗)

3 points · by ajeetdsouza · 4y ago · discuss

5.

Show HN: Play Wordle over SSH(github.com ↗)

6 points · by ajeetdsouza · 4y ago · 1 comment

6.

Wordle-over-SSH(github.com ↗)

3 points · by ajeetdsouza · 4y ago · discuss

7.

Web Browser Engineering: How Web Browsers Work(browser.engineering ↗)

1 points · by ajeetdsouza · 5y ago · discuss

comment 5y ago · link · parent

Shameless plug: zoxide recently added support for Nushell. It's a smarter cd command for your shell (similar to z or autojump).

https://github.com/ajeetdsouza/zoxide

9.

What happens when you enter google.com into a browser?(github.com ↗)

2 points · by ajeetdsouza · 5y ago · discuss

10.

MuditaOS: An open-source, e-ink mobile OS(mudita.com ↗)

211 points · by ajeetdsouza · 6y ago · 94 comments

11.

A study of std::io::Error(matklad.github.io ↗)

1 points · by ajeetdsouza · 6y ago · discuss

12.

Playwright for Python: Reliable end-to-end testing for the web(devblogs.microsoft.com ↗)

1 points · by ajeetdsouza · 6y ago · discuss

13.

Ent by Facebook: Entity Framework for Go Now Supports GraphQL(entgo.io ↗)

2 points · by ajeetdsouza · 6y ago · discuss

14.

Optimization: Making Rust Code Go Brrrr(aspenuwu.me ↗)

3 points · by ajeetdsouza · 6y ago · discuss

15.

GNU Humor(gnu.org ↗)

5 points · by ajeetdsouza · 6y ago · discuss

16.

Rust: The Secret Life of Cows(deterministic.space ↗)

9 points · by ajeetdsouza · 6y ago · discuss

17.

Show HN: Zoxide, a new CD command written in Rust that learns your habits(github.com ↗)

2 points · by ajeetdsouza · 6y ago · discuss

18.

Type-Safe Raytracing in Modern C++(ajeetdsouza.github.io ↗)

3 points · by ajeetdsouza · 6y ago · discuss

comment 7y ago · link · parent

Fixed, thank you!

comment 7y ago · link · parent

The size of a compiled Hello World program is 2 MB on my machine, so you're probably right!

comment 7y ago · link · parent

The tests were run 10 times, and I used the median value. There wasn't much variance between runs, so I don't think disk caching played much of a role here.

Being a garbage collected language with a runtime, Go certainly cannot match the performance of C, and it was never my point to prove otherwise - obviously, for the same algorithm, the C implementation would be faster. Instead, I was exploring Go to highlight how simple it is to write safe, concurrent code in it.

comment 7y ago · link · parent

Author here. I think you should go through the article again. I think it's quite readable, and there are no "hand-optimizations" as you say. Also, the single-core implementation was already faster than the C version - the multithreaded version was only done to explore different methods of concurrency in Go.

Hope that clarifies things.

comment 7y ago · link · parent

I tested this on a fresh install of Fedora 31, so I didn’t really see any benefit of running it on a LiveUSB. As I mentioned in the article, the wc implementation I used for comparison has been compiled locally with gcc 9.2.1 and -O3 optimizations. I’ve also listed my exact system specifications there. I’ve used the unprocessed enwik9 dataset (Wikipedia dump), truncated to 100 MB and 1 GB.

I understand your frustrations with the previous posts, but I’ve tried to make my article as unambiguous as possible. Do give it a read, if you have any futher suggestions or comments, I’d be happy to hear them!

comment 7y ago · link · parent

Argument parsing is hardly the bottleneck when you're scanning 1 GB of data. The reason I didn't implement the rest of the features was to keep the implementation light and readable, and I don't think a fully compliant wc implemented in Go with these patterns would be significantly slower.

As for having a low-memory footprint, 2 of the 4 implementations I mentioned (one single core, one multi-core) consume less memory than wc, and still run much faster.

comment 7y ago · link · parent

Author here. I have addressed this in the article. The bufio-based implementation was the first one, and it was actually slower.

In the second section, I was able to surpass the performance of the C implementation - by using a read call with a buffer. As I mentioned in the article, the C implementation does the same, and in the interest of a fair benchmark, I set equal buffer sizes for both.

12