Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
shoefindortz
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
shoefindortz
5y ago
I was proposing the cgo option because it's already implemented. I _think_ allocating a slice of contiguous bytes and using unsafe pointers should work fine as long as you are very cautious about structs/vars with pointers into th
2.
▲
by
shoefindortz
5y ago
Rust has an arena allocator too[1], but it is implemented with 165(!!!) usages of unsafe. :) [1] https://github.com/fitzgen/bumpalo
3.
▲
by
shoefindortz
5y ago
> Arenas are, however, unfeasible to implement in Go because it is a garbage collected language. If you are willing to use cgo, google already implemented one for gapid. https://github.com/google/gapid/tree/
4.
▲
by
shoefindortz
5y ago
Neat! This is commonly known as Small String / Small Buffer Optimization. This is how most implementations of C++'s std::string work also.
5.
▲
by
shoefindortz
5y ago
Windows ships with ssh now? Is that something new in win10+?
6.
▲
by
shoefindortz
5y ago
I've also received around ~10 of these same emails offering increasing prices to remove my review. Maybe this is a good investment opportunity? I'm joking, but they did offer me almost twice the price of the product itself, which
7.
▲
by
shoefindortz
6y ago
This argument reminds me of the historical arguments made against heliocentrism vs geocentrism. Just because we have widespread belief of one thing to be true does not mean we should blindly accept it and not test things that appear to oppo
8.
▲
by
shoefindortz
6y ago
The 44% figure comes from the Greater London Authority, but should be clarified a bit. There is a BBC article[0] about this which states "... 44% of the city's people are now of black or ethnic minority origins". [0]: https: