Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
hot_gril
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
44 ms
·
871.
▲
by
hot_gril
2y ago
Yeah, that's why I wouldn't do it. Not totally unusable, but painful.
872.
▲
by
hot_gril
2y ago
I've never used protobufs with web, but I don't see why not. gRPC, on the other hand, requires HTTP/2 which can be a luxury. I remember making a side project that uses gRPC a while ago and trying to deploy on GCP AppEngine, o
873.
▲
by
hot_gril
2y ago
Thinking about this more, this looks overly dismissive. Seems Google wants to be very explicit about future syntax and allow users to mix in different features. I don't think it's worthwhile, but it's doing something. Is the
874.
▲
by
hot_gril
2y ago
Proto3 already got the required/optional feature added. I don't see why they couldn't have added default values too. (Personally I liked proto3 without optionals, defaults, extensions, etc, but it was a tough sell for people
875.
▲
by
hot_gril
2y ago
Funny you should mention nullability. That was a big debate in proto2 vs proto3.
876.
▲
by
hot_gril
2y ago
I've seen OpenAPI/Swagger in the wild a few times. It's a good way to specify the API for an HTTP server, whether it's JSON or something else. Biggest downside is the confusing name change.
877.
▲
by
hot_gril
2y ago
They're comparable for a lot of use cases. In fact many protobuf-based APIs will also have a JSON mode.
878.
▲
by
hot_gril
2y ago
Performance aside, it's also really nice how a protobuf spec tells you what data structure to expect ahead of time for an API.
879.
▲
by
hot_gril
2y ago
I've always liked the simplicity of protobuf, and this change seems to add unnecessary complexity. And: "What problems are Editions solving? In short, nothing really (for end users). The introduction of Editions is the result of
880.
▲
by
hot_gril
2y ago
I tried this on a Linux machine in Py3 earlier, which I think is equivalent to your example: from multiprocessing import Pool shared = {} def f(x): global shared # idk if this matters but tried without it too shared[x] =
881.
▲
by
hot_gril
2y ago
What do you mean by sharing objects between processes in Python? By default it sends a pickled copy to each subprocess, but there are special things like Manager I haven't used.
882.
▲
by
hot_gril
2y ago
I've heard they're laying off managers too.
883.
▲
by
hot_gril
2y ago
Yeah, Python is made for non-CPU-intensive, IO-bound concurrent code. But that use case is a great fit for async/event-loop.
884.
▲
by
hot_gril
2y ago
The problem with threads in Python is they're 1:1 with OS threads in every major implementation. It's not like Golang where you have greenthreading, and you don't even get all the benefits of regular threads due to the GIL. I
885.
▲
by
hot_gril
2y ago
The bigger problem with Python to begin with was that you have to use def for functions, meaning you can't inline them like with JS arrow funcs or C++ lambdas. And this isn't a language purity thing, it's just inconvenient.
886.
▲
by
hot_gril
2y ago
Maybe this is a bad idea, but... What if, instead of the current way where every call (including native stuff) is sync by default, it were the other way around? You'd quickly whitelist basic things like arithmetic and data struct acces
887.
▲
by
hot_gril
2y ago
My wife has a new iPad for grad school, and I'm convinced it's mainly an extra category for some customers to spend more money on if they already have a Mac and iPhone. The school supplied it, then she spent $400+ on the keyboard
888.
▲
by
hot_gril
2y ago
It needs a regular web browser too.
889.
▲
by
hot_gril
2y ago
It's not that small: https://www.cnet.com/a/img/resize/65262f62ac0f1aa5540aca7cf9... I totally missed that they released a new Apple Silicon Mac Pro. Turns out it has PCIe slots.
890.
▲
by
hot_gril
2y ago
This info is much more useful than a comparison to restaurants.
891.
▲
by
hot_gril
2y ago
The duty to every share is the same, it's not really a consideration. It's not like Google has a separate "Greyglers" class of shares.
892.
▲
by
hot_gril
2y ago
Yeah, tends to be. But it's more efficient for multiple customers who don't need the hardware full-time to share it. Someone could set that up without all the expensive HA guarantees and other stuff a regular cloud provides. Maybe
893.
▲
by
hot_gril
2y ago
With no incoming work, we SWEs will make ourselves "100% utilized" just rearranging things. We might be sincerely trying to clean up the software, but still, it'll never end until you give us a real task.
894.
▲
by
hot_gril
2y ago
Can rent the space, but you still have to buy the hardware. Maybe there's money to be made running some low-availability cloud service offering newer hardware.
895.
▲
by
hot_gril
2y ago
I don't see why retirement is relevant here. Company's duty is to its shareholders either way.
896.
▲
by
hot_gril
2y ago
There was a real industry-wide hiring glut leading up to this. Once the market changed, a lot of companies had more people than they knew what to do with.
897.
▲
by
hot_gril
2y ago
Yeah but stockholders aren't necessarily retired.
898.
▲
by
hot_gril
2y ago
If you mean the moonshots, Google killed most of them and hasn't announced new ones. I do think Google was mistaken that it could detach parts of itself to act like startups. Too much red tape and not enough grit. What bothers me more
899.
▲
by
hot_gril
2y ago
True, but it's weird how many times he mentions retirement in particular.
900.
▲
by
hot_gril
2y ago
"Google did not immediately respond to a request for comment" Hah, who exactly did they contact at Google to ask if half their staff are doing nothing useful?
More ›