tomlu
|
5 years ago
|
on: Reflections on IDEA vs VS Code
The language server protocol is diametrically opposite to the way that IntelliJ works. For each language, IntelliJ builds its own internal representation (PSI) of the source code. There are a lot of language specific things, but there are also a lot of commonalities between languages.
I have no idea how you would morph (say) IntelliJ's Java support to use a LSP without basically throwing everything away and starting over.
Caveat: I never worked at Jetbrains, but I did work for two years supporting Android Studio and IntelliJ at Google, which involved a lot of work in its internals.
tomlu
|
5 years ago
|
on: A Proposal for Adding Generics to Go
This proposal is fundamentally different from C++ templates as they exist today. You don't just chuck a type in there and let the compiler have a go at it, SFINAE style.
tomlu
|
5 years ago
|
on: A Proposal for Adding Generics to Go
The major difference is the first proposal separated interfaces from concepts, later proposals (very wisely) unified them. Only concepts could be used in type constraints.
They also switched from parenthesis () to square brackets [], thankfully.
tomlu
|
5 years ago
|
on: Uber will charge significantly more per trip as new Seattle law goes into effect
Australian minimum wage is about 15 USD per hour, which is a wage that can sustain people if they do not spend excessively. The economy is not tanking, the same type of jobs exist. Are you claiming that the Australian standard of living is generally horrible as a result of this? That it would otherwise be better for everyone if there were no minimum wage?
tomlu
|
5 years ago
|
on: Please – A cross-language build system
Yeah fair point. At Google a lot of these non-deterministic rules are either banned through "date" just not existing on remote execution machines, or through determinism tests that ensure rules behave. Maybe in real-life scenarios it's not as easy as I claim, as you suggest.
tomlu
|
5 years ago
|
on: Please – A cross-language build system
My full time job was to make Bazel more efficient for about 1.5 years. The answer is: it really depends.
If you are executing 100,000 novel parallel C++ actions, then compilation for that might be I/O bound? If these actions are all cached though you would likely be CPU bound instead, as the build system works hard to discover that all the work is already done.
tomlu
|
5 years ago
|
on: Please – A cross-language build system
I haven't had many issues with non-determinism when using Bazel/Blaze? Especially when you use remote execution or sandboxing it's pretty hard to avoid being hermetic.
tomlu
|
5 years ago
|
on: Chess tactics explained
That depends on the strength of the puzzle? I find them pretty difficult once you get above 2000 or so.
tomlu
|
5 years ago
|
on: Pixel 5
I lost my Pixel 3 recently and upgraded to a Pixel 4 (but had a Pixel 1 as well). You skipped right to the worst incarnation - no fingerprint unlock, mediocre battery life.
tomlu
|
5 years ago
|
on: JDK 15
You have to work extra hard and give up language niceties to reduce allocations, more so than certain other languages that are more value oriented.
You want an List<T> of objects? It's now a list of pointers to individual allocations. You want a Path class instead of just passing strings around, for type safety? One extra allocation per object.
tomlu
|
5 years ago
|
on: New case studies about Google’s use of Go
My current and last positions both involve(d) writing (mostly) Go code, so it's definitely possible to find Go jobs within Google.
tomlu
|
5 years ago
|
on: Ask HN: What are some available force multipliers that most people don't know?
You need to be able to switch directly from workspace #1 to #8 (eg.), not hitting ctrl-windows-arrow 7 times. I use AutoHotKey for this purpose.
I agree with the grandparent poster that the Windows situation is very bad compared to something like i3.
tomlu
|
5 years ago
|
on: Atlassian tells employees they can work from home forever
Make sure you visit Sydney specifically though, it's a bit different from the rest of Australia. It's not everyone's cup of tea, though you may well end up loving it.
tomlu
|
5 years ago
|
on: CNO neutrinos from the Sun are finally detected
Parent comment possibly meant "10^25 neutrinos with an energy level indicating they were produced by the CNO process".
tomlu
|
5 years ago
|
on: Amazon added a non-compete after the employee entered the U.S. on an L1B visa
You can do whatever you want if it has no commercial value. Google would not bother asserting their rights because your experiments will not grow into a competitor they would care about.
This is for serious side ventures, like you creating a self driving car company on the side. Use common sense, fault on the side of disclosure, and you'll be alright.
tomlu
|
5 years ago
|
on: Amazon added a non-compete after the employee entered the U.S. on an L1B visa
It's the default at Google, but if you want to have an open source project or even a side business you can. You have to disclose it first and get sign-off. This seems reasonable to me and avoids any grey areas.
tomlu
|
5 years ago
|
on: Workman Keyboard Layout (2010)
I mapped all the programming keys to the alphabetic keys accessible via a third shift state. That buys me 24 symbol keys. Been using it for more than 10 years, works a treat.
tomlu
|
5 years ago
|
on: Android Studio 4.0
The majority of all Android apps produced by Google are, and I have worked on one myself.
tomlu
|
5 years ago
|
on: Android Studio 4.0
Me and my team made that plugin. It initially came from the same org that makes Bazel (rather than the other way around), but I think there's now a small team in the Android org that support it.
Nevertheless, Gradle is currently much more popular than Bazel for Android development so it makes sense that this is where the focus is.
tomlu
|
5 years ago
|
on: GM self-driving tech unit Cruise laying off about 8% of staff
The idea is that such situations are non life threatening. The vehicle will pull over and wait for a human operator.
It's not crazy to imagine that computers could handle split second decisions better than humans but choose to bail out to the side of the road if there's something they can't handle.
I have no idea how you would morph (say) IntelliJ's Java support to use a LSP without basically throwing everything away and starting over.
Caveat: I never worked at Jetbrains, but I did work for two years supporting Android Studio and IntelliJ at Google, which involved a lot of work in its internals.