Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
zbjornson
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
11 ms
·
61.
▲
by
zbjornson
7y ago
Primity Bio | San Francisco Bay Area | Frontend Dev | Onsite or Remote We're building a high-performance bioinformatics data analysis application and are seeking front-end developers to join our team. Users can analyze millions of sing
62.
▲
by
zbjornson
7y ago
I made a prototype of a replacement for Node.js' fs.read/write using io_uring in hopes of it ultimately replacing libuv's current threadpool implementation. Definitely promising! Many props to Jens for his hard work on this a
63.
▲
by
zbjornson
8y ago
Timeouts in Node.js HTTP requests I think are one of the most confusing aspects of all of Node.js, in terms of technical details that are critical to successful production operations. The core documentation is poorly worded in some places,
64.
▲
New map reveals ships buried below San Francisco
(news.nationalgeographic.com)
3 points
by
zbjornson
8y ago
|
1 comments
65.
▲
by
zbjornson
8y ago
206 is only valid to respond to range requests, which can only be GET requests.
66.
▲
by
zbjornson
8y ago
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
67.
▲
by
zbjornson
8y ago
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
68.
▲
by
zbjornson
8y ago
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.
69.
▲
by
zbjornson
8y ago
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
70.
▲
by
zbjornson
8y ago
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
71.
▲
by
zbjornson
8y ago
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
72.
▲
by
zbjornson
8y ago
http://googlecloudplatform.github.io/PerfKitBenchmarker/ can run a ton of different benchmarks on a lot of cloud providers.
73.
▲
by
zbjornson
8y ago
VRSQRT28 too, which has max 2^-28 rel error. https://software.intel.com/en-us/articles/reference-implemen...
74.
▲
by
zbjornson
8y ago
Realistically, probably because they're not virologists. Looking for nucleic acids is easy/commonplace. Virus culture, electron microscopy and immunoassays are more specialized techniques.
75.
▲
by
zbjornson
8y ago
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
76.
▲
by
zbjornson
8y ago
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
77.
▲
by
zbjornson
8y ago
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.
78.
▲
by
zbjornson
8y ago
Take a look at https://github.com/Feh/nocache . It works effectively for reads. I don't know about writes.
79.
▲
by
zbjornson
8y ago
You're right that it changes the behavior vs. what the current implementation is, but 0x0 is a valid ASCII character.
80.
▲
by
zbjornson
8y ago
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
81.
▲
by
zbjornson
8y ago
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?
82.
▲
SurveyMonkey offering contract workers full benefits
(cnbc.com)
1 points
by
zbjornson
8y ago
|
0 comments
83.
▲
by
zbjornson
9y ago
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 .
84.
▲
by
zbjornson
9y ago
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.
85.
▲
by
zbjornson
9y ago
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.
86.
▲
by
zbjornson
9y ago
The OP and I are talking about the C API, not the node.js API, being sync.
87.
▲
by
zbjornson
9y ago
What signatures are you referring to? They all take async callbacks.
88.
▲
by
zbjornson
9y ago
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.
89.
▲
by
zbjornson
9y ago
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
90.
▲
by
zbjornson
9y ago
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 wa
More ›