Better HN
topnewbestaskshowjobs
Log inSign up

bysin

30 karma · joined May 12, 2011 (15y ago) · 9 submissions

Submissions

comment 5y ago · link · parent

Online retail happened, and it's not just America [1].

[1] https://en.wikipedia.org/wiki/Dead_mall#Changes_in_the_retai...

comment 5y ago · link · parent

In the wikipedia entry you provided, there's an example in Rust, similar to the 9th code snippet, that claims it is variable shadowing:

https://en.wikipedia.org/wiki/Variable_shadowing#Rust

comment 9y ago · link · parent

I'm glad you said this. There's an async cargo cult going on, where every service must be written in "performant" async code, without knowing the actual resource and load requirements of an application.

From the last benchmark I ran [1] async IO was insignificantly faster than thread-per-connection blocking IO in terms of latency, and marginally faster only after we hit a large number of clients.

Async IO doesn't necessarily make your code faster, it just makes it difficult to read.

[1] http://byteworm.com/evidence-based-research/2017/03/04/compa...

4.

Comparing the Performance of Synchronous versus Asynchronous Network IO(byteworm.com ↗)

2 points · by bysin · 9y ago · discuss

5.

Show HN: Cloudfs, a cloud virtual filesystem (FUSE) for Linux(github.com ↗)

2 points · by bysin · 11y ago · discuss

comment 11y ago · link · parent

> OS-level multitasking won't be able to achieve the same level of concurrency

Do you have a source for this claim? I've seen it repeated many times, especially in the node.js community but I've yet to see any evidence to back it up. From what I've read, a synchronous threaded model can be just as fast as an event-based system [1].

[1] http://www.mailinator.com/tymaPaulMultithreaded.pdf

7.

Show HN: UnitJS, Server-side Javascript CGI application (like PHP)(github.com ↗)

2 points · by bysin · 14y ago · discuss

comment 15y ago · link · parent

It can be either TCP or UDP. Regardless, UDP has a checksum as well.

The likelihood of a bit-flip is very uncommon. Even taking into account the volume of computers out there, the likelihood of a bit-flip at the exact spot (in the domain name) and moment of a DNS lookup (before the checksum is calculated) is astronomically uncommon. This article is garbage.