HNHacker News
TopNewBestAskShowJobs

zbjornson

1,062 karma · joined October 30, 2015

Microbiologist (virology) & immunologist by training. High-performance bioinformatics software dev by trade.
submissionscomments
zbjornson··on How much bandwidth does the L2 have to give, anyway?
Neat trick! I'm interested to know if this holds up on server configurations or is unique to client only. In addition to the published architecture differences between the two (size and exclusive layout), the prefetcher seems to behave differently in forward and reverse in SKL-SP.
zbjornson··on How newlines affect Linux kernel performance
v8 (before v5.9) used to only inline functions that were under 600 characters (and 196 AST nodes). That was another fun way to add fuel to the tab vs. spaces fire: identical functions that used spaces instead of tabs could run significantly slower because they weren't inlined.
zbjornson··on Why iPhone Xs performance on JavaScript is so good
Not all numbers are stored and operated on as doubles, no. They are treated as if they were though. V8 and Spidermonkey (idk about the others) store and handle integers that fit in 32 bits as 32-bit integers.
zbjornson··on Why iPhone Xs performance on JavaScript is so good
https://developer.arm.com/docs/100069/latest/a64-floating-po... (FJCVTZS: Floating-point Javascript Convert to Signed fixed-point, rounding toward Zero) is the instruction they're talking about. One main difference (vs FCVTZS) is that it sets the Z flag depending on whether the conversion was exact, and it's mod 2^32 on overflow.
zbjornson··on Ask HN: Who is hiring? (October 2018)
Primity Bio | San Francisco Bay Area | Frontend or Full-Stack | Onsite or Remote

We're building a high-speed, cloud-based bioinformatics data analysis application and seeking engineers to join our team. (No experience in biology needed.)

Ideally you have a passion for and experience with building highly interactive, creative interfaces (e.g. buisness intelligence or dashboarding apps, products like Google Docs). Our stack includes Vue, Node.js and C++. Opportunities to contribute to open-source projects.

zbjornson at primitybio . com

zbjornson··on Ask HN: Who is hiring? (September 2018)
Primity Bio | San Francisco Bay Area | Frontend or Full-Stack | Onsite or Remote

We're building a high-speed, cloud-based bioinformatics data analysis application and seeking engineers to join our team. (No experience in biology needed.)

Ideally you have a passion for and experience with building highly interactive, creative interfaces (e.g. business intelligence or dashboarding apps, products like Google Docs). Our stack includes Vue, Node.js and C++.

zbjornson at primitybio . com

zbjornson··on Update on Our Planned Move from Azure to Google Cloud Platform
http://googlecloudplatform.github.io/PerfKitBenchmarker/ can run a ton of different benchmarks on a lot of cloud providers.
zbjornson··on Improving the fast inverse square root (2010)
VRSQRT28 too, which has max 2^-28 rel error.

https://software.intel.com/en-us/articles/reference-implemen...

zbjornson··on Researchers Find Herpes Viruses in Brains Marked by Alzheimer's Disease
Realistically, probably because they're not virologists. Looking for nucleic acids is easy/commonplace. Virus culture, electron microscopy and immunoassays are more specialized techniques.
zbjornson··on Researchers Find Herpes Viruses in Brains Marked by Alzheimer's Disease
Likewise, detectable RNA/DNA does not mean there's virus (virions).

An unusual example, but it's common to have Ebola virus RNA in semen (a fluid from another immuno-privileged site) with no detectable virus for months after primary infection. (https://www.nejm.org/doi/full/10.1056/nejmoa1511410 among others.) Similar patterns exist for lots of other viruses.

zbjornson··on Introducing QUIC support for HTTPS load balancing
I'm afraid to enable this. When I had AT&T Business Internet (maybe irrelevant), we frequently got QUIC protocol errors for many Google sites like YouTube (see others crying for help in [1]). My fix was to disable QUIC in Chrome. I don't want our users to hit that as it's not something a normal user could easily diagnose and remedy. No idea how common it is.

[1] https://support.google.com/chrome/forum/AAAAP1KN0B0xKFfhDvhj...

zbjornson··on Things I Regret About Node.js [video]
Just constructing a Uint32Array view of the buffer and accessing values by index way(!) faster than using the buffer.read* methods.

Likewise, you don't need to copy bytes in your last code sample. You can copy uint32s.

zbjornson··on Things I Regret About Node.js [video]
Take a look at https://github.com/Feh/nocache. It works effectively for reads. I don't know about writes.
zbjornson··on Validating UTF-8 strings using as little as 0.7 cycles per byte
You're right that it changes the behavior vs. what the current implementation is, but 0x0 is a valid ASCII character.
zbjornson··on Validating UTF-8 strings using as little as 0.7 cycles per byte
Oh duh, thanks. (Checking less than zero, read it wrong.)

I think it would be faster to OR the entire string with itself, then finally check the 8th bit though. On Skylake that would cut it to 0.33 cycles per 16 bytes (HSW 1 per 16).

https://github.com/lemire/fastvalidate-utf-8/pull/2

zbjornson··on Validating UTF-8 strings using as little as 0.7 cycles per byte
I'm confused how the ASCII check works. It's checking if any byte is greater than zero. Wouldn't you want to check if the 8th bit in any byte is set?
zbjornson··on Intel Compiler Intrinsics Guide
There are several C++ sandboxes online. This one lets you set the compiler flags that you need for these SIMD ISAs, I think up through AVX2: http://www.compileonline.com/compile_cpp_online.php.
zbjornson··on Better-sqlite3: A faster Sqlite library for Node.js
My first post was talking about the C API. A sync C API can be made into an async node.js API using the thread pool. That's what node does internally for DNS resolution, fs and other APIs.
zbjornson··on Object Storage: AWS vs Google Cloud Storage vs Azure Storage vs DigitalOcean
This uses the pricing for multi-regional GCS, which is geo-redundant across two or more locations separated by at least 100 miles.

Regional GCS is the storage class equivalent to standard S3 and is $0.02/GB.

zbjornson··on Better-sqlite3: A faster Sqlite library for Node.js
The OP and I are talking about the C API, not the node.js API, being sync.
zbjornson··on Better-sqlite3: A faster Sqlite library for Node.js
What signatures are you referring to? They all take async callbacks.
zbjornson··on Better-sqlite3: A faster Sqlite library for Node.js
Indeed, you have to write your native code to use it. My point is that you can probably write an even better sqlite library by using the thread pool, and that sync APIs can be made to act async.
zbjornson··on Better-sqlite3: A faster Sqlite library for Node.js
Just because SQLite's API is synchronous does not mean that it must block the node process. libuv manages a thread pool, which node uses to offload sync APIs and let the main event loop run. This is described here under "What code runs on the Worker Pool": https://nodejs.org/en/docs/guides/dont-block-the-event-loop/
zbjornson··on Parallel C++ on AWS Lambda for CRISPR
We have a similar application (parallelized C++ code operating on large files, for bioinformatics even) and ended up down the reverse path: started on Lambda, moved to our own RPC system. Lambda got super expensive (in part because there was no way to reuse a worker while it was doing async work like an S3 download), couldn't parallelize nearly enough without hitting AWS hard-limit quotas, had significantly lower CPU perf and didn't provide a way to cache files (like a genome in this case). Spot/preemptible instances keep our costs down while letting us keep a few hundred servers up at a time.
zbjornson··on “Invisible Electrostatic Wall” at 3M adhesive tape plant (1996)
Heh, I read this 20 years ago when I wanted to try to make as much tech from Star Trek a reality as possible. Being 10 years old the closest thing I could get my hands on was a megaroll of plastic wrap from Costco that I basically pulled around some rollers as fast as I could. Suffice it to say it didn't quite cut it.

I had also tried to make a dermal regenerator after reading an article in PopSci about infrared radiation speeding up ulcer healing in cancer patients. Didn't have a good way to test it but I liked to think it worked. :)

zbjornson··on Ask HN: Who is hiring? (February 2018)
Primity Bio | San Francisco Bay Area | Frontend or Full-Stack | Onsite or Remote

We're building a high-speed, cloud-based bioinformatics data analysis application and seeking engineers to join our team. (No experience in biology needed.)

Ideally you have a passion for and experience with building highly interactive, creative interfaces (e.g. business intelligence or dashboarding apps, products like Google Docs). Our stack includes Vue, C++ and node.js.

zbjornson at primitybio . com

zbjornson··on Ask HN: Who is hiring? (January 2018)
Primity Bio | San Francisco Bay Area | Frontend or Full-Stack | Onsite or Remote

We're building a real-time, cloud-based bioinformatics data analysis application and seeking engineers to join our team. (No experience in biology needed.)

Ideally you have a passion for and experience with building highly interactive, creative interfaces (e.g. business intelligence or dashboarding apps, products like Google Docs). Our stack includes Vue and node.js.

zbjornson at primitybio . com

zbjornson··on The Booming Server Market in the Wake of Skylake
Have you found benchmarks yet for the second point (DB perf)? I assume by "new cache architecture" you're referring to the switch from a ring to a mesh for L3, which was almost necessitated by having more cores in SKL. But at the same time they reduced associativity from 8 to 4 (worse) and made L1-L3 non-inclusive (unsure of the effects yet). They did expand L2 a bit though.
zbjornson··on Compute Engine machine types with up to 96 vCPUs and 624GB of memory
It's not exposed through their virtualization currently. I suspect it has something to do with making live migrations a lot harder.
zbjornson··on Ask HN: How do you keep track of node packages/ruby gems security issues?
OP ruled it out because it's not free, but private projects are free for low-volume testing.
← PreviousPage 3 of 9Next →