HNHacker News
TopNewBestAskShowJobs

p4lindromica

659 karma · joined January 12, 2012

Software engineer | Senior Staff Software Engineer at Brex | Artichoke Ruby

https://hyperbo.la | https://www.artichokeruby.org

submissionscomments
p4lindromica··on Use perfect hashing, instead of binary search, for keyword lookup
A perfect hash is one in which their are no collisions for a given data set, which guarantees O(1), or constant, lookup time. This patch introduces a perl script which computes a perfect hash function at build time given the current set of SQL keywords.

The old keyword lookup method uses binary search. Binary search is a search algorithm that must compare at most O(log n) entries before finding a match.

Making 1 keyword comparison instead of log n keyword comparisons yields the 20% speedup.

p4lindromica··on Effectively using AWS Reserved Instances
We've licensed the code with the MIT License.
p4lindromica··on Being spun right 'round (like a record)
I find this article to be about seeking breadth of experience in order to build empathy and problem solving skills. These can make one more effective in more areas than engineering.
p4lindromica··on Look for the duct tape
I interpreted the snippet you've quoted to be scripts that have /usr/bin/human as the shebang
p4lindromica··on How We Grow Junior Developers at the BBC
how does a junior dev know the difference when accepting a job offer? (aka you don't know what you don't know)
p4lindromica··on Equifax Breach Caused by Lone Employee’s Error, Former CEO Says
> That quote sounds good, but I don't think it's necessarily applicable to this situation. The author seems to be talking about complex systems ...

Companies, and the people, teams, and processes that those companies are comprised of, are complex systems in the manner the paper is discussing.

p4lindromica··on How We Grow Junior Developers at the BBC
you need to be in the office as a junior dev because you don't know what you don't know and you can learn a lot through osmosis
p4lindromica··on The art of over-engineering your side projects
One of the ways I learn is via code review. In a side project I'm often doing new things that I am not already an expert in. Any ideas on how to get feedback that things are ok vs not?
p4lindromica··on The FCC.gov Website Lets You Upload Malware Using Its Own Public API Key
it amazes me that you consider this post to be an accurate depiction of the way the world is.

it appears your only goal is to be right.

p4lindromica··on The FCC.gov Website Lets You Upload Malware Using Its Own Public API Key
I have no idea what problem you think you are solving. Could you clearly state your goals and why you think they are broadly applicable?
p4lindromica··on The FCC.gov Website Lets You Upload Malware Using Its Own Public API Key
The reason this matters is the same origin policy, which tilde does not protect you from
p4lindromica··on Treating performance as a product: The technical story of Asana’s rewrite
Simple in interface or implementation? One is MIT, the other is New Jersey.
p4lindromica··on Show HN: Bitcoin investing using Dollar Cost Averaging strategy
The book A Random Walk Down Wall Street
p4lindromica··on The Last American Baseball-Glove Maker Refuses to Die
https://en.wikipedia.org/wiki/Sam_Vimes#Boots_theory_of_soci...
p4lindromica··on Typed nils in Go 2
you can do a maybe monad without nil types by substituting nil with a single-valued singleton type
p4lindromica··on Typed nils in Go 2
this is called a bottom type in a type system. In JVM languages null and the throw expression return the bottom type.

The only other option is to not have nil values.

p4lindromica··on GitHub was down
ahh, a googlewhack
p4lindromica··on Robot cracks open safe live on Def Con's stage
This leads me to believe that if I am renting an apartment, I am SOL.
p4lindromica··on Robot cracks open safe live on Def Con's stage
How do I find a UL-security-rated safe? Does it matter if I don't bolt it to the floor?
p4lindromica··on Google Hangouts Browser Chat Down?
My Home started acting up around this time
p4lindromica··on TC39, ECMAScript, and the Future of JavaScript
you mean you wish you had an Option monad, right? ;-)
p4lindromica··on Chess.com stopped working on 32bit iPads because 2^31 games have been played
There are LONGBLOB, TINYBLOB, etc just like the equivalent TEXT fields
p4lindromica··on The Ruby Module Builder Pattern
At first pass, this looks very similar to the typeclass pattern in Scala
p4lindromica··on President Trump Dismisses FBI Director Comey
to remove oneself from duty in a proceeding usually due to conflicts of interest.

i.e., A judge in Florida recently recused herself from a case involving USF's football coach because she was a USF alumna.

p4lindromica··on How Stripe teaches employees to code
have you never used an emoticon or an abbreviation in IM before? To me this is as innocuous as replying "ack" to someone.
p4lindromica··on MIT no longer owns 18.0.0.0/8
contiguous IP blocks are typically denoted in CIDR notation
p4lindromica··on Why don't you just rewrite it in X?
You would not consider all of these maintainability improvements to be immediate benefits?
p4lindromica··on Golang SSH Security
Why do you think there is "an extremely small window of attack?" The mitmproxy is likely between you and the internet somehow, meaning ANY ssh connection will be MITMed. It is not like the MITM is waiting for you to spawn a machine before it pops into existence.
p4lindromica··on MySQL InnoDB Cluster GA
Does AFTER_SYNC mean MySQL 5.7+ can have unacknowledged writes appear on the slaves after a master crash and failover?
p4lindromica··on MySQL InnoDB Cluster GA
That's not what semi-sync does. Semi-sync commits the write to the master and then blocks on returning a result to the client until N replicas have received a write OR a timeout is reached. There is no ability to roll back the write on the master once it is committed.
← PreviousPage 2 of 4Next →