Better HN
topnewbestaskshowjobs
Log inSign up

STRML

3,275 karma · joined Sep 2, 2012 (14y ago) · 602 submissions

Hey, I'm Sam. I'm a frequent contributor to open source, including a number of React projects and Babel core.

strml.net github.com/STRML bitmex.com securesha.re

[ my public key: https://keybase.io/strml; my proof: https://keybase.io/strml/sigs/Rr2YKiZGMMOgxiMMcgqAy5aykMgj0OxJamVQAZkQ0iE ]

Submissions

comment 8y ago · link · parent

While it's technically true, it's worth noting that part of the weight & thickness savings in the 2016+ MBPr was from simply reducing the battery from 99.5 Wh to 76Wh. I strongly dislike this change.

comment 8y ago · link · parent

It still can on JS toolchains. There is multiprocess webpack (happypack) now, Flow threads really well, and the extra cores can even help when restarting a bunch of processes at once and live reloading. Shaving off even a second helps productivity when you do it dozens/hundreds of times a day.

comment 8y ago · link · parent

This is just one of many vulnerabilities in Geth and other Ethereum clients due to unauthenticated JSON-RPC on localhost. You might recall this even hit Redis years ago.

There are many simple solutions (force auth, xsrf token) and it is mind-boggling that these mitigations are not considered standard-issue in the space.

comment 8y ago · link · parent

That's not how converting relative Celsius to Fahrenheit works. If I say "it's 10 degrees Celsius colder today than yesterday", that's the same as saying "it's 18 degress Fahrenheit today".

comment 8y ago · link · parent

That doesn't mean it can't be adapted and tuned for mobile. The average smartwatch has more processing power than the average server did at the time the ZFS project was launched (2001).

comment 8y ago · link · parent

Some parens would at least make that more readable:

    const foo = {
      ...(bar && {bar}),
    };

comment 8y ago · link · parent

FWIW, I tried that DoS idea on a little digitalocean machine. It capped the number of open file descriptors for the SSH daemon at 1024. Only about 3000 file descriptors were in use after it stopped allocating channels, and file-heavy operations like apt-get still succeeded.

comment 9y ago · link · parent

For this reason, we don't use SSR for pages that change often, and turn it off completely for authenticated users. Some performance analysis showed it was actually slower in the average case than shipping the JS and having the client render it themselves, especially with a hot cache.

This still provides what we wanted anyway; the ability for pages to easily be viewable without JS and easily indexed by search engines.

comment 9y ago · link · parent

The new S3 console/flow sets to private by default - so some progress there, all jokes aside.

comment 9y ago · link · parent

It appears the specific issue is with an NLB in one subnet referencing a C5 in another subnet. It's useful to put the targets in a private subnet and the NLB in a public subnet, so this breaks usage for us.

comment 9y ago · link · parent

Just Business Support, we're not that large of a shop.

comment 9y ago · link · parent

There's an open support ticket, but I've reached out as well.

comment 9y ago · link · parent

Our particular use case involves a few processes that are heavily serial, while yet memory-intensive; the fastest possible processor would be a boon to us (for instance, if someone would guarantee an overclocked Xeon, we'd take it in a heartbeat for almost any price).

AWS is indeed behind the curve more often than not, but they also have some amazing hosted products. That was a bigger deal in 2014 than it is now (Kubernetes will eat the world) but it's still a reliable offering, and reliability is our most important criteria.

Agreed re: being multi-cloud in the end. It's the only responsible choice above a certain scale.

comment 9y ago · link · parent

Worse still, we spent weeks on the phone with AWS insisting there was no throttling - just to find out there was throttling. And that would have been discoverable if a single engineer had looked at CloudWatch.

comment 9y ago · link · parent

That's more helpful. That's a lot of special cases - and thought - to put into each time we look at a C5-attached volume as opposed to any other. It also does not include any mention of Average Read Latency and Average Write Latency, which appears to be incorrect in all dimensions (average, min, max, sum).

comment 9y ago · link · parent

While the new C5 instances are certainly welcome - I've been hoping for their release since their announcement in November 2016 (and they were already late for Skylake at that point) - we have encountered a number of show-stopping problems that point to this project being just a bit too ambitious.

To name a few:

1. EBS volumes attached to C5 instances show completely bogus CloudWatch metrics, over an order of magnitude higher than reality (e.g. average read/write latency prints at 100-60,000ms depending on load)

2. C5 instances don't work - at all - behind an NLB with a Target Group pointing to it as an "instance". You have to put it in "IP" mode.

3. OpsWorks, as always, lags way behind AWS offerings. You can't launch C5 instances. This was true of even R4 instances for a while, but you could at least change them via API. Not so with the C5 instances; unless you want to lose track of their type completely, you just have to abstain for now.

3a. As a result, we have to run R4 instances for some of our web tier - despite not needing the memory - because they have the highest network allocation. To make matters worse, AWS won't tell you the network allocation. You don't know until you start dropping packets.

4. ZFS on C5 instances can behave strangely. We've been unable to resize drives (zpool online -e <pool> <drive>) if they're identified by ID ("unable to read disk capacity"). Moving the instance back to any other type fixes the issue.

As always, you expect a couple of quirks with a new architecture, but I found myself wishing they had just stuck a new board with a Skylake chip into a rack and launched it.

Compared to this, GCE has a far more attractive offering: even ignoring all these issues, we simply can't get the instance size we want (a few fast CPUs + lots of memory). It just doesn't exist.

comment 9y ago · link · parent

Bare `await` (REPL-only) came in Chrome 62 - and it's on the way to Node soon. https://github.com/nodejs/node/pull/15566

comment 9y ago · link · parent

Not a lot of notable changes in here, but it's nice to see the v9 branch moving quickly. The sheer velocity of NodeJS - even now after all the ES6 features & async/await are finally available without flags - is something to behold.

Looking forward to v10 once the churn has settled.

comment 9y ago · link · parent

Waiting for them as well. Most of all, we really need fast-CPU instances with the ENA, not the Intel NIC.

110.

Haptic Feedback for Macbook Touch Bar Keys(haptictouchbar.com ↗)

11 points · by STRML · 9y ago · 4 comments

comment 9y ago · link · parent

I've used Loopback for a while as well. IMO, TS is a welcome change, I'd be happy to write APIs in it and I'd prefer it to untyped libraries.

It's hard to understate how nice it is to have your editor autocomplete functions, argument order, object shape, etc. It's a real productivity booster, gets you sanity checking out of the gate and makes the framework discoverable. This is a good decision. I can't make any cogent argument against it, aside from dependency bloat.

comment 9y ago · link · parent

Couldn't you just turn off FileVault (decrypts the drive), let that finish, then turn it back on again?

113.

An Interactive Visualization of the ICO Space(blog.bitmex.com ↗)

1 points · by STRML · 9y ago · discuss

comment 9y ago · link · parent

Phenomenally detailed article and interesting subject matter. Thanks for sharing. Of particular concern to the community should be the issuance and solvency of Tether. An audit is long overdue.

As mentioned, our CEO, Arthur Hayes, wrote on Chinese exchanges running their customers' deposits in local bonds & stocks back in 2015 [1]. It's worth a read. We at BitMEX have brought a full-time writer into our employ just to bring more of these stories to the fore and help create the facts-first, inquisitive atmosphere crypto desperately needs. [2]

1. https://blog.bitmex.com/crypto-trader-digest-nov-30/#shadow-...

2. https://research.bitmex.com

comment 9y ago · link · parent

At BitMEX we do 100% offline multi-sig. Unfortunately, that also means any form of live proof-of-reserves is quite difficult to do, as the keys are offline.

Early in our history, we thought once-a-day withdrawal would be a problem customers would be quite vocal about. Instead, we found many of them appreciate what it means - that the keys aren't hooked up to a hackable webserver, but are actually protected. Accessing funds should be difficult and should require human interaction.

comment 9y ago · link · parent

It depends. It could be very useful for React/React Native, for one.

comment 9y ago · link · parent

Event loops are great for handling work that can be handed off occasionally to worker threads (like how Node works with libuv), but are awful when doing consistent CPU-bound work, such as with games, 2D/3D visualizations, finance, and the like.

SharedArrayBuffer is a nice primitive that allows multiple Threads (or WebWorkers) to work on data in parallel. The additional primitives they're proposing offer quite a bit of flexibility. For one, I would really like an easy `new Thread(fn).asyncJoin()` to create a Promise to do expensive CPU-bound work. There are a few npm modules that do some version of this but it can be slow.

As for the concurrency model, it should be possible to delegate tasks to a pool in this one. Map an array of input data and functions to an array of promises, then Promise.all() or Promise.race() on them.

comment 9y ago · link · parent

Yes, you're correct, it's not a changelog - rather, it is the changes.

Click "Files changed" for an actual diff. I am not sure what makes it v2.0.0, however.

comment 9y ago · link · parent

See https://github.com/mojombo/semver/compare/v1.0.0...v2.0.0 for the changelog.

Edit: Changes, that is, not a changelog.

comment 9y ago · link · parent

We only set really obvious filters, as to filter too little than too much. But of course, it's not perfect every time.
12345
21