2,940 karma · joined Oct 16, 2020 (6y ago) · 2,890 submissions
----------------------------------------------------
comment 3y ago · link · parent
If so, then I'd argue that yes random search is more likely. When we do hyper parameter tuning in ML, random search beats grid search in efficiency. The higher the dimensionality of the problem, the worst grid search is going to be because you will spend a lot of time at the boundaries.
If you are doing Grid Search, then you might as well use a space filling curve, find a promising block, and increase the resolution. This is how GeoHash [1] works more or less.
On the other hand, if a single solution exists, then it is improbable that you will find it via random search.
There are more complex solutions to exact constraint solving, but perhaps they don't scale particularly well.
comment 3y ago · link · parent
A reference is a new object that references an existing memory value. You can not store a reference unless the borrow-checker can prove that the object that stores it has a shorter lifetime than the referenced object.
That is also why you can't just pass that reference around willy-nilly, because the reference is consumed due to affine types.
I may be misunderstanding something though so feel free to correct me.
comment 3y ago · link · parent
In the process you avoid use-after-free, double-free, and accessing unallocated memory because the borrowers always live shorter lives than the owners, and can only access borrowed and thus allocated memory that is deallocated once the owner dies, and there is nobody else who can use it or free it once more.
comment 3y ago · link · parent
I really believe that this is the best time to be a polymath, or at least have a broad spectrum of knowledge and references to look into and pull information from; and that being a true generalist that can dive as deep as needed enables you to build great stuff. But maybe that’s just my experience.
comment 3y ago · link · parent
Anecdata but I found myself very productive with Haskell when I was learning it for grad school, to the point where I knew that if it compiled, it was most likely right.
I had similar experiences though not to that degree with Rust with very little time spent on it in comparison to Haskell. I feel a lot more comfortable sleeping at night over C or Python.
comment 3y ago · link · parent
My experience corroborates this. My team is spread across 4 or 5 cities, 2 countries, 2 continents, and 6h difference. I know none in the office, and yet I still have trouble getting work done because people can’t respect others and speak loudly.
I shouldn’t need to wear headphones 8h a day just so I can have some silence when I can work remotely at a library, or in my apartment.
I shouldn’t need to wear a sweater or warm clothing in the middle of the summer because people need to have the AC as low as they do.
Let’s not forget the need to scramble to find a meeting room because the teams are as fragmented as they are.
It’s absolutely insane.
All of these get worse because of forced RTO.
when attendance was sparser, I enjoyed it a lot more.
comment 3y ago · link · parent
Granted, such an acknowledgement involves some degree of humility, but I think this is preferable to not having opinions at all, especially about issues that matter.
comment 3y ago · link · parent
There are other decoding approaches, other than beam search:
https://arxiv.org/abs/2202.00666
> Other than that, things like gpt can't go back and edit what they've outputted
Actually, they can, they may emit a backspace token [1]
[1] https://arxiv.org/abs/2306.05426, https://news.ycombinator.com/item?id=36425375