Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
leeoniya
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
40 ms
·
541.
▲
by
leeoniya
4y ago
i have an open water cert and dive 4-6 times a year. it's fine for just myself, but if you have a higher level cert like rescue, then you may be asked or expected to assist others in emergencies. thankfully, most places are very carefu
542.
▲
by
leeoniya
4y ago
to add to this, if you dont actually use your SCUBA or first responder or pilot skills on a regular basis, those certs are worthless at best, and dangerous at worst.
543.
▲
by
leeoniya
4y ago
there was a rare triplet bloom in Chicago but it was closed to the public due to COVID :( https://www.chicagobotanic.org/titan/velvet_queen
544.
▲
by
leeoniya
4y ago
unfortunately, webdev does not have a strong performance culture. V8 & Blink/Skia can be crazy fast in the right hands, but it does take some effort and profiling to eek it out.
545.
▲
by
leeoniya
4y ago
you might be right, but there's more to power consumption than CPU time. something that takes 250ms vs 10ms might wake more cores and/or prevent them from sleeping, might use high-perf cores instead of efficient cores, it might re
546.
▲
by
leeoniya
4y ago
> Could we have it run in 010ms vs 250ms? if it runs once per hour, then it may be inconsequential; if it runs every 30s, then it might be an extra 1hr of battery life for your phone, but people will still keep using it and not complain.
547.
▲
by
leeoniya
4y ago
> Imagine that it is floating over a 1km by 1km (or even 1 mile by 1 mile) area - what are you going to use against it? an EMP?
548.
▲
by
leeoniya
4y ago
i think the author swapped out his custom scripting engine for https://bellard.org/quickjs/ a year or two back. (he also hangs out on HN)
549.
▲
by
leeoniya
4y ago
solar powered, hopefully?
550.
▲
by
leeoniya
4y ago
a lot of 0 star reviews tho :(
551.
▲
by
leeoniya
4y ago
https://www.geeksforgeeks.org/tail-recursion/
552.
▲
by
leeoniya
4y ago
> For an array of 5-10 items the performance hit of foreach is worth it for readability 100% agree. my point is more about OP's example being used to prove that dumb questions get asked. if it's being asked by a good interviewe
553.
▲
by
leeoniya
4y ago
> Worse things have been carried under wings.[1] this one [1] was way scarier, imo D: [1] https://en.m.wikipedia.org/wiki/1961_Goldsboro_B-52_crash
554.
▲
by
leeoniya
4y ago
> No doubt there are situations where hugely optimized code is necessary. An interview isn't one of them unless you're hiring someone to write exactly that code. Most companies aren't. knowing the difference, and conscious
555.
▲
by
leeoniya
4y ago
> If a candidate want to simply loop over all of them multiple times a second, I'd say that's a much bigger problem. unless the task is to animate them in a rAF loop (which runs at ~60Hz), right? the task matters. in some cases
556.
▲
by
leeoniya
4y ago
try rendering a dynamic React dashboard with 30 line, scatter, and heatmap charts, each containing 3 series of 10k points each, several times per second. welcome to what Grafana can do :)
557.
▲
by
leeoniya
4y ago
quite impossible to move into a faster language when it would 1. require a complete rewrite of an existing, massive codebase 2. where the primary task is rendering interactive charts for a React web app
558.
▲
by
leeoniya
4y ago
i'm not claiming that this is a good question for every case. but there are many times where the choice of loop makes a significant difference. asking this question for a task that only requires iterating 3 elements every 1000ms would
559.
▲
by
leeoniya
4y ago
> This ridiculously untrue. at least for JS VMs, this is true today. this answer will certainly vary for other languages/runtimes. i profile and optimize a lot of JS/TS code that handles datasets with millions of datapoints at
560.
▲
by
leeoniya
4y ago
> or asking obnoxious questions ("Why did you use a foreach and not a for loop?") you should be able to explain why you wrote something the way you did; that's not an absurd ask. perf characteristics of different iteration
561.
▲
by
leeoniya
4y ago
he actively hangs out here, btw :) https://news.ycombinator.com/user?id=WalterBright
562.
▲
by
leeoniya
4y ago
> It's at least 4X, often more. i'd say, often 2X, sometimes more. 4x would be a case of being drastically underpaid.
563.
▲
by
leeoniya
4y ago
3 months ago: https://news.ycombinator.com/item?id=30228981
564.
▲
by
leeoniya
4y ago
if you see snowden as a traitor (someone who violated the trust bestowed on him by his government) would you also consider that when the government did the illegal things we now know to its own citizens, that the government is also a traito
565.
▲
by
leeoniya
4y ago
im using one now. and yes, i consider it too big to use one-handed without dropping it. also, the physical buttons are way too easy to press. every time i hold it, i accidentally press something :( 5.5 inches is about the limit for me, with
566.
▲
by
leeoniya
4y ago
> Fixed scrolling background-attachment: fixed oh, joy! only took 8+ years: https://stackoverflow.com/questions/23236158/how-to-replicat...
567.
▲
by
leeoniya
4y ago
yep, my previous cat responded with his tail every time. we let him roam outside every day and he would always come home when we whistled or called his name. also walked with us like a dog off a leash. our current cats are less responsive,
568.
▲
by
leeoniya
4y ago
for high perf code, i've found Object.assign() to be significantly faster than spread *. it also invoke getters, whereas spread does not. * this statement will self-invalidate in 180 days.
569.
▲
by
leeoniya
4y ago
maybe they'll finally crack the unsolved problem in physics of predicting friction coefficients between arbitrary materials & surfaces. 10 years might be worth the wait!
570.
▲
by
leeoniya
4y ago
i remember being surprised by how slow GROUP BY year(date), month(date) was in MySQL, despite the date column being properly indexed. the solution was to store each of those in separate indexed columns instead of re-computing them at query
More ›