Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
esprehn
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
32 ms
·
391.
▲
by
esprehn
5y ago
The style guide always uses (( so the operators are numerical comparison. See also where it says: > For preference, don’t use [[ … ]] at all for numeric comparisons, use (( … )) instead.
392.
▲
by
esprehn
5y ago
That's interesting that Ruby is as slow as it is, the regex engine (Onigmo) is written in C. I wonder where the bottleneck is compared to the other languages.
393.
▲
by
esprehn
5y ago
The aspect ratio hack was replaced by the aspect-ratio CSS property: https://web.dev/aspect-ratio/ Which is supported in all modern browsers: https://developer.mozilla.org/en-US/docs/Web/
394.
▲
by
esprehn
5y ago
Do you mean generics? Go has had reflection for a long time.
395.
▲
by
esprehn
5y ago
In my experience it's usually JVM at these companies, not specifically Java, and certainly in recent years more and more teams use Kotlin for backend services.
396.
▲
by
esprehn
5y ago
Yes, most of Airbnb's backend is JVM: https://medium.com/airbnb-engineering/building-services-at-a...
397.
▲
by
esprehn
5y ago
Windows has had this enabled by default for a long time: https://docs.microsoft.com/en-us/windows/win32/memory/data-e... There's a per program exception list to handle legacy programs though.
398.
▲
by
esprehn
5y ago
UK voltage is 230 which is what I was referencing
399.
▲
by
esprehn
5y ago
TRRs thankfully prevent that these days
400.
▲
by
esprehn
5y ago
> Of course I know charging an entire country's plugs isn't an overnight thing but it should be something under consideration. Of course changing an entire country from the (slightly more) dangerous 230 to the much safer 110 sh
401.
▲
by
esprehn
5y ago
Yeah at first I thought maybe the git feature but in the demo they're not passing --git. See also: https://github.com/ogham/exa/issues/367#issuecomment-4285909... ls taking seconds and exa taking 13 minu
402.
▲
by
esprehn
5y ago
Ah yeah, it seems I was...
403.
▲
by
esprehn
5y ago
Which part of the JVM is complicated by generics? They're type erased so the VM shouldn't really care. The compiler on the other hand has plenty of complexity...
404.
▲
by
esprehn
5y ago
FWIW Java doesn't sacrifice compiler speed for generics, they're entirely erased at compile time which is cheap. What they sacrificed was runtime correctness, because the type erasure lets you sneak invalid types into unsuspecting
405.
▲
by
esprehn
5y ago
It would be great if this used the same filter format as sourcegraph and other internal code search tools. ex. -file:.html is enough to filter away files ending in html in the main search box. Having to use dropdowns and multiple input fiel
406.
▲
by
esprehn
5y ago
The deprecated frontend stack they reference would seem to be GWT: https://en.wikipedia.org/wiki/Google_Web_Toolkit So they're rebuilding the app in TypeScript with Angular instead of with Java+GWT.
407.
▲
by
esprehn
5y ago
Yes, I explained this above: https://news.ycombinator.com/item?id=29350612 This is less of an issue of Chrome being slow and more about measuring different things across the two browsers because of how the micro benchmark i
408.
▲
by
esprehn
5y ago
This is not measuring what the author thinks it's measuring in Chrome. The benchmark iterates through 100,000 sequential IDs, and does so 105 times. For getElementById: This is a map lookup every time. For querySelector: Chrome caches
409.
▲
by
esprehn
5y ago
Browsers do exactly the optimization you're describing: https://source.chromium.org/chromium/chromium/src/+/main:thi... Both getElementById and querySelector are quite fast, down to the level of mea
410.
▲
by
esprehn
5y ago
If it's in violation of your contract they can reject your resignation, but most people are At Will employees which means either side can terminate employment.
411.
▲
by
esprehn
5y ago
This code should use OptionalLong instead of Optional.of() which doesn't have primitive overloads and caused wrapping of the long into a Long and extra heap indirections. It still probably can't beat Rust, but what's presente
412.
▲
by
esprehn
5y ago
There's overhead to a process that doesn't exist with threads. You can definitely split your work across threads in JS using Workers, ServiceWorkers and the main thread. Most apps don't take advantage of this very well though
413.
▲
by
esprehn
5y ago
The set of features not supported is quite extensive: https://github.com/cesanta/elk#not-supported-features * No var, no const. Use let (strict mode only) * No do, switch, for. Use while * No => functions. U
414.
▲
by
esprehn
5y ago
Interestingly at one point Google Docs did have a save button, which IIRC didn't actually do anything because it would automatically save. The button was there just to make you feel more confident. You can see it in the top right corne
415.
▲
by
esprehn
5y ago
https://cloud.google.com/shell/docs/limitations#browser_supp... Possibly related to the 3p cookies limitation described in the docs? Cloud Shell itself has wide ranging browser support.
416.
▲
by
esprehn
5y ago
For sure hacker news is pretty light weight, but it also seems they didn't feel any pressure to use AMP (and also have historically not cared about SEO).
417.
▲
by
esprehn
5y ago
This doesn't appear to be all that "modern": it doesn't support string_view for lookup without extra allocations, and it doesn't support unordered_map (or even use it as the default) for objects. It seems they'
418.
▲
by
esprehn
5y ago
Do you have real world examples of that though? Nearly every real world news, facts, recipe, cooking blog, etc I can find loads huge amounts of JS. Ex. Here's Snopes: https://www.webpagetest.org/result/210818_BiDcQ
419.
▲
by
esprehn
5y ago
Do you have some examples of sites where the regular site is faster than the AMP one?
420.
▲
by
esprehn
5y ago
Google may do many things, but one of them isn't paying lip service to climate change. https://sustainability.google/commitments/ https://cloud.google.com/blog/topics/sustainability/
More ›