Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
1-more
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
61 ms
·
781.
▲
by
1-more
6y ago
The anecdote I keep coming back to is how they said that people they fired had "graduated" truly a perverse occlusion of material reality.
782.
▲
by
1-more
6y ago
I think you want en-IE; boy howdy is localization a fraught subject!
783.
▲
by
1-more
6y ago
Hmmmm maybe you're thinking of entscheidungsproblem.js? This is a fork of that.
784.
▲
by
1-more
6y ago
We started with a blacklist to match against while(1), while(true), for(;;), etc, but we eventually found an eslint plugin (goedel.js) that nicely tells you if the code contains an infinite loop or recursion.
785.
▲
by
1-more
6y ago
Yeah I immediately checked that after commenting since it's exactly the off-by-half thing I never get right without checking and yup, you can end up with a never used code path. What a rollercoaster. Ah well. For this particular thing
786.
▲
by
1-more
6y ago
WAIT my turn to eat crow here: that "should never happen" -1 return statement actually does happen when the search value is greater than the greatest value in the array: https://ellie-app.com/byQ8vnnGTLba1
787.
▲
by
1-more
6y ago
> I'm unconvinced about array access returning Maybe being a good idea, because it's generally a bug, not actual uncertainty. So that's the thing: in JS (where I spend most of my time) I never wrap an array access in a try
788.
▲
by
1-more
6y ago
"We are engaged" is passive though. Specifically its form is passive: be + past participle. But its meaning is more reflexive than anything else. I don't know what the subject of that sentence would be in an active constructi
789.
▲
by
1-more
6y ago
That said: you are right that the inner -1 should never happen. But why are we binary searching in the first place? Maybe we should have stored the values as a set and then called Set.member; it's extremely rare to actually even use Ar
790.
▲
by
1-more
6y ago
I think you're misreading it. It only returns a value _other_ than -1 when the value at mid is equal to the search value. It returns -1 when the number is not found in the array. See here: https://ellie-app.com/byLXrykw
791.
▲
by
1-more
6y ago
-1 seems ok here. The algo is returning the index at which the array contains the search value; returning -1 is a pretty normal way of indicating that there is no such index. She could of course change the search function to return a Maybe
792.
▲
by
1-more
6y ago
Elm (not mainstream, I concede) wraps list and array access in a Maybe (aka an Option if you're more familiar with ocaml) so there's no throwing or erroring when you try to get what's not there. Kinda pleasant.
793.
▲
by
1-more
6y ago
I strongly encourage everyone who uses these apps to try delivering for them for a night or two. Just get a feel for what it's like. I do it as a hobby kind of and they're all bad for their various reasons. Uber Eats tells you wha
794.
▲
by
1-more
6y ago
My parents live in the same city as me. I'll probably spend the day before thanksgiving in line to get a rapid swab, then bike to their place and eat some bird.
795.
▲
by
1-more
6y ago
"Speaking from the I" is a technique to give prescriptive advice without giving prescriptive advice.
796.
▲
by
1-more
6y ago
I could see this being the time when they prevent 3rd party OSes using some kind of code signing/hardware verification, idk what. But that's speculation, no need to prematurely come up with things to be mad/disappointed about
797.
▲
by
1-more
6y ago
You make a good point that I grafted the "lone holdout" connotation onto your plain statement about being armed. All other things being equal then yes the armed contingent can have the stuff belonging to the unarmed contingent
798.
▲
by
1-more
6y ago
The "antifa bus" incident in Forks, WA this year was eye opening on how the peanut butter of small-town corruption can mix with the chocolate of spoiling for a fight paranoia to turn any situation into absolute madness very quickl
799.
▲
by
1-more
6y ago
If it's any consolation, the type of person to do that is the type to have their house burned down around them because the solo king-of-the-castle, all plunder survival strategy has a very limited lifespan.
800.
▲
by
1-more
6y ago
> Much like a gardener or builder who doesn't get paid out when the house gets sold We may also interrogate this arrangement.
801.
▲
by
1-more
6y ago
It's wild to me. I still love my 1st gen MBP Retina and it has 16GB memory.
802.
▲
by
1-more
6y ago
Gnarly!! And ty for the source elsethread. Fascinating stuff. Sounds like a no-good empire! Not a fan.
803.
▲
by
1-more
6y ago
There is a project to get new ones made. I've met the dude behind it at a few keyboard meetups around NYC. I guess they are finally shipping! An absolutely herculean effort on his part. https://www.modelfkeyboards.com
804.
▲
by
1-more
6y ago
Nice. Smaller, less networked geographical area, but maybe a longer time scale to accrue them all? All signs point to "at least same order of magnitude" here. Edit I'm seeing 6 figure conquistador estimates and a 3 figure num
805.
▲
by
1-more
6y ago
I'd line the Aztecs up against the witch purges of Europe. > Prosecutions for the crime of witchcraft reached a highpoint from 1580 to 1630 during the Counter-Reformation and the European wars of religion, when an estimated 50,000 p
806.
▲
by
1-more
6y ago
What I hate about this is that collecting money to fund your embezzlement boat is a lesser evil than building a wall through the desert.
807.
▲
by
1-more
6y ago
As funny as that incident was it really seemed like the FBI using its "not exactly entrapment" playbook that it perfected in the aughts against disaffected muslim teen shut-ins. Now the Philly police catching armed Q-anon fans com
808.
▲
by
1-more
6y ago
it's all about \usepackage[garamond]{mathdesign} after running sudo getnonfreefonts --sys -a
809.
▲
by
1-more
6y ago
Nice thanks!!
810.
▲
by
1-more
6y ago
I flipped that didn't I? Damn. Good point.
More ›