HNHacker News
TopNewBestAskShowJobs

philplckthun

280 karma · joined January 25, 2014

Principal Engineer at Formidable, London • React (Native), CSS (-inJS), Reason • Dank Mono • urql & styled-components core team

Twitter: @_philpl Github: kitten

[ my public key: https://keybase.io/philpl; my proof: https://keybase.io/philpl/sigs/borwib-xRZK7tXkjGgyct1jcZhBkPu1H4YsjA5mRylU ]

submissionscomments
philplckthun··on Show HN: React Native scrollable bottom sheet native animations gestures 60FPS
There’s a small asterisk to this in that it says “No Native Dependencies” .” This is true for Expo which comes with a couple of libraries for Reagt Native with native bindings to iOS and Android (and also for Web)

A lot of fluid animations and interactions in React Native are finally not that much of a hurdle anymore thanks to react-native-gesture-handler and reanimated, which are brilliant abstractions that fully offload work to the native thread and don’t interrupt interactions due to work on the main thread.

React Native’s own primitives, like Animated, can only go so far until they require intervention or activation from the main thread.

These libraries by Software Mansion have basically become a “must have” for creating compelling apps in React Native.

philplckthun··on The $1,799 MacBook Pro 13 vs. the $650 Acer Swift 3
I think instead of drawing any unnecessary conclusions about MacBooks or this particular Acer laptop, it simply shows just how much ground AMD has gained in comparison to Intel. This performance is just impressive, not just at this price point, and as far as I’m aware AMD chips are now beating Intel chips across the entire CPU lineup
philplckthun··on Building a backdoor with Node.js
One can hope that with GitHub supporting signed commits and signed tags that now that they’ve acquired npm there’ll be a way to match up a signed release with an npm release.

Signed releases on npm in general would be a start as then we could at least increase the reliability of security vulnerability notifications.

That being said, as pointed out in another comment, the amount of false positives for instance for regex vulnerabilities in libraries that are only used in the devDependencies of a repository are too high.

philplckthun··on Wacom tablets track every app you open
Sadly, some of these list don't currently include google-analytics.com since some sites would otherwise break as a result. So when using one of these hosts files it's often a good idea to double check whether they include Google's domains first.

(Also sad to say that GA is so big that a lot of websites/app rely on it)

philplckthun··on Ask HN: A New Decade. Any Predictions? (2010)
> Now that Google is advertising Chrome on billboards here in the UK, all that can be safely predicted about the browser market is that it'll be extremely competitive.

It's rather interesting to see how the web went from IE dominating, to Chrome doing essentially the same. Looks like predicting such a growth was farfetched.

Funny to see that the prediction of IE sticking around was mostly right. I long for the day that IE11 will mostly be gone.

philplckthun··on Text Editing Hates You Too
I think this works great for apps like Slack, in user-land so to speak, but isn't realistic for the Unicode standard, not only because these entry formats are in English.

Modifiers and combinators aren't exclusive to emojis, but apply to all kinds of glyphs in other languages and writing systems as well. Arabic script even has some common ligatures for common expressions.

A lot of complexity simply doesn't stem from emoji in Unicode, a lot of the complexity comes from all the writing systems that Unicode supports. Admittedly, emoji are kind of an oddball addition to Unicode, but they're by far not the most complex part of it.

philplckthun··on TypeScript vs. ReasonML
It's great to see more comparisons and articles about ReasonML and this one is really concise! But I do wish articles were more clear about the relationship between ReasonML, OCaml, and Bucklescript.

> It is also interesting to look at what javascript was generated by ReasonML

This is where BuckleScript should probably be mentioned first. TypeScript is both the name for the language and the tsc compiler, since it's a single project. But with BuckleScript that's not the case.

> BuckleScript is the tool that transpiles ReasonML to JavaScript.

There's also the older js_of_ocaml (JSoO) project, and there's more great Reason/OCaml tooling for native, like esy and dune! It's really exciting, but these small details are rather interesting and it's important to highlight them to avoid confusing beginners.

philplckthun··on Hong Kong’s protesters use AirDrop to spread information to mainland visitors
FWIW the “Great Firewall of China” is indeed the technical implementation of itself, but he also become synonymous with government censorship in China in general.

Just because mainland citizens leave the country does not mean that they leave behind the lasting influence of that censorship, especially since the most-used apps from China, like WeChat remain filtered and censored, so I think the title is quite a fair summary and not just click bait.

philplckthun··on Urql: a GraphQL client library
Quick update: We've just published v1.1 with server-side rendering support! https://github.com/FormidableLabs/urql/releases/tag/v1.1.0
philplckthun··on Urql: a GraphQL client library
Cheers! I'm happy to say that a normalising cache is indeed in progress and we're planning to finish it soon https://github.com/kitten/urql exchange-graphcache

We've got the cache itself done but are just figuring out the API for its customisability in terms of cache resolvers and such

philplckthun··on Urql: a GraphQL client library
Yes, we're already working on SSR support! https://github.com/FormidableLabs/urql/issues/218

Since we didn't want to go down the same road as some other libraries that use renderToStaticMarkup and a promise-queue, we've already built a supporting package so that we can implement SSR-support using suspense. (At least the unstable API of suspense; which is as simple for us as adding throwing promises to our components and hooks) https://github.com/FormidableLabs/react-ssr-prepass

philplckthun··on Paying for Open Source Contributions
As an active Open Source contributor I'd like to say that apart from passion being involved it also is a big responsibility depending on the project either way and being paid for it affirms my passion and beliefs.

Disclaimer: I work for Formidable

philplckthun··on Show HN: Smallest Node.js Docker images
I suppose you could apply the same builder/scrstch separation as this Dockerfile and install using npm/yarn/etc and copy over the result

It's certainly only practical when every byte matters. At that point it might also make sense to prebundle the dependencies and copy that over.

It'd be interesting to see whether this becomes relevant if serverless-like constraints suddenly apply to a Docker cloud service

philplckthun··on Show HN: Buy Me A Coffee – A free, fast and friendly way to receive donations
So A) I just love coffee, and B) the design and illustrations of the site are just so thoughtful, I just had to sign up <3 https://www.buymeacoffee.com/

I have never considered to accept donations for my open source work, but letting people "buy me a coffee" is quite literally what I've been telling people if they're ever thankful, and likewise what I'd offer them.

Thank you for creating this!

philplckthun··on Modern CSS Explained
It can actually help everyone to write CSS more quickly and in a scalable and structured way. Not saying that everyone should and needs to get on the CSS-in-JS train, but I'd certainly recommend any team of any size to investigate it.

Also, it doesn't have any association with inline-css and -styling. What all new CSS-in-JS libraries do is generate actual stylesheets in a performant and sensible manner.

philplckthun··on A WebAssembly interpreter written in JavaScript
I have bad news for you ;) https://github.com/mbbill/JSC.js

Or good depending on the perspective of course.

philplckthun··on Florida Power and Light: Regulations for home solar installations
Seems like requiring such a switch would have been a more reasonable regulation in this case. Isn't this already legally required in other countries, when feeding power back into the grid?

> Are home generators illegal also?

If the quote is accurate then they are not: "Renewable generator systems". So why does it make a difference to law makers? This sounds utterly bonkers

philplckthun··on Stop writing PHP like it's 2009
> It boggles my mind having left engineering at Facebook only 2 months ago that the outside world still largely seems to write PHP like it’s 2009.

I don't know the author so I don't want to make any quick assumptions, but even if it was just a bad joke calling a community "the outside world" sounds extremely conceited

philplckthun··on Apple Is Working on a Dedicated Chip to Power AI on Devices
It's nice that the article is trying to deliver an intro that explains that Apple clearly has some catching up to do.

Except that now I'm pretty baffled, since I've seen an article a few months earlier, that says Apple is massively investing in AI, and already using it in several places in their products.

So what am I supposed to believe now? :/

philplckthun··on Angular 4.0.0 Now Available
definitely agreed! It's become one of the biggest "advocators", so to speak. But I think people will want to learn it as a default, async primitive in JS as promises now are. Not saying support from Angular and other projects and also companies doesn't help, since it makes it look less like a "scary, new thing", but I think more people should start to teach it's benefits to be frank and blunt about it ;)
philplckthun··on Angular 4.0.0 Now Available
I think Typescript can sometime have a mind of its own, but it's certainly an enrichment and with Rx everything just falls into place.

At this point it's hard to ignore that all the UI libraries are just paradigms and patterns, and how we use them is getting less important. These days I just want to write Component-style UI code, and I'll be fine.

Similarl things can be said about RxJS, but I think since it's a different level of abstraction, it will hit much harder, once it gains more traction. And it's already building up a solid community much faster than before. the only thing standing in the way of people learning RxJS is the same as Angular / Vue / React. It's scary and there's a lot of fatigue still. I hope that this year is thus going to be even better for teaching. ^^

Tldr; RxJS is going to be huge, if we can teach it more and JS fatigue calms down.

philplckthun··on Compiled JavaScript with NectarJS can be faster than Node.js and C
"Compiler as a Service"

I think that says enough about this project unfortunately. Why would I want to compile aanything, specifically JavaScript, "in the cloud"?!

Also, "Tail recursion optimisation as a service"?

philplckthun··on Pi-hole – A black hole for Internet advertisements
yep, the name does explain itself, but "pi" and the logo are hinting at raspberry pi
philplckthun··on Pi-hole – A black hole for Internet advertisements
This is really neat! I'm wondering why the name is so Raspberry Pi-specific ;)

Is there a docker container for it already, by any chance?

philplckthun··on Show HN: RxJS Diagrams – A React library for visualising Rx operators
Thanks :)
philplckthun··on Show HN: RxJS Diagrams – A React library for visualising Rx operators
This is actually meant to be a revamp / successor. It is written in React to increase reusability and it's built with (and for) RxJS 5. So it's an overall overhaul.
philplckthun··on Why HTTPS for Everything?
This is really sad and disturbing to read. Especially the ad networks side of things. But I really hope that people like you pressure these advertisers into providing HTTPS. It's not this "hip new web tech".

It's an established standard and now completely free to set up (thanks to Let's Encrypt ;)). I don't see how these two (yes, frankly, two reasons. let's really ignore the third one) can keep anyone from providing HTTPS connections to their dear readers and users.

philplckthun··on Why HTTPS for Everything?
That goes against the basics of load balancing... And it shouldn't even be an issue to have multiple Nginx instances with similar HTTPS configs.
philplckthun··on Homebrew 1.0.0
This whole "JS and it's ecosystem is the worst"-meme is just awful. Same goes for the PHP counterpart. I think it's fine to search for better solutions for our backends, but there is no denying that 1) our browsers rely on JS and will do so for the close future, and 2) that there is an ecosystem for every programming language that can use it efficiently and proficiently.
philplckthun··on Homebrew 1.0.0
So npm is bad in your opinion, because it correctly handles different dependencies on packages with varying versions, screwing up? Or is the problem the vast js ecosystem?

I don't think that "tree X" can be a good argument against using any kind of package manager.

← PreviousPage 2 of 3Next →