HNHacker News
TopNewBestAskShowJobs

styfle

1,940 karma · joined September 20, 2016

https://styfle.dev

[ my public key: https://keybase.io/styfle; my proof: https://keybase.io/styfle/sigs/k5Jx2P3fJ9JOZsHyU2TLChLetDsvmL2mHK7wJMj-nKk ]

submissionscomments
styfle··on The State of Atom's Performance
You fail to realize the purpose of Electron.

It’s not to wrap a website, it’s to add features that the web doesn’t offer.

For example, how could Atom exist and be able to show your files in the explorer pane as a web app? It can’t.

Electron adds the missing pieces/permissions that desktop apps have had since the beginning.

styfle··on Scaling SQLite to 4M QPS on a Single Server (EC2 vs. Bare Metal)
There's a few things that stood out to me that seem like "bad practices":

> we don’t use DNS internally — just configuration-managed /etc/hosts files

This seems very odd and redundant. Does someone manually edit all servers when a new server comes online?

> Make RANDOM() deterministic

Why would you use random if you want determinism? That sounds like the opposite of random to me.

> David Barrett, Founder of Expensify

Was this blog post really written by the founder!?!

The perftest[0] code is in a branch named "dbarrett_perftest" but that still surprises me.

[0]: https://github.com/Expensify/Bedrock/tree/dbarrett_perftest/...

styfle··on Signal partners with Microsoft to bring end-to-end encryption to Skype
I was working for a large hardware company (I'm not going to name names) that typically files for hardware/firmware patents. There was a push for everyone to file more patents, even from the software teams.

I was working on an app that had graph-like data so we decided to use a graph database...nothing super innovative. My coworker, who apparently had a couple patents, said that we could probably patent this algorithm. I looked at him and said, how can you patent traversing nodes and vertices... that's graph theory 101?!

Big companies try to patent everything because its a metric they can use to show how amazing they are, and acts as blackmail (or cold war). If you sue me, I'll sue you.

styfle··on Many packages suddenly disappeared
There are unofficial stability badges[0] that I have seen some packages use. For example, xtend[1] is locked.

[0]: https://github.com/badges/stability-badges

[1]: https://www.npmjs.com/package/xtend

styfle··on The State of Atom's Performance
Yeah, this is is actually one of the reasons I used Electron for a screen-recording project...because most browsers didn’t implement the experimental screen recording APIs yet but Chrome already had it.

https://github.com/styfle/magnemite

styfle··on The State of Atom's Performance
Electrino was a great idea, but the project was more of a POC and I haven’t seen any new development.

So until someone can build a production ready, cross platform, JS desktop experience....Electron will live on.

styfle··on Show HN: Nerv – A fast React alternative, compatible with IE8 and React 16
It looks like the README[0] was recently translated from Chinese to English.

The Chinese README is still present in the current version published to NPM[1] which is v1.2.2

[0]: https://github.com/NervJS/nerv/commit/18b1d8720b69d250603d58...

[1]: https://www.npmjs.com/package/nervjs

styfle··on Many packages suddenly disappeared
Would that mean a package with multiple authors would have to shared the private key with each other in order to publish a new version?
styfle··on Why Raspberry Pi Isn't Vulnerable to Spectre or Meltdown
I understood everything up until the "suppose we flush our cache before executing the code" part which is probably the most important part.

There was a comment below the article that explained this part a little further:

> Imagine the value at the kernel address, which gets loaded into _w, was 0xabde3167. Then the value of _x is 0x100, and address user_mem[0x100] will end up in the cache. A subsequent load of user_mem[0x100] will be fast.

> Now imagine the value at the kernel address, which gets loaded into _w, was 0xabde3067. Then the value of _x is 0x000, and address user_mem[0x000] will end up in the cache. A subsequent load of user_mem[0x100] will be slow.

> So we can use the speed of a read from user_mem[0x100] to discriminate between the two options. Information has leaked, via a side channel, from kernel to user.

https://www.raspberrypi.org/blog/why-raspberry-pi-isnt-vulne...

styfle··on How and why we teach non-engineers to use GitHub at Thread
I convinced our BA to use git for internal documentation and meeting notes.

VSTS has a similar online text editor for editing and previewing markdown files.

I have a web hook that builds the markdown using mkdocs so we can have a nice web interface for others who do not have edit privileges.

VSTS recently released a wiki feature so I’m considering moving to that instead of mkdocs.

I think people see the value in wikis but it’s hard to sell git to someone who hasn’t used it before.

I’m always interested in this type of workflow but the problem that no one has seemed to solve is the local editing for a draft document for someone who understands markdown but not git.

styfle··on Node-fetch: Call for maintainers
Some more context:

> As node-fetch is being used in more environments, notably through package like react-native, I think it's time we add a few more collaborators to address various use-case issues.

https://github.com/bitinn/node-fetch/issues/252

styfle··on The Top JavaScript Trends to Watch in 2018
The author seems to think that React users choose Flow and Angular users choose TypeScript.

However, TypeScript works really well with React and has for a long time. I have an example[0] boilerplate for isomorphic web app with React server-side rendering in TypeScript.

The code should be pretty easy to follow if you have some React experience. I chose to use the bare Node.js APIs so there is no favoritism in express, koa, hapi, etc.

[0]: https://github.com/styfle/react-server-example-tsx

styfle··on Ask HN: What did you work on in 2017?
This year, I dedicated more time to open source projects, mostly to scratch my own itch.

In particular, I learned how to use Electron and capture video for Repro Steps.

https://github.com/styfle/magnemite

styfle··on iPhone 6 slows down by 28% after just 4 months use
When can you find battery capacity?
styfle··on Show HN: Embedded v8 inspector integration with chromedev tools front end
How is this different than node --inspect index.js
styfle··on The Internet I Knew (2014)
In 2005, I used to be in a Battlefield 2 online community with game servers, SMF Forums, and ventrilo for VOIP. I used to play pretty regularly, but when not playing we would all talk and learn from each other. There were maybe 30 people at most from age 15 to 50 years old.

The way we sustained the servers was everyone pitching in to pay maybe $5 to $15 per month.

Moderation and Adminstratuon was volunteer based and people who donated had priority.

We eventually became some of the most popular BF2 servers and it made for interesting social interaction when the admins had to come together to make a decision if someone was cheating or just really good.

I’m sure communities like that still exist but I haven’t played many online games since then. Those were the days :)

styfle··on Convert Marvin Annotations to `My Clippings.txt`
Maybe the readme should have a description like this. Also, what is Marvin?
styfle··on Show HN: Simple Gameboy Emulator
I know nothing about emulators, so it would be nice if the README provided instructions for how to build and run the emulator.

Here is some inspiration: https://github.com/dolphin-emu/dolphin

styfle··on Zeit Deployments Are Down
It's been a full day now. Any news on this one?
styfle··on DO Installer – An installer for getting apps running quickly on DigitalOcean
I actually found it through OneBody and was intrigued.

It’s like a “Deploy to Heroku” button but for Digital Ocean.

We need more of these type of tools because it gives people options on where to host their software.

Also, how did you even know I posted this to HN? :)

styfle··on Show HN: Ad Revenue Prediction Tool for Side Projects
Where does CarbonAds fall in this spectrum? I want something similar for my website but I don’t get enough traffic to sign up with Carbon.
styfle··on Vue.js vs. React: what happened in 2017
If anyone wants to try out React SSR + TypeScript, I have a working example here:

https://github.com/styfle/react-server-example-tsx

One of the reasons I picked up React is that views could be type checked at compile time which was not possible with Handlebars a few years ago.

I believe there is work being done to the TS language service to get type checking in other template languages at some point.

styfle··on Kids in ‘Netflix Only’ Homes Saved from 230 Hours of Commercials a Year
Agreed. I used to notice that there were many Microsoft products like the Surface in the show Arrow. But it was subtle enough that most people wouldn’t know unless they can recognize the logo on the device.
styfle··on “Username or password is incorrect” is bullshit
I asked this same question[0] on StackExchange earlier this year. It has been asked many times and it really comes down to considering a username a secret or not.

In B2B applications where there is no registration form, then the username is probably a secret. In B2C applications where anyone can register, then the username likely isn't a secret. Many of those applications have the concept of "mentions" by username so clearly the username is not considered a secret in that case.

[0]: https://security.stackexchange.com/q/158075/11536

styfle··on Call to ban sale of mini mobile phones
Thanks for the links. The Indy Star gave a Bad Gateway so I found the amp ariticle here:

https://www.google.com/amp/s/amp.indystar.com/amp/858322001

styfle··on Faster Progress Bars: Manipulating Perceived Duration with Augmentations (2010)
What about if two users are editing the same object? How do you reconcile or merge the changes?
styfle··on Faster Progress Bars: Manipulating Perceived Duration with Augmentations (2010)
I like mirrors in an elevator if I’m the only one in there.

Otherwise it makes the ride more awkward because I try to avoid locking eyes with someone else through the mirror.

styfle··on Bundle Phobia: find the cost of adding an npm package to your bundle
I agree with you but there are ways to perform union and intersection with existing APIs.

http://2ality.com/2015/01/es6-set-operations.html

> Long-term, I expect JavaScript to have built-in functionality for this, e.g. via functions that operate on iterables

styfle··on Osquery: Change license to Apache 2.0 and GPLv2
This change appears to be just another OSS project that Facebook is relicensing and removing patent clause.

Related post: https://news.ycombinator.com/item?id=15316175

styfle··on Show HN: Bot house for Slack
What's the use case for this?
← PreviousPage 9 of 15Next →