gautamcgoel

Joined 7 years ago

Karma
5,032
Submissions
854
Member since
Sep 1
Postdoc in machine learning at UC Berkeley.

https://gautamcgoel.com

View on Hacker News

Recent submissions

Comment · 15 days ago
Comment · 1 month ago
Just to confirm: these puzzles are unrelated to RSA, correct?
Comment · 3 months ago
So sad to hear this. Hard to imagine anyone else playing Dr. Alan Grant in Jurassic Park.
Comment · 4 months ago
Doesn't Zig also have bitwise operators?
Comment · 7 months ago
Wait, I'm confused. Do you mean Boston should have made non-compete agreements illegal?
Comment · 7 months ago
I assume OP means that a probe launched today would take decades to exit the solar system.
Comment · 7 months ago
The thing I don't understand with these loan arguments is: don't you eventually need to pay taxes in the income you use to repay the loan? It seems to me that folks who take out such loans are just kicking the can down the road.
Comment · 7 months ago
Just wanted to say this is an amazing technical writeup, thanks for sharing.
Comment · 8 months ago
Looks amazing. However, I'm confused about some of the examples in the ownership section. Consider this example:

  [fn consume [xs]
  [println [str "got " [len xs] " items"]]]
  [let items #[1 2 3]]
  [consume items]
  ; items has been moved — using it here is a compile error
This is described as an example of a setting where the variable 'items' has been moved, so it can no longer be used. However, the consume function does not mutate its argument, so I don't see why 'items' can no longer be used. In addition, it seems to me that the term 'moved' is being used to mean 'mutated'. Is that correct, or do I have it wrong?

Another example from the website is the following:

  [fn length [xs] [len xs]]

  [let items #[1 2 3]]
  [println [length items]]
  [println [length items]]  ; items not consumed
The website explains this example as follows: "If the compiler can prove that a reference will not outlive the owner, it passes a borrow instead of moving." However, there are no references in this example, only the original variable 'items'. Am I missing something? I think the language is cool, but the explanations of the semantics could be improved.
Comment · 10 months ago
What old features would you like to dispose of in a modern redesign of D? What would this new edition look like?
Comment · 10 months ago
Mammoth and Red Thunder are both masterpieces.
Comment · 11 months ago
How would this work, given that Anthropic is a public benefit corporation?
Comment · 11 months ago
Whoa! Any references?
Comment · 11 months ago
Been using Boks for a couple months, haven't noticed much difference. Maybe some reduced sensitivity.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton