HNHacker News
TopNewBestAskShowJobs

sjroot

1,397 karma · joined March 15, 2015

I am a software engineer currently living in New York City.

My posts and comments do not reflect the views of my employer.

submissionscomments
sjroot··on Use perfect hashing, instead of binary search, for keyword lookup
This is basically what I was thinking -- that a relatively minor change to the parsing process could yield such significant results.
sjroot··on Use perfect hashing, instead of binary search, for keyword lookup
From the post:

"The time savings is indeed significant: preliminary testing suggests that the total time for raw [SQL] parsing (flex + bison phases) drops by ~20%."

Very impressive work!

sjroot··on You can now set your status on GitHub
The ONLY context in which this makes sense is allowing users to indicate whether they are looking for work or projects to contribute to. Let's hope all the excessive stuff (stories, timelines, etc) mentioned in these comments never come to fruition.

If you dislike this feature then you need to take ten seconds out of your time to submit feedback through 'set status' interface.

sjroot··on Ask HN: How do you normally choose your database?
I think it depends on your product and where it is at in its lifecycle. If you are building a new product or service, just use an option that is sufficiently stable (Postgres, MySQL, etc). If you are thinking of migrating from one technology to another, you need to figure out which metrics you are trying to improve and see which alternative(s) would provide the performance improvement you are looking for.

That said, when I am making the decision myself, I just go with Postgres.

sjroot··on Start with a Website, Not a Mobile App
You can integrate Apple Pay pretty seamlessly into a PWA. It actually adds a lot in the way of feeling like a real native app.
sjroot··on Start with a Website, Not a Mobile App
The real answer to this question? (Surprise!) It depends.

I have worked on a side project for the last year or so that will have a website and a mobile application. It has social elements, so ultimately I decided to prioritize the mobile application, because that is where users have access to their contacts, and do most of their communication with their friends and family. There are, of course, other business ideas that would be better suited to a website (or electron app?): work-related tools, dashboards, etc.

A lot of people on here are talking about PWAs which are amazing, but iOS Safari is missing the Web Push API. Unfortunately, that makes the effort nearly futile because you have to build a separate mobile app anyway.

If you are an Apple engineer and can help get that shipped, I will buy you a nice dinner. If you're an Apple recruiter, hire me so I can help ship it! :)

sjroot··on Show HN: Learn and practice modern JavaScript
I wanted to test this out but it appears the only way to do so is by signing in with GitHub. That won't necessarily deter me, but I imagine that will be the case for others.

If I were you, I would allow access to the course without signing in. Then, if the user wants to save their progress, they can connect their GH account.

sjroot··on A strange museum at the ‘centre of the world’
This is really going to confuse the archeologists who rediscover it in the year 6000.
sjroot··on Ask HN: Who wants to be hired? (January 2019)
Location: New York

Technologies: JavaScript, TypeScript, React, React Native, Vue, Electron, Express, SQL, GraphQL, Swift, Java, Rust, Python, C, C++, AWS, Google Cloud, Docker, Kubernetes

Email: sam+hn@roth.fyi

Resume: https://roth.fyi/resume/december.2018.pdf

I recently finished my graduate degree in CS and am looking for full time positions in NYC. I have experience across the stack but I consider my strength to be in UX / front-end work.

sjroot··on How to Use JSON Web Tokens
The page mentions the ‘exp’ field, but doesn’t use it in its example. I was suggesting the author point out the fact that, if someone gets a hold of a JWT without an expiration, then your system is in quite a bit of trouble.
sjroot··on What I learned at work this year
Perhaps it could be more than one factor?

I agree that there will always be something to abuse.

sjroot··on What I learned at work this year
Either bring more to the discussion or abstain from commenting. What exactly are you trying to say?
sjroot··on How to Use JSON Web Tokens
This page doesn’t have any discussion of strategies for expiring JWT, one of the biggest security issues with this auth mechanism. Even the code sample doesn’t include an expiration.
sjroot··on Teachers Quit Jobs at Highest Rate on Record
I think this is the way to go. I should have clarified that in my OP.
sjroot··on Teachers Quit Jobs at Highest Rate on Record
Last time I saw a paywalled article, someone commented and mentioned the idea of (1) prohibiting those sites or (2) automatically redirecting to an outlined version.
sjroot··on How Facebook Keeps Messenger from Crashing on New Year's Eve
As someone who typically works on front-end projects, this was a very interesting read. I particularly loved the discussion of “graceful degradation.” That’s the kind of collaboration across the stack that makes a service like Messenger very pleasant to use.
sjroot··on Show HN: Pg-extend-rs – Easy Postgres extensions in Rust
This made me curious - are there any SQL databases being actively developed in Rust? I found one on GitHub (LlamaDB) that does not appear to be maintained.
sjroot··on Facebook’s Secret Rulebook for Global Political Speech
Facebook should add a privacy setting that allows you to disable @mentions completely, or limit them to people you have added as a friend. I would not be surprised if this is already a feature.
sjroot··on Show HN: Open source JavaScript library to record and replay the web
I played with the examples and I am extremely impressed. I couldn't tell at all that I was being recorded; I figured the examples would just be videos of people interacting with those pages. The speed-up feature is very neat too.

Very good work. I am actually a little surprised something like this is open source.

sjroot··on Facebook shelved a feature intended to promote civil political discourse
Right. This article, as well as the Wall Street Journal story, have zero real description of what “Common Ground” would have done.

I also thought it was odd that the WSJ used this story, and the fact that he was present at Kavanaugh hearings, to label Joel Kaplan as the sole conservative on Facebook’s team. Seems like quite a presumption, though I have never heard this guy’s name before.

sjroot··on TensorFlow Lite is for mobile and embedded devices
Image or facial recognition. You could make a home security system.
sjroot··on TensorFlow Lite is for mobile and embedded devices
They have a section for “Companies using TensorFlow Lite,” but half of them are Google apps.

They say performance is comparable, but I wish the landing page would elaborate more on the differences between this library and standard TF.

sjroot··on Show HN: Personalized email addresses for your entire family
This kind of attentiveness is how you get me to refer Namekin to my friends — cheers!
sjroot··on Show HN: Personalized email addresses for your entire family
The domain I actually own for this purpose, <last name>.fyi, doesn't appear to be on the list of suggestions. You should add that TLD. :)
sjroot··on Show HN: Personalized email addresses for your entire family
I used to own the domain <my initials>.io, and made the mistake of letting it expire. It was immediately picked up by a squatter and now they want thousands of dollars.

Not worth it.

sjroot··on Show HN: Personalized email addresses for your entire family
This is cool but, even with a relatively uncommon last name, every single possible domain shows up as taken.
sjroot··on At Blind, a security lapse revealed private complaints from tech employees
How incredibly convenient for an anonymous social networking dedicated to complaining about your employer.

</conspiracy>

sjroot··on Firing Frankness
That is from A Few Good Men.
sjroot··on V8 release v7.2
They state specifically in the article that their chart is based on measurements taken from "several popular websites."

Obviously they would want to test Facebook because a lot of people use that website. I'm sure they tested many others as well.

sjroot··on V8 release v7.2
I agree with you and I had this same question when the article discussing private class fields was posted here a few days ago.

There has been a lot of discussion regarding public and private keywords here: https://github.com/tc39/proposal-class-fields/blob/master/PR...

← PreviousPage 6 of 11Next →